@seedprotocol/sdk 0.7.7 → 0.7.8-next.1066.gac32194

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 (302) hide show
  1. package/dist/{ClientManager-2GtDWHq6.js → ClientManager-Dcju5x4k.js} +835 -80
  2. package/dist/ClientManager-Dcju5x4k.js.map +1 -0
  3. package/dist/{Item-D6j0IvBP.js → Item-DZfNz7xl.js} +2145 -1354
  4. package/dist/Item-DZfNz7xl.js.map +1 -0
  5. package/dist/{ModelProperty-B52C3CQ2.js → ModelProperty-sMGL-_LK.js} +51 -52
  6. package/dist/ModelProperty-sMGL-_LK.js.map +1 -0
  7. package/dist/{Schema-O1QLoXv6.js → Schema-D-TczaIj.js} +106 -91
  8. package/dist/Schema-D-TczaIj.js.map +1 -0
  9. package/dist/{SchemaValidationService-BxCbfDaI.js → SchemaValidationService-NYTtSCxd.js} +6 -6
  10. package/dist/{SchemaValidationService-BxCbfDaI.js.map → SchemaValidationService-NYTtSCxd.js.map} +1 -1
  11. package/dist/{backfillMetadataPropertyIds-CzSbuucw.js → backfillMetadataPropertyIds-DEvD0OAT.js} +3 -3
  12. package/dist/{backfillMetadataPropertyIds-CzSbuucw.js.map → backfillMetadataPropertyIds-DEvD0OAT.js.map} +1 -1
  13. package/dist/{configurePlatform-Bbpw_R4y.js → configurePlatform-CtA7fydC.js} +2 -2
  14. package/dist/{configurePlatform-Bbpw_R4y.js.map → configurePlatform-CtA7fydC.js.map} +1 -1
  15. package/dist/db/drizzle/0020_add_pending_writes.sql +24 -0
  16. package/dist/db/drizzle/0021_add_pending_write_error_name.sql +1 -0
  17. package/dist/db/drizzle/meta/0020_snapshot.json +1542 -0
  18. package/dist/db/drizzle/meta/0021_snapshot.json +1549 -0
  19. package/dist/db/drizzle/meta/_journal.json +14 -0
  20. package/dist/{detachRowsBeforeDelete-D1TyEMco.js → detachRowsBeforeDelete-CLbBbpX4.js} +2 -2
  21. package/dist/{detachRowsBeforeDelete-D1TyEMco.js.map → detachRowsBeforeDelete-CLbBbpX4.js.map} +1 -1
  22. package/dist/dist/{ClientManager-2GtDWHq6.d.ts → ClientManager-Dcju5x4k.d.ts} +393 -292
  23. package/dist/dist/ClientManager-Dcju5x4k.d.ts.map +1 -0
  24. package/dist/dist/{Item-D6j0IvBP.d.ts → Item-DZfNz7xl.d.ts} +456 -266
  25. package/dist/dist/Item-DZfNz7xl.d.ts.map +1 -0
  26. package/dist/dist/{ModelProperty-B52C3CQ2.d.ts → ModelProperty-sMGL-_LK.d.ts} +1 -1
  27. package/dist/dist/{ModelProperty-B52C3CQ2.d.ts.map → ModelProperty-sMGL-_LK.d.ts.map} +1 -1
  28. package/dist/dist/{Schema-O1QLoXv6.d.ts → Schema-D-TczaIj.d.ts} +11 -4
  29. package/dist/dist/Schema-D-TczaIj.d.ts.map +1 -0
  30. package/dist/dist/{SchemaValidationService-BxCbfDaI.d.ts → SchemaValidationService-NYTtSCxd.d.ts} +1 -1
  31. package/dist/dist/{SchemaValidationService-BxCbfDaI.d.ts.map → SchemaValidationService-NYTtSCxd.d.ts.map} +1 -1
  32. package/dist/dist/{backfillMetadataPropertyIds-CzSbuucw.d.ts → backfillMetadataPropertyIds-DEvD0OAT.d.ts} +1 -1
  33. package/dist/dist/backfillMetadataPropertyIds-DEvD0OAT.d.ts.map +1 -0
  34. package/dist/dist/{configurePlatform-Bbpw_R4y.d.ts → configurePlatform-CtA7fydC.d.ts} +1 -1
  35. package/dist/dist/configurePlatform-CtA7fydC.d.ts.map +1 -0
  36. package/dist/dist/{detachRowsBeforeDelete-D1TyEMco.d.ts → detachRowsBeforeDelete-CLbBbpX4.d.ts} +1 -1
  37. package/dist/dist/detachRowsBeforeDelete-CLbBbpX4.d.ts.map +1 -0
  38. package/dist/dist/{eas-DOdj-EMK.d.ts → eas-CcpQiXum.d.ts} +1 -1
  39. package/dist/dist/eas-CcpQiXum.d.ts.map +1 -0
  40. package/dist/dist/{errors-KM-yq2MD.d.ts → errors-BGk_IJO5.d.ts} +39 -24
  41. package/dist/dist/errors-BGk_IJO5.d.ts.map +1 -0
  42. package/dist/dist/{getItem-Bh0zv-o1.d.ts → getItem-CHSX3aMm.d.ts} +1 -1
  43. package/dist/dist/getItem-CHSX3aMm.d.ts.map +1 -0
  44. package/dist/dist/{getPublishPayload-oH8wJhnH.d.ts → getPublishPayload-DMd4oLir.d.ts} +1 -1
  45. package/dist/dist/getPublishPayload-DMd4oLir.d.ts.map +1 -0
  46. package/dist/dist/{getPublishUploads-Cex-NBe6.d.ts → getPublishUploads-C9FnRG9c.d.ts} +1 -1
  47. package/dist/dist/{getPublishUploads-Cex-NBe6.d.ts.map → getPublishUploads-C9FnRG9c.d.ts.map} +1 -1
  48. package/dist/dist/{index-BbFwftAv.d.ts → index-C--KAWoe.d.ts} +378 -1
  49. package/dist/dist/{index-BbFwftAv.d.ts.map → index-C--KAWoe.d.ts.map} +1 -1
  50. package/dist/dist/{index-DpgQMIRq.d.ts → index-CI0NFf4B.d.ts} +836 -426
  51. package/dist/dist/index-CI0NFf4B.d.ts.map +1 -0
  52. package/dist/dist/{index-BAao3_Po.d.ts → index-Ccmd9_KY.d.ts} +5 -5
  53. package/dist/dist/index-Ccmd9_KY.d.ts.map +1 -0
  54. package/dist/dist/index-l3b6p1Ih.d.ts +14 -0
  55. package/dist/dist/index-l3b6p1Ih.d.ts.map +1 -0
  56. package/dist/dist/{index.browser-nndbVM7z.d.ts → index.browser-kY8M-xUA.d.ts} +2892 -1754
  57. package/dist/dist/{index.browser-nndbVM7z.d.ts.map → index.browser-kY8M-xUA.d.ts.map} +1 -1
  58. package/dist/dist/{index.node-BUfx-JaP.d.ts → index.node-Ba2KbmOq.d.ts} +4125 -2613
  59. package/dist/dist/{index.node-BUfx-JaP.d.ts.map → index.node-Ba2KbmOq.d.ts.map} +1 -1
  60. package/dist/dist/platform.browser.d.ts +2 -2
  61. package/dist/dist/platform.node.d.ts +2 -2
  62. package/dist/dist/{property-BDBvImLs.d.ts → property-CO7pKTWK.d.ts} +3 -3
  63. package/dist/dist/property-CO7pKTWK.d.ts.map +1 -0
  64. package/dist/dist/{propertyValidationRules-BlfLn4rP.d.ts → propertyValidationRules-D5HZy0Bq.d.ts} +1 -1
  65. package/dist/dist/propertyValidationRules-D5HZy0Bq.d.ts.map +1 -0
  66. package/dist/dist/{publishDraftGraph-CLO85LLz.d.ts → publishDraftGraph-B5KPqtbg.d.ts} +1 -1
  67. package/dist/dist/{publishDraftGraph-CLO85LLz.d.ts.map → publishDraftGraph-B5KPqtbg.d.ts.map} +1 -1
  68. package/dist/dist/{resetAmbiguousLegacyItemData-Cy8ik7xk.d.ts → resetAmbiguousLegacyItemData-77CZ8HT7.d.ts} +1 -1
  69. package/dist/dist/resetAmbiguousLegacyItemData-77CZ8HT7.d.ts.map +1 -0
  70. package/dist/dist/{resolveModelForSyncedSeed-DFr4COc4.d.ts → resolveModelForSyncedSeed-DHOq_FGs.d.ts} +1 -1
  71. package/dist/dist/resolveModelForSyncedSeed-DHOq_FGs.d.ts.map +1 -0
  72. package/dist/dist/{syncDbWithEas-CAOlw3i-.d.ts → syncDbWithEas-BZ6AI-IC.d.ts} +1 -1
  73. package/dist/dist/syncDbWithEas-BZ6AI-IC.d.ts.map +1 -0
  74. package/dist/dist/{tabEvents-DksXwk3X.d.ts → tabEvents-CIlzHSKZ.d.ts} +35 -18
  75. package/dist/dist/tabEvents-CIlzHSKZ.d.ts.map +1 -0
  76. package/dist/dist/{tolerantWebAccess-CEIjFGf0.d.ts → tolerantWebAccess-BwJ8bElF.d.ts} +1 -1
  77. package/dist/dist/{tolerantWebAccess-CEIjFGf0.d.ts.map → tolerantWebAccess-BwJ8bElF.d.ts.map} +1 -1
  78. package/dist/dist/{updateSeedRevokedAt-Cjr35YjE.d.ts → updateSeedRevokedAt-ClxMSXcB.d.ts} +1 -1
  79. package/dist/dist/updateSeedRevokedAt-ClxMSXcB.d.ts.map +1 -0
  80. package/dist/{eas-DOdj-EMK.js → eas-CcpQiXum.js} +4 -4
  81. package/dist/{eas-DOdj-EMK.js.map → eas-CcpQiXum.js.map} +1 -1
  82. package/dist/{errors-KM-yq2MD.js → errors-BGk_IJO5.js} +222 -275
  83. package/dist/errors-BGk_IJO5.js.map +1 -0
  84. package/dist/{getItem-Bh0zv-o1.js → getItem-CHSX3aMm.js} +5 -5
  85. package/dist/{getItem-Bh0zv-o1.js.map → getItem-CHSX3aMm.js.map} +1 -1
  86. package/dist/{getPublishPayload-oH8wJhnH.js → getPublishPayload-DMd4oLir.js} +18 -15
  87. package/dist/getPublishPayload-DMd4oLir.js.map +1 -0
  88. package/dist/{getPublishUploads-Cex-NBe6.js → getPublishUploads-C9FnRG9c.js} +9 -6
  89. package/dist/getPublishUploads-C9FnRG9c.js.map +1 -0
  90. package/dist/{index-BbFwftAv.js → index-C--KAWoe.js} +3 -2
  91. package/dist/index-C--KAWoe.js.map +1 -0
  92. package/dist/{index-DpgQMIRq.js → index-CI0NFf4B.js} +132 -9
  93. package/dist/index-CI0NFf4B.js.map +1 -0
  94. package/dist/{index-BAao3_Po.js → index-Ccmd9_KY.js} +8 -8
  95. package/dist/index-Ccmd9_KY.js.map +1 -0
  96. package/dist/index-l3b6p1Ih.js +28 -0
  97. package/dist/index-l3b6p1Ih.js.map +1 -0
  98. package/dist/{index.browser-nndbVM7z.js → index.browser-kY8M-xUA.js} +284 -73
  99. package/dist/index.browser-kY8M-xUA.js.map +1 -0
  100. package/dist/{index.node-BUfx-JaP.js → index.node-Ba2KbmOq.js} +93 -6
  101. package/dist/index.node-Ba2KbmOq.js.map +1 -0
  102. package/dist/main.js +84 -26
  103. package/dist/main.js.map +1 -1
  104. package/dist/node.js +11 -11
  105. package/dist/platform.browser.js +5 -5
  106. package/dist/platform.node.js +4 -4
  107. package/dist/{property-BDBvImLs.js → property-CO7pKTWK.js} +9 -11
  108. package/dist/property-CO7pKTWK.js.map +1 -0
  109. package/dist/{propertyValidationRules-BlfLn4rP.js → propertyValidationRules-D5HZy0Bq.js} +10 -10
  110. package/dist/{propertyValidationRules-BlfLn4rP.js.map → propertyValidationRules-D5HZy0Bq.js.map} +1 -1
  111. package/dist/{publishDraftGraph-CLO85LLz.js → publishDraftGraph-B5KPqtbg.js} +6 -6
  112. package/dist/{publishDraftGraph-CLO85LLz.js.map → publishDraftGraph-B5KPqtbg.js.map} +1 -1
  113. package/dist/{resetAmbiguousLegacyItemData-Cy8ik7xk.js → resetAmbiguousLegacyItemData-77CZ8HT7.js} +2 -2
  114. package/dist/{resetAmbiguousLegacyItemData-Cy8ik7xk.js.map → resetAmbiguousLegacyItemData-77CZ8HT7.js.map} +1 -1
  115. package/dist/{resolveModelForSyncedSeed-DFr4COc4.js → resolveModelForSyncedSeed-DHOq_FGs.js} +2 -2
  116. package/dist/{resolveModelForSyncedSeed-DFr4COc4.js.map → resolveModelForSyncedSeed-DHOq_FGs.js.map} +1 -1
  117. package/dist/seedSchema/PendingWriteSchema.ts +57 -0
  118. package/dist/seedSchema/index.ts +1 -0
  119. package/dist/src/Item/Item.d.ts +38 -7
  120. package/dist/src/Item/Item.d.ts.map +1 -1
  121. package/dist/src/Item/service/itemMachineSingle.d.ts.map +1 -1
  122. package/dist/src/ItemProperty/ItemProperty.d.ts +66 -9
  123. package/dist/src/ItemProperty/ItemProperty.d.ts.map +1 -1
  124. package/dist/src/ItemProperty/service/actors/hydrateFromDb.d.ts.map +1 -1
  125. package/dist/src/ItemProperty/service/actors/loadOrCreateProperty.d.ts.map +1 -1
  126. package/dist/src/ItemProperty/service/actors/saveValueToDb/analyzeInput.d.ts.map +1 -1
  127. package/dist/src/ItemProperty/service/actors/saveValueToDb/saveFile.d.ts.map +1 -1
  128. package/dist/src/ItemProperty/service/actors/saveValueToDb/saveHtml.d.ts.map +1 -1
  129. package/dist/src/ItemProperty/service/actors/saveValueToDb/saveImage.d.ts.map +1 -1
  130. package/dist/src/ItemProperty/service/actors/saveValueToDb/saveItemStorage.d.ts +5 -0
  131. package/dist/src/ItemProperty/service/actors/saveValueToDb/saveItemStorage.d.ts.map +1 -1
  132. package/dist/src/ItemProperty/service/actors/saveValueToDb/storageValue.d.ts +22 -0
  133. package/dist/src/ItemProperty/service/actors/saveValueToDb/storageValue.d.ts.map +1 -0
  134. package/dist/src/ItemProperty/service/propertyMachine.d.ts.map +1 -1
  135. package/dist/src/Model/Model.d.ts +50 -9
  136. package/dist/src/Model/Model.d.ts.map +1 -1
  137. package/dist/src/Model/service/actors/validateModel.d.ts.map +1 -1
  138. package/dist/src/ModelProperty/ModelProperty.d.ts.map +1 -1
  139. package/dist/src/ModelProperty/service/actors/compareAndMarkDraft.d.ts.map +1 -1
  140. package/dist/src/ModelProperty/service/actors/validateProperty.d.ts.map +1 -1
  141. package/dist/src/Schema/Schema.d.ts +22 -3
  142. package/dist/src/Schema/Schema.d.ts.map +1 -1
  143. package/dist/src/Schema/service/actors/checkExistingSchema.d.ts.map +1 -1
  144. package/dist/src/Schema/service/actors/createModelInstances.d.ts.map +1 -1
  145. package/dist/src/Schema/service/actors/loadOrCreateSchema.d.ts.map +1 -1
  146. package/dist/src/browser/db/Db.d.ts +7 -0
  147. package/dist/src/browser/db/Db.d.ts.map +1 -1
  148. package/dist/src/browser/db/drizzleFiles.d.ts +4 -2
  149. package/dist/src/browser/db/drizzleFiles.d.ts.map +1 -1
  150. package/dist/src/browser/db/sqliteBusyRetry.d.ts.map +1 -1
  151. package/dist/src/browser/helpers/EasClient.d.ts +1 -1
  152. package/dist/src/browser/helpers/EasClient.d.ts.map +1 -1
  153. package/dist/src/browser/helpers/FileManager.d.ts.map +1 -1
  154. package/dist/src/client/ClientManager.d.ts +13 -0
  155. package/dist/src/client/ClientManager.d.ts.map +1 -1
  156. package/dist/src/client/actors/saveConfig.d.ts.map +1 -1
  157. package/dist/src/client/addressesPersisted.d.ts +10 -0
  158. package/dist/src/client/addressesPersisted.d.ts.map +1 -0
  159. package/dist/src/client/clientManagerMachine.d.ts.map +1 -1
  160. package/dist/src/db/Db/BaseDb.d.ts +10 -0
  161. package/dist/src/db/Db/BaseDb.d.ts.map +1 -1
  162. package/dist/src/db/read/getItemProperties.d.ts.map +1 -1
  163. package/dist/src/db/read/getPublishPayload.d.ts.map +1 -1
  164. package/dist/src/db/read/getPublishUploads.d.ts.map +1 -1
  165. package/dist/src/db/read/getSeedData.d.ts +4 -1
  166. package/dist/src/db/read/getSeedData.d.ts.map +1 -1
  167. package/dist/src/db/read/getSeedPublisher.d.ts +4 -1
  168. package/dist/src/db/read/getSeedPublisher.d.ts.map +1 -1
  169. package/dist/src/db/read/getVersionData.d.ts +4 -1
  170. package/dist/src/db/read/getVersionData.d.ts.map +1 -1
  171. package/dist/src/db/write/claimUnpublishedDrafts.d.ts +6 -0
  172. package/dist/src/db/write/claimUnpublishedDrafts.d.ts.map +1 -1
  173. package/dist/src/db/write/createMetadata.d.ts +13 -0
  174. package/dist/src/db/write/createMetadata.d.ts.map +1 -1
  175. package/dist/src/db/write/createNewItem.d.ts +5 -0
  176. package/dist/src/db/write/createNewItem.d.ts.map +1 -1
  177. package/dist/src/db/write/createSeed.d.ts +20 -1
  178. package/dist/src/db/write/createSeed.d.ts.map +1 -1
  179. package/dist/src/db/write/createVersion.d.ts +5 -1
  180. package/dist/src/db/write/createVersion.d.ts.map +1 -1
  181. package/dist/src/db/write/removeLocalCopiesForAddresses.d.ts +9 -2
  182. package/dist/src/db/write/removeLocalCopiesForAddresses.d.ts.map +1 -1
  183. package/dist/src/db/write/updateItemPropertyValue.d.ts +9 -1
  184. package/dist/src/db/write/updateItemPropertyValue.d.ts.map +1 -1
  185. package/dist/src/db/write/updateMetadata.d.ts +8 -1
  186. package/dist/src/db/write/updateMetadata.d.ts.map +1 -1
  187. package/dist/src/events/item/syncDbWithEas.d.ts.map +1 -1
  188. package/dist/src/helpers/db.d.ts +4 -2
  189. package/dist/src/helpers/db.d.ts.map +1 -1
  190. package/dist/src/helpers/entity/entityCache.d.ts +2 -42
  191. package/dist/src/helpers/entity/entityCache.d.ts.map +1 -1
  192. package/dist/src/helpers/entity/entityCommon.d.ts +9 -0
  193. package/dist/src/helpers/entity/entityCommon.d.ts.map +1 -1
  194. package/dist/src/helpers/entity/entityDestroy.d.ts +13 -7
  195. package/dist/src/helpers/entity/entityDestroy.d.ts.map +1 -1
  196. package/dist/src/helpers/entity/entityLiveQuery.d.ts +3 -2
  197. package/dist/src/helpers/entity/entityLiveQuery.d.ts.map +1 -1
  198. package/dist/src/helpers/entity/entityState.d.ts +28 -0
  199. package/dist/src/helpers/entity/entityState.d.ts.map +1 -0
  200. package/dist/src/helpers/entity/entityUnload.d.ts +3 -2
  201. package/dist/src/helpers/entity/entityUnload.d.ts.map +1 -1
  202. package/dist/src/helpers/entity/index.d.ts +1 -0
  203. package/dist/src/helpers/entity/index.d.ts.map +1 -1
  204. package/dist/src/helpers/itemStorageFile.d.ts +7 -0
  205. package/dist/src/helpers/itemStorageFile.d.ts.map +1 -1
  206. package/dist/src/helpers/metadataPropertyNames.d.ts +6 -0
  207. package/dist/src/helpers/metadataPropertyNames.d.ts.map +1 -1
  208. package/dist/src/helpers/property.d.ts.map +1 -1
  209. package/dist/src/helpers/propertySchemaUid.d.ts +13 -0
  210. package/dist/src/helpers/propertySchemaUid.d.ts.map +1 -0
  211. package/dist/src/helpers/propertyWriteTickets.d.ts +11 -0
  212. package/dist/src/helpers/propertyWriteTickets.d.ts.map +1 -0
  213. package/dist/src/helpers/reactiveProxy.d.ts +18 -0
  214. package/dist/src/helpers/reactiveProxy.d.ts.map +1 -1
  215. package/dist/src/helpers/sessionObjectUrls.d.ts +4 -0
  216. package/dist/src/helpers/sessionObjectUrls.d.ts.map +1 -0
  217. package/dist/src/helpers/tabCoordinator.d.ts +9 -0
  218. package/dist/src/helpers/tabCoordinator.d.ts.map +1 -1
  219. package/dist/src/helpers/tabLocks.d.ts +11 -0
  220. package/dist/src/helpers/tabLocks.d.ts.map +1 -1
  221. package/dist/src/helpers/timing.d.ts +10 -0
  222. package/dist/src/helpers/timing.d.ts.map +1 -0
  223. package/dist/src/imports/json.d.ts.map +1 -1
  224. package/dist/src/index.d.ts +1 -0
  225. package/dist/src/index.d.ts.map +1 -1
  226. package/dist/src/interfaces/IDb.d.ts +2 -0
  227. package/dist/src/interfaces/IDb.d.ts.map +1 -1
  228. package/dist/src/interfaces/IItem.d.ts +1 -0
  229. package/dist/src/interfaces/IItem.d.ts.map +1 -1
  230. package/dist/src/interfaces/IItemProperty.d.ts +5 -0
  231. package/dist/src/interfaces/IItemProperty.d.ts.map +1 -1
  232. package/dist/src/node/db/Db.d.ts +3 -0
  233. package/dist/src/node/db/Db.d.ts.map +1 -1
  234. package/dist/src/node/db/singleConnectionTransactions.d.ts +22 -0
  235. package/dist/src/node/db/singleConnectionTransactions.d.ts.map +1 -0
  236. package/dist/src/outbox/conflicts.d.ts +60 -0
  237. package/dist/src/outbox/conflicts.d.ts.map +1 -0
  238. package/dist/src/outbox/index.d.ts +9 -0
  239. package/dist/src/outbox/index.d.ts.map +1 -0
  240. package/dist/src/outbox/itemAppliers.d.ts +153 -0
  241. package/dist/src/outbox/itemAppliers.d.ts.map +1 -0
  242. package/dist/src/outbox/outbox.d.ts +143 -0
  243. package/dist/src/outbox/outbox.d.ts.map +1 -0
  244. package/dist/src/outbox/pendingValues.d.ts +27 -0
  245. package/dist/src/outbox/pendingValues.d.ts.map +1 -0
  246. package/dist/src/seedSchema/PendingWriteSchema.d.ts +385 -0
  247. package/dist/src/seedSchema/PendingWriteSchema.d.ts.map +1 -0
  248. package/dist/src/seedSchema/index.d.ts +1 -0
  249. package/dist/src/seedSchema/index.d.ts.map +1 -1
  250. package/dist/src/types/property.d.ts +5 -0
  251. package/dist/src/types/property.d.ts.map +1 -1
  252. package/dist/{syncDbWithEas-CAOlw3i-.js → syncDbWithEas-BZ6AI-IC.js} +25 -20
  253. package/dist/syncDbWithEas-BZ6AI-IC.js.map +1 -0
  254. package/dist/{tabEvents-DksXwk3X.js → tabEvents-CIlzHSKZ.js} +56 -25
  255. package/dist/tabEvents-CIlzHSKZ.js.map +1 -0
  256. package/dist/{tolerantWebAccess-CEIjFGf0.js → tolerantWebAccess-BwJ8bElF.js} +6 -6
  257. package/dist/{tolerantWebAccess-CEIjFGf0.js.map → tolerantWebAccess-BwJ8bElF.js.map} +1 -1
  258. package/dist/{updateSeedRevokedAt-Cjr35YjE.js → updateSeedRevokedAt-ClxMSXcB.js} +3 -3
  259. package/dist/{updateSeedRevokedAt-Cjr35YjE.js.map → updateSeedRevokedAt-ClxMSXcB.js.map} +1 -1
  260. package/package.json +7 -7
  261. package/dist/ClientManager-2GtDWHq6.js.map +0 -1
  262. package/dist/Item-D6j0IvBP.js.map +0 -1
  263. package/dist/ModelProperty-B52C3CQ2.js.map +0 -1
  264. package/dist/Schema-O1QLoXv6.js.map +0 -1
  265. package/dist/discardNewDraft-hiVaUVjV.js +0 -78
  266. package/dist/discardNewDraft-hiVaUVjV.js.map +0 -1
  267. package/dist/dist/ClientManager-2GtDWHq6.d.ts.map +0 -1
  268. package/dist/dist/Item-D6j0IvBP.d.ts.map +0 -1
  269. package/dist/dist/Schema-O1QLoXv6.d.ts.map +0 -1
  270. package/dist/dist/backfillMetadataPropertyIds-CzSbuucw.d.ts.map +0 -1
  271. package/dist/dist/configurePlatform-Bbpw_R4y.d.ts.map +0 -1
  272. package/dist/dist/detachRowsBeforeDelete-D1TyEMco.d.ts.map +0 -1
  273. package/dist/dist/discardNewDraft-hiVaUVjV.d.ts +0 -8
  274. package/dist/dist/discardNewDraft-hiVaUVjV.d.ts.map +0 -1
  275. package/dist/dist/eas-DOdj-EMK.d.ts.map +0 -1
  276. package/dist/dist/errors-KM-yq2MD.d.ts.map +0 -1
  277. package/dist/dist/getItem-Bh0zv-o1.d.ts.map +0 -1
  278. package/dist/dist/getPublishPayload-oH8wJhnH.d.ts.map +0 -1
  279. package/dist/dist/index-BAao3_Po.d.ts.map +0 -1
  280. package/dist/dist/index-DpgQMIRq.d.ts.map +0 -1
  281. package/dist/dist/property-BDBvImLs.d.ts.map +0 -1
  282. package/dist/dist/propertyValidationRules-BlfLn4rP.d.ts.map +0 -1
  283. package/dist/dist/resetAmbiguousLegacyItemData-Cy8ik7xk.d.ts.map +0 -1
  284. package/dist/dist/resolveModelForSyncedSeed-DFr4COc4.d.ts.map +0 -1
  285. package/dist/dist/syncDbWithEas-CAOlw3i-.d.ts.map +0 -1
  286. package/dist/dist/tabEvents-DksXwk3X.d.ts.map +0 -1
  287. package/dist/dist/updateSeedRevokedAt-Cjr35YjE.d.ts.map +0 -1
  288. package/dist/errors-KM-yq2MD.js.map +0 -1
  289. package/dist/getPublishPayload-oH8wJhnH.js.map +0 -1
  290. package/dist/getPublishUploads-Cex-NBe6.js.map +0 -1
  291. package/dist/index-BAao3_Po.js.map +0 -1
  292. package/dist/index-BbFwftAv.js.map +0 -1
  293. package/dist/index-DpgQMIRq.js.map +0 -1
  294. package/dist/index.browser-nndbVM7z.js.map +0 -1
  295. package/dist/index.node-BUfx-JaP.js.map +0 -1
  296. package/dist/property-BDBvImLs.js.map +0 -1
  297. package/dist/src/db/write/discardNewDraft.d.ts +0 -8
  298. package/dist/src/db/write/discardNewDraft.d.ts.map +0 -1
  299. package/dist/src/helpers/propertyWriteQueue.d.ts +0 -15
  300. package/dist/src/helpers/propertyWriteQueue.d.ts.map +0 -1
  301. package/dist/syncDbWithEas-CAOlw3i-.js.map +0 -1
  302. package/dist/tabEvents-DksXwk3X.js.map +0 -1
@@ -1,8 +1,8 @@
1
1
  /**
2
- * Subdirectory (relative to the files root, no leading slash) for an ItemStorage property's file:
3
- * its model's `storage.path` (`localStorageDir`), else `files`.
2
+ * Tags for one upload, in the order every upload uses: content hash, content type, then any
3
+ * configured extra tags (e.g. App-Name from `arweaveUploadTags`).
4
4
  */
5
- declare function getItemStorageSubdir(localStorageDir: any): any;
5
+ declare function buildArweaveContentTags(contentHash: any, contentType: any, extra: any): any[];
6
6
  declare const schemas: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
7
7
  name: "schemas";
8
8
  schema: undefined;
@@ -169,29 +169,6 @@ declare const schemas: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<
169
169
  };
170
170
  dialect: "sqlite";
171
171
  }>;
172
- declare class BaseDb {
173
- static configure(impl: any): void;
174
- static requireImpl(): any;
175
- static getAppDb(): any;
176
- static prepareDb(filesDir: any, config: any): any;
177
- static isAppDbReady(): any;
178
- static connectToDb(pathToDir: any): any;
179
- static migrate(pathToDbDir: any, dbName: any, dbId: any): Promise<any>;
180
- /**
181
- * Execute a reactive query that emits new results whenever the underlying data changes.
182
- *
183
- * Supports two usage patterns:
184
- * 1. SQL tag function (browser only): liveQuery((sql) => sql`SELECT * FROM models`)
185
- * 2. Drizzle query builder: liveQuery(db.select().from(models))
186
- *
187
- * On Node only the query builder works (a tag function throws), and it is re-run every second;
188
- * the observable emits when the result changes.
189
- */
190
- static liveQuery(query: any): any;
191
- }
192
- declare namespace BaseDb {
193
- let _impl: any;
194
- }
195
172
  declare const seeds: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
196
173
  name: "seeds";
197
174
  schema: undefined;
@@ -417,8 +394,6 @@ declare const seeds: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
417
394
  };
418
395
  dialect: "sqlite";
419
396
  }>;
420
- /** Default maximum length for Text properties when not explicitly set. Html holds arbitrary-length content and does not use this limit. */
421
- declare const DEFAULT_TEXT_MAX_LENGTH: 255;
422
397
  declare const uploadProcesses: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
423
398
  name: "upload_processes";
424
399
  schema: undefined;
@@ -551,6 +526,8 @@ declare const uploadProcesses: import("drizzle-orm/sqlite-core").SQLiteTableWith
551
526
  };
552
527
  dialect: "sqlite";
553
528
  }>;
529
+ /** Default maximum length for Text properties when not explicitly set. Html holds arbitrary-length content and does not use this limit. */
530
+ declare const DEFAULT_TEXT_MAX_LENGTH: 255;
554
531
  declare const versions: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
555
532
  name: "versions";
556
533
  schema: undefined;
@@ -778,6 +755,39 @@ declare const versions: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns
778
755
  };
779
756
  dialect: "sqlite";
780
757
  }>;
758
+ declare class BaseDb {
759
+ static configure(impl: any): void;
760
+ static requireImpl(): any;
761
+ static getAppDb(): any;
762
+ static prepareDb(filesDir: any, config: any): any;
763
+ static isAppDbReady(): any;
764
+ static connectToDb(pathToDir: any): any;
765
+ static migrate(pathToDbDir: any, dbName: any, dbId: any): Promise<any>;
766
+ /**
767
+ * Execute a reactive query that emits new results whenever the underlying data changes.
768
+ *
769
+ * Supports two usage patterns:
770
+ * 1. SQL tag function (browser only): liveQuery((sql) => sql`SELECT * FROM models`)
771
+ * 2. Drizzle query builder: liveQuery(db.select().from(models))
772
+ *
773
+ * On Node only the query builder works (a tag function throws), and it is re-run every second;
774
+ * the observable emits when the result changes.
775
+ */
776
+ static liveQuery(query: any): any;
777
+ /**
778
+ * Runs `fn` in one transaction: every query it runs on `tx` (a Drizzle database, used like
779
+ * `getAppDb()`) commits together, or none does when `fn` throws. Queries on `getAppDb()` inside
780
+ * `fn` are not part of the transaction, and in the browser they wait for it to end, so don't
781
+ * call `getAppDb()` or `BaseDb.transaction` from `fn`.
782
+ *
783
+ * When another connection (another tab) holds the database lock, the whole transaction is
784
+ * retried, so `fn` must have no side effects outside `tx`.
785
+ */
786
+ static transaction(fn: any): Promise<any>;
787
+ }
788
+ declare namespace BaseDb {
789
+ let _impl: any;
790
+ }
781
791
  /**
782
792
  * Reverse of listRelationStoragePropertyName: maps DB/EAS name `authorIdentityIds` to schema key `authors`.
783
793
  */
@@ -800,9 +810,10 @@ declare function nameMatchLevels(db?: any): Promise<any>;
800
810
  * @param modelNameOrType - Model name (PascalCase) or model type (snake_case)
801
811
  * @param propertyName - Property name as stored in metadata (may have Id/Ids suffix)
802
812
  * @param scope - Which model is meant when several schemas define one with this name
813
+ * @param db - The database or transaction to read; the app database by default
803
814
  * @returns properties.id or null if not found
804
815
  */
805
- declare function getPropertyIdForModelAndName(modelNameOrType: any, propertyName: any, scope?: {}): Promise<any>;
816
+ declare function getPropertyIdForModelAndName(modelNameOrType: any, propertyName: any, scope?: {}, db?: any): Promise<any>;
806
817
  /**
807
818
  * Work out which model (schemaFileId) an item belongs to from whatever is at hand: an explicit
808
819
  * modelFileId, the seed's model_file_id, or a metadata row's property_id → properties.model_id.
@@ -812,6 +823,79 @@ declare function resolveItemModelFileId(hints: any, db?: any): Promise<any>;
812
823
  * Enum for all property data types
813
824
  */
814
825
  declare var ModelPropertyDataTypes: any;
826
+ declare class BaseFileManager {
827
+ static configure(impl: any): void;
828
+ static requireImpl(): any;
829
+ /**
830
+ * Clears FS init flags so a later call can retry. Used after a failed init
831
+ * and by tests. Does not unmount or delete any files.
832
+ */
833
+ static resetInitializationState(): void;
834
+ static initializeFileSystem(workingDir: any): Promise<void>;
835
+ static runInitializeFileSystem(workingDir: any): Promise<void>;
836
+ static getWorkingDir(): any;
837
+ /**
838
+ * Build a path under the configured files root (e.g. /app-files).
839
+ * Use this instead of hardcoding /files/ for images, html, json, etc.
840
+ * @param subpaths - path segments to join (e.g. 'images', fileName)
841
+ * @returns full path like /app-files/images/egg.jpg
842
+ */
843
+ static getFilesPath(...subpaths: any[]): string;
844
+ static getContentUrlFromPath(path: any): any;
845
+ static downloadAllFiles(params: any): any;
846
+ static downloadFileByTransactionId({ transactionId, arweaveHost, arweaveBaseUrls, excludedTransactions, expectedContentHash, compositeChildPaths, }: {
847
+ transactionId: any;
848
+ arweaveHost: any;
849
+ arweaveBaseUrls: any;
850
+ excludedTransactions: any;
851
+ expectedContentHash: any;
852
+ compositeChildPaths: any;
853
+ }): any;
854
+ static resizeImage({ filePath, width, height }: {
855
+ filePath: any;
856
+ width: any;
857
+ height: any;
858
+ }): any;
859
+ static resizeAllImages({ width, height }: {
860
+ width: any;
861
+ height: any;
862
+ }): any;
863
+ static pathExists(filePath: any): any;
864
+ static invalidateCachedPaths(filePaths: any): any;
865
+ /** File size in bytes, or null if the path does not exist / cannot be stated. */
866
+ static getFileSize(filePath: any): any;
867
+ /**
868
+ * Returns a list of filenames in the given directory (e.g. 'images', 'files').
869
+ */
870
+ static listFiles(dir: any): any;
871
+ /**
872
+ * Returns a list of image filenames in the images folder (originals only, excludes size subdirs).
873
+ * Use this to get all stored images without traversing 480/760/1024/1440/1920 subdirectories.
874
+ */
875
+ static listImageFiles(): any;
876
+ static createDirIfNotExists(filePath: any): any;
877
+ static waitForFile(filePath: any): Promise<any>;
878
+ static waitForFileWithContent(filePath: any, interval: any, timeout: any): Promise<any>;
879
+ static saveFile(filePath: any, content: any): Promise<any>;
880
+ static saveFileSync(filePath: any, content: any): any;
881
+ static readFile(filePath: any): Promise<any>;
882
+ static readFileSync(filePath: any): any;
883
+ static readFileAsBuffer(filePath: any): Promise<any>;
884
+ static readFileAsString(filePath: any): Promise<any>;
885
+ static getFs(): Promise<any>;
886
+ static getFsSync(): any;
887
+ static getPathModule(): any;
888
+ static getParentDirPath(filePath: any): any;
889
+ static getFilenameFromPath(filePath: any): any;
890
+ }
891
+ declare namespace BaseFileManager {
892
+ export let fileSystemInitialized: boolean | undefined;
893
+ export let initializing: boolean | undefined;
894
+ export let initializePromise: Promise<void> | null | undefined;
895
+ export let workingDir: any;
896
+ let _impl_1: any;
897
+ export { _impl_1 as _impl };
898
+ }
815
899
  /**
816
900
  * Adds models and their properties to the database.
817
901
  * Optionally connects models to a schema via join records.
@@ -821,7 +905,6 @@ declare var ModelPropertyDataTypes: any;
821
905
  * @param schemaFileData - Optional object containing schemaFileId mappings from JSON file: { schemaFileId, modelFileIds: Map<modelName, id>, propertyFileIds: Map<modelName, Map<propertyName, id>> }
822
906
  */
823
907
  declare function addModelsToDb(models$1: any, schema: any, modelRenames: any, schemaFileData: any): Promise<void>;
824
- declare const INIT_SCRIPT_SUCCESS_MESSAGE: "[Seed Protocol] Finished running init script";
825
908
  declare namespace Property {
826
909
  export function Text(storageType: any, localStorageDir: any, filenameSuffix: any): {
827
910
  dataType: any;
@@ -861,19 +944,20 @@ declare namespace Property {
861
944
  };
862
945
  export { htmlPropertyFactory as Html };
863
946
  }
947
+ declare const INIT_SCRIPT_SUCCESS_MESSAGE: "[Seed Protocol] Finished running init script";
864
948
  declare function getCorrectId(localIdOrUid: any): {
865
949
  localId: undefined;
866
950
  uid: undefined;
867
951
  };
952
+ declare const SCHEMA_TS: "seed.config.ts";
953
+ /** How publish handles `data:image/*` URIs inside Html storage. Only applies when `dataType === 'Html'`. */
954
+ declare const THtmlEmbeddedDataUriPolicy: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"materialize">, import("@sinclair/typebox").TLiteral<"preserve">]>;
868
955
  /**
869
956
  * True when a relation ref is an attested seed uid (0x…) rather than a local id. A uid only exists once
870
957
  * the seed is on EAS, so publish can attest the uid as-is when no local copy exists (e.g. a server
871
958
  * publishing on someone's behalf that only holds the uids it was given). Callers must not walk into it.
872
959
  */
873
960
  declare function isPublishedSeedRef(value: any): boolean;
874
- declare const SCHEMA_TS: "seed.config.ts";
875
- /** How publish handles `data:image/*` URIs inside Html storage. Only applies when `dataType === 'Html'`. */
876
- declare const THtmlEmbeddedDataUriPolicy: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"materialize">, import("@sinclair/typebox").TLiteral<"preserve">]>;
877
961
  /** Relation/image refs may be string ids or `{ seedLocalId?, seedUid? }`. */
878
962
  declare function normalizeRelationPropertyValue(value: any): any;
879
963
  /** Resolve seed ids from a single string (context propertyValue or DB row). */
@@ -912,11 +996,6 @@ declare function getStorageDirForDataType(dataType: any): string;
912
996
  * {@link contentSha256TagMatches} to check a tag value against bytes.
913
997
  */
914
998
  declare function getContentSha256(data: any): string;
915
- /**
916
- * Tags for one upload, in the order every upload uses: content hash, content type, then any
917
- * configured extra tags (e.g. App-Name from `arweaveUploadTags`).
918
- */
919
- declare function buildArweaveContentTags(contentHash: any, contentType: any, extra: any): any[];
920
999
  declare const TProperty: import("@sinclair/typebox").TObject<{
921
1000
  id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
922
1001
  _dbId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
@@ -942,10 +1021,12 @@ declare const TProperty: import("@sinclair/typebox").TObject<{
942
1021
  /** When set on an Html property: `materialize` uploads embedded images as Image seeds and rewrites src; `preserve` leaves data URIs. */
943
1022
  htmlEmbeddedDataUriPolicy: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"materialize">, import("@sinclair/typebox").TLiteral<"preserve">]>>;
944
1023
  }>;
1024
+ declare function getWatchedAddressesFromDb(): Promise<any>;
945
1025
  /**
946
- * Schema property name from metadata name (strip Id/Ids suffix).
1026
+ * Subdirectory (relative to the files root, no leading slash) for an ItemStorage property's file:
1027
+ * its model's `storage.path` (`localStorageDir`), else `files`.
947
1028
  */
948
- declare function toSchemaPropertyName(propertyName: any): any;
1029
+ declare function getItemStorageSubdir(localStorageDir: any): any;
949
1030
  /**
950
1031
  * File name a local save gives an ItemStorage property: `<seedUid or seedLocalId><extension>`
951
1032
  * (see saveItemStorage). Downloaded content is named after its transaction instead
@@ -981,60 +1062,53 @@ declare namespace defaultAttestationData {
981
1062
  export let expirationTime: bigint;
982
1063
  export { ZERO_BYTES as data };
983
1064
  }
984
- declare namespace INTERNAL_DATA_TYPES {
985
- export namespace Text_1 {
986
- let eas: string;
987
- }
988
- export { Text_1 as Text };
989
- export namespace Number_1 {
990
- let eas_1: string;
991
- export { eas_1 as eas };
992
- }
993
- export { Number_1 as Number };
994
- export namespace Image_1 {
995
- let eas_2: string;
996
- export { eas_2 as eas };
997
- }
998
- export { Image_1 as Image };
999
- export namespace Relation_1 {
1000
- let eas_3: string;
1001
- export { eas_3 as eas };
1002
- }
1003
- export { Relation_1 as Relation };
1004
- export namespace List_1 {
1005
- let eas_4: string;
1006
- export { eas_4 as eas };
1007
- }
1008
- export { List_1 as List };
1009
- export namespace File_1 {
1010
- let eas_5: string;
1011
- export { eas_5 as eas };
1012
- }
1013
- export { File_1 as File };
1014
- export namespace Json_1 {
1015
- let eas_6: string;
1016
- export { eas_6 as eas };
1017
- }
1018
- export { Json_1 as Json };
1019
- export namespace Blob {
1020
- let eas_7: string;
1021
- export { eas_7 as eas };
1022
- }
1023
- export namespace Boolean_1 {
1024
- let eas_8: string;
1025
- export { eas_8 as eas };
1026
- }
1027
- export { Boolean_1 as Boolean };
1028
- export namespace Date_1 {
1029
- let eas_9: string;
1030
- export { eas_9 as eas };
1031
- }
1032
- export { Date_1 as Date };
1033
- export namespace Html {
1034
- let eas_10: string;
1035
- export { eas_10 as eas };
1036
- }
1037
- }
1065
+ /**
1066
+ * Pure, sync classification of a media-related string from feeds or XML.
1067
+ */
1068
+ declare function classifyMediaRef(raw: any, options: any): {
1069
+ kind: string;
1070
+ href?: undefined;
1071
+ raw?: undefined;
1072
+ localId?: undefined;
1073
+ uid?: undefined;
1074
+ txId?: undefined;
1075
+ } | {
1076
+ kind: string;
1077
+ href: string;
1078
+ raw?: undefined;
1079
+ localId?: undefined;
1080
+ uid?: undefined;
1081
+ txId?: undefined;
1082
+ } | {
1083
+ kind: string;
1084
+ raw: string;
1085
+ href?: undefined;
1086
+ localId?: undefined;
1087
+ uid?: undefined;
1088
+ txId?: undefined;
1089
+ } | {
1090
+ kind: string;
1091
+ localId: any;
1092
+ href?: undefined;
1093
+ raw?: undefined;
1094
+ uid?: undefined;
1095
+ txId?: undefined;
1096
+ } | {
1097
+ kind: string;
1098
+ uid: any;
1099
+ href?: undefined;
1100
+ raw?: undefined;
1101
+ localId?: undefined;
1102
+ txId?: undefined;
1103
+ } | {
1104
+ kind: string;
1105
+ txId: any;
1106
+ href?: undefined;
1107
+ raw?: undefined;
1108
+ localId?: undefined;
1109
+ uid?: undefined;
1110
+ };
1111
+ declare function closestImageSize(width: any): any;
1038
1112
  /**
1039
1113
  * True when `tagValue` (a {@link CONTENT_SHA256_TAG} value read from Arweave) is the digest of
1040
1114
  * `data`. Accepts SHA-256 and, for uploads made by SDK 0.7.2 and earlier through the L1 transaction path,
@@ -1225,11 +1299,67 @@ declare const INTERNAL_SCHEMA_IDS: string[];
1225
1299
  * @returns true when this call inserted the link
1226
1300
  */
1227
1301
  declare function linkModelToSchema(db: any, modelId: any, schemaId: any): any;
1228
- declare function getWatchedAddressesFromDb(): Promise<any>;
1229
- declare function getOwnedAddressesFromDb(): Promise<any>;
1230
- declare const CLIENT_NOT_INITIALIZED: "ClientManager is not initialized. Please call init() first.";
1231
1302
  /**
1232
- * Storage/EAS name for a List-of-relation property (`authorIdentityIds`), given either its
1303
+ * For READS: property names to include in OR query (both variants).
1304
+ * When dataType is undefined, includes all variants for safety (backwards compat with getPropertyData).
1305
+ */
1306
+ declare function getMetadataPropertyNamesForQuery(propertyName: any, dataType: any, refValueType: any): any[];
1307
+ declare namespace INTERNAL_DATA_TYPES {
1308
+ export namespace Text_1 {
1309
+ let eas: string;
1310
+ }
1311
+ export { Text_1 as Text };
1312
+ export namespace Number_1 {
1313
+ let eas_1: string;
1314
+ export { eas_1 as eas };
1315
+ }
1316
+ export { Number_1 as Number };
1317
+ export namespace Image_1 {
1318
+ let eas_2: string;
1319
+ export { eas_2 as eas };
1320
+ }
1321
+ export { Image_1 as Image };
1322
+ export namespace Relation_1 {
1323
+ let eas_3: string;
1324
+ export { eas_3 as eas };
1325
+ }
1326
+ export { Relation_1 as Relation };
1327
+ export namespace List_1 {
1328
+ let eas_4: string;
1329
+ export { eas_4 as eas };
1330
+ }
1331
+ export { List_1 as List };
1332
+ export namespace File_1 {
1333
+ let eas_5: string;
1334
+ export { eas_5 as eas };
1335
+ }
1336
+ export { File_1 as File };
1337
+ export namespace Json_1 {
1338
+ let eas_6: string;
1339
+ export { eas_6 as eas };
1340
+ }
1341
+ export { Json_1 as Json };
1342
+ export namespace Blob {
1343
+ let eas_7: string;
1344
+ export { eas_7 as eas };
1345
+ }
1346
+ export namespace Boolean_1 {
1347
+ let eas_8: string;
1348
+ export { eas_8 as eas };
1349
+ }
1350
+ export { Boolean_1 as Boolean };
1351
+ export namespace Date_1 {
1352
+ let eas_9: string;
1353
+ export { eas_9 as eas };
1354
+ }
1355
+ export { Date_1 as Date };
1356
+ export namespace Html {
1357
+ let eas_10: string;
1358
+ export { eas_10 as eas };
1359
+ }
1360
+ }
1361
+ /**
1362
+ * Storage/EAS name for a List-of-relation property (`authorIdentityIds`), given either its
1233
1363
  * schema key (`authors`) or its storage name. A name already in storage form is returned as-is,
1234
1364
  * so this is safe on ItemProperties built before their schema was known.
1235
1365
  * Returns undefined when propDef is not a List of Relation.
@@ -1244,9 +1374,6 @@ declare function listRelationEasPropertyName(propertyName: any, propDef: any): a
1244
1374
  * - Anything else: the property name.
1245
1375
  */
1246
1376
  declare function easPropertyNameForPublish(propertyName: any, propertyDef: any): string;
1247
- declare function isBrowser(): boolean;
1248
- /** Fired after `syncDbWithEas` persists EAS seeds/versions/metadata to SQLite (see `Item.rehydrateCachedItemsFromDbAfterEasSync`). */
1249
- declare const EAS_SEED_DATA_SYNCED_TO_DB_EVENT: "easSeedDataSyncedToDb";
1250
1377
  /**
1251
1378
  * Lowercase a publisher stamp. Empty / null → undefined (omit on write).
1252
1379
  */
@@ -1261,6 +1388,8 @@ declare function loadNameMatchLevels(db?: any): Promise<{
1261
1388
  property: (modelName: any, propertyName: any, modelFileId: any) => any;
1262
1389
  }>;
1263
1390
  declare function scheduleBulkFilesDownloadFromEasSync(addressesHint: any): void;
1391
+ /** Fired after `syncDbWithEas` persists EAS seeds/versions/metadata to SQLite (see `Item.rehydrateCachedItemsFromDbAfterEasSync`). */
1392
+ declare const EAS_SEED_DATA_SYNCED_TO_DB_EVENT: "easSeedDataSyncedToDb";
1264
1393
  /**
1265
1394
  * A 10-character local id. Never starts with "0x" (about 1 in 3,844 random ids would), so code that
1266
1395
  * tells local ids from EAS uids by that prefix can't mistake one for the other.
@@ -1282,8 +1411,7 @@ declare function toMetadataPropertyName(propertyName: any, dataType: any, refVal
1282
1411
  * depend on whether (or from where) the model's property instances have loaded.
1283
1412
  */
1284
1413
  declare function getItemStoragePropertiesForModel(modelNameOrType: any, scope?: {}): Promise<any>;
1285
- declare const SEED_CONFIG_FILE: "seed.config.ts";
1286
- declare const SEED_CONFIG_FALLBACKS: string[];
1414
+ declare function isBrowser(): boolean;
1287
1415
  /**
1288
1416
  * Get model database ID from modelFileId
1289
1417
  * @param modelFileId - The model file ID (schema_file_id)
@@ -1300,6 +1428,14 @@ declare function getModelIdByFileId(modelFileId: any): Promise<any>;
1300
1428
  */
1301
1429
  declare function getModelId(modelNameOrFileId: any, schemaNameOrId: any): Promise<any>;
1302
1430
  declare function setCachedPropertyRefresher(fn: any): void;
1431
+ /**
1432
+ * Retries a statement another tab's lock rejected. Safe for the SDK's writes because each is a
1433
+ * single autocommit statement: one that failed with SQLITE_BUSY didn't apply. Don't use this for
1434
+ * statements inside a transaction, where a retry would replay part of it.
1435
+ */
1436
+ declare function withSqliteBusyRetry(driver: any, delaysMs?: number[]): (...args: any[]) => Promise<any>;
1437
+ declare const SEED_CONFIG_FILE: "seed.config.ts";
1438
+ declare const SEED_CONFIG_FALLBACKS: string[];
1303
1439
  /**
1304
1440
  * Tag every Seed upload carries with the hex digest of its data. Producers: the SDK's
1305
1441
  * `getPublishUploadData` / `getPublishUploads` (and through them both the L1 transaction path and
@@ -1316,53 +1452,6 @@ declare var SeedModels: any;
1316
1452
  declare const VERSION_SCHEMA_DEF: "bytes32 version";
1317
1453
  /** @deprecated The UID is chain-independent. Use {@link VERSION_SCHEMA_UID}. */
1318
1454
  declare const VERSION_SCHEMA_UID_OPTIMISM_SEPOLIA: "0x13c0fd59d69dbce40501a41f8b37768d26dd2e2bb0cad64615334d84f7b9bdf6";
1319
- /**
1320
- * Pure, sync classification of a media-related string from feeds or XML.
1321
- */
1322
- declare function classifyMediaRef(raw: any, options: any): {
1323
- kind: string;
1324
- href?: undefined;
1325
- raw?: undefined;
1326
- localId?: undefined;
1327
- uid?: undefined;
1328
- txId?: undefined;
1329
- } | {
1330
- kind: string;
1331
- href: string;
1332
- raw?: undefined;
1333
- localId?: undefined;
1334
- uid?: undefined;
1335
- txId?: undefined;
1336
- } | {
1337
- kind: string;
1338
- raw: string;
1339
- href?: undefined;
1340
- localId?: undefined;
1341
- uid?: undefined;
1342
- txId?: undefined;
1343
- } | {
1344
- kind: string;
1345
- localId: any;
1346
- href?: undefined;
1347
- raw?: undefined;
1348
- uid?: undefined;
1349
- txId?: undefined;
1350
- } | {
1351
- kind: string;
1352
- uid: any;
1353
- href?: undefined;
1354
- raw?: undefined;
1355
- localId?: undefined;
1356
- txId?: undefined;
1357
- } | {
1358
- kind: string;
1359
- txId: any;
1360
- href?: undefined;
1361
- raw?: undefined;
1362
- localId?: undefined;
1363
- uid?: undefined;
1364
- };
1365
- declare function closestImageSize(width: any): any;
1366
1455
  declare const TPropertyConstructor: import("@sinclair/typebox").TFunction<[import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"ItemStorage">, import("@sinclair/typebox").TLiteral<"PropertyStorage">]>, import("@sinclair/typebox").TUndefined]>>, import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"Text">, import("@sinclair/typebox").TLiteral<"Number">, import("@sinclair/typebox").TLiteral<"List">, import("@sinclair/typebox").TLiteral<"Relation">, import("@sinclair/typebox").TLiteral<"Image">, import("@sinclair/typebox").TLiteral<"Json">, import("@sinclair/typebox").TLiteral<"File">, import("@sinclair/typebox").TLiteral<"Boolean">, import("@sinclair/typebox").TLiteral<"Date">, import("@sinclair/typebox").TLiteral<"Html">]>]>>, import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TBoolean]>>], import("@sinclair/typebox").TObject<{
1367
1456
  id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
1368
1457
  _dbId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
@@ -1388,6 +1477,17 @@ declare const TPropertyConstructor: import("@sinclair/typebox").TFunction<[impor
1388
1477
  /** When set on an Html property: `materialize` uploads embedded images as Image seeds and rewrites src; `preserve` leaves data URIs. */
1389
1478
  htmlEmbeddedDataUriPolicy: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"materialize">, import("@sinclair/typebox").TLiteral<"preserve">]>>;
1390
1479
  }>>;
1480
+ declare function getOwnedAddressesFromDb(): Promise<any>;
1481
+ declare const CLIENT_NOT_INITIALIZED: "ClientManager is not initialized. Please call init() first.";
1482
+ /**
1483
+ * Schema property name from metadata name (strip Id/Ids suffix).
1484
+ */
1485
+ declare function toSchemaPropertyName(propertyName: any): any;
1486
+ /**
1487
+ * Another connection (usually another tab) holds the database lock. SQLite reports this as
1488
+ * SQLITE_BUSY ("database is locked") or SQLITE_LOCKED ("database table is locked").
1489
+ */
1490
+ declare function isSqliteBusyError(error: any): boolean;
1391
1491
  /**
1392
1492
  * The EAS schema definition publish attests a property under (`string title`, `bytes32 author`),
1393
1493
  * or undefined when its data type has no EAS type. Look schemas up by this, not by name: a name
@@ -1398,22 +1498,18 @@ declare function easSchemaDefinitionForProperty(propertyName: any, propertyDef:
1398
1498
  declare function getStorageTransactionIdForSeedUid(seedUid: any): Promise<any>;
1399
1499
  declare function convertTxIdToImage(txId: any): Promise<string | undefined>;
1400
1500
  /**
1401
- * For READS: property names to include in OR query (both variants).
1402
- * When dataType is undefined, includes all variants for safety (backwards compat with getPropertyData).
1501
+ * Resolve property_id (integer properties.id) from a property's schemaFileId (the string `id` in
1502
+ * schema files and propertyRecordSchema). Scoped to the model since schemaFileIds are per schema file.
1503
+ * Reads `db` (a transaction's `tx`, say), the app database by default.
1504
+ * @returns properties.id or null if not found
1403
1505
  */
1404
- declare function getMetadataPropertyNamesForQuery(propertyName: any, dataType: any, refValueType: any): any[];
1506
+ declare function getPropertyIdForSchemaFileId(modelNameOrType: any, schemaFileId: any, scope?: {}, db?: any): Promise<any>;
1405
1507
  declare function downloadTransactionIdWithDedupe(transactionId: any): Promise<any>;
1406
1508
  /**
1407
1509
  * Resolve the best metadata record when multiple variants exist (base + Id).
1408
1510
  * For Image/File/Html: prefer the record with refResolvedValue (Id variant has filename).
1409
1511
  */
1410
1512
  declare function resolveMetadataRecord(records: any, preferredPropertyName: any, dataType: any, refValueType: any): any;
1411
- /**
1412
- * Resolve property_id (integer properties.id) from a property's schemaFileId (the string `id` in
1413
- * schema files and propertyRecordSchema). Scoped to the model since schemaFileIds are per schema file.
1414
- * @returns properties.id or null if not found
1415
- */
1416
- declare function getPropertyIdForSchemaFileId(modelNameOrType: any, schemaFileId: any, scope?: {}): Promise<any>;
1417
1513
  declare function getDataTypeFromString(data: any): "imageBase64" | "base64" | "url" | null;
1418
1514
  declare function getMimeType(base64: any): any;
1419
1515
  /**
@@ -1423,6 +1519,12 @@ declare function getMimeType(base64: any): any;
1423
1519
  declare function listRelationStoragePropertyName(propertySchemas: any, schemaPropertyKey: any): any;
1424
1520
  /** Full property names ending in `Id` that must not be stripped to a “base” name for `allProperties` keys. */
1425
1521
  declare const PROPERTY_NAMES_EXEMPT_FROM_ID_SUFFIX_STRIP: Set<string>;
1522
+ /**
1523
+ * The name an item exposes a property under, from the name it is stored under: its alias when it
1524
+ * has one (List of relation), else `tagIds` → `tags`, `authorId` → `author`. Names in
1525
+ * PROPERTY_NAMES_EXEMPT_FROM_ID_SUFFIX_STRIP keep their `Id`.
1526
+ */
1527
+ declare function toItemPropertyKey(storedName: any, alias: any): any;
1426
1528
  /**
1427
1529
  * Alternate property name for instance lookup (base <-> Id variant).
1428
1530
  */
@@ -2307,84 +2409,6 @@ declare const TValidationRules: import("@sinclair/typebox").TObject<{
2307
2409
  * for the fallback paths that read schema-file properties directly.
2308
2410
  */
2309
2411
  declare function normalizePropertyRecordSchema(def: any): any;
2310
- declare class BaseFileManager {
2311
- static configure(impl: any): void;
2312
- static requireImpl(): any;
2313
- /**
2314
- * Clears FS init flags so a later call can retry. Used after a failed init
2315
- * and by tests. Does not unmount or delete any files.
2316
- */
2317
- static resetInitializationState(): void;
2318
- static initializeFileSystem(workingDir: any): Promise<void>;
2319
- static runInitializeFileSystem(workingDir: any): Promise<void>;
2320
- static getWorkingDir(): any;
2321
- /**
2322
- * Build a path under the configured files root (e.g. /app-files).
2323
- * Use this instead of hardcoding /files/ for images, html, json, etc.
2324
- * @param subpaths - path segments to join (e.g. 'images', fileName)
2325
- * @returns full path like /app-files/images/egg.jpg
2326
- */
2327
- static getFilesPath(...subpaths: any[]): string;
2328
- static getContentUrlFromPath(path: any): any;
2329
- static downloadAllFiles(params: any): any;
2330
- static downloadFileByTransactionId({ transactionId, arweaveHost, arweaveBaseUrls, excludedTransactions, expectedContentHash, compositeChildPaths, }: {
2331
- transactionId: any;
2332
- arweaveHost: any;
2333
- arweaveBaseUrls: any;
2334
- excludedTransactions: any;
2335
- expectedContentHash: any;
2336
- compositeChildPaths: any;
2337
- }): any;
2338
- static resizeImage({ filePath, width, height }: {
2339
- filePath: any;
2340
- width: any;
2341
- height: any;
2342
- }): any;
2343
- static resizeAllImages({ width, height }: {
2344
- width: any;
2345
- height: any;
2346
- }): any;
2347
- static pathExists(filePath: any): any;
2348
- static invalidateCachedPaths(filePaths: any): any;
2349
- /** File size in bytes, or null if the path does not exist / cannot be stated. */
2350
- static getFileSize(filePath: any): any;
2351
- /**
2352
- * Returns a list of filenames in the given directory (e.g. 'images', 'files').
2353
- */
2354
- static listFiles(dir: any): any;
2355
- /**
2356
- * Returns a list of image filenames in the images folder (originals only, excludes size subdirs).
2357
- * Use this to get all stored images without traversing 480/760/1024/1440/1920 subdirectories.
2358
- */
2359
- static listImageFiles(): any;
2360
- static createDirIfNotExists(filePath: any): any;
2361
- static waitForFile(filePath: any): Promise<any>;
2362
- static waitForFileWithContent(filePath: any, interval: any, timeout: any): Promise<any>;
2363
- static saveFile(filePath: any, content: any): Promise<any>;
2364
- static saveFileSync(filePath: any, content: any): any;
2365
- static readFile(filePath: any): Promise<any>;
2366
- static readFileSync(filePath: any): any;
2367
- static readFileAsBuffer(filePath: any): Promise<any>;
2368
- static readFileAsString(filePath: any): Promise<any>;
2369
- static getFs(): Promise<any>;
2370
- static getFsSync(): any;
2371
- static getPathModule(): any;
2372
- static getParentDirPath(filePath: any): any;
2373
- static getFilenameFromPath(filePath: any): any;
2374
- }
2375
- declare namespace BaseFileManager {
2376
- export let fileSystemInitialized: boolean | undefined;
2377
- export let initializing: boolean | undefined;
2378
- export let initializePromise: Promise<void> | null | undefined;
2379
- export let workingDir: any;
2380
- let _impl_1: any;
2381
- export { _impl_1 as _impl };
2382
- }
2383
- /**
2384
- * Case-insensitive dataType check. Use instead of `dataType === 'List'` so schemas
2385
- * (or existing DB rows) with lowercase types like "list" still match.
2386
- */
2387
- declare function isDataType(value: any, expected: any): boolean;
2388
2412
  declare const appState: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
2389
2413
  name: "appState";
2390
2414
  schema: undefined;
@@ -2464,6 +2488,11 @@ declare const appState: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns
2464
2488
  };
2465
2489
  dialect: "sqlite";
2466
2490
  }>;
2491
+ /**
2492
+ * Case-insensitive dataType check. Use instead of `dataType === 'List'` so schemas
2493
+ * (or existing DB rows) with lowercase types like "list" still match.
2494
+ */
2495
+ declare function isDataType(value: any, expected: any): boolean;
2467
2496
  /** Background job: resolve L1 tx id and wait for L1 confirmation after bundler publish. */
2468
2497
  declare const arweaveL1FinalizeJobs: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
2469
2498
  name: "arweave_l1_finalize_jobs";
@@ -2792,18 +2821,35 @@ declare const config: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
2792
2821
  };
2793
2822
  dialect: "sqlite";
2794
2823
  }>;
2795
- declare const metadata: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
2796
- name: "metadata";
2824
+ declare const easSyncProcesses: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
2825
+ name: "eas_sync_processes";
2797
2826
  schema: undefined;
2798
2827
  columns: {
2799
- localId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2800
- name: "local_id";
2801
- tableName: "metadata";
2828
+ id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2829
+ name: "id";
2830
+ tableName: "eas_sync_processes";
2831
+ dataType: "number";
2832
+ columnType: "SQLiteInteger";
2833
+ data: number;
2834
+ driverParam: number;
2835
+ notNull: true;
2836
+ hasDefault: true;
2837
+ isPrimaryKey: true;
2838
+ isAutoincrement: false;
2839
+ hasRuntimeDefault: false;
2840
+ enumValues: undefined;
2841
+ baseColumn: never;
2842
+ identity: undefined;
2843
+ generated: undefined;
2844
+ }, {}, {}>;
2845
+ status: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2846
+ name: "status";
2847
+ tableName: "eas_sync_processes";
2802
2848
  dataType: "string";
2803
2849
  columnType: "SQLiteText";
2804
2850
  data: string;
2805
2851
  driverParam: string;
2806
- notNull: false;
2852
+ notNull: true;
2807
2853
  hasDefault: false;
2808
2854
  isPrimaryKey: false;
2809
2855
  isAutoincrement: false;
@@ -2815,10 +2861,180 @@ declare const metadata: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns
2815
2861
  }, {}, {
2816
2862
  length: number | undefined;
2817
2863
  }>;
2818
- uid: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2819
- name: "uid";
2820
- tableName: "metadata";
2821
- dataType: "string";
2864
+ startedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2865
+ name: "started_at";
2866
+ tableName: "eas_sync_processes";
2867
+ dataType: "number";
2868
+ columnType: "SQLiteInteger";
2869
+ data: number;
2870
+ driverParam: number;
2871
+ notNull: true;
2872
+ hasDefault: false;
2873
+ isPrimaryKey: false;
2874
+ isAutoincrement: false;
2875
+ hasRuntimeDefault: false;
2876
+ enumValues: undefined;
2877
+ baseColumn: never;
2878
+ identity: undefined;
2879
+ generated: undefined;
2880
+ }, {}, {}>;
2881
+ completedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2882
+ name: "completed_at";
2883
+ tableName: "eas_sync_processes";
2884
+ dataType: "number";
2885
+ columnType: "SQLiteInteger";
2886
+ data: number;
2887
+ driverParam: number;
2888
+ notNull: false;
2889
+ hasDefault: false;
2890
+ isPrimaryKey: false;
2891
+ isAutoincrement: false;
2892
+ hasRuntimeDefault: false;
2893
+ enumValues: undefined;
2894
+ baseColumn: never;
2895
+ identity: undefined;
2896
+ generated: undefined;
2897
+ }, {}, {}>;
2898
+ requestPayload: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2899
+ name: "request_payload";
2900
+ tableName: "eas_sync_processes";
2901
+ dataType: "string";
2902
+ columnType: "SQLiteText";
2903
+ data: string;
2904
+ driverParam: string;
2905
+ notNull: true;
2906
+ hasDefault: false;
2907
+ isPrimaryKey: false;
2908
+ isAutoincrement: false;
2909
+ hasRuntimeDefault: false;
2910
+ enumValues: [string, ...string[]];
2911
+ baseColumn: never;
2912
+ identity: undefined;
2913
+ generated: undefined;
2914
+ }, {}, {
2915
+ length: number | undefined;
2916
+ }>;
2917
+ errorMessage: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2918
+ name: "error_message";
2919
+ tableName: "eas_sync_processes";
2920
+ dataType: "string";
2921
+ columnType: "SQLiteText";
2922
+ data: string;
2923
+ driverParam: string;
2924
+ notNull: false;
2925
+ hasDefault: false;
2926
+ isPrimaryKey: false;
2927
+ isAutoincrement: false;
2928
+ hasRuntimeDefault: false;
2929
+ enumValues: [string, ...string[]];
2930
+ baseColumn: never;
2931
+ identity: undefined;
2932
+ generated: undefined;
2933
+ }, {}, {
2934
+ length: number | undefined;
2935
+ }>;
2936
+ errorDetails: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2937
+ name: "error_details";
2938
+ tableName: "eas_sync_processes";
2939
+ dataType: "string";
2940
+ columnType: "SQLiteText";
2941
+ data: string;
2942
+ driverParam: string;
2943
+ notNull: false;
2944
+ hasDefault: false;
2945
+ isPrimaryKey: false;
2946
+ isAutoincrement: false;
2947
+ hasRuntimeDefault: false;
2948
+ enumValues: [string, ...string[]];
2949
+ baseColumn: never;
2950
+ identity: undefined;
2951
+ generated: undefined;
2952
+ }, {}, {
2953
+ length: number | undefined;
2954
+ }>;
2955
+ persistedSnapshot: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2956
+ name: "persisted_snapshot";
2957
+ tableName: "eas_sync_processes";
2958
+ dataType: "string";
2959
+ columnType: "SQLiteText";
2960
+ data: string;
2961
+ driverParam: string;
2962
+ notNull: true;
2963
+ hasDefault: false;
2964
+ isPrimaryKey: false;
2965
+ isAutoincrement: false;
2966
+ hasRuntimeDefault: false;
2967
+ enumValues: [string, ...string[]];
2968
+ baseColumn: never;
2969
+ identity: undefined;
2970
+ generated: undefined;
2971
+ }, {}, {
2972
+ length: number | undefined;
2973
+ }>;
2974
+ createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2975
+ name: "created_at";
2976
+ tableName: "eas_sync_processes";
2977
+ dataType: "number";
2978
+ columnType: "SQLiteInteger";
2979
+ data: number;
2980
+ driverParam: number;
2981
+ notNull: false;
2982
+ hasDefault: false;
2983
+ isPrimaryKey: false;
2984
+ isAutoincrement: false;
2985
+ hasRuntimeDefault: false;
2986
+ enumValues: undefined;
2987
+ baseColumn: never;
2988
+ identity: undefined;
2989
+ generated: undefined;
2990
+ }, {}, {}>;
2991
+ updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2992
+ name: "updated_at";
2993
+ tableName: "eas_sync_processes";
2994
+ dataType: "number";
2995
+ columnType: "SQLiteInteger";
2996
+ data: number;
2997
+ driverParam: number;
2998
+ notNull: false;
2999
+ hasDefault: false;
3000
+ isPrimaryKey: false;
3001
+ isAutoincrement: false;
3002
+ hasRuntimeDefault: false;
3003
+ enumValues: undefined;
3004
+ baseColumn: never;
3005
+ identity: undefined;
3006
+ generated: undefined;
3007
+ }, {}, {}>;
3008
+ };
3009
+ dialect: "sqlite";
3010
+ }>;
3011
+ declare const metadata: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
3012
+ name: "metadata";
3013
+ schema: undefined;
3014
+ columns: {
3015
+ localId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3016
+ name: "local_id";
3017
+ tableName: "metadata";
3018
+ dataType: "string";
3019
+ columnType: "SQLiteText";
3020
+ data: string;
3021
+ driverParam: string;
3022
+ notNull: false;
3023
+ hasDefault: false;
3024
+ isPrimaryKey: false;
3025
+ isAutoincrement: false;
3026
+ hasRuntimeDefault: false;
3027
+ enumValues: [string, ...string[]];
3028
+ baseColumn: never;
3029
+ identity: undefined;
3030
+ generated: undefined;
3031
+ }, {}, {
3032
+ length: number | undefined;
3033
+ }>;
3034
+ uid: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3035
+ name: "uid";
3036
+ tableName: "metadata";
3037
+ dataType: "string";
2822
3038
  columnType: "SQLiteText";
2823
3039
  data: string;
2824
3040
  driverParam: string;
@@ -3289,13 +3505,17 @@ declare const metadata: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns
3289
3505
  * Use when ingesting dataType from JSON schema files.
3290
3506
  */
3291
3507
  declare function normalizeDataType(value: any): any;
3292
- declare const easSyncProcesses: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
3293
- name: "eas_sync_processes";
3508
+ /**
3509
+ * Links Image seeds materialized from Html `data:image/*` URIs to the parent Item seed for co-publish.
3510
+ * Rows are removed after a successful publish (see clearHtmlEmbeddedImageCoPublishRows).
3511
+ */
3512
+ declare const htmlEmbeddedImageCoPublish: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
3513
+ name: "html_embedded_image_co_publish";
3294
3514
  schema: undefined;
3295
3515
  columns: {
3296
3516
  id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3297
3517
  name: "id";
3298
- tableName: "eas_sync_processes";
3518
+ tableName: "html_embedded_image_co_publish";
3299
3519
  dataType: "number";
3300
3520
  columnType: "SQLiteInteger";
3301
3521
  data: number;
@@ -3310,9 +3530,9 @@ declare const easSyncProcesses: import("drizzle-orm/sqlite-core").SQLiteTableWit
3310
3530
  identity: undefined;
3311
3531
  generated: undefined;
3312
3532
  }, {}, {}>;
3313
- status: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3314
- name: "status";
3315
- tableName: "eas_sync_processes";
3533
+ parentSeedLocalId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3534
+ name: "parent_seed_local_id";
3535
+ tableName: "html_embedded_image_co_publish";
3316
3536
  dataType: "string";
3317
3537
  columnType: "SQLiteText";
3318
3538
  data: string;
@@ -3329,43 +3549,9 @@ declare const easSyncProcesses: import("drizzle-orm/sqlite-core").SQLiteTableWit
3329
3549
  }, {}, {
3330
3550
  length: number | undefined;
3331
3551
  }>;
3332
- startedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3333
- name: "started_at";
3334
- tableName: "eas_sync_processes";
3335
- dataType: "number";
3336
- columnType: "SQLiteInteger";
3337
- data: number;
3338
- driverParam: number;
3339
- notNull: true;
3340
- hasDefault: false;
3341
- isPrimaryKey: false;
3342
- isAutoincrement: false;
3343
- hasRuntimeDefault: false;
3344
- enumValues: undefined;
3345
- baseColumn: never;
3346
- identity: undefined;
3347
- generated: undefined;
3348
- }, {}, {}>;
3349
- completedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3350
- name: "completed_at";
3351
- tableName: "eas_sync_processes";
3352
- dataType: "number";
3353
- columnType: "SQLiteInteger";
3354
- data: number;
3355
- driverParam: number;
3356
- notNull: false;
3357
- hasDefault: false;
3358
- isPrimaryKey: false;
3359
- isAutoincrement: false;
3360
- hasRuntimeDefault: false;
3361
- enumValues: undefined;
3362
- baseColumn: never;
3363
- identity: undefined;
3364
- generated: undefined;
3365
- }, {}, {}>;
3366
- requestPayload: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3367
- name: "request_payload";
3368
- tableName: "eas_sync_processes";
3552
+ htmlSeedLocalId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3553
+ name: "html_seed_local_id";
3554
+ tableName: "html_embedded_image_co_publish";
3369
3555
  dataType: "string";
3370
3556
  columnType: "SQLiteText";
3371
3557
  data: string;
@@ -3382,14 +3568,14 @@ declare const easSyncProcesses: import("drizzle-orm/sqlite-core").SQLiteTableWit
3382
3568
  }, {}, {
3383
3569
  length: number | undefined;
3384
3570
  }>;
3385
- errorMessage: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3386
- name: "error_message";
3387
- tableName: "eas_sync_processes";
3571
+ imageSeedLocalId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3572
+ name: "image_seed_local_id";
3573
+ tableName: "html_embedded_image_co_publish";
3388
3574
  dataType: "string";
3389
3575
  columnType: "SQLiteText";
3390
3576
  data: string;
3391
3577
  driverParam: string;
3392
- notNull: false;
3578
+ notNull: true;
3393
3579
  hasDefault: false;
3394
3580
  isPrimaryKey: false;
3395
3581
  isAutoincrement: false;
@@ -3401,14 +3587,14 @@ declare const easSyncProcesses: import("drizzle-orm/sqlite-core").SQLiteTableWit
3401
3587
  }, {}, {
3402
3588
  length: number | undefined;
3403
3589
  }>;
3404
- errorDetails: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3405
- name: "error_details";
3406
- tableName: "eas_sync_processes";
3590
+ stableKey: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3591
+ name: "stable_key";
3592
+ tableName: "html_embedded_image_co_publish";
3407
3593
  dataType: "string";
3408
3594
  columnType: "SQLiteText";
3409
3595
  data: string;
3410
3596
  driverParam: string;
3411
- notNull: false;
3597
+ notNull: true;
3412
3598
  hasDefault: false;
3413
3599
  isPrimaryKey: false;
3414
3600
  isAutoincrement: false;
@@ -3420,28 +3606,53 @@ declare const easSyncProcesses: import("drizzle-orm/sqlite-core").SQLiteTableWit
3420
3606
  }, {}, {
3421
3607
  length: number | undefined;
3422
3608
  }>;
3423
- persistedSnapshot: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3424
- name: "persisted_snapshot";
3425
- tableName: "eas_sync_processes";
3426
- dataType: "string";
3427
- columnType: "SQLiteText";
3428
- data: string;
3429
- driverParam: string;
3430
- notNull: true;
3431
- hasDefault: false;
3432
- isPrimaryKey: false;
3609
+ createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3610
+ name: "created_at";
3611
+ tableName: "html_embedded_image_co_publish";
3612
+ dataType: "number";
3613
+ columnType: "SQLiteInteger";
3614
+ data: number;
3615
+ driverParam: number;
3616
+ notNull: true;
3617
+ hasDefault: false;
3618
+ isPrimaryKey: false;
3433
3619
  isAutoincrement: false;
3434
3620
  hasRuntimeDefault: false;
3435
- enumValues: [string, ...string[]];
3621
+ enumValues: undefined;
3436
3622
  baseColumn: never;
3437
3623
  identity: undefined;
3438
3624
  generated: undefined;
3439
- }, {}, {
3440
- length: number | undefined;
3441
- }>;
3442
- createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3443
- name: "created_at";
3444
- tableName: "eas_sync_processes";
3625
+ }, {}, {}>;
3626
+ };
3627
+ dialect: "sqlite";
3628
+ }>;
3629
+ declare const modelRelations: import("drizzle-orm").Relations<"model_uids", {
3630
+ model: import("drizzle-orm").One<"models", false>;
3631
+ }>;
3632
+ declare const modelSchemas: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
3633
+ name: "model_schemas";
3634
+ schema: undefined;
3635
+ columns: {
3636
+ id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3637
+ name: "id";
3638
+ tableName: "model_schemas";
3639
+ dataType: "number";
3640
+ columnType: "SQLiteInteger";
3641
+ data: number;
3642
+ driverParam: number;
3643
+ notNull: true;
3644
+ hasDefault: true;
3645
+ isPrimaryKey: true;
3646
+ isAutoincrement: false;
3647
+ hasRuntimeDefault: false;
3648
+ enumValues: undefined;
3649
+ baseColumn: never;
3650
+ identity: undefined;
3651
+ generated: undefined;
3652
+ }, {}, {}>;
3653
+ modelId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3654
+ name: "model_id";
3655
+ tableName: "model_schemas";
3445
3656
  dataType: "number";
3446
3657
  columnType: "SQLiteInteger";
3447
3658
  data: number;
@@ -3456,9 +3667,9 @@ declare const easSyncProcesses: import("drizzle-orm/sqlite-core").SQLiteTableWit
3456
3667
  identity: undefined;
3457
3668
  generated: undefined;
3458
3669
  }, {}, {}>;
3459
- updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3460
- name: "updated_at";
3461
- tableName: "eas_sync_processes";
3670
+ schemaId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3671
+ name: "schema_id";
3672
+ tableName: "model_schemas";
3462
3673
  dataType: "number";
3463
3674
  columnType: "SQLiteInteger";
3464
3675
  data: number;
@@ -3476,17 +3687,13 @@ declare const easSyncProcesses: import("drizzle-orm/sqlite-core").SQLiteTableWit
3476
3687
  };
3477
3688
  dialect: "sqlite";
3478
3689
  }>;
3479
- /**
3480
- * Links Image seeds materialized from Html `data:image/*` URIs to the parent Item seed for co-publish.
3481
- * Rows are removed after a successful publish (see clearHtmlEmbeddedImageCoPublishRows).
3482
- */
3483
- declare const htmlEmbeddedImageCoPublish: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
3484
- name: "html_embedded_image_co_publish";
3690
+ declare const modelUids: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
3691
+ name: "model_uids";
3485
3692
  schema: undefined;
3486
3693
  columns: {
3487
3694
  id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3488
3695
  name: "id";
3489
- tableName: "html_embedded_image_co_publish";
3696
+ tableName: "model_uids";
3490
3697
  dataType: "number";
3491
3698
  columnType: "SQLiteInteger";
3492
3699
  data: number;
@@ -3501,9 +3708,9 @@ declare const htmlEmbeddedImageCoPublish: import("drizzle-orm/sqlite-core").SQLi
3501
3708
  identity: undefined;
3502
3709
  generated: undefined;
3503
3710
  }, {}, {}>;
3504
- parentSeedLocalId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3505
- name: "parent_seed_local_id";
3506
- tableName: "html_embedded_image_co_publish";
3711
+ uid: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3712
+ name: "uid";
3713
+ tableName: "model_uids";
3507
3714
  dataType: "string";
3508
3715
  columnType: "SQLiteText";
3509
3716
  data: string;
@@ -3520,28 +3727,50 @@ declare const htmlEmbeddedImageCoPublish: import("drizzle-orm/sqlite-core").SQLi
3520
3727
  }, {}, {
3521
3728
  length: number | undefined;
3522
3729
  }>;
3523
- htmlSeedLocalId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3524
- name: "html_seed_local_id";
3525
- tableName: "html_embedded_image_co_publish";
3526
- dataType: "string";
3527
- columnType: "SQLiteText";
3528
- data: string;
3529
- driverParam: string;
3730
+ modelId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3731
+ name: "model_id";
3732
+ tableName: "model_uids";
3733
+ dataType: "number";
3734
+ columnType: "SQLiteInteger";
3735
+ data: number;
3736
+ driverParam: number;
3530
3737
  notNull: true;
3531
3738
  hasDefault: false;
3532
3739
  isPrimaryKey: false;
3533
3740
  isAutoincrement: false;
3534
3741
  hasRuntimeDefault: false;
3535
- enumValues: [string, ...string[]];
3742
+ enumValues: undefined;
3536
3743
  baseColumn: never;
3537
3744
  identity: undefined;
3538
3745
  generated: undefined;
3539
- }, {}, {
3540
- length: number | undefined;
3541
- }>;
3542
- imageSeedLocalId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3543
- name: "image_seed_local_id";
3544
- tableName: "html_embedded_image_co_publish";
3746
+ }, {}, {}>;
3747
+ };
3748
+ dialect: "sqlite";
3749
+ }>;
3750
+ declare const models: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
3751
+ name: "models";
3752
+ schema: undefined;
3753
+ columns: {
3754
+ id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3755
+ name: "id";
3756
+ tableName: "models";
3757
+ dataType: "number";
3758
+ columnType: "SQLiteInteger";
3759
+ data: number;
3760
+ driverParam: number;
3761
+ notNull: true;
3762
+ hasDefault: true;
3763
+ isPrimaryKey: true;
3764
+ isAutoincrement: false;
3765
+ hasRuntimeDefault: false;
3766
+ enumValues: undefined;
3767
+ baseColumn: never;
3768
+ identity: undefined;
3769
+ generated: undefined;
3770
+ }, {}, {}>;
3771
+ name: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3772
+ name: "name";
3773
+ tableName: "models";
3545
3774
  dataType: "string";
3546
3775
  columnType: "SQLiteText";
3547
3776
  data: string;
@@ -3558,14 +3787,14 @@ declare const htmlEmbeddedImageCoPublish: import("drizzle-orm/sqlite-core").SQLi
3558
3787
  }, {}, {
3559
3788
  length: number | undefined;
3560
3789
  }>;
3561
- stableKey: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3562
- name: "stable_key";
3563
- tableName: "html_embedded_image_co_publish";
3790
+ schemaFileId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3791
+ name: "schema_file_id";
3792
+ tableName: "models";
3564
3793
  dataType: "string";
3565
3794
  columnType: "SQLiteText";
3566
3795
  data: string;
3567
3796
  driverParam: string;
3568
- notNull: true;
3797
+ notNull: false;
3569
3798
  hasDefault: false;
3570
3799
  isPrimaryKey: false;
3571
3800
  isAutoincrement: false;
@@ -3577,14 +3806,14 @@ declare const htmlEmbeddedImageCoPublish: import("drizzle-orm/sqlite-core").SQLi
3577
3806
  }, {}, {
3578
3807
  length: number | undefined;
3579
3808
  }>;
3580
- createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3581
- name: "created_at";
3582
- tableName: "html_embedded_image_co_publish";
3583
- dataType: "number";
3584
- columnType: "SQLiteInteger";
3585
- data: number;
3809
+ isEdited: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3810
+ name: "is_edited";
3811
+ tableName: "models";
3812
+ dataType: "boolean";
3813
+ columnType: "SQLiteBoolean";
3814
+ data: boolean;
3586
3815
  driverParam: number;
3587
- notNull: true;
3816
+ notNull: false;
3588
3817
  hasDefault: false;
3589
3818
  isPrimaryKey: false;
3590
3819
  isAutoincrement: false;
@@ -3597,16 +3826,20 @@ declare const htmlEmbeddedImageCoPublish: import("drizzle-orm/sqlite-core").SQLi
3597
3826
  };
3598
3827
  dialect: "sqlite";
3599
3828
  }>;
3600
- declare const modelRelations: import("drizzle-orm").Relations<"model_uids", {
3601
- model: import("drizzle-orm").One<"models", false>;
3829
+ declare const modelsRelations: import("drizzle-orm").Relations<"models", {
3830
+ properties: import("drizzle-orm").Many<"properties">;
3602
3831
  }>;
3603
- declare const modelSchemas: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
3604
- name: "model_schemas";
3832
+ /**
3833
+ * The item write outbox (ADR 0019): one row per edit to an item, appended when the value is
3834
+ * assigned and applied to `seeds`, `versions` and `metadata` by the leader tab's drainer.
3835
+ */
3836
+ declare const pendingWrites: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
3837
+ name: "pending_writes";
3605
3838
  schema: undefined;
3606
3839
  columns: {
3607
3840
  id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3608
3841
  name: "id";
3609
- tableName: "model_schemas";
3842
+ tableName: "pending_writes";
3610
3843
  dataType: "number";
3611
3844
  columnType: "SQLiteInteger";
3612
3845
  data: number;
@@ -3621,57 +3854,187 @@ declare const modelSchemas: import("drizzle-orm/sqlite-core").SQLiteTableWithCol
3621
3854
  identity: undefined;
3622
3855
  generated: undefined;
3623
3856
  }, {}, {}>;
3624
- modelId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3625
- name: "model_id";
3626
- tableName: "model_schemas";
3627
- dataType: "number";
3628
- columnType: "SQLiteInteger";
3629
- data: number;
3630
- driverParam: number;
3857
+ opId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3858
+ name: "op_id";
3859
+ tableName: "pending_writes";
3860
+ dataType: "string";
3861
+ columnType: "SQLiteText";
3862
+ data: string;
3863
+ driverParam: string;
3864
+ notNull: true;
3865
+ hasDefault: false;
3866
+ isPrimaryKey: false;
3867
+ isAutoincrement: false;
3868
+ hasRuntimeDefault: false;
3869
+ enumValues: [string, ...string[]];
3870
+ baseColumn: never;
3871
+ identity: undefined;
3872
+ generated: undefined;
3873
+ }, {}, {
3874
+ length: number | undefined;
3875
+ }>;
3876
+ groupId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3877
+ name: "group_id";
3878
+ tableName: "pending_writes";
3879
+ dataType: "string";
3880
+ columnType: "SQLiteText";
3881
+ data: string;
3882
+ driverParam: string;
3631
3883
  notNull: false;
3632
3884
  hasDefault: false;
3633
3885
  isPrimaryKey: false;
3634
3886
  isAutoincrement: false;
3635
3887
  hasRuntimeDefault: false;
3636
- enumValues: undefined;
3888
+ enumValues: [string, ...string[]];
3637
3889
  baseColumn: never;
3638
3890
  identity: undefined;
3639
3891
  generated: undefined;
3640
- }, {}, {}>;
3641
- schemaId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3642
- name: "schema_id";
3643
- tableName: "model_schemas";
3644
- dataType: "number";
3645
- columnType: "SQLiteInteger";
3646
- data: number;
3647
- driverParam: number;
3892
+ }, {}, {
3893
+ length: number | undefined;
3894
+ }>;
3895
+ seedLocalId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3896
+ name: "seed_local_id";
3897
+ tableName: "pending_writes";
3898
+ dataType: "string";
3899
+ columnType: "SQLiteText";
3900
+ data: string;
3901
+ driverParam: string;
3902
+ notNull: true;
3903
+ hasDefault: false;
3904
+ isPrimaryKey: false;
3905
+ isAutoincrement: false;
3906
+ hasRuntimeDefault: false;
3907
+ enumValues: [string, ...string[]];
3908
+ baseColumn: never;
3909
+ identity: undefined;
3910
+ generated: undefined;
3911
+ }, {}, {
3912
+ length: number | undefined;
3913
+ }>;
3914
+ propertyName: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3915
+ name: "property_name";
3916
+ tableName: "pending_writes";
3917
+ dataType: "string";
3918
+ columnType: "SQLiteText";
3919
+ data: string;
3920
+ driverParam: string;
3648
3921
  notNull: false;
3649
3922
  hasDefault: false;
3650
3923
  isPrimaryKey: false;
3651
3924
  isAutoincrement: false;
3652
3925
  hasRuntimeDefault: false;
3653
- enumValues: undefined;
3926
+ enumValues: [string, ...string[]];
3654
3927
  baseColumn: never;
3655
3928
  identity: undefined;
3656
3929
  generated: undefined;
3657
- }, {}, {}>;
3658
- };
3659
- dialect: "sqlite";
3660
- }>;
3661
- declare const modelUids: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
3662
- name: "model_uids";
3663
- schema: undefined;
3664
- columns: {
3665
- id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3666
- name: "id";
3667
- tableName: "model_uids";
3930
+ }, {}, {
3931
+ length: number | undefined;
3932
+ }>;
3933
+ kind: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3934
+ name: "kind";
3935
+ tableName: "pending_writes";
3936
+ dataType: "string";
3937
+ columnType: "SQLiteText";
3938
+ data: string;
3939
+ driverParam: string;
3940
+ notNull: true;
3941
+ hasDefault: false;
3942
+ isPrimaryKey: false;
3943
+ isAutoincrement: false;
3944
+ hasRuntimeDefault: false;
3945
+ enumValues: [string, ...string[]];
3946
+ baseColumn: never;
3947
+ identity: undefined;
3948
+ generated: undefined;
3949
+ }, {}, {
3950
+ length: number | undefined;
3951
+ }>;
3952
+ value: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3953
+ name: "value";
3954
+ tableName: "pending_writes";
3955
+ dataType: "string";
3956
+ columnType: "SQLiteText";
3957
+ data: string;
3958
+ driverParam: string;
3959
+ notNull: false;
3960
+ hasDefault: false;
3961
+ isPrimaryKey: false;
3962
+ isAutoincrement: false;
3963
+ hasRuntimeDefault: false;
3964
+ enumValues: [string, ...string[]];
3965
+ baseColumn: never;
3966
+ identity: undefined;
3967
+ generated: undefined;
3968
+ }, {}, {
3969
+ length: number | undefined;
3970
+ }>;
3971
+ valueRef: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3972
+ name: "value_ref";
3973
+ tableName: "pending_writes";
3974
+ dataType: "string";
3975
+ columnType: "SQLiteText";
3976
+ data: string;
3977
+ driverParam: string;
3978
+ notNull: false;
3979
+ hasDefault: false;
3980
+ isPrimaryKey: false;
3981
+ isAutoincrement: false;
3982
+ hasRuntimeDefault: false;
3983
+ enumValues: [string, ...string[]];
3984
+ baseColumn: never;
3985
+ identity: undefined;
3986
+ generated: undefined;
3987
+ }, {}, {
3988
+ length: number | undefined;
3989
+ }>;
3990
+ baseRowId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3991
+ name: "base_row_id";
3992
+ tableName: "pending_writes";
3993
+ dataType: "string";
3994
+ columnType: "SQLiteText";
3995
+ data: string;
3996
+ driverParam: string;
3997
+ notNull: false;
3998
+ hasDefault: false;
3999
+ isPrimaryKey: false;
4000
+ isAutoincrement: false;
4001
+ hasRuntimeDefault: false;
4002
+ enumValues: [string, ...string[]];
4003
+ baseColumn: never;
4004
+ identity: undefined;
4005
+ generated: undefined;
4006
+ }, {}, {
4007
+ length: number | undefined;
4008
+ }>;
4009
+ baseUid: import("drizzle-orm/sqlite-core").SQLiteColumn<{
4010
+ name: "base_uid";
4011
+ tableName: "pending_writes";
4012
+ dataType: "string";
4013
+ columnType: "SQLiteText";
4014
+ data: string;
4015
+ driverParam: string;
4016
+ notNull: false;
4017
+ hasDefault: false;
4018
+ isPrimaryKey: false;
4019
+ isAutoincrement: false;
4020
+ hasRuntimeDefault: false;
4021
+ enumValues: [string, ...string[]];
4022
+ baseColumn: never;
4023
+ identity: undefined;
4024
+ generated: undefined;
4025
+ }, {}, {
4026
+ length: number | undefined;
4027
+ }>;
4028
+ createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
4029
+ name: "created_at";
4030
+ tableName: "pending_writes";
3668
4031
  dataType: "number";
3669
4032
  columnType: "SQLiteInteger";
3670
4033
  data: number;
3671
4034
  driverParam: number;
3672
4035
  notNull: true;
3673
- hasDefault: true;
3674
- isPrimaryKey: true;
4036
+ hasDefault: false;
4037
+ isPrimaryKey: false;
3675
4038
  isAutoincrement: false;
3676
4039
  hasRuntimeDefault: false;
3677
4040
  enumValues: undefined;
@@ -3679,9 +4042,28 @@ declare const modelUids: import("drizzle-orm/sqlite-core").SQLiteTableWithColumn
3679
4042
  identity: undefined;
3680
4043
  generated: undefined;
3681
4044
  }, {}, {}>;
3682
- uid: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3683
- name: "uid";
3684
- tableName: "model_uids";
4045
+ tabId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
4046
+ name: "tab_id";
4047
+ tableName: "pending_writes";
4048
+ dataType: "string";
4049
+ columnType: "SQLiteText";
4050
+ data: string;
4051
+ driverParam: string;
4052
+ notNull: false;
4053
+ hasDefault: false;
4054
+ isPrimaryKey: false;
4055
+ isAutoincrement: false;
4056
+ hasRuntimeDefault: false;
4057
+ enumValues: [string, ...string[]];
4058
+ baseColumn: never;
4059
+ identity: undefined;
4060
+ generated: undefined;
4061
+ }, {}, {
4062
+ length: number | undefined;
4063
+ }>;
4064
+ status: import("drizzle-orm/sqlite-core").SQLiteColumn<{
4065
+ name: "status";
4066
+ tableName: "pending_writes";
3685
4067
  dataType: "string";
3686
4068
  columnType: "SQLiteText";
3687
4069
  data: string;
@@ -3698,15 +4080,53 @@ declare const modelUids: import("drizzle-orm/sqlite-core").SQLiteTableWithColumn
3698
4080
  }, {}, {
3699
4081
  length: number | undefined;
3700
4082
  }>;
3701
- modelId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3702
- name: "model_id";
3703
- tableName: "model_uids";
4083
+ error: import("drizzle-orm/sqlite-core").SQLiteColumn<{
4084
+ name: "error";
4085
+ tableName: "pending_writes";
4086
+ dataType: "string";
4087
+ columnType: "SQLiteText";
4088
+ data: string;
4089
+ driverParam: string;
4090
+ notNull: false;
4091
+ hasDefault: false;
4092
+ isPrimaryKey: false;
4093
+ isAutoincrement: false;
4094
+ hasRuntimeDefault: false;
4095
+ enumValues: [string, ...string[]];
4096
+ baseColumn: never;
4097
+ identity: undefined;
4098
+ generated: undefined;
4099
+ }, {}, {
4100
+ length: number | undefined;
4101
+ }>;
4102
+ errorName: import("drizzle-orm/sqlite-core").SQLiteColumn<{
4103
+ name: "error_name";
4104
+ tableName: "pending_writes";
4105
+ dataType: "string";
4106
+ columnType: "SQLiteText";
4107
+ data: string;
4108
+ driverParam: string;
4109
+ notNull: false;
4110
+ hasDefault: false;
4111
+ isPrimaryKey: false;
4112
+ isAutoincrement: false;
4113
+ hasRuntimeDefault: false;
4114
+ enumValues: [string, ...string[]];
4115
+ baseColumn: never;
4116
+ identity: undefined;
4117
+ generated: undefined;
4118
+ }, {}, {
4119
+ length: number | undefined;
4120
+ }>;
4121
+ attempts: import("drizzle-orm/sqlite-core").SQLiteColumn<{
4122
+ name: "attempts";
4123
+ tableName: "pending_writes";
3704
4124
  dataType: "number";
3705
4125
  columnType: "SQLiteInteger";
3706
4126
  data: number;
3707
4127
  driverParam: number;
3708
4128
  notNull: true;
3709
- hasDefault: false;
4129
+ hasDefault: true;
3710
4130
  isPrimaryKey: false;
3711
4131
  isAutoincrement: false;
3712
4132
  hasRuntimeDefault: false;
@@ -3715,23 +4135,16 @@ declare const modelUids: import("drizzle-orm/sqlite-core").SQLiteTableWithColumn
3715
4135
  identity: undefined;
3716
4136
  generated: undefined;
3717
4137
  }, {}, {}>;
3718
- };
3719
- dialect: "sqlite";
3720
- }>;
3721
- declare const models: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
3722
- name: "models";
3723
- schema: undefined;
3724
- columns: {
3725
- id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3726
- name: "id";
3727
- tableName: "models";
4138
+ appliedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
4139
+ name: "applied_at";
4140
+ tableName: "pending_writes";
3728
4141
  dataType: "number";
3729
4142
  columnType: "SQLiteInteger";
3730
4143
  data: number;
3731
4144
  driverParam: number;
3732
- notNull: true;
3733
- hasDefault: true;
3734
- isPrimaryKey: true;
4145
+ notNull: false;
4146
+ hasDefault: false;
4147
+ isPrimaryKey: false;
3735
4148
  isAutoincrement: false;
3736
4149
  hasRuntimeDefault: false;
3737
4150
  enumValues: undefined;
@@ -3739,14 +4152,14 @@ declare const models: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
3739
4152
  identity: undefined;
3740
4153
  generated: undefined;
3741
4154
  }, {}, {}>;
3742
- name: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3743
- name: "name";
3744
- tableName: "models";
4155
+ result: import("drizzle-orm/sqlite-core").SQLiteColumn<{
4156
+ name: "result";
4157
+ tableName: "pending_writes";
3745
4158
  dataType: "string";
3746
4159
  columnType: "SQLiteText";
3747
4160
  data: string;
3748
4161
  driverParam: string;
3749
- notNull: true;
4162
+ notNull: false;
3750
4163
  hasDefault: false;
3751
4164
  isPrimaryKey: false;
3752
4165
  isAutoincrement: false;
@@ -3758,9 +4171,9 @@ declare const models: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
3758
4171
  }, {}, {
3759
4172
  length: number | undefined;
3760
4173
  }>;
3761
- schemaFileId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3762
- name: "schema_file_id";
3763
- tableName: "models";
4174
+ conflict: import("drizzle-orm/sqlite-core").SQLiteColumn<{
4175
+ name: "conflict";
4176
+ tableName: "pending_writes";
3764
4177
  dataType: "string";
3765
4178
  columnType: "SQLiteText";
3766
4179
  data: string;
@@ -3777,12 +4190,12 @@ declare const models: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
3777
4190
  }, {}, {
3778
4191
  length: number | undefined;
3779
4192
  }>;
3780
- isEdited: import("drizzle-orm/sqlite-core").SQLiteColumn<{
3781
- name: "is_edited";
3782
- tableName: "models";
3783
- dataType: "boolean";
3784
- columnType: "SQLiteBoolean";
3785
- data: boolean;
4193
+ conflictResolvedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
4194
+ name: "conflict_resolved_at";
4195
+ tableName: "pending_writes";
4196
+ dataType: "number";
4197
+ columnType: "SQLiteInteger";
4198
+ data: number;
3786
4199
  driverParam: number;
3787
4200
  notNull: false;
3788
4201
  hasDefault: false;
@@ -3797,9 +4210,6 @@ declare const models: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
3797
4210
  };
3798
4211
  dialect: "sqlite";
3799
4212
  }>;
3800
- declare const modelsRelations: import("drizzle-orm").Relations<"models", {
3801
- properties: import("drizzle-orm").Many<"properties">;
3802
- }>;
3803
4213
  declare const properties: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
3804
4214
  name: "properties";
3805
4215
  schema: undefined;
@@ -4475,5 +4885,5 @@ declare function propertyStorageColumns(def: any): {
4475
4885
  localStorageDir: any;
4476
4886
  filenameSuffix: any;
4477
4887
  };
4478
- export { getItemStorageSubdir as $, schemas as A, BaseDb as B, seeds as C, DEFAULT_TEXT_MAX_LENGTH as D, uploadProcesses as E, versions as F, resolveStorageNameToSchemaName as G, AmbiguousModelError as H, eventEmitter as I, nameMatchLevels as J, getPropertyIdForModelAndName as K, resolveItemModelFileId as L, ModelPropertyDataTypes as M, addModelsToDb as N, INIT_SCRIPT_SUCCESS_MESSAGE as O, Property as P, getCorrectId as Q, isPublishedSeedRef as R, SCHEMA_TS as S, THtmlEmbeddedDataUriPolicy as T, normalizeRelationPropertyValue as U, resolveSeedIdsFromRefString as V, getArweaveUrlForTransaction as W, INTERNAL_STORAGE_MODEL_FILE_IDS as X, getStorageDirForDataType as Y, getContentSha256 as Z, buildArweaveContentTags as _, TProperty as a, toSchemaPropertyName as a$, getItemStorageLocalFileName as a0, isNode as a1, ZERO_BYTES32 as a2, resolveModelRecord as a3, getItemModelScope as a4, VERSION_SCHEMA_UID as a5, INTERNAL_PROPERTY_NAMES as a6, isStorageSeedRef as a7, defaultAttestationData as a8, INTERNAL_DATA_TYPES as a9, contentSha256TagMatches as aA, ensureImageLocal as aB, getAddressesForItemsFilter as aC, getFeedItemStringField as aD, normalizeAddressConfig as aE, normalizeAddressList as aF, normalizeArweaveTxIdForEnsure as aG, normalizeFeedItemFields as aH, resolveMediaRef as aI, isInternalSchema as aJ, writeModelToDb as aK, writePropertyToDb as aL, addSchemaToDb as aM, renameModelInDb as aN, currentNameMatchLevels as aO, loadModelsFromDbForSchema as aP, mergeDbModelsIntoSchemaModels as aQ, clearNameMatchLevels as aR, isTestOrSeedDev as aS, downloadAllFilesRequestHandler as aT, downloadAllFilesBinaryRequestHandler as aU, warnOnInvalidNameMatch as aV, INTERNAL_SCHEMA_IDS as aW, linkModelToSchema as aX, getWatchedAddressesFromDb as aY, getOwnedAddressesFromDb as aZ, CLIENT_NOT_INITIALIZED as a_, listRelationEasPropertyName as aa, easPropertyNameForPublish as ab, isBrowser as ac, EAS_SEED_DATA_SYNCED_TO_DB_EVENT as ad, normalizePublisher as ae, getAllAddressesFromDb as af, loadNameMatchLevels as ag, scheduleBulkFilesDownloadFromEasSync as ah, generateId as ai, normalizeHexAddress as aj, toMetadataPropertyName as ak, getItemStoragePropertiesForModel as al, SEED_CONFIG_FILE as am, SEED_CONFIG_FALLBACKS as an, getModelIdByFileId as ao, getModelId as ap, setCachedPropertyRefresher as aq, CONTENT_SHA256_TAG as ar, CONTENT_TYPE_TAG as as, ImageSize as at, SEED_PROTOCOL_SCHEMA_NAME as au, SeedModels as av, VERSION_SCHEMA_DEF as aw, VERSION_SCHEMA_UID_OPTIMISM_SEPOLIA as ax, classifyMediaRef as ay, closestImageSize as az, TPropertyConstructor as b, easSchemaDefinitionForProperty as b0, getStorageTransactionIdForSeedUid as b1, convertTxIdToImage as b2, getMetadataPropertyNamesForQuery as b3, downloadTransactionIdWithDedupe as b4, resolveMetadataRecord as b5, getPropertyIdForSchemaFileId as b6, getDataTypeFromString as b7, getMimeType as b8, listRelationStoragePropertyName as b9, PROPERTY_NAMES_EXEMPT_FROM_ID_SUFFIX_STRIP as ba, getAlternatePropertyNameForInstanceLookup as bb, BaseDb$1 as bc, ModelSchema as bd, BaseFileManager$1 as be, SchemaSchema as bf, ModelSchemaSchema as bg, resolveModelRecord$1 as bh, db as bi, download as bj, generateId$1 as bk, TPropertyDataType as c, TPropertyDefs as d, TStorageType as e, TValidationRules as f, normalizePropertyRecordSchema as g, BaseFileManager as h, isDataType as i, appState as j, arweaveL1FinalizeJobs as k, config as l, metadata as m, normalizeDataType as n, easSyncProcesses as o, htmlEmbeddedImageCoPublish as p, modelRelations as q, modelSchemas as r, modelUids as s, models as t, modelsRelations as u, properties as v, propertiesRelations as w, propertyUidRelations as x, propertyUids as y, publishProcesses as z };
4479
- //# sourceMappingURL=index-DpgQMIRq.d.ts.map
4888
+ export { buildArweaveContentTags as $, schemas as A, seeds as B, uploadProcesses as C, DEFAULT_TEXT_MAX_LENGTH as D, versions as E, BaseDb as F, resolveStorageNameToSchemaName as G, AmbiguousModelError as H, eventEmitter as I, nameMatchLevels as J, getPropertyIdForModelAndName as K, resolveItemModelFileId as L, ModelPropertyDataTypes as M, BaseFileManager as N, addModelsToDb as O, Property as P, INIT_SCRIPT_SUCCESS_MESSAGE as Q, getCorrectId as R, SCHEMA_TS as S, THtmlEmbeddedDataUriPolicy as T, isPublishedSeedRef as U, normalizeRelationPropertyValue as V, resolveSeedIdsFromRefString as W, getArweaveUrlForTransaction as X, INTERNAL_STORAGE_MODEL_FILE_IDS as Y, getStorageDirForDataType as Z, getContentSha256 as _, TProperty as a, getWatchedAddressesFromDb as a$, getItemStorageSubdir as a0, getItemStorageLocalFileName as a1, isNode as a2, ZERO_BYTES32 as a3, resolveModelRecord as a4, getItemModelScope as a5, VERSION_SCHEMA_UID as a6, INTERNAL_PROPERTY_NAMES as a7, isStorageSeedRef as a8, defaultAttestationData as a9, classifyMediaRef as aA, closestImageSize as aB, contentSha256TagMatches as aC, ensureImageLocal as aD, getAddressesForItemsFilter as aE, getFeedItemStringField as aF, normalizeAddressConfig as aG, normalizeAddressList as aH, normalizeArweaveTxIdForEnsure as aI, normalizeFeedItemFields as aJ, resolveMediaRef as aK, isInternalSchema as aL, writeModelToDb as aM, writePropertyToDb as aN, addSchemaToDb as aO, renameModelInDb as aP, currentNameMatchLevels as aQ, loadModelsFromDbForSchema as aR, mergeDbModelsIntoSchemaModels as aS, clearNameMatchLevels as aT, isTestOrSeedDev as aU, downloadAllFilesRequestHandler as aV, downloadAllFilesBinaryRequestHandler as aW, warnOnInvalidNameMatch as aX, INTERNAL_SCHEMA_IDS as aY, linkModelToSchema as aZ, getMetadataPropertyNamesForQuery as a_, INTERNAL_DATA_TYPES as aa, listRelationEasPropertyName as ab, easPropertyNameForPublish as ac, normalizePublisher as ad, getAllAddressesFromDb as ae, loadNameMatchLevels as af, scheduleBulkFilesDownloadFromEasSync as ag, EAS_SEED_DATA_SYNCED_TO_DB_EVENT as ah, generateId as ai, normalizeHexAddress as aj, toMetadataPropertyName as ak, getItemStoragePropertiesForModel as al, isBrowser as am, getModelIdByFileId as an, getModelId as ao, setCachedPropertyRefresher as ap, withSqliteBusyRetry as aq, SEED_CONFIG_FILE as ar, SEED_CONFIG_FALLBACKS as as, CONTENT_SHA256_TAG as at, CONTENT_TYPE_TAG as au, ImageSize as av, SEED_PROTOCOL_SCHEMA_NAME as aw, SeedModels as ax, VERSION_SCHEMA_DEF as ay, VERSION_SCHEMA_UID_OPTIMISM_SEPOLIA as az, TPropertyConstructor as b, getOwnedAddressesFromDb as b0, CLIENT_NOT_INITIALIZED as b1, toSchemaPropertyName as b2, isSqliteBusyError as b3, easSchemaDefinitionForProperty as b4, getStorageTransactionIdForSeedUid as b5, convertTxIdToImage as b6, getPropertyIdForSchemaFileId as b7, downloadTransactionIdWithDedupe as b8, resolveMetadataRecord as b9, getDataTypeFromString as ba, getMimeType as bb, listRelationStoragePropertyName as bc, PROPERTY_NAMES_EXEMPT_FROM_ID_SUFFIX_STRIP as bd, toItemPropertyKey as be, getAlternatePropertyNameForInstanceLookup as bf, BaseDb$1 as bg, ModelSchema as bh, BaseFileManager$1 as bi, SchemaSchema as bj, ModelSchemaSchema as bk, resolveModelRecord$1 as bl, db as bm, download as bn, generateId$1 as bo, TPropertyDataType as c, TPropertyDefs as d, TStorageType as e, TValidationRules as f, normalizePropertyRecordSchema as g, appState as h, isDataType as i, arweaveL1FinalizeJobs as j, config as k, easSyncProcesses as l, metadata as m, normalizeDataType as n, htmlEmbeddedImageCoPublish as o, modelRelations as p, modelSchemas as q, modelUids as r, models as s, modelsRelations as t, pendingWrites as u, properties as v, propertiesRelations as w, propertyUidRelations as x, propertyUids as y, publishProcesses as z };
4889
+ //# sourceMappingURL=index-CI0NFf4B.d.ts.map