@livestore/livestore 0.4.0-dev.18 → 0.4.0-dev.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1261) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/SqliteDbWrapper.d.ts.map +1 -1
  3. package/dist/effect/LiveStore.d.ts +3 -3
  4. package/dist/effect/LiveStore.d.ts.map +1 -1
  5. package/dist/effect/LiveStore.js.map +1 -1
  6. package/dist/live-queries/db-query.js +2 -2
  7. package/dist/live-queries/db-query.js.map +1 -1
  8. package/dist/store/create-store.d.ts +4 -4
  9. package/dist/store/create-store.d.ts.map +1 -1
  10. package/dist/store/create-store.js +4 -4
  11. package/dist/store/create-store.js.map +1 -1
  12. package/dist/store/devtools.d.ts +2 -2
  13. package/dist/store/devtools.d.ts.map +1 -1
  14. package/dist/store/devtools.js +2 -2
  15. package/dist/store/devtools.js.map +1 -1
  16. package/dist/store/store-types.d.ts +7 -7
  17. package/dist/store/store-types.d.ts.map +1 -1
  18. package/dist/store/store.d.ts +61 -15
  19. package/dist/store/store.d.ts.map +1 -1
  20. package/dist/store/store.js +54 -8
  21. package/dist/store/store.js.map +1 -1
  22. package/dist/utils/dev.d.ts.map +1 -1
  23. package/dist/utils/dev.js +2 -0
  24. package/dist/utils/dev.js.map +1 -1
  25. package/dist/utils/tests/fixture.d.ts +4 -4
  26. package/dist/utils/tests/fixture.d.ts.map +1 -1
  27. package/docs/api/adapter-expo/README/index.md +9 -0
  28. package/docs/api/adapter-expo/functions/makePersistedAdapter/index.md +15 -0
  29. package/docs/api/adapter-expo/type-aliases/MakeDbOptions/index.md +74 -0
  30. package/docs/api/adapter-node/README/index.md +6 -0
  31. package/docs/api/adapter-node/functions/makeAdapter/index.md +17 -0
  32. package/docs/api/adapter-node/functions/makeWorkerAdapter/index.md +17 -0
  33. package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/LeaderWorkerInnerBootStatusStream/index.md +33 -0
  34. package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/LeaderWorkerInnerExport/index.md +33 -0
  35. package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/LeaderWorkerInnerExportEventlog/index.md +33 -0
  36. package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/LeaderWorkerInnerExtraDevtoolsMessage/index.md +47 -0
  37. package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/LeaderWorkerInnerGetLeaderHead/index.md +33 -0
  38. package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/LeaderWorkerInnerGetLeaderSyncState/index.md +33 -0
  39. package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/LeaderWorkerInnerGetNetworkStatus/index.md +33 -0
  40. package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/LeaderWorkerInnerGetRecreateSnapshot/index.md +33 -0
  41. package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/LeaderWorkerInnerInitialMessage/index.md +153 -0
  42. package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/LeaderWorkerInnerNetworkStatusStream/index.md +33 -0
  43. package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/LeaderWorkerInnerPullStream/index.md +75 -0
  44. package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/LeaderWorkerInnerPushToLeader/index.md +47 -0
  45. package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/LeaderWorkerInnerShutdown/index.md +33 -0
  46. package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/LeaderWorkerInnerSyncStateStream/index.md +33 -0
  47. package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/LeaderWorkerOuterInitialMessage/index.md +83 -0
  48. package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/LeaderWorkerOuterRequest/index.md +79 -0
  49. package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/SharedWorkerRequest/index.md +29 -0
  50. package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/classes/SharedWorkerUpdateMessagePort/index.md +89 -0
  51. package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/type-aliases/LeaderWorkerInnerRequest/index.md +5 -0
  52. package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/type-aliases/StorageType/index.md +5 -0
  53. package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/type-aliases/StorageTypeEncoded/index.md +5 -0
  54. package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/type-aliases/StorageTypeOpfs/index.md +5 -0
  55. package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/type-aliases/SyncBackendOptions/index.md +5 -0
  56. package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/variables/LeaderWorkerInnerRequest/index.md +5 -0
  57. package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/variables/StorageType/index.md +5 -0
  58. package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/variables/StorageTypeOpfs/index.md +5 -0
  59. package/docs/api/adapter-web/@livestore/namespaces/WorkerSchema/variables/SyncBackendOptions/index.md +5 -0
  60. package/docs/api/adapter-web/README/index.md +14 -0
  61. package/docs/api/adapter-web/functions/makeInMemoryAdapter/index.md +24 -0
  62. package/docs/api/adapter-web/functions/makePersistedAdapter/index.md +29 -0
  63. package/docs/api/adapter-web/type-aliases/WebAdapterOptions/index.md +124 -0
  64. package/docs/api/index.md +3 -0
  65. package/docs/api/livestore/@livestore/namespaces/EventDef/type-aliases/Any/index.md +8 -0
  66. package/docs/api/livestore/@livestore/namespaces/EventDef/type-aliases/AnyWithoutFn/index.md +9 -0
  67. package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/type-aliases/Composite/index.md +37 -0
  68. package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/type-aliases/CompositeInput/index.md +7 -0
  69. package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/type-aliases/CompositePair/index.md +23 -0
  70. package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/type-aliases/Type/index.md +7 -0
  71. package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/variables/Composite/index.md +36 -0
  72. package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/variables/DEFAULT/index.md +13 -0
  73. package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/variables/REBASE_GENERATION_DEFAULT/index.md +7 -0
  74. package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/variables/ROOT/index.md +21 -0
  75. package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/variables/Schema/index.md +7 -0
  76. package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/variables/compare/index.md +22 -0
  77. package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/variables/diff/index.md +29 -0
  78. package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/variables/fromGlobal/index.md +17 -0
  79. package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/variables/fromString/index.md +21 -0
  80. package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/variables/isEqual/index.md +21 -0
  81. package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/variables/isGreaterThan/index.md +21 -0
  82. package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/variables/isGreaterThanOrEqual/index.md +21 -0
  83. package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/variables/make/index.md +13 -0
  84. package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/variables/max/index.md +21 -0
  85. package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/variables/nextPair/index.md +30 -0
  86. package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Client/variables/toString/index.md +19 -0
  87. package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Global/type-aliases/Type/index.md +7 -0
  88. package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Global/variables/Schema/index.md +7 -0
  89. package/docs/api/livestore/@livestore/namespaces/EventSequenceNumber/namespaces/Global/variables/make/index.md +13 -0
  90. package/docs/api/livestore/@livestore/namespaces/FromInputSchema/type-aliases/DeriveSchema/index.md +11 -0
  91. package/docs/api/livestore/@livestore/namespaces/LiveQuery/type-aliases/Any/index.md +5 -0
  92. package/docs/api/livestore/@livestore/namespaces/LiveQueryDef/type-aliases/Any/index.md +5 -0
  93. package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Client/classes/EncodedWithMeta/index.md +374 -0
  94. package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Client/type-aliases/Decoded/index.md +7 -0
  95. package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Client/type-aliases/Encoded/index.md +7 -0
  96. package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Client/type-aliases/ForSchema/index.md +13 -0
  97. package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Client/variables/Decoded/index.md +7 -0
  98. package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Client/variables/Encoded/index.md +27 -0
  99. package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Client/variables/isEqualEncoded/index.md +22 -0
  100. package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Client/variables/makeSchema/index.md +30 -0
  101. package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Client/variables/makeSchemaMemo/index.md +23 -0
  102. package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/ForEventDef/type-aliases/Decoded/index.md +61 -0
  103. package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/ForEventDef/type-aliases/Encoded/index.md +61 -0
  104. package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/ForEventDef/type-aliases/ForRecord/index.md +13 -0
  105. package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/ForEventDef/type-aliases/InputDecoded/index.md +29 -0
  106. package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/ForEventDef/type-aliases/InputEncoded/index.md +29 -0
  107. package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Global/type-aliases/Encoded/index.md +7 -0
  108. package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Global/variables/Encoded/index.md +20 -0
  109. package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Global/variables/toClientEncoded/index.md +41 -0
  110. package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Input/type-aliases/Decoded/index.md +7 -0
  111. package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Input/type-aliases/Encoded/index.md +7 -0
  112. package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Input/type-aliases/ForRecord/index.md +13 -0
  113. package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Input/type-aliases/ForSchema/index.md +13 -0
  114. package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Input/variables/Encoded/index.md +14 -0
  115. package/docs/api/livestore/@livestore/namespaces/LiveStoreEvent/namespaces/Input/variables/makeSchema/index.md +30 -0
  116. package/docs/api/livestore/@livestore/namespaces/LiveStoreSchema/type-aliases/Any/index.md +5 -0
  117. package/docs/api/livestore/@livestore/namespaces/QueryBuilder/namespaces/WhereOps/type-aliases/Equality/index.md +5 -0
  118. package/docs/api/livestore/@livestore/namespaces/QueryBuilder/namespaces/WhereOps/type-aliases/In/index.md +5 -0
  119. package/docs/api/livestore/@livestore/namespaces/QueryBuilder/namespaces/WhereOps/type-aliases/Like/index.md +5 -0
  120. package/docs/api/livestore/@livestore/namespaces/QueryBuilder/namespaces/WhereOps/type-aliases/MultiValue/index.md +5 -0
  121. package/docs/api/livestore/@livestore/namespaces/QueryBuilder/namespaces/WhereOps/type-aliases/Order/index.md +5 -0
  122. package/docs/api/livestore/@livestore/namespaces/QueryBuilder/namespaces/WhereOps/type-aliases/SingleValue/index.md +5 -0
  123. package/docs/api/livestore/@livestore/namespaces/QueryBuilder/type-aliases/Any/index.md +5 -0
  124. package/docs/api/livestore/@livestore/namespaces/QueryBuilder/type-aliases/ApiFeature/index.md +5 -0
  125. package/docs/api/livestore/@livestore/namespaces/QueryBuilder/type-aliases/ApiFull/index.md +513 -0
  126. package/docs/api/livestore/@livestore/namespaces/QueryBuilder/type-aliases/FirstQueryBehaviour/index.md +49 -0
  127. package/docs/api/livestore/@livestore/namespaces/QueryBuilder/type-aliases/OrderByParams/index.md +11 -0
  128. package/docs/api/livestore/@livestore/namespaces/QueryBuilder/type-aliases/WhereOps/index.md +5 -0
  129. package/docs/api/livestore/@livestore/namespaces/QueryBuilder/type-aliases/WhereParams/index.md +11 -0
  130. package/docs/api/livestore/@livestore/namespaces/QueryBuilderAst/interfaces/CountQuery/index.md +35 -0
  131. package/docs/api/livestore/@livestore/namespaces/QueryBuilderAst/interfaces/DeleteQuery/index.md +43 -0
  132. package/docs/api/livestore/@livestore/namespaces/QueryBuilderAst/interfaces/InsertQuery/index.md +51 -0
  133. package/docs/api/livestore/@livestore/namespaces/QueryBuilderAst/interfaces/OnConflict/index.md +21 -0
  134. package/docs/api/livestore/@livestore/namespaces/QueryBuilderAst/interfaces/OrderBy/index.md +19 -0
  135. package/docs/api/livestore/@livestore/namespaces/QueryBuilderAst/interfaces/RowQuery/index.md +35 -0
  136. package/docs/api/livestore/@livestore/namespaces/QueryBuilderAst/interfaces/SelectQuery/index.md +87 -0
  137. package/docs/api/livestore/@livestore/namespaces/QueryBuilderAst/interfaces/UpdateQuery/index.md +51 -0
  138. package/docs/api/livestore/@livestore/namespaces/QueryBuilderAst/interfaces/Where/index.md +27 -0
  139. package/docs/api/livestore/@livestore/namespaces/QueryBuilderAst/type-aliases/WriteQuery/index.md +5 -0
  140. package/docs/api/livestore/@livestore/namespaces/Queryable/type-aliases/Result/index.md +19 -0
  141. package/docs/api/livestore/@livestore/namespaces/RowQuery/type-aliases/DocumentResult/index.md +11 -0
  142. package/docs/api/livestore/@livestore/namespaces/RowQuery/type-aliases/GetIdColumnType/index.md +11 -0
  143. package/docs/api/livestore/@livestore/namespaces/RowQuery/type-aliases/GetOrCreateOptions/index.md +21 -0
  144. package/docs/api/livestore/@livestore/namespaces/RowQuery/type-aliases/RequiredColumnsOptions/index.md +21 -0
  145. package/docs/api/livestore/@livestore/namespaces/RowQuery/type-aliases/Result/index.md +11 -0
  146. package/docs/api/livestore/@livestore/namespaces/RowQuery/type-aliases/ResultEncoded/index.md +11 -0
  147. package/docs/api/livestore/@livestore/namespaces/SqliteAst/namespaces/ColumnType/type-aliases/Blob/index.md +13 -0
  148. package/docs/api/livestore/@livestore/namespaces/SqliteAst/namespaces/ColumnType/type-aliases/ColumnType/index.md +5 -0
  149. package/docs/api/livestore/@livestore/namespaces/SqliteAst/namespaces/ColumnType/type-aliases/Integer/index.md +13 -0
  150. package/docs/api/livestore/@livestore/namespaces/SqliteAst/namespaces/ColumnType/type-aliases/Null/index.md +13 -0
  151. package/docs/api/livestore/@livestore/namespaces/SqliteAst/namespaces/ColumnType/type-aliases/Real/index.md +13 -0
  152. package/docs/api/livestore/@livestore/namespaces/SqliteAst/namespaces/ColumnType/type-aliases/Text/index.md +13 -0
  153. package/docs/api/livestore/@livestore/namespaces/SqliteAst/type-aliases/Column/index.md +69 -0
  154. package/docs/api/livestore/@livestore/namespaces/SqliteAst/type-aliases/DbSchema/index.md +21 -0
  155. package/docs/api/livestore/@livestore/namespaces/SqliteAst/type-aliases/ForeignKey/index.md +53 -0
  156. package/docs/api/livestore/@livestore/namespaces/SqliteAst/type-aliases/Index/index.md +45 -0
  157. package/docs/api/livestore/@livestore/namespaces/SqliteAst/type-aliases/Table/index.md +37 -0
  158. package/docs/api/livestore/@livestore/namespaces/SqliteAst/variables/column/index.md +15 -0
  159. package/docs/api/livestore/@livestore/namespaces/SqliteAst/variables/dbSchema/index.md +15 -0
  160. package/docs/api/livestore/@livestore/namespaces/SqliteAst/variables/hash/index.md +18 -0
  161. package/docs/api/livestore/@livestore/namespaces/SqliteAst/variables/index.md +27 -0
  162. package/docs/api/livestore/@livestore/namespaces/SqliteAst/variables/structSchemaForTable/index.md +15 -0
  163. package/docs/api/livestore/@livestore/namespaces/SqliteAst/variables/table/index.md +23 -0
  164. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/ColumnDefinition/type-aliases/Any/index.md +5 -0
  165. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromColumns/type-aliases/InsertRowDecoded/index.md +11 -0
  166. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromColumns/type-aliases/InsertRowEncoded/index.md +11 -0
  167. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromColumns/type-aliases/NullableColumnNames/index.md +11 -0
  168. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromColumns/type-aliases/RequiredInsertColumnNames/index.md +11 -0
  169. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromColumns/type-aliases/RequiredInsertColumns/index.md +11 -0
  170. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromColumns/type-aliases/RequiresInsertValues/index.md +11 -0
  171. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromColumns/type-aliases/RowDecoded/index.md +11 -0
  172. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromColumns/type-aliases/RowDecodedAll/index.md +11 -0
  173. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromColumns/type-aliases/RowEncodeNonNullable/index.md +11 -0
  174. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromColumns/type-aliases/RowEncoded/index.md +11 -0
  175. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromColumns/type-aliases/RowEncodedAll/index.md +11 -0
  176. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromTable/type-aliases/Columns/index.md +11 -0
  177. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromTable/type-aliases/NullableColumnNames/index.md +11 -0
  178. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromTable/type-aliases/RowDecoded/index.md +11 -0
  179. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromTable/type-aliases/RowDecodedAll/index.md +11 -0
  180. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromTable/type-aliases/RowEncodeNonNullable/index.md +11 -0
  181. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/namespaces/FromTable/type-aliases/RowEncoded/index.md +11 -0
  182. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/AnyIfConstained/index.md +15 -0
  183. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/ColDefFn/index.md +125 -0
  184. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/ColumnDefaultThunk/index.md +15 -0
  185. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/ColumnDefaultValue/index.md +11 -0
  186. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/ColumnDefinition/index.md +81 -0
  187. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/ColumnDefinitionInput/index.md +45 -0
  188. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/Columns/index.md +5 -0
  189. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/ConstraintColumns/index.md +16 -0
  190. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/DbSchema/index.md +9 -0
  191. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/DbSchemaFromInputSchema/index.md +15 -0
  192. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/DbSchemaInput/index.md +7 -0
  193. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/DefaultEncodedForColumnType/index.md +11 -0
  194. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/EmptyObjIfConstained/index.md +11 -0
  195. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/FieldColumnType/index.md +5 -0
  196. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/Index/index.md +35 -0
  197. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/InsertStructSchemaForColumns/index.md +11 -0
  198. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/IsSingleColumn/index.md +11 -0
  199. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/NoDefault/index.md +5 -0
  200. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/SpecializedColDefFn/index.md +111 -0
  201. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/SqlDefaultValue/index.md +13 -0
  202. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/StructSchemaForColumns/index.md +11 -0
  203. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/type-aliases/TableDefinition/index.md +47 -0
  204. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/NoDefault/index.md +5 -0
  205. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/blob/index.md +5 -0
  206. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/boolean/index.md +5 -0
  207. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/column/index.md +21 -0
  208. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/datetime/index.md +5 -0
  209. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/datetimeInteger/index.md +5 -0
  210. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/defaultSchemaForColumnType/index.md +21 -0
  211. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/insertStructSchemaForTable/index.md +21 -0
  212. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/integer/index.md +5 -0
  213. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/isColumnDefinition/index.md +15 -0
  214. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/isDefaultThunk/index.md +15 -0
  215. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/isSqlDefaultValue/index.md +15 -0
  216. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/json/index.md +5 -0
  217. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/makeDbSchema/index.md +21 -0
  218. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/real/index.md +5 -0
  219. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/resolveColumnDefault/index.md +21 -0
  220. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/structSchemaForTable/index.md +21 -0
  221. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/table/index.md +37 -0
  222. package/docs/api/livestore/@livestore/namespaces/SqliteDsl/variables/text/index.md +5 -0
  223. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/functions/table/index.md +294 -0
  224. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/ClientDocumentTableDef/interfaces/Trait/index.md +149 -0
  225. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/ClientDocumentTableDef/type-aliases/Any/index.md +5 -0
  226. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/ClientDocumentTableDef/type-aliases/DefaultIdType/index.md +11 -0
  227. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/ClientDocumentTableDef/type-aliases/GetOptions/index.md +11 -0
  228. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/ClientDocumentTableDef/type-aliases/MakeGetQueryBuilder/index.md +19 -0
  229. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/ClientDocumentTableDef/type-aliases/SetEventDef/index.md +19 -0
  230. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/ClientDocumentTableDef/type-aliases/SetEventDefLike/index.md +65 -0
  231. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/ClientDocumentTableDef/type-aliases/SqliteDef/index.md +15 -0
  232. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/ClientDocumentTableDef/type-aliases/TableDefBase/index.md +15 -0
  233. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/ClientDocumentTableDef/type-aliases/TraitAny/index.md +5 -0
  234. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/ClientDocumentTableOptions/type-aliases/Input/index.md +43 -0
  235. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/ClientDocumentTableOptions/type-aliases/WithDefaults/index.md +35 -0
  236. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/FromColumns/type-aliases/InsertRowDecoded/index.md +11 -0
  237. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/FromColumns/type-aliases/NullableColumnNames/index.md +11 -0
  238. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/FromColumns/type-aliases/RequiredInsertColumnNames/index.md +11 -0
  239. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/FromColumns/type-aliases/RowDecoded/index.md +11 -0
  240. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/FromColumns/type-aliases/RowDecodedAll/index.md +11 -0
  241. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/FromColumns/type-aliases/RowEncodeNonNullable/index.md +11 -0
  242. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/FromColumns/type-aliases/RowEncoded/index.md +11 -0
  243. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/FromTable/type-aliases/Columns/index.md +11 -0
  244. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/FromTable/type-aliases/NullableColumnNames/index.md +11 -0
  245. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/FromTable/type-aliases/RowDecoded/index.md +11 -0
  246. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/FromTable/type-aliases/RowDecodedAll/index.md +11 -0
  247. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/FromTable/type-aliases/RowEncodeNonNullable/index.md +11 -0
  248. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/FromTable/type-aliases/RowEncoded/index.md +11 -0
  249. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/SchemaToColumns/type-aliases/ColumnDefForType/index.md +15 -0
  250. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/SchemaToColumns/type-aliases/FromTypes/index.md +15 -0
  251. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/TableDef/type-aliases/Any/index.md +5 -0
  252. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/TableDefInput/type-aliases/ForColumns/index.md +15 -0
  253. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/namespaces/TableDefInput/type-aliases/ForSchema/index.md +23 -0
  254. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/ClientDocumentTableDef/index.md +23 -0
  255. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/ClientDocumentTableDefSymbol/index.md +5 -0
  256. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/ClientDocumentTableOptions/index.md +35 -0
  257. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/DefaultSqliteTableDef/index.md +5 -0
  258. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/DefaultSqliteTableDefConstrained/index.md +5 -0
  259. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/InputState/index.md +35 -0
  260. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/PrettifyFlat/index.md +11 -0
  261. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/SqliteTableDefForInput/index.md +15 -0
  262. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/SqliteTableDefForSchemaInput/index.md +23 -0
  263. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/StateType/index.md +5 -0
  264. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/TableDef/index.md +45 -0
  265. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/TableDefBase/index.md +47 -0
  266. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/TableDefInternalsSymbol/index.md +5 -0
  267. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/TableOptions/index.md +15 -0
  268. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/TableOptionsInput/index.md +5 -0
  269. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/ToColumns/index.md +11 -0
  270. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/type-aliases/WithDefaults/index.md +27 -0
  271. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/AutoIncrement/index.md +5 -0
  272. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/ClientDocumentTableDefSymbol/index.md +5 -0
  273. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/ColumnType/index.md +5 -0
  274. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/Default/index.md +5 -0
  275. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/PrimaryKeyId/index.md +5 -0
  276. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/TableDefInternalsSymbol/index.md +5 -0
  277. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/Unique/index.md +5 -0
  278. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/blob/index.md +5 -0
  279. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/boolean/index.md +5 -0
  280. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/clientDocument/index.md +56 -0
  281. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/column/index.md +21 -0
  282. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/createOptimisticEventSchema/index.md +43 -0
  283. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/datetime/index.md +5 -0
  284. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/getColumnDefForSchema/index.md +29 -0
  285. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/integer/index.md +5 -0
  286. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/isColumnDefinition/index.md +15 -0
  287. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/json/index.md +5 -0
  288. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/makeColumnSpec/index.md +22 -0
  289. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/makeState/index.md +21 -0
  290. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/real/index.md +5 -0
  291. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/tableIsClientDocumentTable/index.md +21 -0
  292. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/text/index.md +5 -0
  293. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/withAutoIncrement/index.md +23 -0
  294. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/withColumnType/index.md +61 -0
  295. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/withDefault/index.md +61 -0
  296. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/withPrimaryKey/index.md +23 -0
  297. package/docs/api/livestore/@livestore/namespaces/State/namespaces/SQLite/variables/withUnique/index.md +23 -0
  298. package/docs/api/livestore/@livestore/namespaces/State/type-aliases/QueryBuilderAstSymbol/index.md +5 -0
  299. package/docs/api/livestore/@livestore/namespaces/State/type-aliases/QueryBuilderTypeId/index.md +5 -0
  300. package/docs/api/livestore/@livestore/namespaces/State/variables/QueryBuilderAstSymbol/index.md +5 -0
  301. package/docs/api/livestore/@livestore/namespaces/State/variables/QueryBuilderTypeId/index.md +5 -0
  302. package/docs/api/livestore/@livestore/namespaces/SyncState/classes/MergeContext/index.md +105 -0
  303. package/docs/api/livestore/@livestore/namespaces/SyncState/classes/MergeResult/index.md +29 -0
  304. package/docs/api/livestore/@livestore/namespaces/SyncState/classes/MergeResultAdvance/index.md +125 -0
  305. package/docs/api/livestore/@livestore/namespaces/SyncState/classes/MergeResultRebase/index.md +125 -0
  306. package/docs/api/livestore/@livestore/namespaces/SyncState/classes/MergeResultReject/index.md +117 -0
  307. package/docs/api/livestore/@livestore/namespaces/SyncState/classes/MergeResultUnknownError/index.md +63 -0
  308. package/docs/api/livestore/@livestore/namespaces/SyncState/classes/Payload/index.md +29 -0
  309. package/docs/api/livestore/@livestore/namespaces/SyncState/classes/PayloadLocalPush/index.md +29 -0
  310. package/docs/api/livestore/@livestore/namespaces/SyncState/classes/PayloadUpstream/index.md +29 -0
  311. package/docs/api/livestore/@livestore/namespaces/SyncState/classes/PayloadUpstreamAdvance/index.md +29 -0
  312. package/docs/api/livestore/@livestore/namespaces/SyncState/classes/PayloadUpstreamRebase/index.md +31 -0
  313. package/docs/api/livestore/@livestore/namespaces/SyncState/classes/SyncState/index.md +179 -0
  314. package/docs/api/livestore/@livestore/namespaces/SyncState/variables/findDivergencePoint/index.md +36 -0
  315. package/docs/api/livestore/@livestore/namespaces/SyncState/variables/merge/index.md +35 -0
  316. package/docs/api/livestore/@livestore/namespaces/SyncState/variables/payloadFromMergeResult/index.md +15 -0
  317. package/docs/api/livestore/@livestore/namespaces/SystemTables/type-aliases/EventlogMetaRow/index.md +5 -0
  318. package/docs/api/livestore/@livestore/namespaces/SystemTables/type-aliases/SchemaEventDefsMetaRow/index.md +5 -0
  319. package/docs/api/livestore/@livestore/namespaces/SystemTables/type-aliases/SchemaMetaRow/index.md +5 -0
  320. package/docs/api/livestore/@livestore/namespaces/SystemTables/type-aliases/SessionChangesetMetaRow/index.md +5 -0
  321. package/docs/api/livestore/@livestore/namespaces/SystemTables/type-aliases/SyncStatusRow/index.md +5 -0
  322. package/docs/api/livestore/@livestore/namespaces/SystemTables/variables/EVENTLOG_META_TABLE/index.md +12 -0
  323. package/docs/api/livestore/@livestore/namespaces/SystemTables/variables/SCHEMA_EVENT_DEFS_META_TABLE/index.md +5 -0
  324. package/docs/api/livestore/@livestore/namespaces/SystemTables/variables/SCHEMA_META_TABLE/index.md +10 -0
  325. package/docs/api/livestore/@livestore/namespaces/SystemTables/variables/SESSION_CHANGESET_META_TABLE/index.md +8 -0
  326. package/docs/api/livestore/@livestore/namespaces/SystemTables/variables/SYNC_STATUS_TABLE/index.md +5 -0
  327. package/docs/api/livestore/@livestore/namespaces/SystemTables/variables/eventlogMetaTable/index.md +7 -0
  328. package/docs/api/livestore/@livestore/namespaces/SystemTables/variables/eventlogSystemTables/index.md +5 -0
  329. package/docs/api/livestore/@livestore/namespaces/SystemTables/variables/isStateSystemTable/index.md +15 -0
  330. package/docs/api/livestore/@livestore/namespaces/SystemTables/variables/schemaEventDefsMetaTable/index.md +7 -0
  331. package/docs/api/livestore/@livestore/namespaces/SystemTables/variables/schemaMetaTable/index.md +7 -0
  332. package/docs/api/livestore/@livestore/namespaces/SystemTables/variables/sessionChangesetMetaTable/index.md +5 -0
  333. package/docs/api/livestore/@livestore/namespaces/SystemTables/variables/stateSystemTables/index.md +5 -0
  334. package/docs/api/livestore/@livestore/namespaces/SystemTables/variables/syncStatusTable/index.md +7 -0
  335. package/docs/api/livestore/@livestore/namespaces/UnknownEvents/type-aliases/Callback/index.md +19 -0
  336. package/docs/api/livestore/@livestore/namespaces/UnknownEvents/type-aliases/HandlingConfig/index.md +5 -0
  337. package/docs/api/livestore/@livestore/namespaces/UnknownEvents/type-aliases/HandlingStrategy/index.md +5 -0
  338. package/docs/api/livestore/@livestore/namespaces/UnknownEvents/type-aliases/Reason/index.md +5 -0
  339. package/docs/api/livestore/@livestore/namespaces/UnknownEvents/type-aliases/ResolveContext/index.md +5 -0
  340. package/docs/api/livestore/@livestore/namespaces/UnknownEvents/type-aliases/Resolved/index.md +5 -0
  341. package/docs/api/livestore/README/index.md +128 -0
  342. package/docs/api/livestore/classes/IntentionalShutdownCause/index.md +107 -0
  343. package/docs/api/livestore/classes/SqliteDbWrapper/index.md +538 -0
  344. package/docs/api/livestore/classes/Store/index.md +605 -0
  345. package/docs/api/livestore/classes/StoreInterrupted/index.md +107 -0
  346. package/docs/api/livestore/functions/computed/index.md +31 -0
  347. package/docs/api/livestore/functions/createStore/index.md +29 -0
  348. package/docs/api/livestore/functions/createStorePromise/index.md +31 -0
  349. package/docs/api/livestore/functions/emptyDebugInfo/index.md +25 -0
  350. package/docs/api/livestore/functions/exposeDebugUtils/index.md +9 -0
  351. package/docs/api/livestore/functions/extractStackInfoFromStackTrace/index.md +15 -0
  352. package/docs/api/livestore/functions/isQueryable/index.md +15 -0
  353. package/docs/api/livestore/functions/nanoid/index.md +39 -0
  354. package/docs/api/livestore/functions/signal/index.md +27 -0
  355. package/docs/api/livestore/functions/stackInfoToString/index.md +15 -0
  356. package/docs/api/livestore/interfaces/ClientSession/index.md +89 -0
  357. package/docs/api/livestore/interfaces/CreateStoreOptions/index.md +280 -0
  358. package/docs/api/livestore/interfaces/InputSchema/index.md +50 -0
  359. package/docs/api/livestore/interfaces/InternalState/index.md +33 -0
  360. package/docs/api/livestore/interfaces/LiveQuery/index.md +139 -0
  361. package/docs/api/livestore/interfaces/LiveQueryDef/index.md +95 -0
  362. package/docs/api/livestore/interfaces/LiveStoreSchema/index.md +83 -0
  363. package/docs/api/livestore/interfaces/PreparedStatement/index.md +71 -0
  364. package/docs/api/livestore/interfaces/RcRef/index.md +37 -0
  365. package/docs/api/livestore/interfaces/Signal/index.md +321 -0
  366. package/docs/api/livestore/interfaces/SignalDef/index.md +119 -0
  367. package/docs/api/livestore/interfaces/SqliteDb/index.md +249 -0
  368. package/docs/api/livestore/type-aliases/Adapter/index.md +15 -0
  369. package/docs/api/livestore/type-aliases/Bindable/index.md +5 -0
  370. package/docs/api/livestore/type-aliases/BootStatus/index.md +5 -0
  371. package/docs/api/livestore/type-aliases/BootStatus-1/index.md +5 -0
  372. package/docs/api/livestore/type-aliases/DebugInfo/index.md +5 -0
  373. package/docs/api/livestore/type-aliases/DebugInfo-1/index.md +5 -0
  374. package/docs/api/livestore/type-aliases/DefineEventOptions/index.md +100 -0
  375. package/docs/api/livestore/type-aliases/EventDef/index.md +172 -0
  376. package/docs/api/livestore/type-aliases/EventDefFact/index.md +7 -0
  377. package/docs/api/livestore/type-aliases/EventDefFactInput/index.md +18 -0
  378. package/docs/api/livestore/type-aliases/EventDefFacts/index.md +7 -0
  379. package/docs/api/livestore/type-aliases/EventDefFactsGroup/index.md +50 -0
  380. package/docs/api/livestore/type-aliases/EventDefFactsSnapshot/index.md +7 -0
  381. package/docs/api/livestore/type-aliases/EventDefKey/index.md +7 -0
  382. package/docs/api/livestore/type-aliases/EventDefMap/index.md +16 -0
  383. package/docs/api/livestore/type-aliases/EventDefRecord/index.md +21 -0
  384. package/docs/api/livestore/type-aliases/FactsCallback/index.md +60 -0
  385. package/docs/api/livestore/type-aliases/LiveStoreContext/index.md +5 -0
  386. package/docs/api/livestore/type-aliases/LiveStoreContextRunning/index.md +21 -0
  387. package/docs/api/livestore/type-aliases/LiveStoreSchemaSymbol/index.md +5 -0
  388. package/docs/api/livestore/type-aliases/Materializer/index.md +59 -0
  389. package/docs/api/livestore/type-aliases/MaterializerContextQuery/index.md +64 -0
  390. package/docs/api/livestore/type-aliases/MaterializerResult/index.md +12 -0
  391. package/docs/api/livestore/type-aliases/MutableDebugInfo/index.md +5 -0
  392. package/docs/api/livestore/type-aliases/MutableDebugInfo-1/index.md +5 -0
  393. package/docs/api/livestore/type-aliases/OtelOptions/index.md +21 -0
  394. package/docs/api/livestore/type-aliases/PreparedBindValues/index.md +5 -0
  395. package/docs/api/livestore/type-aliases/PreparedBindValues-1/index.md +5 -0
  396. package/docs/api/livestore/type-aliases/QueryBuilder/index.md +61 -0
  397. package/docs/api/livestore/type-aliases/QueryBuilderAst/index.md +5 -0
  398. package/docs/api/livestore/type-aliases/QueryDebugInfo/index.md +37 -0
  399. package/docs/api/livestore/type-aliases/Queryable/index.md +13 -0
  400. package/docs/api/livestore/type-aliases/RefreshReason/index.md +75 -0
  401. package/docs/api/livestore/type-aliases/SessionIdSymbol/index.md +5 -0
  402. package/docs/api/livestore/type-aliases/ShutdownDeferred/index.md +5 -0
  403. package/docs/api/livestore/type-aliases/StackFrame/index.md +21 -0
  404. package/docs/api/livestore/type-aliases/StackInfo/index.md +13 -0
  405. package/docs/api/livestore/type-aliases/StoreInternals/index.md +156 -0
  406. package/docs/api/livestore/type-aliases/StoreInternalsSymbol/index.md +5 -0
  407. package/docs/api/livestore/type-aliases/SubscribeOptions/index.md +73 -0
  408. package/docs/api/livestore/type-aliases/Unsubscribe/index.md +9 -0
  409. package/docs/api/livestore/variables/LiveStoreSchemaSymbol/index.md +5 -0
  410. package/docs/api/livestore/variables/SessionIdSymbol/index.md +26 -0
  411. package/docs/api/livestore/variables/StoreInternalsSymbol/index.md +5 -0
  412. package/docs/api/livestore/variables/UNKNOWN_EVENT_SCHEMA_HASH/index.md +5 -0
  413. package/docs/api/livestore/variables/clientOnly/index.md +54 -0
  414. package/docs/api/livestore/variables/deepEqual/index.md +25 -0
  415. package/docs/api/livestore/variables/defineEvent/index.md +49 -0
  416. package/docs/api/livestore/variables/defineFacts/index.md +42 -0
  417. package/docs/api/livestore/variables/defineMaterializer/index.md +39 -0
  418. package/docs/api/livestore/variables/getDefaultValuesDecoded/index.md +25 -0
  419. package/docs/api/livestore/variables/getDefaultValuesEncoded/index.md +25 -0
  420. package/docs/api/livestore/variables/getEventDef/index.md +33 -0
  421. package/docs/api/livestore/variables/isLiveStoreSchema/index.md +21 -0
  422. package/docs/api/livestore/variables/liveStoreVersion/index.md +5 -0
  423. package/docs/api/livestore/variables/makeSchema/index.md +21 -0
  424. package/docs/api/livestore/variables/makeShutdownDeferred/index.md +5 -0
  425. package/docs/api/livestore/variables/materializers/index.md +58 -0
  426. package/docs/api/livestore/variables/normalizeUnknownEventHandling/index.md +15 -0
  427. package/docs/api/livestore/variables/prepareBindValues/index.md +26 -0
  428. package/docs/api/livestore/variables/provideOtel/index.md +45 -0
  429. package/docs/api/livestore/variables/queryDb/index.md +115 -0
  430. package/docs/api/livestore/variables/resolveEventDef/index.md +28 -0
  431. package/docs/api/livestore/variables/sql/index.md +24 -0
  432. package/docs/api/livestore/variables/synced/index.md +55 -0
  433. package/docs/api/react/README/index.md +24 -0
  434. package/docs/api/react/functions/LiveStoreProvider/index.md +21 -0
  435. package/docs/api/react/functions/useQuery/index.md +37 -0
  436. package/docs/api/react/functions/useQueryRef/index.md +69 -0
  437. package/docs/api/react/functions/useStackInfo/index.md +9 -0
  438. package/docs/api/react/functions/useStore/index.md +21 -0
  439. package/docs/api/react/functions/withReactApi/index.md +21 -0
  440. package/docs/api/react/type-aliases/Dispatch/index.md +21 -0
  441. package/docs/api/react/type-aliases/ReactApi/index.md +21 -0
  442. package/docs/api/react/type-aliases/SetStateAction/index.md +11 -0
  443. package/docs/api/react/type-aliases/SetStateActionPartial/index.md +11 -0
  444. package/docs/api/react/type-aliases/StateSetters/index.md +11 -0
  445. package/docs/api/react/type-aliases/UseClientDocumentResult/index.md +11 -0
  446. package/docs/api/react/variables/LiveStoreContext/index.md +5 -0
  447. package/docs/api/react/variables/useClientDocument/index.md +91 -0
  448. package/docs/api/sync-cf/@livestore/namespaces/CfDeclare/variables/ReadableStream/index.md +5 -0
  449. package/docs/api/sync-cf/@livestore/namespaces/CfDeclare/variables/Request/index.md +5 -0
  450. package/docs/api/sync-cf/@livestore/namespaces/CfDeclare/variables/Response/index.md +5 -0
  451. package/docs/api/sync-cf/@livestore/namespaces/CfDeclare/variables/Rpc/index.md +5 -0
  452. package/docs/api/sync-cf/@livestore/namespaces/CfDeclare/variables/WebSocket/index.md +5 -0
  453. package/docs/api/sync-cf/@livestore/namespaces/CfDeclare/variables/WebSocketPair/index.md +5 -0
  454. package/docs/api/sync-cf/@livestore/namespaces/CfDeclare/variables/WebSocketRequestResponsePair/index.md +5 -0
  455. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/AbortController/index.md +53 -0
  456. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/AbortSignal/index.md +269 -0
  457. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Ai/index.md +175 -0
  458. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/AiGateway/index.md +99 -0
  459. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/AutoRAG/index.md +95 -0
  460. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/BaseAiAutomaticSpeechRecognition/index.md +29 -0
  461. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/BaseAiImageClassification/index.md +29 -0
  462. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/BaseAiImageTextToText/index.md +29 -0
  463. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/BaseAiImageToText/index.md +29 -0
  464. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/BaseAiMultimodalEmbeddings/index.md +29 -0
  465. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/BaseAiObjectDetection/index.md +29 -0
  466. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/BaseAiSentenceSimilarity/index.md +29 -0
  467. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/BaseAiSummarization/index.md +29 -0
  468. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/BaseAiTextClassification/index.md +29 -0
  469. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/BaseAiTextEmbeddings/index.md +29 -0
  470. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/BaseAiTextGeneration/index.md +29 -0
  471. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/BaseAiTextToImage/index.md +29 -0
  472. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/BaseAiTextToSpeech/index.md +29 -0
  473. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/BaseAiTranslation/index.md +29 -0
  474. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Baai_Bge_Base_En_V1_5/index.md +29 -0
  475. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Baai_Bge_Large_En_V1_5/index.md +29 -0
  476. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Baai_Bge_M3/index.md +29 -0
  477. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Baai_Bge_Reranker_Base/index.md +29 -0
  478. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Baai_Bge_Small_En_V1_5/index.md +29 -0
  479. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Black_Forest_Labs_Flux_1_Schnell/index.md +29 -0
  480. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Deepgram_Aura_1/index.md +29 -0
  481. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Deepgram_Nova_3/index.md +29 -0
  482. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Google_Gemma_3_12B_It/index.md +29 -0
  483. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Leonardo_Lucid_Origin/index.md +29 -0
  484. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Leonardo_Phoenix_1_0/index.md +29 -0
  485. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Meta_Llama_3_2_11B_Vision_Instruct/index.md +29 -0
  486. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast/index.md +29 -0
  487. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct/index.md +29 -0
  488. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Meta_Llama_Guard_3_8B/index.md +29 -0
  489. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Meta_M2M100_1_2B/index.md +29 -0
  490. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Mistralai_Mistral_Small_3_1_24B_Instruct/index.md +29 -0
  491. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Openai_Gpt_Oss_120B/index.md +29 -0
  492. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Openai_Gpt_Oss_20B/index.md +29 -0
  493. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Openai_Whisper/index.md +29 -0
  494. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Openai_Whisper_Large_V3_Turbo/index.md +29 -0
  495. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Openai_Whisper_Tiny_En/index.md +29 -0
  496. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Pipecat_Ai_Smart_Turn_V2/index.md +29 -0
  497. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct/index.md +29 -0
  498. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Qwen_Qwq_32B/index.md +29 -0
  499. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Base_Ai_Cf_Unum_Uform_Gen2_Qwen_500M/index.md +29 -0
  500. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Blob/index.md +151 -0
  501. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Body/index.md +112 -0
  502. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/ByteLengthQueuingStrategy/index.md +79 -0
  503. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Cache/index.md +83 -0
  504. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/CacheStorage/index.md +47 -0
  505. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/CloseEvent/index.md +415 -0
  506. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/CompressionStream/index.md +65 -0
  507. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/CountQueuingStrategy/index.md +79 -0
  508. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Crypto/index.md +86 -0
  509. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/CryptoKey/index.md +66 -0
  510. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/CustomEvent/index.md +403 -0
  511. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/D1Database/index.md +113 -0
  512. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/D1DatabaseSession/index.md +70 -0
  513. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/D1PreparedStatement/index.md +161 -0
  514. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/DOMException/index.md +451 -0
  515. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/DecompressionStream/index.md +65 -0
  516. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/DigestStream/index.md +137 -0
  517. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/DurableObjectNamespace/index.md +135 -0
  518. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/EmailEvent/index.md +413 -0
  519. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/ErrorEvent/index.md +469 -0
  520. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Event/index.md +296 -0
  521. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/EventSource/index.md +345 -0
  522. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/EventTarget/index.md +127 -0
  523. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/ExtendableEvent/index.md +409 -0
  524. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/FetchEvent/index.md +451 -0
  525. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/File/index.md +211 -0
  526. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/FixedLengthStream/index.md +69 -0
  527. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/FormData/index.md +295 -0
  528. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/HTMLRewriter/index.md +73 -0
  529. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Headers/index.md +237 -0
  530. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/IdentityTransformStream/index.md +69 -0
  531. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/MessageEvent/index.md +439 -0
  532. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Performance/index.md +44 -0
  533. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/PromiseRejectionEvent/index.md +403 -0
  534. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/R2Bucket/index.md +207 -0
  535. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/R2Object/index.md +131 -0
  536. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/ReadableStreamBYOBReader/index.md +123 -0
  537. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/ReadableStreamDefaultReader/index.md +89 -0
  538. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/ScheduledEvent/index.md +433 -0
  539. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/SqlStorageCursor/index.md +121 -0
  540. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/SqlStorageStatement/index.md +13 -0
  541. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/SubtleCrypto/index.md +432 -0
  542. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/TailEvent/index.md +421 -0
  543. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/TextDecoder/index.md +79 -0
  544. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/TextDecoderStream/index.md +111 -0
  545. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/TextEncoder/index.md +75 -0
  546. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/TextEncoderStream/index.md +73 -0
  547. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/ToMarkdownService/index.md +69 -0
  548. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/TransformStream/index.md +75 -0
  549. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/URL/index.md +201 -0
  550. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/URLPattern/index.md +185 -0
  551. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/URLSearchParams/index.md +287 -0
  552. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Vectorize/index.md +189 -0
  553. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/VectorizeIndex/index.md +160 -0
  554. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/WebSocketRequestResponsePair/index.md +53 -0
  555. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/WorkerGlobalScope/index.md +145 -0
  556. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/Workflow/index.md +92 -0
  557. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/WorkflowInstance/index.md +117 -0
  558. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/WritableStream/index.md +105 -0
  559. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/classes/WritableStreamDefaultWriter/index.md +143 -0
  560. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/functions/addEventListener/index.md +29 -0
  561. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/functions/atob/index.md +15 -0
  562. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/functions/btoa/index.md +15 -0
  563. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/functions/clearInterval/index.md +15 -0
  564. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/functions/clearTimeout/index.md +15 -0
  565. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/functions/dispatchEvent/index.md +19 -0
  566. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/functions/fetch/index.md +19 -0
  567. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/functions/queueMicrotask/index.md +15 -0
  568. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/functions/removeEventListener/index.md +29 -0
  569. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/functions/reportError/index.md +15 -0
  570. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/functions/setInterval/index.md +51 -0
  571. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/functions/setTimeout/index.md +51 -0
  572. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/functions/structuredClone/index.md +25 -0
  573. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/AiGatewayInternalError/index.md +55 -0
  574. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/AiGatewayLogNotFound/index.md +55 -0
  575. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/AiInternalError/index.md +55 -0
  576. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/AiModels/index.md +611 -0
  577. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Baai_Bge_Reranker_Base_Input/index.md +29 -0
  578. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Baai_Bge_Reranker_Base_Output/index.md +23 -0
  579. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Black_Forest_Labs_Flux_1_Schnell_Input/index.md +23 -0
  580. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Black_Forest_Labs_Flux_1_Schnell_Output/index.md +13 -0
  581. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Deepgram_Aura_1_Input/index.md +63 -0
  582. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Deepgram_Nova_3_Input/index.md +369 -0
  583. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Deepgram_Nova_3_Output/index.md +47 -0
  584. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Leonardo_Lucid_Origin_Input/index.md +73 -0
  585. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Leonardo_Lucid_Origin_Output/index.md +13 -0
  586. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Leonardo_Phoenix_1_0_Input/index.md +73 -0
  587. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Meta_Llama_4_Async_Batch/index.md +11 -0
  588. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Meta_Llama_4_Messages/index.md +181 -0
  589. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Meta_Llama_4_Messages_Inner/index.md +181 -0
  590. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Meta_Llama_4_Prompt/index.md +131 -0
  591. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Meta_Llama_4_Prompt_Inner/index.md +131 -0
  592. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Meta_Llama_Guard_3_8B_Input/index.md +61 -0
  593. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Meta_Llama_Guard_3_8B_Output/index.md +57 -0
  594. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Openai_Whisper_Large_V3_Turbo_Input/index.md +63 -0
  595. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Openai_Whisper_Large_V3_Turbo_Output/index.md +119 -0
  596. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Openai_Whisper_Output/index.md +53 -0
  597. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Openai_Whisper_Tiny_En_Output/index.md +53 -0
  598. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Pipecat_Ai_Smart_Turn_V2_Output/index.md +23 -0
  599. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Ai_Cf_Unum_Uform_Gen2_Qwen_500M_Output/index.md +11 -0
  600. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/AlarmInvocationInfo/index.md +19 -0
  601. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/AnalyticsEngineDataPoint/index.md +27 -0
  602. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/AnalyticsEngineDataset/index.md +21 -0
  603. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/AsyncBatch/index.md +75 -0
  604. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/AsyncResponse/index.md +13 -0
  605. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/AutoRAGInternalError/index.md +55 -0
  606. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/AutoRAGNameNotSetError/index.md +55 -0
  607. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/AutoRAGNotFoundError/index.md +55 -0
  608. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/AutoRAGUnauthorizedError/index.md +55 -0
  609. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/BGEM3InputEmbedding/index.md +21 -0
  610. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/BGEM3InputEmbedding1/index.md +21 -0
  611. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/BGEM3InputQueryAndContexts/index.md +39 -0
  612. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/BGEM3InputQueryAndContexts1/index.md +39 -0
  613. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/BGEM3OuputEmbedding/index.md +31 -0
  614. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/BGEM3OuputQuery/index.md +23 -0
  615. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/BGEM3OutputEmbeddingForContexts/index.md +29 -0
  616. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/BasicImageTransformations/index.md +115 -0
  617. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/BasicImageTransformationsGravityCoordinates/index.md +27 -0
  618. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/BlobOptions/index.md +11 -0
  619. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/CacheQueryOptions/index.md +11 -0
  620. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/CloseEventInit/index.md +27 -0
  621. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Cloudflare/index.md +11 -0
  622. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Comment/index.md +97 -0
  623. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Console/index.md +439 -0
  624. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Container/index.md +155 -0
  625. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ContainerStartupOptions/index.md +35 -0
  626. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ContentOptions/index.md +11 -0
  627. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/CryptoKeyAesKeyAlgorithm/index.md +19 -0
  628. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/CryptoKeyArbitraryKeyAlgorithm/index.md +35 -0
  629. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/CryptoKeyEllipticKeyAlgorithm/index.md +19 -0
  630. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/CryptoKeyHmacKeyAlgorithm/index.md +27 -0
  631. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/CryptoKeyKeyAlgorithm/index.md +11 -0
  632. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/CryptoKeyPair/index.md +19 -0
  633. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/CryptoKeyRsaKeyAlgorithm/index.md +35 -0
  634. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/CustomEventCustomEventInit/index.md +35 -0
  635. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/D1ExecResult/index.md +19 -0
  636. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/D1Meta/index.md +104 -0
  637. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/D1Response/index.md +27 -0
  638. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DispatchNamespace/index.md +75 -0
  639. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Disposable/index.md +7 -0
  640. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Doctype/index.md +27 -0
  641. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DocumentEnd/index.md +25 -0
  642. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DurableObject/index.md +113 -0
  643. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DurableObjectClass/index.md +9 -0
  644. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DurableObjectGetAlarmOptions/index.md +11 -0
  645. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DurableObjectGetOptions/index.md +19 -0
  646. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DurableObjectId/index.md +41 -0
  647. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DurableObjectListOptions/index.md +67 -0
  648. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DurableObjectNamespaceGetDurableObjectOptions/index.md +11 -0
  649. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DurableObjectNamespaceNewUniqueIdOptions/index.md +11 -0
  650. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DurableObjectPutOptions/index.md +27 -0
  651. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DurableObjectSetAlarmOptions/index.md +19 -0
  652. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DurableObjectState/index.md +237 -0
  653. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DurableObjectStorage/index.md +387 -0
  654. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DurableObjectTransaction/index.md +257 -0
  655. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DynamicDispatchLimits/index.md +23 -0
  656. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/DynamicDispatchOptions/index.md +27 -0
  657. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Element/index.md +285 -0
  658. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/EmailMessage/index.md +29 -0
  659. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/EndTag/index.md +67 -0
  660. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ErrorEventErrorEventInit/index.md +43 -0
  661. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/EventInit/index.md +27 -0
  662. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/EventListenerObject/index.md +27 -0
  663. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/EventSourceEventSourceInit/index.md +55 -0
  664. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/EventTargetAddEventListenerOptions/index.md +35 -0
  665. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/EventTargetEventListenerOptions/index.md +11 -0
  666. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/EventTargetHandlerObject/index.md +21 -0
  667. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ExecutionContext/index.md +47 -0
  668. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ExportedHandler/index.md +81 -0
  669. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/FetcherPutOptions/index.md +19 -0
  670. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/FileOptions/index.md +19 -0
  671. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ForwardableEmailMessage/index.md +145 -0
  672. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/GPT_OSS_120B_Responses/index.md +33 -0
  673. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/GPT_OSS_120B_Responses_Async/index.md +33 -0
  674. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/GPT_OSS_20B_Responses/index.md +33 -0
  675. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/GPT_OSS_20B_Responses_Async/index.md +33 -0
  676. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Google_Gemma_3_12B_It_Messages/index.md +167 -0
  677. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Google_Gemma_3_12B_It_Prompt/index.md +123 -0
  678. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/HTMLRewriterDocumentContentHandlers/index.md +75 -0
  679. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/HTMLRewriterElementContentHandlers/index.md +57 -0
  680. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/HelloWorldBinding/index.md +39 -0
  681. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Hyperdrive/index.md +77 -0
  682. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/IdentityTransformStreamQueuingStrategy/index.md +11 -0
  683. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ImageTransformationResult/index.md +51 -0
  684. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ImageTransformer/index.md +76 -0
  685. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ImagesBinding/index.md +61 -0
  686. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ImagesError/index.md +63 -0
  687. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/IncomingRequestCfPropertiesBase/index.md +198 -0
  688. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/IncomingRequestCfPropertiesBotManagement/index.md +31 -0
  689. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/IncomingRequestCfPropertiesBotManagementBase/index.md +62 -0
  690. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/IncomingRequestCfPropertiesBotManagementEnterprise/index.md +48 -0
  691. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/IncomingRequestCfPropertiesCloudflareAccessOrApiShield/index.md +24 -0
  692. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/IncomingRequestCfPropertiesCloudflareForSaaSEnterprise/index.md +22 -0
  693. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/IncomingRequestCfPropertiesExportedAuthenticatorMetadata/index.md +69 -0
  694. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/IncomingRequestCfPropertiesGeographicInformation/index.md +189 -0
  695. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/IncomingRequestCfPropertiesTLSClientAuth/index.md +256 -0
  696. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/IncomingRequestCfPropertiesTLSClientAuthPlaceholder/index.md +141 -0
  697. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/InferenceUpstreamError/index.md +55 -0
  698. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/JSONMode/index.md +19 -0
  699. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/JsonWebKey/index.md +151 -0
  700. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/JsonWebKeyWithKid/index.md +231 -0
  701. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/KVNamespace/index.md +769 -0
  702. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/KVNamespaceGetOptions/index.md +25 -0
  703. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/KVNamespaceGetWithMetadataResult/index.md +37 -0
  704. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/KVNamespaceListKey/index.md +37 -0
  705. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/KVNamespaceListOptions/index.md +27 -0
  706. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/KVNamespacePutOptions/index.md +27 -0
  707. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/MediaBinding/index.md +30 -0
  708. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/MediaError/index.md +66 -0
  709. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/MediaTransformationGenerator/index.md +30 -0
  710. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/MediaTransformationResult/index.md +54 -0
  711. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/MediaTransformer/index.md +30 -0
  712. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Message/index.md +71 -0
  713. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/MessageBatch/index.md +55 -0
  714. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/MessageEventInit/index.md +11 -0
  715. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/MessagePort/index.md +205 -0
  716. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/MessagePortPostMessageOptions/index.md +11 -0
  717. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/MessageSendRequest/index.md +33 -0
  718. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Messages/index.md +161 -0
  719. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Messages/index.md +159 -0
  720. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Prompt/index.md +131 -0
  721. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Mistral_Small_3_1_24B_Instruct_Messages/index.md +173 -0
  722. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Mistral_Small_3_1_24B_Instruct_Prompt/index.md +123 -0
  723. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Prompt/index.md +131 -0
  724. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/PubSubMessage/index.md +75 -0
  725. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Queue/index.md +53 -0
  726. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/QueueEvent/index.md +383 -0
  727. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/QueueRetryOptions/index.md +11 -0
  728. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/QueueSendBatchOptions/index.md +11 -0
  729. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/QueueSendOptions/index.md +19 -0
  730. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/QueuingStrategy/index.md +35 -0
  731. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/QueuingStrategyInit/index.md +15 -0
  732. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Qwen2_5_Coder_32B_Instruct_Messages/index.md +159 -0
  733. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Qwen2_5_Coder_32B_Instruct_Prompt/index.md +131 -0
  734. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Qwen_Qwq_32B_Messages/index.md +173 -0
  735. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Qwen_Qwq_32B_Prompt/index.md +123 -0
  736. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/R2Checksums/index.md +55 -0
  737. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/R2Conditional/index.md +43 -0
  738. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/R2Error/index.md +71 -0
  739. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/R2GetOptions/index.md +27 -0
  740. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/R2HTTPMetadata/index.md +51 -0
  741. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/R2ListOptions/index.md +43 -0
  742. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/R2MultipartOptions/index.md +35 -0
  743. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/R2MultipartUpload/index.md +75 -0
  744. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/R2ObjectBody/index.md +267 -0
  745. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/R2PutOptions/index.md +83 -0
  746. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/R2StringChecksums/index.md +43 -0
  747. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/R2UploadPartOptions/index.md +11 -0
  748. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/R2UploadedPart/index.md +19 -0
  749. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/RateLimit/index.md +29 -0
  750. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/RateLimitOptions/index.md +11 -0
  751. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/RateLimitOutcome/index.md +11 -0
  752. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ReadableByteStreamController/index.md +103 -0
  753. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ReadableStream/index.md +195 -0
  754. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ReadableStreamBYOBReaderReadableStreamBYOBReaderReadOptions/index.md +11 -0
  755. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ReadableStreamBYOBRequest/index.md +83 -0
  756. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ReadableStreamDefaultController/index.md +91 -0
  757. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ReadableStreamGetReaderOptions/index.md +15 -0
  758. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ReadableStreamValuesOptions/index.md +11 -0
  759. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ReadableWritablePair/index.md +33 -0
  760. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Request/index.md +263 -0
  761. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/RequestInit/index.md +81 -0
  762. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/RequestInitCfProperties/index.md +154 -0
  763. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/RequestInitCfPropertiesImage/index.md +372 -0
  764. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/RequestInitCfPropertiesImageDraw/index.md +222 -0
  765. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/RequestInitCfPropertiesImageMinify/index.md +27 -0
  766. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/RequestInitCfPropertiesR2/index.md +13 -0
  767. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Response/index.md +253 -0
  768. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ResponseInit/index.md +51 -0
  769. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/RsaOtherPrimesInfo/index.md +27 -0
  770. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ScheduledController/index.md +31 -0
  771. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Scheduler/index.md +25 -0
  772. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/SchedulerWaitOptions/index.md +11 -0
  773. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ScriptVersion/index.md +27 -0
  774. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/SecretsStoreSecret/index.md +18 -0
  775. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/SendEmail/index.md +23 -0
  776. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/ServiceWorkerGlobalScope/index.md +1042 -0
  777. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Socket/index.md +117 -0
  778. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/SocketAddress/index.md +19 -0
  779. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/SocketInfo/index.md +19 -0
  780. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/SocketOptions/index.md +27 -0
  781. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/SqlStorage/index.md +61 -0
  782. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/StreamPipeOptions/index.md +51 -0
  783. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/StructuredSerializeOptions/index.md +11 -0
  784. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/SubtleCryptoDeriveKeyAlgorithm/index.md +51 -0
  785. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/SubtleCryptoEncryptAlgorithm/index.md +59 -0
  786. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/SubtleCryptoGenerateKeyAlgorithm/index.md +51 -0
  787. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/SubtleCryptoHashAlgorithm/index.md +11 -0
  788. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/SubtleCryptoImportKeyAlgorithm/index.md +43 -0
  789. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/SubtleCryptoSignAlgorithm/index.md +35 -0
  790. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/SyncKvListOptions/index.md +51 -0
  791. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/SyncKvStorage/index.md +97 -0
  792. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TestController/index.md +3 -0
  793. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Text/index.md +105 -0
  794. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TextDecoderConstructorOptions/index.md +19 -0
  795. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TextDecoderDecodeOptions/index.md +11 -0
  796. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TextDecoderStreamTextDecoderStreamInit/index.md +19 -0
  797. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TextEncoderEncodeIntoResult/index.md +19 -0
  798. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TlsOptions/index.md +11 -0
  799. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceDiagnosticChannelEvent/index.md +27 -0
  800. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceException/index.md +35 -0
  801. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceItem/index.md +131 -0
  802. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceItemAlarmEventInfo/index.md +11 -0
  803. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceItemCustomEventInfo/index.md +3 -0
  804. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceItemEmailEventInfo/index.md +27 -0
  805. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceItemFetchEventInfo/index.md +19 -0
  806. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceItemFetchEventInfoRequest/index.md +47 -0
  807. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceItemFetchEventInfoResponse/index.md +11 -0
  808. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceItemHibernatableWebSocketEventInfo/index.md +11 -0
  809. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceItemHibernatableWebSocketEventInfoClose/index.md +27 -0
  810. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceItemHibernatableWebSocketEventInfoError/index.md +11 -0
  811. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceItemHibernatableWebSocketEventInfoMessage/index.md +11 -0
  812. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceItemJsRpcEventInfo/index.md +11 -0
  813. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceItemQueueEventInfo/index.md +19 -0
  814. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceItemScheduledEventInfo/index.md +19 -0
  815. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceItemTailEventInfo/index.md +11 -0
  816. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceItemTailEventInfoTailItem/index.md +11 -0
  817. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceLog/index.md +27 -0
  818. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TraceMetrics/index.md +19 -0
  819. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/TransformStreamDefaultController/index.md +91 -0
  820. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/Transformer/index.md +113 -0
  821. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/URLPatternComponentResult/index.md +19 -0
  822. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/URLPatternInit/index.md +75 -0
  823. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/URLPatternOptions/index.md +11 -0
  824. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/URLPatternResult/index.md +75 -0
  825. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/UnderlyingByteSource/index.md +73 -0
  826. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/UnderlyingSink/index.md +87 -0
  827. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/UnderlyingSource/index.md +79 -0
  828. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/UnsafeTraceMetrics/index.md +21 -0
  829. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/VectorizeAsyncMutation/index.md +16 -0
  830. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/VectorizeError/index.md +19 -0
  831. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/VectorizeIndexDetails/index.md +58 -0
  832. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/VectorizeIndexInfo/index.md +45 -0
  833. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/VectorizeMatches/index.md +21 -0
  834. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/VectorizeQueryOptions/index.md +43 -0
  835. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/VectorizeVector/index.md +45 -0
  836. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/VectorizeVectorMutation/index.md +25 -0
  837. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/WebSocket/index.md +255 -0
  838. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/WorkerLoader/index.md +25 -0
  839. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/WorkerLoaderModule/index.md +59 -0
  840. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/WorkerLoaderWorkerCode/index.md +147 -0
  841. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/WorkerStub/index.md +31 -0
  842. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/WorkerStubEntrypointOptions/index.md +11 -0
  843. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/WorkflowError/index.md +19 -0
  844. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/WorkflowInstanceCreateOptions/index.md +48 -0
  845. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/interfaces/WritableStreamDefaultController/index.md +47 -0
  846. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Cloudflare/interfaces/Env/index.md +3 -0
  847. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Cloudflare/interfaces/GlobalProps/index.md +3 -0
  848. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Cloudflare/type-aliases/Exports/index.md +5 -0
  849. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Cloudflare/type-aliases/GlobalProp/index.md +15 -0
  850. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Cloudflare/type-aliases/MainModule/index.md +5 -0
  851. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/classes/DurableObject/index.md +161 -0
  852. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/classes/RpcTarget/index.md +29 -0
  853. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/classes/WorkerEntrypoint/index.md +195 -0
  854. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/classes/WorkflowEntrypoint/index.md +73 -0
  855. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/classes/WorkflowStep/index.md +151 -0
  856. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/functions/waitUntil/index.md +15 -0
  857. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/type-aliases/RpcStub/index.md +11 -0
  858. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/type-aliases/WorkflowBackoff/index.md +5 -0
  859. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/type-aliases/WorkflowDelayDuration/index.md +5 -0
  860. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/type-aliases/WorkflowDurationLabel/index.md +5 -0
  861. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/type-aliases/WorkflowEvent/index.md +35 -0
  862. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/type-aliases/WorkflowRetentionDuration/index.md +5 -0
  863. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/type-aliases/WorkflowSleepDuration/index.md +5 -0
  864. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/type-aliases/WorkflowStepConfig/index.md +33 -0
  865. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/type-aliases/WorkflowStepEvent/index.md +35 -0
  866. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/type-aliases/WorkflowTimeoutDuration/index.md +5 -0
  867. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/variables/RpcStub/index.md +15 -0
  868. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/CloudflareWorkersModule/variables/env/index.md +5 -0
  869. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/interfaces/DurableObjectBranded/index.md +11 -0
  870. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/interfaces/RpcTargetBranded/index.md +11 -0
  871. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/interfaces/StubBase/index.md +33 -0
  872. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/interfaces/WorkerEntrypointBranded/index.md +11 -0
  873. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/interfaces/WorkflowEntrypointBranded/index.md +11 -0
  874. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/type-aliases/BaseType/index.md +5 -0
  875. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/type-aliases/EntrypointBranded/index.md +5 -0
  876. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/type-aliases/MaybeCallableProvider/index.md +11 -0
  877. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/type-aliases/MaybeDisposable/index.md +11 -0
  878. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/type-aliases/MaybeProvider/index.md +11 -0
  879. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/type-aliases/MethodOrProperty/index.md +11 -0
  880. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/type-aliases/Provider/index.md +15 -0
  881. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/type-aliases/Result/index.md +11 -0
  882. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/type-aliases/Serializable/index.md +11 -0
  883. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/type-aliases/Stub/index.md +11 -0
  884. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/type-aliases/Stubable/index.md +5 -0
  885. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/type-aliases/Stubify/index.md +11 -0
  886. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/type-aliases/Unstubify/index.md +11 -0
  887. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/type-aliases/UnstubifyAll/index.md +11 -0
  888. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/variables/DURABLE_OBJECT_BRAND/index.md +5 -0
  889. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/variables/RPC_STUB_BRAND/index.md +5 -0
  890. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/variables/RPC_TARGET_BRAND/index.md +5 -0
  891. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/variables/WORKER_ENTRYPOINT_BRAND/index.md +5 -0
  892. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/Rpc/variables/WORKFLOW_ENTRYPOINT_BRAND/index.md +5 -0
  893. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/AlarmEventInfo/index.md +19 -0
  894. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/Attribute/index.md +19 -0
  895. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/Attributes/index.md +19 -0
  896. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/CustomEventInfo/index.md +11 -0
  897. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/DiagnosticChannelEvent/index.md +27 -0
  898. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/EmailEventInfo/index.md +35 -0
  899. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/Exception/index.md +35 -0
  900. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/FetchEventInfo/index.md +43 -0
  901. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/FetchResponseInfo/index.md +19 -0
  902. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/Header/index.md +19 -0
  903. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/HibernatableWebSocketEventInfo/index.md +19 -0
  904. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/HibernatableWebSocketEventInfoClose/index.md +27 -0
  905. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/HibernatableWebSocketEventInfoError/index.md +11 -0
  906. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/HibernatableWebSocketEventInfoMessage/index.md +11 -0
  907. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/JsRpcEventInfo/index.md +11 -0
  908. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/Log/index.md +27 -0
  909. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/Onset/index.md +83 -0
  910. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/Outcome/index.md +35 -0
  911. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/QueueEventInfo/index.md +27 -0
  912. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/Return/index.md +19 -0
  913. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/ScheduledEventInfo/index.md +27 -0
  914. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/ScriptVersion/index.md +27 -0
  915. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/SpanClose/index.md +19 -0
  916. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/SpanContext/index.md +19 -0
  917. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/SpanOpen/index.md +35 -0
  918. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/TailEvent/index.md +49 -0
  919. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/interfaces/TraceEventInfo/index.md +19 -0
  920. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/type-aliases/EventOutcome/index.md +5 -0
  921. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/type-aliases/EventType/index.md +5 -0
  922. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/type-aliases/TailEventHandler/index.md +21 -0
  923. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/type-aliases/TailEventHandlerObject/index.md +69 -0
  924. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/TailStream/type-aliases/TailEventHandlerType/index.md +5 -0
  925. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/classes/CompileError/index.md +199 -0
  926. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/classes/Global/index.md +45 -0
  927. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/classes/Instance/index.md +33 -0
  928. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/classes/Memory/index.md +47 -0
  929. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/classes/Module/index.md +71 -0
  930. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/classes/RuntimeError/index.md +199 -0
  931. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/classes/Table/index.md +95 -0
  932. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/functions/instantiate/index.md +19 -0
  933. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/functions/validate/index.md +15 -0
  934. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/interfaces/GlobalDescriptor/index.md +19 -0
  935. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/interfaces/MemoryDescriptor/index.md +27 -0
  936. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/interfaces/ModuleExportDescriptor/index.md +19 -0
  937. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/interfaces/ModuleImportDescriptor/index.md +27 -0
  938. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/interfaces/TableDescriptor/index.md +27 -0
  939. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/type-aliases/ExportValue/index.md +5 -0
  940. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/type-aliases/Exports/index.md +5 -0
  941. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/type-aliases/ImportExportKind/index.md +5 -0
  942. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/type-aliases/ImportValue/index.md +5 -0
  943. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/type-aliases/Imports/index.md +5 -0
  944. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/type-aliases/ModuleImports/index.md +5 -0
  945. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/type-aliases/TableKind/index.md +5 -0
  946. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/namespaces/WebAssembly/type-aliases/ValueType/index.md +5 -0
  947. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AIGatewayHeaders/index.md +113 -0
  948. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AIGatewayProviders/index.md +5 -0
  949. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AIGatewayUniversalRequest/index.md +37 -0
  950. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiAutomaticSpeechRecognitionInput/index.md +13 -0
  951. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiAutomaticSpeechRecognitionOutput/index.md +41 -0
  952. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiGatewayLog/index.md +205 -0
  953. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiGatewayPatchLog/index.md +29 -0
  954. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiIMultimodalEmbeddingsOutput/index.md +21 -0
  955. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiImageClassificationInput/index.md +13 -0
  956. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiImageClassificationOutput/index.md +15 -0
  957. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiImageTextToTextInput/index.md +109 -0
  958. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiImageTextToTextOutput/index.md +13 -0
  959. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiImageToTextInput/index.md +101 -0
  960. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiImageToTextOutput/index.md +13 -0
  961. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiModelListType/index.md +5 -0
  962. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiModelsSearchObject/index.md +81 -0
  963. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiModelsSearchParams/index.md +61 -0
  964. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiMultimodalEmbeddingsInput/index.md +21 -0
  965. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiObjectDetectionInput/index.md +13 -0
  966. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiObjectDetectionOutput/index.md +15 -0
  967. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiOptions/index.md +58 -0
  968. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiSentenceSimilarityInput/index.md +21 -0
  969. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiSentenceSimilarityOutput/index.md +5 -0
  970. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiSummarizationInput/index.md +21 -0
  971. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiSummarizationOutput/index.md +13 -0
  972. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTextClassificationInput/index.md +13 -0
  973. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTextClassificationOutput/index.md +15 -0
  974. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTextEmbeddingsInput/index.md +13 -0
  975. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTextEmbeddingsOutput/index.md +21 -0
  976. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTextGenerationFunctionsInput/index.md +21 -0
  977. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTextGenerationInput/index.md +125 -0
  978. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTextGenerationOutput/index.md +29 -0
  979. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTextGenerationResponseFormat/index.md +21 -0
  980. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTextGenerationToolInput/index.md +49 -0
  981. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTextGenerationToolLegacyInput/index.md +45 -0
  982. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTextGenerationToolLegacyOutput/index.md +21 -0
  983. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTextGenerationToolOutput/index.md +37 -0
  984. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTextToImageInput/index.md +93 -0
  985. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTextToImageOutput/index.md +5 -0
  986. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTextToSpeechInput/index.md +21 -0
  987. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTextToSpeechOutput/index.md +5 -0
  988. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTranslationInput/index.md +29 -0
  989. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AiTranslationOutput/index.md +13 -0
  990. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Baai_Bge_Base_En_V1_5_Input/index.md +27 -0
  991. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Baai_Bge_Base_En_V1_5_Output/index.md +27 -0
  992. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Baai_Bge_Large_En_V1_5_Input/index.md +27 -0
  993. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Baai_Bge_Large_En_V1_5_Output/index.md +27 -0
  994. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Baai_Bge_M3_Input/index.md +19 -0
  995. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Baai_Bge_M3_Output/index.md +5 -0
  996. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Baai_Bge_Small_En_V1_5_Input/index.md +27 -0
  997. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Baai_Bge_Small_En_V1_5_Output/index.md +27 -0
  998. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Deepgram_Aura_1_Output/index.md +7 -0
  999. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Google_Gemma_3_12B_It_Input/index.md +5 -0
  1000. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Google_Gemma_3_12B_It_Output/index.md +65 -0
  1001. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Leonardo_Phoenix_1_0_Output/index.md +7 -0
  1002. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Meta_Llama_3_2_11B_Vision_Instruct_Input/index.md +5 -0
  1003. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Meta_Llama_3_2_11B_Vision_Instruct_Output/index.md +37 -0
  1004. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Input/index.md +5 -0
  1005. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Meta_Llama_3_3_70B_Instruct_Fp8_Fast_Output/index.md +49 -0
  1006. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Input/index.md +5 -0
  1007. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Output/index.md +83 -0
  1008. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Meta_M2M100_1_2B_Input/index.md +35 -0
  1009. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Meta_M2M100_1_2B_Output/index.md +17 -0
  1010. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Mistralai_Mistral_Small_3_1_24B_Instruct_Input/index.md +5 -0
  1011. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Mistralai_Mistral_Small_3_1_24B_Instruct_Output/index.md +65 -0
  1012. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Openai_Gpt_Oss_120B_Input/index.md +5 -0
  1013. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Openai_Gpt_Oss_120B_Output/index.md +5 -0
  1014. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Openai_Gpt_Oss_20B_Input/index.md +5 -0
  1015. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Openai_Gpt_Oss_20B_Output/index.md +5 -0
  1016. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Openai_Whisper_Input/index.md +17 -0
  1017. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Openai_Whisper_Tiny_En_Input/index.md +17 -0
  1018. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Pipecat_Ai_Smart_Turn_V2_Input/index.md +43 -0
  1019. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct_Input/index.md +5 -0
  1020. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Qwen_Qwen2_5_Coder_32B_Instruct_Output/index.md +65 -0
  1021. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Qwen_Qwq_32B_Input/index.md +5 -0
  1022. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Qwen_Qwq_32B_Output/index.md +65 -0
  1023. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Ai_Cf_Unum_Uform_Gen2_Qwen_500M_Input/index.md +69 -0
  1024. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AutoRagAiSearchRequest/index.md +15 -0
  1025. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AutoRagAiSearchRequestStreaming/index.md +11 -0
  1026. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AutoRagAiSearchResponse/index.md +11 -0
  1027. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AutoRagListResponse/index.md +35 -0
  1028. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AutoRagSearchRequest/index.md +69 -0
  1029. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/AutoRagSearchResponse/index.md +65 -0
  1030. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/BodyInit/index.md +5 -0
  1031. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/BufferSource/index.md +5 -0
  1032. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/CertVerificationStatus/index.md +7 -0
  1033. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/CfProperties/index.md +11 -0
  1034. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ComparisonFilter/index.md +29 -0
  1035. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/CompoundFilter/index.md +21 -0
  1036. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ContinentCode/index.md +7 -0
  1037. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ConversionOptions/index.md +59 -0
  1038. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ConversionRequestOptions/index.md +29 -0
  1039. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ConversionResponse/index.md +5 -0
  1040. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/D1Result/index.md +17 -0
  1041. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/D1SessionBookmark/index.md +5 -0
  1042. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/D1SessionConstraint/index.md +5 -0
  1043. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/DurableObjectJurisdiction/index.md +5 -0
  1044. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/DurableObjectLocationHint/index.md +5 -0
  1045. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/DurableObjectStub/index.md +21 -0
  1046. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/EmailExportedHandler/index.md +29 -0
  1047. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/EmbeddedImageConversionOptions/index.md +15 -0
  1048. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/EventContext/index.md +121 -0
  1049. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/EventListener/index.md +21 -0
  1050. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/EventListenerOrEventListenerObject/index.md +11 -0
  1051. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/EventPluginContext/index.md +133 -0
  1052. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ExportedHandlerFetchHandler/index.md +33 -0
  1053. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ExportedHandlerQueueHandler/index.md +33 -0
  1054. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ExportedHandlerScheduledHandler/index.md +29 -0
  1055. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ExportedHandlerTailHandler/index.md +29 -0
  1056. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ExportedHandlerTailStreamHandler/index.md +29 -0
  1057. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ExportedHandlerTestHandler/index.md +29 -0
  1058. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ExportedHandlerTraceHandler/index.md +29 -0
  1059. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Fetcher/index.md +53 -0
  1060. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/GatewayOptions/index.md +77 -0
  1061. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/GatewayRetries/index.md +29 -0
  1062. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/HeadersInit/index.md +5 -0
  1063. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ImageConversionOptions/index.md +13 -0
  1064. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ImageDrawOptions/index.md +53 -0
  1065. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ImageInfoResponse/index.md +5 -0
  1066. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ImageInputOptions/index.md +13 -0
  1067. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ImageOutputOptions/index.md +37 -0
  1068. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ImageTransform/index.md +133 -0
  1069. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ImageTransformationOutputOptions/index.md +13 -0
  1070. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/IncomingRequestCfProperties/index.md +13 -0
  1071. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/IncomingRequestCfPropertiesEdgeRequestKeepAliveStatus/index.md +7 -0
  1072. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/InstanceStatus/index.md +29 -0
  1073. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Iso3166Alpha2Code/index.md +7 -0
  1074. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/KVNamespaceListResult/index.md +15 -0
  1075. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/LoopbackDurableObjectClass/index.md +11 -0
  1076. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/LoopbackForExport/index.md +11 -0
  1077. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/LoopbackServiceStub/index.md +11 -0
  1078. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/MarkdownDocument/index.md +21 -0
  1079. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/MediaTransformationInputOptions/index.md +38 -0
  1080. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/MediaTransformationOutputOptions/index.md +68 -0
  1081. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/PagesFunction/index.md +29 -0
  1082. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/PagesPluginFunction/index.md +33 -0
  1083. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Params/index.md +11 -0
  1084. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/QueueContentType/index.md +5 -0
  1085. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/R2Objects/index.md +15 -0
  1086. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/R2Range/index.md +5 -0
  1087. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/ReadableStreamReadResult/index.md +11 -0
  1088. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/RequestInfo/index.md +15 -0
  1089. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/RoleScopedChatInput/index.md +29 -0
  1090. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/Service/index.md +11 -0
  1091. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/SqlStorageValue/index.md +5 -0
  1092. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/SupportedFileFormat/index.md +21 -0
  1093. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/TypedArray/index.md +5 -0
  1094. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/UniversalGatewayOptions/index.md +17 -0
  1095. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/UsageTags/index.md +29 -0
  1096. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/VectorFloatArray/index.md +5 -0
  1097. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/VectorizeDistanceMetric/index.md +8 -0
  1098. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/VectorizeIndexConfig/index.md +7 -0
  1099. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/VectorizeMatch/index.md +15 -0
  1100. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/VectorizeMetadataRetrievalLevel/index.md +9 -0
  1101. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/VectorizeVectorMetadata/index.md +7 -0
  1102. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/VectorizeVectorMetadataFilter/index.md +11 -0
  1103. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/VectorizeVectorMetadataFilterCollectionOp/index.md +5 -0
  1104. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/VectorizeVectorMetadataFilterOp/index.md +9 -0
  1105. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/VectorizeVectorMetadataValue/index.md +7 -0
  1106. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/WebSocketEventMap/index.md +37 -0
  1107. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/WorkerGlobalScopeEventMap/index.md +45 -0
  1108. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/WorkerVersionMetadata/index.md +38 -0
  1109. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/WorkflowDurationLabel/index.md +5 -0
  1110. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/WorkflowRetentionDuration/index.md +5 -0
  1111. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/type-aliases/WorkflowSleepDuration/index.md +5 -0
  1112. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/variables/Cloudflare/index.md +5 -0
  1113. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/variables/ReadableStream/index.md +51 -0
  1114. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/variables/Request/index.md +29 -0
  1115. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/variables/Response/index.md +73 -0
  1116. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/variables/WebSocket/index.md +61 -0
  1117. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/variables/WebSocketPair/index.md +17 -0
  1118. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/variables/caches/index.md +9 -0
  1119. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/variables/console/index.md +5 -0
  1120. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/variables/crypto/index.md +12 -0
  1121. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/variables/onmessage/index.md +5 -0
  1122. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/variables/origin/index.md +5 -0
  1123. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/variables/performance/index.md +10 -0
  1124. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/variables/scheduler/index.md +5 -0
  1125. package/docs/api/sync-cf/@livestore/namespaces/CfTypes/variables/self/index.md +5 -0
  1126. package/docs/api/sync-cf/README/index.md +37 -0
  1127. package/docs/api/sync-cf/functions/handleSyncRequest/index.md +117 -0
  1128. package/docs/api/sync-cf/functions/makeWorker/index.md +35 -0
  1129. package/docs/api/sync-cf/functions/matchSyncRequest/index.md +19 -0
  1130. package/docs/api/sync-cf/interfaces/SyncBackendRpcInterface/index.md +31 -0
  1131. package/docs/api/sync-cf/type-aliases/CFWorker/index.md +47 -0
  1132. package/docs/api/sync-cf/type-aliases/DoObject/index.md +11 -0
  1133. package/docs/api/sync-cf/type-aliases/DoState/index.md +5 -0
  1134. package/docs/api/sync-cf/type-aliases/DurableObjectId/index.md +5 -0
  1135. package/docs/api/sync-cf/type-aliases/Env/index.md +5 -0
  1136. package/docs/api/sync-cf/type-aliases/MakeDurableObjectClass/index.md +29 -0
  1137. package/docs/api/sync-cf/type-aliases/MakeDurableObjectClassOptions/index.md +179 -0
  1138. package/docs/api/sync-cf/type-aliases/MakeWorkerOptions/index.md +80 -0
  1139. package/docs/api/sync-cf/type-aliases/RpcSubscription/index.md +55 -0
  1140. package/docs/api/sync-cf/type-aliases/StoreId/index.md +5 -0
  1141. package/docs/api/sync-cf/variables/PERSISTENCE_FORMAT_VERSION/index.md +20 -0
  1142. package/docs/api/sync-cf/variables/WebSocketAttachmentSchema/index.md +5 -0
  1143. package/docs/api/sync-cf/variables/encodeIncomingMessage/index.md +27 -0
  1144. package/docs/api/sync-cf/variables/encodeOutgoingMessage/index.md +19 -0
  1145. package/docs/api/sync-cf/variables/makeDurableObject/index.md +39 -0
  1146. package/docs/api/sync-electric/@livestore/namespaces/ApiSchema/variables/ApiPayload/index.md +5 -0
  1147. package/docs/api/sync-electric/@livestore/namespaces/ApiSchema/variables/ArgsSchema/index.md +5 -0
  1148. package/docs/api/sync-electric/@livestore/namespaces/ApiSchema/variables/PullPayload/index.md +5 -0
  1149. package/docs/api/sync-electric/@livestore/namespaces/ApiSchema/variables/PushPayload/index.md +5 -0
  1150. package/docs/api/sync-electric/README/index.md +29 -0
  1151. package/docs/api/sync-electric/classes/InvalidOperationError/index.md +99 -0
  1152. package/docs/api/sync-electric/functions/makeElectricUrl/index.md +69 -0
  1153. package/docs/api/sync-electric/functions/makeSyncBackend/index.md +15 -0
  1154. package/docs/api/sync-electric/functions/syncBackendOptions/index.md +21 -0
  1155. package/docs/api/sync-electric/functions/toTableName/index.md +15 -0
  1156. package/docs/api/sync-electric/interfaces/SyncBackendOptions/index.md +67 -0
  1157. package/docs/api/sync-electric/type-aliases/SyncMetadata/index.md +5 -0
  1158. package/docs/api/sync-electric/variables/PERSISTENCE_FORMAT_VERSION/index.md +28 -0
  1159. package/docs/api/sync-electric/variables/SyncMetadata/index.md +5 -0
  1160. package/docs/contributing/contributing/index.md +63 -0
  1161. package/docs/contributing/docs/index.md +19 -0
  1162. package/docs/contributing/monorepo/index.md +195 -0
  1163. package/docs/data-modeling/ai-agent/index.md +5 -0
  1164. package/docs/data-modeling/complex-ui-state/index.md +5 -0
  1165. package/docs/data-modeling/index.md +30 -0
  1166. package/docs/data-modeling/todo-workspaces/index.md +891 -0
  1167. package/docs/data-modeling/turnbased-game/index.md +7 -0
  1168. package/docs/evaluation/design-decisions/index.md +33 -0
  1169. package/docs/evaluation/event-sourcing/index.md +40 -0
  1170. package/docs/evaluation/how-livestore-works/index.md +56 -0
  1171. package/docs/evaluation/performance/index.md +25 -0
  1172. package/docs/evaluation/state-of-the-project/index.md +37 -0
  1173. package/docs/evaluation/technology-comparison/index.md +40 -0
  1174. package/docs/evaluation/when-livestore/index.md +81 -0
  1175. package/docs/examples/cloudflare-adapter/index.md +44 -0
  1176. package/docs/examples/expo-adapter/index.md +44 -0
  1177. package/docs/examples/index.md +55 -0
  1178. package/docs/examples/node-adapter/index.md +44 -0
  1179. package/docs/examples/web-adapter/index.md +51 -0
  1180. package/docs/getting-started/expo/index.md +736 -0
  1181. package/docs/getting-started/node/index.md +115 -0
  1182. package/docs/getting-started/react-web/index.md +573 -0
  1183. package/docs/getting-started/solid/index.md +3 -0
  1184. package/docs/getting-started/vue/index.md +286 -0
  1185. package/docs/index.md +163 -0
  1186. package/docs/llms.txt +103 -0
  1187. package/docs/misc/CODE_OF_CONDUCT/index.md +133 -0
  1188. package/docs/misc/FAQ/index.md +37 -0
  1189. package/docs/misc/community/index.md +87 -0
  1190. package/docs/misc/credits/index.md +14 -0
  1191. package/docs/misc/design-partners/index.md +13 -0
  1192. package/docs/misc/package-management/index.md +21 -0
  1193. package/docs/misc/resources/index.md +46 -0
  1194. package/docs/misc/sponsoring/index.md +104 -0
  1195. package/docs/misc/troubleshooting/index.md +82 -0
  1196. package/docs/patterns/ai/index.md +15 -0
  1197. package/docs/patterns/anonymous-user-transition/index.md +10 -0
  1198. package/docs/patterns/app-evolution/index.md +72 -0
  1199. package/docs/patterns/auth/index.md +226 -0
  1200. package/docs/patterns/effect/index.md +1495 -0
  1201. package/docs/patterns/encryption/index.md +6 -0
  1202. package/docs/patterns/external-data/index.md +5 -0
  1203. package/docs/patterns/file-management/index.md +11 -0
  1204. package/docs/patterns/file-structure/index.md +14 -0
  1205. package/docs/patterns/list-ordering/index.md +369 -0
  1206. package/docs/patterns/offline/index.md +32 -0
  1207. package/docs/patterns/orm/index.md +18 -0
  1208. package/docs/patterns/presence/index.md +11 -0
  1209. package/docs/patterns/rich-text-editing/index.md +66 -0
  1210. package/docs/patterns/side-effects/index.md +11 -0
  1211. package/docs/patterns/state-machines/index.md +11 -0
  1212. package/docs/patterns/storybook/index.md +192 -0
  1213. package/docs/patterns/undo-redo/index.md +9 -0
  1214. package/docs/patterns/version-control/index.md +8 -0
  1215. package/docs/reference/cli/index.md +57 -0
  1216. package/docs/reference/concepts/index.md +78 -0
  1217. package/docs/reference/debugging/index.md +17 -0
  1218. package/docs/reference/devtools/index.md +79 -0
  1219. package/docs/reference/events/index.md +241 -0
  1220. package/docs/reference/framework-integrations/custom-elements/index.md +142 -0
  1221. package/docs/reference/framework-integrations/react-integration/index.md +906 -0
  1222. package/docs/reference/framework-integrations/solid-integration/index.md +293 -0
  1223. package/docs/reference/framework-integrations/vue-integration/index.md +98 -0
  1224. package/docs/reference/mcp/index.md +165 -0
  1225. package/docs/reference/opentelemetry/index.md +36 -0
  1226. package/docs/reference/platform-adapters/cloudflare-durable-object-adapter/index.md +453 -0
  1227. package/docs/reference/platform-adapters/electron-adapter/index.md +15 -0
  1228. package/docs/reference/platform-adapters/expo-adapter/index.md +43 -0
  1229. package/docs/reference/platform-adapters/node-adapter/index.md +160 -0
  1230. package/docs/reference/platform-adapters/tauri-adapter/index.md +15 -0
  1231. package/docs/reference/platform-adapters/web-adapter/index.md +218 -0
  1232. package/docs/reference/reactivity-system/index.md +202 -0
  1233. package/docs/reference/state/materializers/index.md +300 -0
  1234. package/docs/reference/state/sql-queries/index.md +72 -0
  1235. package/docs/reference/state/sqlite/index.md +45 -0
  1236. package/docs/reference/state/sqlite-schema/index.md +306 -0
  1237. package/docs/reference/state/sqlite-schema-effect/index.md +300 -0
  1238. package/docs/reference/store/index.md +253 -0
  1239. package/docs/reference/syncing/index.md +136 -0
  1240. package/docs/reference/syncing/server-side-clients/index.md +49 -0
  1241. package/docs/reference/syncing/sync-provider/cloudflare/index.md +773 -0
  1242. package/docs/reference/syncing/sync-provider/custom/index.md +65 -0
  1243. package/docs/reference/syncing/sync-provider/electricsql/index.md +159 -0
  1244. package/docs/reference/syncing/sync-provider/s2/index.md +230 -0
  1245. package/docs/tutorial/0-welcome/index.md +48 -0
  1246. package/docs/tutorial/1-setup-starter-project/index.md +105 -0
  1247. package/docs/tutorial/2-deploy-to-cloudflare/index.md +195 -0
  1248. package/docs/tutorial/3-read-and-write-todos-via-livestore/index.md +511 -0
  1249. package/docs/tutorial/4-sync-data-via-cloudflare/index.md +210 -0
  1250. package/docs/tutorial/5-expand-business-logic/index.md +174 -0
  1251. package/docs/tutorial/6-persist-ui-state/index.md +452 -0
  1252. package/docs/tutorial/7-next-steps/index.md +22 -0
  1253. package/package.json +9 -8
  1254. package/src/effect/LiveStore.ts +4 -4
  1255. package/src/live-queries/__snapshots__/db-query.test.ts.snap +41 -41
  1256. package/src/live-queries/db-query.ts +2 -2
  1257. package/src/store/create-store.ts +7 -7
  1258. package/src/store/devtools.ts +2 -2
  1259. package/src/store/store-types.ts +8 -8
  1260. package/src/store/store.ts +72 -26
  1261. package/src/utils/dev.ts +2 -0
@@ -0,0 +1,1495 @@
1
+ # Effect
2
+
3
+ LiveStore itself is built on top of [Effect](https://effect.website) which is a powerful library to write production-grade TypeScript code. It's also possible (and recommended) to use Effect directly in your application code.
4
+
5
+ ## Schema
6
+
7
+ LiveStore uses the [Effect Schema](https://effect.website/docs/schema/introduction/) library to define schemas for the following:
8
+
9
+ - Read model table column definitions
10
+ - Event event payloads definitions
11
+ - Query response types
12
+
13
+ For convenience, LiveStore re-exports the `Schema` module from the `effect` package, which is the same as if you'd import it via `import { Schema } from 'effect'` directly.
14
+
15
+ ## `Equal` and `Hash` Traits
16
+
17
+ LiveStore's reactive primitives (`LiveQueryDef` and `SignalDef`) implement Effect's `Equal` and `Hash` traits, enabling efficient integration with Effect's data structures and collections.
18
+
19
+ ## Effect Atom Integration
20
+
21
+ LiveStore integrates seamlessly with [Effect Atom](https://github.com/effect-atom/effect-atom) for reactive state management in React applications. This provides a powerful combination of Effect's functional programming capabilities with LiveStore's event sourcing and CQRS patterns.
22
+
23
+ Effect Atom is an external package developed by [Tim Smart](https://github.com/tim-smart) that provides a more Effect-idiomatic alternative to the `@livestore/react` package. While `@livestore/react` offers a straightforward React integration, Effect Atom leverages Effect API/patterns throughout, making it a natural choice for applications already using Effect.
24
+
25
+ ### Installation
26
+
27
+ ```bash
28
+ pnpm install @effect-atom/atom-livestore @effect-atom/atom-react
29
+ ```
30
+
31
+ ### Store Creation
32
+
33
+ Create a LiveStore-backed atom store with persistence and worker support using the `AtomLivestore.Tag` pattern:
34
+
35
+ ## `patterns/effect/store-setup/atoms.ts`
36
+
37
+ ```ts filename="patterns/effect/store-setup/atoms.ts"
38
+
39
+ export { schema } from './schema.ts'
40
+
41
+ // Create a persistent adapter with OPFS storage
42
+ const adapter = makePersistedAdapter({
43
+ storage: { type: 'opfs' },
44
+ worker: LiveStoreWorker,
45
+ sharedWorker: LiveStoreSharedWorker,
46
+ })
47
+
48
+ // Define the store as a service tag
49
+ export class StoreTag extends AtomLivestore.Tag<StoreTag>()('StoreTag', {
50
+ schema,
51
+ storeId: 'default',
52
+ adapter,
53
+ batchUpdates: unstable_batchedUpdates, // React batching for performance
54
+ }) {}
55
+ ```
56
+
57
+ ### `patterns/effect/store-setup/schema.ts`
58
+
59
+ ```ts filename="patterns/effect/store-setup/schema.ts"
60
+
61
+ // Define event payloads
62
+ export const events = {
63
+ userCreated: Events.clientOnly({
64
+ name: 'userCreated',
65
+ schema: Schema.Struct({
66
+ id: Schema.String,
67
+ name: Schema.String,
68
+ email: Schema.String,
69
+ }),
70
+ }),
71
+ userUpdated: Events.clientOnly({
72
+ name: 'userUpdated',
73
+ schema: Schema.Struct({
74
+ id: Schema.String,
75
+ name: Schema.optionalWith(Schema.String, { as: 'Option' }),
76
+ email: Schema.optionalWith(Schema.String, { as: 'Option' }),
77
+ isActive: Schema.optionalWith(Schema.Boolean, { as: 'Option' }),
78
+ }),
79
+ }),
80
+ productCreated: Events.clientOnly({
81
+ name: 'productCreated',
82
+ schema: Schema.Struct({
83
+ id: Schema.String,
84
+ name: Schema.String,
85
+ description: Schema.String,
86
+ price: Schema.Number,
87
+ }),
88
+ }),
89
+ productUpdated: Events.clientOnly({
90
+ name: 'productUpdated',
91
+ schema: Schema.Struct({
92
+ id: Schema.String,
93
+ name: Schema.optionalWith(Schema.String, { as: 'Option' }),
94
+ description: Schema.optionalWith(Schema.String, { as: 'Option' }),
95
+ price: Schema.optionalWith(Schema.Number, { as: 'Option' }),
96
+ }),
97
+ }),
98
+ todoCreated: Events.clientOnly({
99
+ name: 'todoCreated',
100
+ schema: Schema.Struct({
101
+ id: Schema.String,
102
+ text: Schema.String,
103
+ completed: Schema.Boolean,
104
+ }),
105
+ }),
106
+ todoToggled: Events.clientOnly({
107
+ name: 'todoToggled',
108
+ schema: Schema.Struct({
109
+ id: Schema.String,
110
+ completed: Schema.Boolean,
111
+ }),
112
+ }),
113
+ itemCreated: Events.clientOnly({
114
+ name: 'itemCreated',
115
+ schema: Schema.Struct({
116
+ id: Schema.String,
117
+ name: Schema.String,
118
+ metadata: Schema.Record({ key: Schema.String, value: Schema.Unknown }),
119
+ }),
120
+ }),
121
+ itemUpdated: Events.clientOnly({
122
+ name: 'itemUpdated',
123
+ schema: Schema.Struct({
124
+ id: Schema.String,
125
+ status: Schema.String,
126
+ }),
127
+ }),
128
+ }
129
+
130
+ // Define tables
131
+ const tables = {
132
+ users: State.SQLite.table({
133
+ name: 'users',
134
+ columns: {
135
+ id: State.SQLite.text({ primaryKey: true }),
136
+ name: State.SQLite.text(),
137
+ email: State.SQLite.text(),
138
+ isActive: State.SQLite.boolean(),
139
+ createdAt: State.SQLite.datetime(),
140
+ },
141
+ }),
142
+ products: State.SQLite.table({
143
+ name: 'products',
144
+ columns: {
145
+ id: State.SQLite.text({ primaryKey: true }),
146
+ name: State.SQLite.text(),
147
+ description: State.SQLite.text(),
148
+ price: State.SQLite.real(),
149
+ createdAt: State.SQLite.datetime(),
150
+ },
151
+ }),
152
+ todos: State.SQLite.table({
153
+ name: 'todos',
154
+ columns: {
155
+ id: State.SQLite.text({ primaryKey: true }),
156
+ text: State.SQLite.text(),
157
+ completed: State.SQLite.boolean(),
158
+ createdAt: State.SQLite.datetime(),
159
+ },
160
+ }),
161
+ }
162
+
163
+ // Define materializers
164
+ const materializers = State.SQLite.materializers(events, {
165
+ userCreated: ({ id, name, email }) => tables.users.insert({ id, name, email, isActive: true, createdAt: new Date() }),
166
+ userUpdated: ({ id, name, email, isActive }) => {
167
+ const updates: { name?: string; email?: string; isActive?: boolean } = {}
168
+ if (Option.isSome(name)) updates.name = name.value
169
+ if (Option.isSome(email)) updates.email = email.value
170
+ if (Option.isSome(isActive)) updates.isActive = isActive.value
171
+ return tables.users.update(updates).where({ id })
172
+ },
173
+ todoCreated: ({ id, text, completed }) => tables.todos.insert({ id, text, completed, createdAt: new Date() }),
174
+ todoToggled: ({ id, completed }) => tables.todos.update({ completed }).where({ id }),
175
+ productCreated: ({ id, name, description, price }) =>
176
+ tables.products.insert({ id, name, description, price, createdAt: new Date() }),
177
+ productUpdated: ({ id, name, description, price }) => {
178
+ const updates: { name?: string; description?: string; price?: number } = {}
179
+ if (Option.isSome(name)) updates.name = name.value
180
+ if (Option.isSome(description)) updates.description = description.value
181
+ if (Option.isSome(price)) updates.price = price.value
182
+ return tables.products.update(updates).where({ id })
183
+ },
184
+ itemCreated: () => [], // Item events don't have a corresponding table
185
+ itemUpdated: () => [], // Item events don't have a corresponding table
186
+ })
187
+
188
+ // Create state
189
+ const state = State.SQLite.makeState({ tables, materializers })
190
+
191
+ // Create the store schema
192
+ export const schema = makeSchema({ events, state })
193
+
194
+ export { tables }
195
+ ```
196
+
197
+ The `StoreTag` class provides the following static methods:
198
+ - `StoreTag.runtime` - Access to Effect runtime
199
+ - `StoreTag.commit` - Commit events to the store
200
+ - `StoreTag.store` - Access store with Effect
201
+ - `StoreTag.storeUnsafe` - Direct store access when store is already loaded (synchronous)
202
+ - `StoreTag.makeQuery` - Create query atoms with Effect
203
+ - `StoreTag.makeQueryUnsafe` - Create query atoms without Effect
204
+
205
+ ### Defining Query Atoms
206
+
207
+ Create reactive query atoms that automatically update when the underlying data changes:
208
+
209
+ ## `patterns/effect/store-setup/queries.ts`
210
+
211
+ ```ts filename="patterns/effect/store-setup/queries.ts"
212
+
213
+ // User schema for type safety
214
+ const User = Schema.Struct({
215
+ id: Schema.String,
216
+ name: Schema.String,
217
+ isActive: Schema.Boolean,
218
+ })
219
+
220
+ const Product = Schema.Struct({
221
+ id: Schema.String,
222
+ name: Schema.String,
223
+ createdAt: Schema.DateTimeUtc,
224
+ })
225
+
226
+ // Search term atom for dynamic queries
227
+ export const searchTermAtom = Atom.make<string>('')
228
+
229
+ // Re-export from utils for convenience
230
+ export { usersQueryAtom as usersAtom } from './utils.ts'
231
+
232
+ // Query with SQL
233
+ export const activeUsersAtom = StoreTag.makeQuery(
234
+ queryDb({
235
+ query: sql`SELECT * FROM users WHERE isActive = true ORDER BY name`,
236
+ schema: Schema.Array(User),
237
+ }),
238
+ )
239
+
240
+ // Static query example - dynamic queries would need a different approach
241
+ // For dynamic queries, you'd typically use a derived atom that depends on searchTermAtom
242
+ export const searchResultsAtom = StoreTag.makeQuery(
243
+ queryDb({
244
+ query: sql`SELECT * FROM products ORDER BY createdAt DESC`,
245
+ schema: Schema.Array(Product),
246
+ }),
247
+ )
248
+ ```
249
+
250
+ ### `patterns/effect/store-setup/atoms.ts`
251
+
252
+ ```ts filename="patterns/effect/store-setup/atoms.ts"
253
+
254
+ export { schema } from './schema.ts'
255
+
256
+ // Create a persistent adapter with OPFS storage
257
+ const adapter = makePersistedAdapter({
258
+ storage: { type: 'opfs' },
259
+ worker: LiveStoreWorker,
260
+ sharedWorker: LiveStoreSharedWorker,
261
+ })
262
+
263
+ // Define the store as a service tag
264
+ export class StoreTag extends AtomLivestore.Tag<StoreTag>()('StoreTag', {
265
+ schema,
266
+ storeId: 'default',
267
+ adapter,
268
+ batchUpdates: unstable_batchedUpdates, // React batching for performance
269
+ }) {}
270
+ ```
271
+
272
+ ### `patterns/effect/store-setup/schema.ts`
273
+
274
+ ```ts filename="patterns/effect/store-setup/schema.ts"
275
+
276
+ // Define event payloads
277
+ export const events = {
278
+ userCreated: Events.clientOnly({
279
+ name: 'userCreated',
280
+ schema: Schema.Struct({
281
+ id: Schema.String,
282
+ name: Schema.String,
283
+ email: Schema.String,
284
+ }),
285
+ }),
286
+ userUpdated: Events.clientOnly({
287
+ name: 'userUpdated',
288
+ schema: Schema.Struct({
289
+ id: Schema.String,
290
+ name: Schema.optionalWith(Schema.String, { as: 'Option' }),
291
+ email: Schema.optionalWith(Schema.String, { as: 'Option' }),
292
+ isActive: Schema.optionalWith(Schema.Boolean, { as: 'Option' }),
293
+ }),
294
+ }),
295
+ productCreated: Events.clientOnly({
296
+ name: 'productCreated',
297
+ schema: Schema.Struct({
298
+ id: Schema.String,
299
+ name: Schema.String,
300
+ description: Schema.String,
301
+ price: Schema.Number,
302
+ }),
303
+ }),
304
+ productUpdated: Events.clientOnly({
305
+ name: 'productUpdated',
306
+ schema: Schema.Struct({
307
+ id: Schema.String,
308
+ name: Schema.optionalWith(Schema.String, { as: 'Option' }),
309
+ description: Schema.optionalWith(Schema.String, { as: 'Option' }),
310
+ price: Schema.optionalWith(Schema.Number, { as: 'Option' }),
311
+ }),
312
+ }),
313
+ todoCreated: Events.clientOnly({
314
+ name: 'todoCreated',
315
+ schema: Schema.Struct({
316
+ id: Schema.String,
317
+ text: Schema.String,
318
+ completed: Schema.Boolean,
319
+ }),
320
+ }),
321
+ todoToggled: Events.clientOnly({
322
+ name: 'todoToggled',
323
+ schema: Schema.Struct({
324
+ id: Schema.String,
325
+ completed: Schema.Boolean,
326
+ }),
327
+ }),
328
+ itemCreated: Events.clientOnly({
329
+ name: 'itemCreated',
330
+ schema: Schema.Struct({
331
+ id: Schema.String,
332
+ name: Schema.String,
333
+ metadata: Schema.Record({ key: Schema.String, value: Schema.Unknown }),
334
+ }),
335
+ }),
336
+ itemUpdated: Events.clientOnly({
337
+ name: 'itemUpdated',
338
+ schema: Schema.Struct({
339
+ id: Schema.String,
340
+ status: Schema.String,
341
+ }),
342
+ }),
343
+ }
344
+
345
+ // Define tables
346
+ const tables = {
347
+ users: State.SQLite.table({
348
+ name: 'users',
349
+ columns: {
350
+ id: State.SQLite.text({ primaryKey: true }),
351
+ name: State.SQLite.text(),
352
+ email: State.SQLite.text(),
353
+ isActive: State.SQLite.boolean(),
354
+ createdAt: State.SQLite.datetime(),
355
+ },
356
+ }),
357
+ products: State.SQLite.table({
358
+ name: 'products',
359
+ columns: {
360
+ id: State.SQLite.text({ primaryKey: true }),
361
+ name: State.SQLite.text(),
362
+ description: State.SQLite.text(),
363
+ price: State.SQLite.real(),
364
+ createdAt: State.SQLite.datetime(),
365
+ },
366
+ }),
367
+ todos: State.SQLite.table({
368
+ name: 'todos',
369
+ columns: {
370
+ id: State.SQLite.text({ primaryKey: true }),
371
+ text: State.SQLite.text(),
372
+ completed: State.SQLite.boolean(),
373
+ createdAt: State.SQLite.datetime(),
374
+ },
375
+ }),
376
+ }
377
+
378
+ // Define materializers
379
+ const materializers = State.SQLite.materializers(events, {
380
+ userCreated: ({ id, name, email }) => tables.users.insert({ id, name, email, isActive: true, createdAt: new Date() }),
381
+ userUpdated: ({ id, name, email, isActive }) => {
382
+ const updates: { name?: string; email?: string; isActive?: boolean } = {}
383
+ if (Option.isSome(name)) updates.name = name.value
384
+ if (Option.isSome(email)) updates.email = email.value
385
+ if (Option.isSome(isActive)) updates.isActive = isActive.value
386
+ return tables.users.update(updates).where({ id })
387
+ },
388
+ todoCreated: ({ id, text, completed }) => tables.todos.insert({ id, text, completed, createdAt: new Date() }),
389
+ todoToggled: ({ id, completed }) => tables.todos.update({ completed }).where({ id }),
390
+ productCreated: ({ id, name, description, price }) =>
391
+ tables.products.insert({ id, name, description, price, createdAt: new Date() }),
392
+ productUpdated: ({ id, name, description, price }) => {
393
+ const updates: { name?: string; description?: string; price?: number } = {}
394
+ if (Option.isSome(name)) updates.name = name.value
395
+ if (Option.isSome(description)) updates.description = description.value
396
+ if (Option.isSome(price)) updates.price = price.value
397
+ return tables.products.update(updates).where({ id })
398
+ },
399
+ itemCreated: () => [], // Item events don't have a corresponding table
400
+ itemUpdated: () => [], // Item events don't have a corresponding table
401
+ })
402
+
403
+ // Create state
404
+ const state = State.SQLite.makeState({ tables, materializers })
405
+
406
+ // Create the store schema
407
+ export const schema = makeSchema({ events, state })
408
+
409
+ export { tables }
410
+ ```
411
+
412
+ ### `patterns/effect/store-setup/utils.ts`
413
+
414
+ ```ts filename="patterns/effect/store-setup/utils.ts"
415
+
416
+ // Common query atoms that can be reused
417
+ export const todosQueryAtom = StoreTag.makeQuery(queryDb(tables.todos))
418
+ export const todosQueryUnsafeAtom = StoreTag.makeQueryUnsafe(queryDb(tables.todos))
419
+ export const usersQueryAtom = StoreTag.makeQuery(queryDb(tables.users))
420
+ export const productsQueryAtom = StoreTag.makeQuery(queryDb(tables.products))
421
+
422
+ // Common types for optimistic updates
423
+ export type PendingTodo = { id: string; text: string; completed: boolean }
424
+ export type PendingUser = { id: string; name: string; email: string }
425
+
426
+ // Common pending state atoms
427
+ export const pendingTodosAtom = Atom.make<PendingTodo[]>([])
428
+ export const pendingUsersAtom = Atom.make<PendingUser[]>([])
429
+ ```
430
+
431
+ ### Using Queries in React Components
432
+
433
+ Access query results in React components with the `useAtomValue` hook. When using `StoreTag.makeQuery` (non-unsafe API), the result is wrapped in a Result type for proper loading and error handling:
434
+
435
+ ## `patterns/effect/store-setup/user-list.tsx`
436
+
437
+ ```tsx filename="patterns/effect/store-setup/user-list.tsx"
438
+
439
+ export function UserList() {
440
+ const users = useAtomValue(activeUsersAtom)
441
+
442
+ return Result.builder(users)
443
+ .onInitial(() => <div>Loading users...</div>)
444
+ .onSuccess((users) => (
445
+ <ul>
446
+ {users.map((user) => (
447
+ <li key={user.id}>{user.name}</li>
448
+ ))}
449
+ </ul>
450
+ ))
451
+ .onDefect((error: any) => <div>Error: {error.message}</div>)
452
+ .render()
453
+ }
454
+ ```
455
+
456
+ ### `patterns/effect/store-setup/atoms.ts`
457
+
458
+ ```ts filename="patterns/effect/store-setup/atoms.ts"
459
+
460
+ export { schema } from './schema.ts'
461
+
462
+ // Create a persistent adapter with OPFS storage
463
+ const adapter = makePersistedAdapter({
464
+ storage: { type: 'opfs' },
465
+ worker: LiveStoreWorker,
466
+ sharedWorker: LiveStoreSharedWorker,
467
+ })
468
+
469
+ // Define the store as a service tag
470
+ export class StoreTag extends AtomLivestore.Tag<StoreTag>()('StoreTag', {
471
+ schema,
472
+ storeId: 'default',
473
+ adapter,
474
+ batchUpdates: unstable_batchedUpdates, // React batching for performance
475
+ }) {}
476
+ ```
477
+
478
+ ### `patterns/effect/store-setup/queries.ts`
479
+
480
+ ```ts filename="patterns/effect/store-setup/queries.ts"
481
+
482
+ // User schema for type safety
483
+ const User = Schema.Struct({
484
+ id: Schema.String,
485
+ name: Schema.String,
486
+ isActive: Schema.Boolean,
487
+ })
488
+
489
+ const Product = Schema.Struct({
490
+ id: Schema.String,
491
+ name: Schema.String,
492
+ createdAt: Schema.DateTimeUtc,
493
+ })
494
+
495
+ // Search term atom for dynamic queries
496
+ export const searchTermAtom = Atom.make<string>('')
497
+
498
+ // Re-export from utils for convenience
499
+ export { usersQueryAtom as usersAtom } from './utils.ts'
500
+
501
+ // Query with SQL
502
+ export const activeUsersAtom = StoreTag.makeQuery(
503
+ queryDb({
504
+ query: sql`SELECT * FROM users WHERE isActive = true ORDER BY name`,
505
+ schema: Schema.Array(User),
506
+ }),
507
+ )
508
+
509
+ // Static query example - dynamic queries would need a different approach
510
+ // For dynamic queries, you'd typically use a derived atom that depends on searchTermAtom
511
+ export const searchResultsAtom = StoreTag.makeQuery(
512
+ queryDb({
513
+ query: sql`SELECT * FROM products ORDER BY createdAt DESC`,
514
+ schema: Schema.Array(Product),
515
+ }),
516
+ )
517
+ ```
518
+
519
+ ### `patterns/effect/store-setup/schema.ts`
520
+
521
+ ```ts filename="patterns/effect/store-setup/schema.ts"
522
+
523
+ // Define event payloads
524
+ export const events = {
525
+ userCreated: Events.clientOnly({
526
+ name: 'userCreated',
527
+ schema: Schema.Struct({
528
+ id: Schema.String,
529
+ name: Schema.String,
530
+ email: Schema.String,
531
+ }),
532
+ }),
533
+ userUpdated: Events.clientOnly({
534
+ name: 'userUpdated',
535
+ schema: Schema.Struct({
536
+ id: Schema.String,
537
+ name: Schema.optionalWith(Schema.String, { as: 'Option' }),
538
+ email: Schema.optionalWith(Schema.String, { as: 'Option' }),
539
+ isActive: Schema.optionalWith(Schema.Boolean, { as: 'Option' }),
540
+ }),
541
+ }),
542
+ productCreated: Events.clientOnly({
543
+ name: 'productCreated',
544
+ schema: Schema.Struct({
545
+ id: Schema.String,
546
+ name: Schema.String,
547
+ description: Schema.String,
548
+ price: Schema.Number,
549
+ }),
550
+ }),
551
+ productUpdated: Events.clientOnly({
552
+ name: 'productUpdated',
553
+ schema: Schema.Struct({
554
+ id: Schema.String,
555
+ name: Schema.optionalWith(Schema.String, { as: 'Option' }),
556
+ description: Schema.optionalWith(Schema.String, { as: 'Option' }),
557
+ price: Schema.optionalWith(Schema.Number, { as: 'Option' }),
558
+ }),
559
+ }),
560
+ todoCreated: Events.clientOnly({
561
+ name: 'todoCreated',
562
+ schema: Schema.Struct({
563
+ id: Schema.String,
564
+ text: Schema.String,
565
+ completed: Schema.Boolean,
566
+ }),
567
+ }),
568
+ todoToggled: Events.clientOnly({
569
+ name: 'todoToggled',
570
+ schema: Schema.Struct({
571
+ id: Schema.String,
572
+ completed: Schema.Boolean,
573
+ }),
574
+ }),
575
+ itemCreated: Events.clientOnly({
576
+ name: 'itemCreated',
577
+ schema: Schema.Struct({
578
+ id: Schema.String,
579
+ name: Schema.String,
580
+ metadata: Schema.Record({ key: Schema.String, value: Schema.Unknown }),
581
+ }),
582
+ }),
583
+ itemUpdated: Events.clientOnly({
584
+ name: 'itemUpdated',
585
+ schema: Schema.Struct({
586
+ id: Schema.String,
587
+ status: Schema.String,
588
+ }),
589
+ }),
590
+ }
591
+
592
+ // Define tables
593
+ const tables = {
594
+ users: State.SQLite.table({
595
+ name: 'users',
596
+ columns: {
597
+ id: State.SQLite.text({ primaryKey: true }),
598
+ name: State.SQLite.text(),
599
+ email: State.SQLite.text(),
600
+ isActive: State.SQLite.boolean(),
601
+ createdAt: State.SQLite.datetime(),
602
+ },
603
+ }),
604
+ products: State.SQLite.table({
605
+ name: 'products',
606
+ columns: {
607
+ id: State.SQLite.text({ primaryKey: true }),
608
+ name: State.SQLite.text(),
609
+ description: State.SQLite.text(),
610
+ price: State.SQLite.real(),
611
+ createdAt: State.SQLite.datetime(),
612
+ },
613
+ }),
614
+ todos: State.SQLite.table({
615
+ name: 'todos',
616
+ columns: {
617
+ id: State.SQLite.text({ primaryKey: true }),
618
+ text: State.SQLite.text(),
619
+ completed: State.SQLite.boolean(),
620
+ createdAt: State.SQLite.datetime(),
621
+ },
622
+ }),
623
+ }
624
+
625
+ // Define materializers
626
+ const materializers = State.SQLite.materializers(events, {
627
+ userCreated: ({ id, name, email }) => tables.users.insert({ id, name, email, isActive: true, createdAt: new Date() }),
628
+ userUpdated: ({ id, name, email, isActive }) => {
629
+ const updates: { name?: string; email?: string; isActive?: boolean } = {}
630
+ if (Option.isSome(name)) updates.name = name.value
631
+ if (Option.isSome(email)) updates.email = email.value
632
+ if (Option.isSome(isActive)) updates.isActive = isActive.value
633
+ return tables.users.update(updates).where({ id })
634
+ },
635
+ todoCreated: ({ id, text, completed }) => tables.todos.insert({ id, text, completed, createdAt: new Date() }),
636
+ todoToggled: ({ id, completed }) => tables.todos.update({ completed }).where({ id }),
637
+ productCreated: ({ id, name, description, price }) =>
638
+ tables.products.insert({ id, name, description, price, createdAt: new Date() }),
639
+ productUpdated: ({ id, name, description, price }) => {
640
+ const updates: { name?: string; description?: string; price?: number } = {}
641
+ if (Option.isSome(name)) updates.name = name.value
642
+ if (Option.isSome(description)) updates.description = description.value
643
+ if (Option.isSome(price)) updates.price = price.value
644
+ return tables.products.update(updates).where({ id })
645
+ },
646
+ itemCreated: () => [], // Item events don't have a corresponding table
647
+ itemUpdated: () => [], // Item events don't have a corresponding table
648
+ })
649
+
650
+ // Create state
651
+ const state = State.SQLite.makeState({ tables, materializers })
652
+
653
+ // Create the store schema
654
+ export const schema = makeSchema({ events, state })
655
+
656
+ export { tables }
657
+ ```
658
+
659
+ ### `patterns/effect/store-setup/utils.ts`
660
+
661
+ ```ts filename="patterns/effect/store-setup/utils.ts"
662
+
663
+ // Common query atoms that can be reused
664
+ export const todosQueryAtom = StoreTag.makeQuery(queryDb(tables.todos))
665
+ export const todosQueryUnsafeAtom = StoreTag.makeQueryUnsafe(queryDb(tables.todos))
666
+ export const usersQueryAtom = StoreTag.makeQuery(queryDb(tables.users))
667
+ export const productsQueryAtom = StoreTag.makeQuery(queryDb(tables.products))
668
+
669
+ // Common types for optimistic updates
670
+ export type PendingTodo = { id: string; text: string; completed: boolean }
671
+ export type PendingUser = { id: string; name: string; email: string }
672
+
673
+ // Common pending state atoms
674
+ export const pendingTodosAtom = Atom.make<PendingTodo[]>([])
675
+ export const pendingUsersAtom = Atom.make<PendingUser[]>([])
676
+ ```
677
+
678
+ ### Integrating Effect Services
679
+
680
+ Combine Effect services with LiveStore operations using the store's runtime:
681
+
682
+ ## `patterns/effect/store-setup/services.tsx`
683
+
684
+ ```tsx filename="patterns/effect/store-setup/services.tsx"
685
+
686
+ // Example service definition
687
+ export class MyService extends Context.Tag('MyService')<
688
+ MyService,
689
+ {
690
+ processItem: (name: string) => Effect.Effect<{
691
+ name: string
692
+ metadata: Record<string, unknown>
693
+ }>
694
+ }
695
+ >() {}
696
+
697
+ // Use the commit hook for event handling
698
+ export const useCommit = () => useAtomSet(StoreTag.commit)
699
+
700
+ // Simple commit example
701
+ export const createItemAtom = StoreTag.runtime.fn<string>()((itemName, get) => {
702
+ return Effect.sync(() => {
703
+ const store = get(StoreTag.storeUnsafe)
704
+ if (store) {
705
+ store.commit(
706
+ events.itemCreated({
707
+ id: crypto.randomUUID(),
708
+ name: itemName,
709
+ metadata: { createdAt: new Date().toISOString() },
710
+ }),
711
+ )
712
+ }
713
+ })
714
+ })
715
+
716
+ // Use in a React component
717
+ export function CreateItemButton() {
718
+ const createItem = useAtomSet(createItemAtom)
719
+
720
+ const handleClick = () => {
721
+ createItem('New Item')
722
+ }
723
+
724
+ return (
725
+ <button type="button" onClick={handleClick}>
726
+ Create Item
727
+ </button>
728
+ )
729
+ }
730
+ ```
731
+
732
+ ### `patterns/effect/store-setup/atoms.ts`
733
+
734
+ ```ts filename="patterns/effect/store-setup/atoms.ts"
735
+
736
+ export { schema } from './schema.ts'
737
+
738
+ // Create a persistent adapter with OPFS storage
739
+ const adapter = makePersistedAdapter({
740
+ storage: { type: 'opfs' },
741
+ worker: LiveStoreWorker,
742
+ sharedWorker: LiveStoreSharedWorker,
743
+ })
744
+
745
+ // Define the store as a service tag
746
+ export class StoreTag extends AtomLivestore.Tag<StoreTag>()('StoreTag', {
747
+ schema,
748
+ storeId: 'default',
749
+ adapter,
750
+ batchUpdates: unstable_batchedUpdates, // React batching for performance
751
+ }) {}
752
+ ```
753
+
754
+ ### `patterns/effect/store-setup/schema.ts`
755
+
756
+ ```ts filename="patterns/effect/store-setup/schema.ts"
757
+
758
+ // Define event payloads
759
+ export const events = {
760
+ userCreated: Events.clientOnly({
761
+ name: 'userCreated',
762
+ schema: Schema.Struct({
763
+ id: Schema.String,
764
+ name: Schema.String,
765
+ email: Schema.String,
766
+ }),
767
+ }),
768
+ userUpdated: Events.clientOnly({
769
+ name: 'userUpdated',
770
+ schema: Schema.Struct({
771
+ id: Schema.String,
772
+ name: Schema.optionalWith(Schema.String, { as: 'Option' }),
773
+ email: Schema.optionalWith(Schema.String, { as: 'Option' }),
774
+ isActive: Schema.optionalWith(Schema.Boolean, { as: 'Option' }),
775
+ }),
776
+ }),
777
+ productCreated: Events.clientOnly({
778
+ name: 'productCreated',
779
+ schema: Schema.Struct({
780
+ id: Schema.String,
781
+ name: Schema.String,
782
+ description: Schema.String,
783
+ price: Schema.Number,
784
+ }),
785
+ }),
786
+ productUpdated: Events.clientOnly({
787
+ name: 'productUpdated',
788
+ schema: Schema.Struct({
789
+ id: Schema.String,
790
+ name: Schema.optionalWith(Schema.String, { as: 'Option' }),
791
+ description: Schema.optionalWith(Schema.String, { as: 'Option' }),
792
+ price: Schema.optionalWith(Schema.Number, { as: 'Option' }),
793
+ }),
794
+ }),
795
+ todoCreated: Events.clientOnly({
796
+ name: 'todoCreated',
797
+ schema: Schema.Struct({
798
+ id: Schema.String,
799
+ text: Schema.String,
800
+ completed: Schema.Boolean,
801
+ }),
802
+ }),
803
+ todoToggled: Events.clientOnly({
804
+ name: 'todoToggled',
805
+ schema: Schema.Struct({
806
+ id: Schema.String,
807
+ completed: Schema.Boolean,
808
+ }),
809
+ }),
810
+ itemCreated: Events.clientOnly({
811
+ name: 'itemCreated',
812
+ schema: Schema.Struct({
813
+ id: Schema.String,
814
+ name: Schema.String,
815
+ metadata: Schema.Record({ key: Schema.String, value: Schema.Unknown }),
816
+ }),
817
+ }),
818
+ itemUpdated: Events.clientOnly({
819
+ name: 'itemUpdated',
820
+ schema: Schema.Struct({
821
+ id: Schema.String,
822
+ status: Schema.String,
823
+ }),
824
+ }),
825
+ }
826
+
827
+ // Define tables
828
+ const tables = {
829
+ users: State.SQLite.table({
830
+ name: 'users',
831
+ columns: {
832
+ id: State.SQLite.text({ primaryKey: true }),
833
+ name: State.SQLite.text(),
834
+ email: State.SQLite.text(),
835
+ isActive: State.SQLite.boolean(),
836
+ createdAt: State.SQLite.datetime(),
837
+ },
838
+ }),
839
+ products: State.SQLite.table({
840
+ name: 'products',
841
+ columns: {
842
+ id: State.SQLite.text({ primaryKey: true }),
843
+ name: State.SQLite.text(),
844
+ description: State.SQLite.text(),
845
+ price: State.SQLite.real(),
846
+ createdAt: State.SQLite.datetime(),
847
+ },
848
+ }),
849
+ todos: State.SQLite.table({
850
+ name: 'todos',
851
+ columns: {
852
+ id: State.SQLite.text({ primaryKey: true }),
853
+ text: State.SQLite.text(),
854
+ completed: State.SQLite.boolean(),
855
+ createdAt: State.SQLite.datetime(),
856
+ },
857
+ }),
858
+ }
859
+
860
+ // Define materializers
861
+ const materializers = State.SQLite.materializers(events, {
862
+ userCreated: ({ id, name, email }) => tables.users.insert({ id, name, email, isActive: true, createdAt: new Date() }),
863
+ userUpdated: ({ id, name, email, isActive }) => {
864
+ const updates: { name?: string; email?: string; isActive?: boolean } = {}
865
+ if (Option.isSome(name)) updates.name = name.value
866
+ if (Option.isSome(email)) updates.email = email.value
867
+ if (Option.isSome(isActive)) updates.isActive = isActive.value
868
+ return tables.users.update(updates).where({ id })
869
+ },
870
+ todoCreated: ({ id, text, completed }) => tables.todos.insert({ id, text, completed, createdAt: new Date() }),
871
+ todoToggled: ({ id, completed }) => tables.todos.update({ completed }).where({ id }),
872
+ productCreated: ({ id, name, description, price }) =>
873
+ tables.products.insert({ id, name, description, price, createdAt: new Date() }),
874
+ productUpdated: ({ id, name, description, price }) => {
875
+ const updates: { name?: string; description?: string; price?: number } = {}
876
+ if (Option.isSome(name)) updates.name = name.value
877
+ if (Option.isSome(description)) updates.description = description.value
878
+ if (Option.isSome(price)) updates.price = price.value
879
+ return tables.products.update(updates).where({ id })
880
+ },
881
+ itemCreated: () => [], // Item events don't have a corresponding table
882
+ itemUpdated: () => [], // Item events don't have a corresponding table
883
+ })
884
+
885
+ // Create state
886
+ const state = State.SQLite.makeState({ tables, materializers })
887
+
888
+ // Create the store schema
889
+ export const schema = makeSchema({ events, state })
890
+
891
+ export { tables }
892
+ ```
893
+
894
+ ### Advanced Patterns
895
+
896
+ #### Optimistic Updates
897
+
898
+ Combine local state with LiveStore for optimistic UI updates. When using `StoreTag.makeQueryUnsafe`, the data is directly available:
899
+
900
+ ## `patterns/effect/optimistic-example/optimistic.ts`
901
+
902
+ ```ts filename="patterns/effect/optimistic-example/optimistic.ts"
903
+
904
+ // Combine real and pending todos for optimistic UI
905
+ export const optimisticTodoAtom = Atom.make((get) => {
906
+ const todos = get(todosQueryUnsafeAtom) // Direct array, not wrapped in Result
907
+ const pending = get(pendingTodosAtom)
908
+
909
+ return [...(todos || []), ...pending]
910
+ })
911
+ ```
912
+
913
+ ### `patterns/effect/store-setup/atoms.ts`
914
+
915
+ ```ts filename="patterns/effect/store-setup/atoms.ts"
916
+
917
+ export { schema } from './schema.ts'
918
+
919
+ // Create a persistent adapter with OPFS storage
920
+ const adapter = makePersistedAdapter({
921
+ storage: { type: 'opfs' },
922
+ worker: LiveStoreWorker,
923
+ sharedWorker: LiveStoreSharedWorker,
924
+ })
925
+
926
+ // Define the store as a service tag
927
+ export class StoreTag extends AtomLivestore.Tag<StoreTag>()('StoreTag', {
928
+ schema,
929
+ storeId: 'default',
930
+ adapter,
931
+ batchUpdates: unstable_batchedUpdates, // React batching for performance
932
+ }) {}
933
+ ```
934
+
935
+ ### `patterns/effect/store-setup/schema.ts`
936
+
937
+ ```ts filename="patterns/effect/store-setup/schema.ts"
938
+
939
+ // Define event payloads
940
+ export const events = {
941
+ userCreated: Events.clientOnly({
942
+ name: 'userCreated',
943
+ schema: Schema.Struct({
944
+ id: Schema.String,
945
+ name: Schema.String,
946
+ email: Schema.String,
947
+ }),
948
+ }),
949
+ userUpdated: Events.clientOnly({
950
+ name: 'userUpdated',
951
+ schema: Schema.Struct({
952
+ id: Schema.String,
953
+ name: Schema.optionalWith(Schema.String, { as: 'Option' }),
954
+ email: Schema.optionalWith(Schema.String, { as: 'Option' }),
955
+ isActive: Schema.optionalWith(Schema.Boolean, { as: 'Option' }),
956
+ }),
957
+ }),
958
+ productCreated: Events.clientOnly({
959
+ name: 'productCreated',
960
+ schema: Schema.Struct({
961
+ id: Schema.String,
962
+ name: Schema.String,
963
+ description: Schema.String,
964
+ price: Schema.Number,
965
+ }),
966
+ }),
967
+ productUpdated: Events.clientOnly({
968
+ name: 'productUpdated',
969
+ schema: Schema.Struct({
970
+ id: Schema.String,
971
+ name: Schema.optionalWith(Schema.String, { as: 'Option' }),
972
+ description: Schema.optionalWith(Schema.String, { as: 'Option' }),
973
+ price: Schema.optionalWith(Schema.Number, { as: 'Option' }),
974
+ }),
975
+ }),
976
+ todoCreated: Events.clientOnly({
977
+ name: 'todoCreated',
978
+ schema: Schema.Struct({
979
+ id: Schema.String,
980
+ text: Schema.String,
981
+ completed: Schema.Boolean,
982
+ }),
983
+ }),
984
+ todoToggled: Events.clientOnly({
985
+ name: 'todoToggled',
986
+ schema: Schema.Struct({
987
+ id: Schema.String,
988
+ completed: Schema.Boolean,
989
+ }),
990
+ }),
991
+ itemCreated: Events.clientOnly({
992
+ name: 'itemCreated',
993
+ schema: Schema.Struct({
994
+ id: Schema.String,
995
+ name: Schema.String,
996
+ metadata: Schema.Record({ key: Schema.String, value: Schema.Unknown }),
997
+ }),
998
+ }),
999
+ itemUpdated: Events.clientOnly({
1000
+ name: 'itemUpdated',
1001
+ schema: Schema.Struct({
1002
+ id: Schema.String,
1003
+ status: Schema.String,
1004
+ }),
1005
+ }),
1006
+ }
1007
+
1008
+ // Define tables
1009
+ const tables = {
1010
+ users: State.SQLite.table({
1011
+ name: 'users',
1012
+ columns: {
1013
+ id: State.SQLite.text({ primaryKey: true }),
1014
+ name: State.SQLite.text(),
1015
+ email: State.SQLite.text(),
1016
+ isActive: State.SQLite.boolean(),
1017
+ createdAt: State.SQLite.datetime(),
1018
+ },
1019
+ }),
1020
+ products: State.SQLite.table({
1021
+ name: 'products',
1022
+ columns: {
1023
+ id: State.SQLite.text({ primaryKey: true }),
1024
+ name: State.SQLite.text(),
1025
+ description: State.SQLite.text(),
1026
+ price: State.SQLite.real(),
1027
+ createdAt: State.SQLite.datetime(),
1028
+ },
1029
+ }),
1030
+ todos: State.SQLite.table({
1031
+ name: 'todos',
1032
+ columns: {
1033
+ id: State.SQLite.text({ primaryKey: true }),
1034
+ text: State.SQLite.text(),
1035
+ completed: State.SQLite.boolean(),
1036
+ createdAt: State.SQLite.datetime(),
1037
+ },
1038
+ }),
1039
+ }
1040
+
1041
+ // Define materializers
1042
+ const materializers = State.SQLite.materializers(events, {
1043
+ userCreated: ({ id, name, email }) => tables.users.insert({ id, name, email, isActive: true, createdAt: new Date() }),
1044
+ userUpdated: ({ id, name, email, isActive }) => {
1045
+ const updates: { name?: string; email?: string; isActive?: boolean } = {}
1046
+ if (Option.isSome(name)) updates.name = name.value
1047
+ if (Option.isSome(email)) updates.email = email.value
1048
+ if (Option.isSome(isActive)) updates.isActive = isActive.value
1049
+ return tables.users.update(updates).where({ id })
1050
+ },
1051
+ todoCreated: ({ id, text, completed }) => tables.todos.insert({ id, text, completed, createdAt: new Date() }),
1052
+ todoToggled: ({ id, completed }) => tables.todos.update({ completed }).where({ id }),
1053
+ productCreated: ({ id, name, description, price }) =>
1054
+ tables.products.insert({ id, name, description, price, createdAt: new Date() }),
1055
+ productUpdated: ({ id, name, description, price }) => {
1056
+ const updates: { name?: string; description?: string; price?: number } = {}
1057
+ if (Option.isSome(name)) updates.name = name.value
1058
+ if (Option.isSome(description)) updates.description = description.value
1059
+ if (Option.isSome(price)) updates.price = price.value
1060
+ return tables.products.update(updates).where({ id })
1061
+ },
1062
+ itemCreated: () => [], // Item events don't have a corresponding table
1063
+ itemUpdated: () => [], // Item events don't have a corresponding table
1064
+ })
1065
+
1066
+ // Create state
1067
+ const state = State.SQLite.makeState({ tables, materializers })
1068
+
1069
+ // Create the store schema
1070
+ export const schema = makeSchema({ events, state })
1071
+
1072
+ export { tables }
1073
+ ```
1074
+
1075
+ ### `patterns/effect/store-setup/utils.ts`
1076
+
1077
+ ```ts filename="patterns/effect/store-setup/utils.ts"
1078
+
1079
+ // Common query atoms that can be reused
1080
+ export const todosQueryAtom = StoreTag.makeQuery(queryDb(tables.todos))
1081
+ export const todosQueryUnsafeAtom = StoreTag.makeQueryUnsafe(queryDb(tables.todos))
1082
+ export const usersQueryAtom = StoreTag.makeQuery(queryDb(tables.users))
1083
+ export const productsQueryAtom = StoreTag.makeQuery(queryDb(tables.products))
1084
+
1085
+ // Common types for optimistic updates
1086
+ export type PendingTodo = { id: string; text: string; completed: boolean }
1087
+ export type PendingUser = { id: string; name: string; email: string }
1088
+
1089
+ // Common pending state atoms
1090
+ export const pendingTodosAtom = Atom.make<PendingTodo[]>([])
1091
+ export const pendingUsersAtom = Atom.make<PendingUser[]>([])
1092
+ ```
1093
+
1094
+ #### Derived State
1095
+
1096
+ Create computed atoms based on LiveStore queries. When using the non-unsafe API, handle the Result type:
1097
+
1098
+ ## `patterns/effect/derived-example/derived.ts`
1099
+
1100
+ ```ts filename="patterns/effect/derived-example/derived.ts"
1101
+
1102
+ // Derive statistics from todos
1103
+ export const todoStatsAtom = Atom.make((get) => {
1104
+ const todos = get(todosQueryAtom) // Result wrapped
1105
+
1106
+ return Result.map(todos, (todoList) => ({
1107
+ total: todoList.length,
1108
+ completed: todoList.filter((t) => t.completed).length,
1109
+ pending: todoList.filter((t) => !t.completed).length,
1110
+ }))
1111
+ })
1112
+ ```
1113
+
1114
+ ### `patterns/effect/store-setup/atoms.ts`
1115
+
1116
+ ```ts filename="patterns/effect/store-setup/atoms.ts"
1117
+
1118
+ export { schema } from './schema.ts'
1119
+
1120
+ // Create a persistent adapter with OPFS storage
1121
+ const adapter = makePersistedAdapter({
1122
+ storage: { type: 'opfs' },
1123
+ worker: LiveStoreWorker,
1124
+ sharedWorker: LiveStoreSharedWorker,
1125
+ })
1126
+
1127
+ // Define the store as a service tag
1128
+ export class StoreTag extends AtomLivestore.Tag<StoreTag>()('StoreTag', {
1129
+ schema,
1130
+ storeId: 'default',
1131
+ adapter,
1132
+ batchUpdates: unstable_batchedUpdates, // React batching for performance
1133
+ }) {}
1134
+ ```
1135
+
1136
+ ### `patterns/effect/store-setup/schema.ts`
1137
+
1138
+ ```ts filename="patterns/effect/store-setup/schema.ts"
1139
+
1140
+ // Define event payloads
1141
+ export const events = {
1142
+ userCreated: Events.clientOnly({
1143
+ name: 'userCreated',
1144
+ schema: Schema.Struct({
1145
+ id: Schema.String,
1146
+ name: Schema.String,
1147
+ email: Schema.String,
1148
+ }),
1149
+ }),
1150
+ userUpdated: Events.clientOnly({
1151
+ name: 'userUpdated',
1152
+ schema: Schema.Struct({
1153
+ id: Schema.String,
1154
+ name: Schema.optionalWith(Schema.String, { as: 'Option' }),
1155
+ email: Schema.optionalWith(Schema.String, { as: 'Option' }),
1156
+ isActive: Schema.optionalWith(Schema.Boolean, { as: 'Option' }),
1157
+ }),
1158
+ }),
1159
+ productCreated: Events.clientOnly({
1160
+ name: 'productCreated',
1161
+ schema: Schema.Struct({
1162
+ id: Schema.String,
1163
+ name: Schema.String,
1164
+ description: Schema.String,
1165
+ price: Schema.Number,
1166
+ }),
1167
+ }),
1168
+ productUpdated: Events.clientOnly({
1169
+ name: 'productUpdated',
1170
+ schema: Schema.Struct({
1171
+ id: Schema.String,
1172
+ name: Schema.optionalWith(Schema.String, { as: 'Option' }),
1173
+ description: Schema.optionalWith(Schema.String, { as: 'Option' }),
1174
+ price: Schema.optionalWith(Schema.Number, { as: 'Option' }),
1175
+ }),
1176
+ }),
1177
+ todoCreated: Events.clientOnly({
1178
+ name: 'todoCreated',
1179
+ schema: Schema.Struct({
1180
+ id: Schema.String,
1181
+ text: Schema.String,
1182
+ completed: Schema.Boolean,
1183
+ }),
1184
+ }),
1185
+ todoToggled: Events.clientOnly({
1186
+ name: 'todoToggled',
1187
+ schema: Schema.Struct({
1188
+ id: Schema.String,
1189
+ completed: Schema.Boolean,
1190
+ }),
1191
+ }),
1192
+ itemCreated: Events.clientOnly({
1193
+ name: 'itemCreated',
1194
+ schema: Schema.Struct({
1195
+ id: Schema.String,
1196
+ name: Schema.String,
1197
+ metadata: Schema.Record({ key: Schema.String, value: Schema.Unknown }),
1198
+ }),
1199
+ }),
1200
+ itemUpdated: Events.clientOnly({
1201
+ name: 'itemUpdated',
1202
+ schema: Schema.Struct({
1203
+ id: Schema.String,
1204
+ status: Schema.String,
1205
+ }),
1206
+ }),
1207
+ }
1208
+
1209
+ // Define tables
1210
+ const tables = {
1211
+ users: State.SQLite.table({
1212
+ name: 'users',
1213
+ columns: {
1214
+ id: State.SQLite.text({ primaryKey: true }),
1215
+ name: State.SQLite.text(),
1216
+ email: State.SQLite.text(),
1217
+ isActive: State.SQLite.boolean(),
1218
+ createdAt: State.SQLite.datetime(),
1219
+ },
1220
+ }),
1221
+ products: State.SQLite.table({
1222
+ name: 'products',
1223
+ columns: {
1224
+ id: State.SQLite.text({ primaryKey: true }),
1225
+ name: State.SQLite.text(),
1226
+ description: State.SQLite.text(),
1227
+ price: State.SQLite.real(),
1228
+ createdAt: State.SQLite.datetime(),
1229
+ },
1230
+ }),
1231
+ todos: State.SQLite.table({
1232
+ name: 'todos',
1233
+ columns: {
1234
+ id: State.SQLite.text({ primaryKey: true }),
1235
+ text: State.SQLite.text(),
1236
+ completed: State.SQLite.boolean(),
1237
+ createdAt: State.SQLite.datetime(),
1238
+ },
1239
+ }),
1240
+ }
1241
+
1242
+ // Define materializers
1243
+ const materializers = State.SQLite.materializers(events, {
1244
+ userCreated: ({ id, name, email }) => tables.users.insert({ id, name, email, isActive: true, createdAt: new Date() }),
1245
+ userUpdated: ({ id, name, email, isActive }) => {
1246
+ const updates: { name?: string; email?: string; isActive?: boolean } = {}
1247
+ if (Option.isSome(name)) updates.name = name.value
1248
+ if (Option.isSome(email)) updates.email = email.value
1249
+ if (Option.isSome(isActive)) updates.isActive = isActive.value
1250
+ return tables.users.update(updates).where({ id })
1251
+ },
1252
+ todoCreated: ({ id, text, completed }) => tables.todos.insert({ id, text, completed, createdAt: new Date() }),
1253
+ todoToggled: ({ id, completed }) => tables.todos.update({ completed }).where({ id }),
1254
+ productCreated: ({ id, name, description, price }) =>
1255
+ tables.products.insert({ id, name, description, price, createdAt: new Date() }),
1256
+ productUpdated: ({ id, name, description, price }) => {
1257
+ const updates: { name?: string; description?: string; price?: number } = {}
1258
+ if (Option.isSome(name)) updates.name = name.value
1259
+ if (Option.isSome(description)) updates.description = description.value
1260
+ if (Option.isSome(price)) updates.price = price.value
1261
+ return tables.products.update(updates).where({ id })
1262
+ },
1263
+ itemCreated: () => [], // Item events don't have a corresponding table
1264
+ itemUpdated: () => [], // Item events don't have a corresponding table
1265
+ })
1266
+
1267
+ // Create state
1268
+ const state = State.SQLite.makeState({ tables, materializers })
1269
+
1270
+ // Create the store schema
1271
+ export const schema = makeSchema({ events, state })
1272
+
1273
+ export { tables }
1274
+ ```
1275
+
1276
+ ### `patterns/effect/store-setup/utils.ts`
1277
+
1278
+ ```ts filename="patterns/effect/store-setup/utils.ts"
1279
+
1280
+ // Common query atoms that can be reused
1281
+ export const todosQueryAtom = StoreTag.makeQuery(queryDb(tables.todos))
1282
+ export const todosQueryUnsafeAtom = StoreTag.makeQueryUnsafe(queryDb(tables.todos))
1283
+ export const usersQueryAtom = StoreTag.makeQuery(queryDb(tables.users))
1284
+ export const productsQueryAtom = StoreTag.makeQuery(queryDb(tables.products))
1285
+
1286
+ // Common types for optimistic updates
1287
+ export type PendingTodo = { id: string; text: string; completed: boolean }
1288
+ export type PendingUser = { id: string; name: string; email: string }
1289
+
1290
+ // Common pending state atoms
1291
+ export const pendingTodosAtom = Atom.make<PendingTodo[]>([])
1292
+ export const pendingUsersAtom = Atom.make<PendingUser[]>([])
1293
+ ```
1294
+
1295
+ #### Batch Operations
1296
+
1297
+ Perform multiple commits efficiently (commits are synchronous):
1298
+
1299
+ ## `patterns/effect/batch-example/batch.ts`
1300
+
1301
+ ```ts filename="patterns/effect/batch-example/batch.ts"
1302
+
1303
+ // Bulk update atom for batch operations
1304
+ export const bulkUpdateAtom = StoreTag.runtime.fn<string[]>()(
1305
+ Effect.fn(function* (ids, get) {
1306
+ const store = get(StoreTag.storeUnsafe)
1307
+ if (!store) return
1308
+
1309
+ // Commit multiple events synchronously
1310
+ for (const id of ids) {
1311
+ store.commit(events.itemUpdated({ id, status: 'processed' }))
1312
+ }
1313
+ }),
1314
+ )
1315
+ ```
1316
+
1317
+ ### `patterns/effect/store-setup/atoms.ts`
1318
+
1319
+ ```ts filename="patterns/effect/store-setup/atoms.ts"
1320
+
1321
+ export { schema } from './schema.ts'
1322
+
1323
+ // Create a persistent adapter with OPFS storage
1324
+ const adapter = makePersistedAdapter({
1325
+ storage: { type: 'opfs' },
1326
+ worker: LiveStoreWorker,
1327
+ sharedWorker: LiveStoreSharedWorker,
1328
+ })
1329
+
1330
+ // Define the store as a service tag
1331
+ export class StoreTag extends AtomLivestore.Tag<StoreTag>()('StoreTag', {
1332
+ schema,
1333
+ storeId: 'default',
1334
+ adapter,
1335
+ batchUpdates: unstable_batchedUpdates, // React batching for performance
1336
+ }) {}
1337
+ ```
1338
+
1339
+ ### `patterns/effect/store-setup/schema.ts`
1340
+
1341
+ ```ts filename="patterns/effect/store-setup/schema.ts"
1342
+
1343
+ // Define event payloads
1344
+ export const events = {
1345
+ userCreated: Events.clientOnly({
1346
+ name: 'userCreated',
1347
+ schema: Schema.Struct({
1348
+ id: Schema.String,
1349
+ name: Schema.String,
1350
+ email: Schema.String,
1351
+ }),
1352
+ }),
1353
+ userUpdated: Events.clientOnly({
1354
+ name: 'userUpdated',
1355
+ schema: Schema.Struct({
1356
+ id: Schema.String,
1357
+ name: Schema.optionalWith(Schema.String, { as: 'Option' }),
1358
+ email: Schema.optionalWith(Schema.String, { as: 'Option' }),
1359
+ isActive: Schema.optionalWith(Schema.Boolean, { as: 'Option' }),
1360
+ }),
1361
+ }),
1362
+ productCreated: Events.clientOnly({
1363
+ name: 'productCreated',
1364
+ schema: Schema.Struct({
1365
+ id: Schema.String,
1366
+ name: Schema.String,
1367
+ description: Schema.String,
1368
+ price: Schema.Number,
1369
+ }),
1370
+ }),
1371
+ productUpdated: Events.clientOnly({
1372
+ name: 'productUpdated',
1373
+ schema: Schema.Struct({
1374
+ id: Schema.String,
1375
+ name: Schema.optionalWith(Schema.String, { as: 'Option' }),
1376
+ description: Schema.optionalWith(Schema.String, { as: 'Option' }),
1377
+ price: Schema.optionalWith(Schema.Number, { as: 'Option' }),
1378
+ }),
1379
+ }),
1380
+ todoCreated: Events.clientOnly({
1381
+ name: 'todoCreated',
1382
+ schema: Schema.Struct({
1383
+ id: Schema.String,
1384
+ text: Schema.String,
1385
+ completed: Schema.Boolean,
1386
+ }),
1387
+ }),
1388
+ todoToggled: Events.clientOnly({
1389
+ name: 'todoToggled',
1390
+ schema: Schema.Struct({
1391
+ id: Schema.String,
1392
+ completed: Schema.Boolean,
1393
+ }),
1394
+ }),
1395
+ itemCreated: Events.clientOnly({
1396
+ name: 'itemCreated',
1397
+ schema: Schema.Struct({
1398
+ id: Schema.String,
1399
+ name: Schema.String,
1400
+ metadata: Schema.Record({ key: Schema.String, value: Schema.Unknown }),
1401
+ }),
1402
+ }),
1403
+ itemUpdated: Events.clientOnly({
1404
+ name: 'itemUpdated',
1405
+ schema: Schema.Struct({
1406
+ id: Schema.String,
1407
+ status: Schema.String,
1408
+ }),
1409
+ }),
1410
+ }
1411
+
1412
+ // Define tables
1413
+ const tables = {
1414
+ users: State.SQLite.table({
1415
+ name: 'users',
1416
+ columns: {
1417
+ id: State.SQLite.text({ primaryKey: true }),
1418
+ name: State.SQLite.text(),
1419
+ email: State.SQLite.text(),
1420
+ isActive: State.SQLite.boolean(),
1421
+ createdAt: State.SQLite.datetime(),
1422
+ },
1423
+ }),
1424
+ products: State.SQLite.table({
1425
+ name: 'products',
1426
+ columns: {
1427
+ id: State.SQLite.text({ primaryKey: true }),
1428
+ name: State.SQLite.text(),
1429
+ description: State.SQLite.text(),
1430
+ price: State.SQLite.real(),
1431
+ createdAt: State.SQLite.datetime(),
1432
+ },
1433
+ }),
1434
+ todos: State.SQLite.table({
1435
+ name: 'todos',
1436
+ columns: {
1437
+ id: State.SQLite.text({ primaryKey: true }),
1438
+ text: State.SQLite.text(),
1439
+ completed: State.SQLite.boolean(),
1440
+ createdAt: State.SQLite.datetime(),
1441
+ },
1442
+ }),
1443
+ }
1444
+
1445
+ // Define materializers
1446
+ const materializers = State.SQLite.materializers(events, {
1447
+ userCreated: ({ id, name, email }) => tables.users.insert({ id, name, email, isActive: true, createdAt: new Date() }),
1448
+ userUpdated: ({ id, name, email, isActive }) => {
1449
+ const updates: { name?: string; email?: string; isActive?: boolean } = {}
1450
+ if (Option.isSome(name)) updates.name = name.value
1451
+ if (Option.isSome(email)) updates.email = email.value
1452
+ if (Option.isSome(isActive)) updates.isActive = isActive.value
1453
+ return tables.users.update(updates).where({ id })
1454
+ },
1455
+ todoCreated: ({ id, text, completed }) => tables.todos.insert({ id, text, completed, createdAt: new Date() }),
1456
+ todoToggled: ({ id, completed }) => tables.todos.update({ completed }).where({ id }),
1457
+ productCreated: ({ id, name, description, price }) =>
1458
+ tables.products.insert({ id, name, description, price, createdAt: new Date() }),
1459
+ productUpdated: ({ id, name, description, price }) => {
1460
+ const updates: { name?: string; description?: string; price?: number } = {}
1461
+ if (Option.isSome(name)) updates.name = name.value
1462
+ if (Option.isSome(description)) updates.description = description.value
1463
+ if (Option.isSome(price)) updates.price = price.value
1464
+ return tables.products.update(updates).where({ id })
1465
+ },
1466
+ itemCreated: () => [], // Item events don't have a corresponding table
1467
+ itemUpdated: () => [], // Item events don't have a corresponding table
1468
+ })
1469
+
1470
+ // Create state
1471
+ const state = State.SQLite.makeState({ tables, materializers })
1472
+
1473
+ // Create the store schema
1474
+ export const schema = makeSchema({ events, state })
1475
+
1476
+ export { tables }
1477
+ ```
1478
+
1479
+ ### Best Practices
1480
+
1481
+ 1. **Use `StoreTag.makeQuery` for queries**: This ensures proper Effect integration and error handling
1482
+ 2. **Leverage Effect services**: Integrate business logic through Effect services for better testability
1483
+ 3. **Handle loading states**: Use `Result.builder` pattern for consistent loading/error UI
1484
+ 4. **Batch React updates**: Always provide `batchUpdates` for better performance
1485
+ 5. **Label queries**: Add descriptive labels to queries for better debugging
1486
+ 6. **Type safety**: Let TypeScript infer types from schemas rather than manual annotations
1487
+
1488
+ ### Real-World Example
1489
+
1490
+ For a comprehensive example of LiveStore with Effect Atom in action, check out [Cheffect](https://github.com/tim-smart/cheffect) - a recipe management application that demonstrates:
1491
+ - Complete Effect service integration
1492
+ - AI-powered recipe extraction using Effect services
1493
+ - Complex query patterns with search and filtering
1494
+ - Worker-based persistence with OPFS
1495
+ - Production-ready error handling and logging