@seedprotocol/sdk 0.4.17 → 0.4.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (257) hide show
  1. package/dist/{ArweaveClient-Zz6VwCkj.js → ArweaveClient-CAdWVQnJ.js} +3 -3
  2. package/dist/{ArweaveClient-Zz6VwCkj.js.map → ArweaveClient-CAdWVQnJ.js.map} +1 -1
  3. package/dist/{ArweaveClient-DPeCeRMF.js → ArweaveClient-V62RJhsZ.js} +3 -3
  4. package/dist/{ArweaveClient-DPeCeRMF.js.map → ArweaveClient-V62RJhsZ.js.map} +1 -1
  5. package/dist/{Db-Cvoi9q3N.js → Db-8N3-le9a.js} +4 -4
  6. package/dist/{Db-Cvoi9q3N.js.map → Db-8N3-le9a.js.map} +1 -1
  7. package/dist/{Db-DsFElL33.js → Db-DS2GBY6h.js} +133 -6
  8. package/dist/Db-DS2GBY6h.js.map +1 -0
  9. package/dist/{EasClient-B2N8bc3C.js → EasClient-D1eibg8b.js} +2 -2
  10. package/dist/{EasClient-B2N8bc3C.js.map → EasClient-D1eibg8b.js.map} +1 -1
  11. package/dist/{EasClient-D5Nn1WBF.js → EasClient-nOmY5meW.js} +2 -2
  12. package/dist/{EasClient-D5Nn1WBF.js.map → EasClient-nOmY5meW.js.map} +1 -1
  13. package/dist/{FileManager-Bk-JeMoA.js → FileManager-Cze8qmS1.js} +2 -2
  14. package/dist/{FileManager-Bk-JeMoA.js.map → FileManager-Cze8qmS1.js.map} +1 -1
  15. package/dist/{FileManager-Cqy_Lq46.js → FileManager-DSTAwkqw.js} +2 -2
  16. package/dist/{FileManager-Cqy_Lq46.js.map → FileManager-DSTAwkqw.js.map} +1 -1
  17. package/dist/{ModelProperty-CkQaEsBu.js → ModelProperty-ChevZoUy.js} +24 -24
  18. package/dist/{ModelProperty-CkQaEsBu.js.map → ModelProperty-ChevZoUy.js.map} +1 -1
  19. package/dist/{PathResolver-DF1QFI1d.js → PathResolver-3TuYA9yv.js} +2 -2
  20. package/dist/{PathResolver-DF1QFI1d.js.map → PathResolver-3TuYA9yv.js.map} +1 -1
  21. package/dist/{PathResolver-C3sdR5LL.js → PathResolver-C5gj9EU2.js} +2 -2
  22. package/dist/{PathResolver-C3sdR5LL.js.map → PathResolver-C5gj9EU2.js.map} +1 -1
  23. package/dist/{QueryClient-Ctgd0tDn.js → QueryClient-BGv6JOls.js} +2 -2
  24. package/dist/{QueryClient-Ctgd0tDn.js.map → QueryClient-BGv6JOls.js.map} +1 -1
  25. package/dist/{QueryClient-CnONLIkA.js → QueryClient-By2vdhIz.js} +2 -2
  26. package/dist/{QueryClient-CnONLIkA.js.map → QueryClient-By2vdhIz.js.map} +1 -1
  27. package/dist/{Schema-Bnim4hAF.js → Schema-BQ5W3aOW.js} +38 -38
  28. package/dist/{Schema-Bnim4hAF.js.map → Schema-BQ5W3aOW.js.map} +1 -1
  29. package/dist/{SchemaValidationService-DXxRk-9Q.js → SchemaValidationService-DQx83Cte.js} +2 -2
  30. package/dist/{SchemaValidationService-DXxRk-9Q.js.map → SchemaValidationService-DQx83Cte.js.map} +1 -1
  31. package/dist/{backfillMetadataPropertyIds-dzwzz4dA.js → backfillMetadataPropertyIds-CMsU83q9.js} +2 -2
  32. package/dist/{backfillMetadataPropertyIds-dzwzz4dA.js.map → backfillMetadataPropertyIds-CMsU83q9.js.map} +1 -1
  33. package/dist/cjs/{ModelProperty-C80601ai.js → ModelProperty-Cuj839nX.js} +17 -17
  34. package/dist/cjs/{ModelProperty-C80601ai.js.map → ModelProperty-Cuj839nX.js.map} +1 -1
  35. package/dist/cjs/{Schema-6BQKp7hO.js → Schema-TFe24NNG.js} +20 -20
  36. package/dist/cjs/{Schema-6BQKp7hO.js.map → Schema-TFe24NNG.js.map} +1 -1
  37. package/dist/cjs/{SchemaValidationService-BySF1P0v.js → SchemaValidationService-DVQrRpse.js} +2 -2
  38. package/dist/cjs/{SchemaValidationService-BySF1P0v.js.map → SchemaValidationService-DVQrRpse.js.map} +1 -1
  39. package/dist/cjs/{backfillMetadataPropertyIds-D9uzW5bW.js → backfillMetadataPropertyIds-BiXK4hT1.js} +2 -2
  40. package/dist/cjs/{backfillMetadataPropertyIds-D9uzW5bW.js.map → backfillMetadataPropertyIds-BiXK4hT1.js.map} +1 -1
  41. package/dist/cjs/{getItem-Dj49AjWB.js → getItem-FgLv9abh.js} +2 -2
  42. package/dist/cjs/{getItem-Dj49AjWB.js.map → getItem-FgLv9abh.js.map} +1 -1
  43. package/dist/cjs/{getPublishPayload-dR9co4rH.js → getPublishPayload-h_Rz8nVX.js} +527 -79
  44. package/dist/cjs/getPublishPayload-h_Rz8nVX.js.map +1 -0
  45. package/dist/cjs/{getPublishUploads-g61mgXaA.js → getPublishUploads-DdSwst2x.js} +14 -8
  46. package/dist/cjs/getPublishUploads-DdSwst2x.js.map +1 -0
  47. package/dist/cjs/{getSegmentedItemProperties-NFvOHlAi.js → getSegmentedItemProperties-Bu4P_MG8.js} +5 -4
  48. package/dist/cjs/getSegmentedItemProperties-Bu4P_MG8.js.map +1 -0
  49. package/dist/cjs/{index-ud9i9fpp.js → index-CKJeh6ic.js} +3 -3
  50. package/dist/cjs/index-CKJeh6ic.js.map +1 -0
  51. package/dist/cjs/{index-9O_Ji1kY.js → index-pyKmk9hA.js} +243 -60
  52. package/dist/cjs/index-pyKmk9hA.js.map +1 -0
  53. package/dist/cjs/{ownership-CyLRNReQ.js → ownership-gfm5thj7.js} +2 -2
  54. package/dist/cjs/{ownership-CyLRNReQ.js.map → ownership-gfm5thj7.js.map} +1 -1
  55. package/dist/cjs/{property-Hj-RhQVX.js → property-Dw0b_Sf8.js} +4 -4
  56. package/dist/cjs/{property-Hj-RhQVX.js.map → property-Dw0b_Sf8.js.map} +1 -1
  57. package/dist/db/drizzle/drizzle/0010_add_arweave_l1_finalize_jobs.sql +16 -0
  58. package/dist/db/drizzle/drizzle/meta/0010_snapshot.json +1182 -0
  59. package/dist/db/drizzle/drizzle/meta/_journal.json +7 -0
  60. package/dist/{getItem-ClK0UZqi.js → getItem-Bd9U9Yih.js} +2 -2
  61. package/dist/{getItem-ClK0UZqi.js.map → getItem-Bd9U9Yih.js.map} +1 -1
  62. package/dist/{getPublishPayload-CdfPTl8l.js → getPublishPayload-eJL7ktes.js} +530 -82
  63. package/dist/getPublishPayload-eJL7ktes.js.map +1 -0
  64. package/dist/{getPublishUploads-CGBky9q9.js → getPublishUploads-CKm5dsL6.js} +14 -8
  65. package/dist/getPublishUploads-CKm5dsL6.js.map +1 -0
  66. package/dist/{getSegmentedItemProperties-CJWdYH9W.js → getSegmentedItemProperties-B74LN_bz.js} +5 -4
  67. package/dist/getSegmentedItemProperties-B74LN_bz.js.map +1 -0
  68. package/dist/{index-C74KrwXN.js → index-BQv2k74p.js} +3 -2
  69. package/dist/index-BQv2k74p.js.map +1 -0
  70. package/dist/{index-uPXtq2cf.js → index-BvZCYMxA.js} +268 -75
  71. package/dist/index-BvZCYMxA.js.map +1 -0
  72. package/dist/{index-CgmWq1sF.js → index-BxfqPvtu.js} +3 -3
  73. package/dist/index-BxfqPvtu.js.map +1 -0
  74. package/dist/main.cjs +1 -1
  75. package/dist/main.js +155 -18
  76. package/dist/main.js.map +1 -1
  77. package/dist/node.js +10 -10
  78. package/dist/{ownership-QK5haR3-.js → ownership-tVhYQomL.js} +2 -2
  79. package/dist/{ownership-QK5haR3-.js.map → ownership-tVhYQomL.js.map} +1 -1
  80. package/dist/{property-Dt0U3UXJ.js → property-BOdk-wW1.js} +6 -6
  81. package/dist/{property-Dt0U3UXJ.js.map → property-BOdk-wW1.js.map} +1 -1
  82. package/dist/{queries-BUB-vUBm.js → queries-DBqVwEdv.js} +2 -2
  83. package/dist/{queries-BUB-vUBm.js.map → queries-DBqVwEdv.js.map} +1 -1
  84. package/dist/seedSchema/ArweaveL1FinalizeSchema.ts +28 -0
  85. package/dist/seedSchema/index.d.ts +3 -0
  86. package/dist/seedSchema/index.ts +1 -0
  87. package/dist/src/Item/Item.d.ts +12 -9
  88. package/dist/src/Item/Item.d.ts.map +1 -1
  89. package/dist/src/Item/queries.d.ts +3 -3
  90. package/dist/src/Item/service/actors/fetchDataFromEas.d.ts +1 -1
  91. package/dist/src/Item/service/actors/fetchDataFromEas.d.ts.map +1 -1
  92. package/dist/src/Item/service/actors/hydrateExistingItem.d.ts +1 -1
  93. package/dist/src/Item/service/actors/hydrateNewItem.d.ts +1 -1
  94. package/dist/src/Item/service/actors/initialize.d.ts +1 -1
  95. package/dist/src/Item/service/actors/loadOrCreateItem.d.ts +2 -2
  96. package/dist/src/Item/service/actors/reload.d.ts +2 -2
  97. package/dist/src/Item/service/actors/runPublish.d.ts +2 -2
  98. package/dist/src/Item/service/actors/saveDataToDb.d.ts +1 -1
  99. package/dist/src/Item/service/actors/waitForDb.d.ts +1 -1
  100. package/dist/src/Item/service/itemMachineSingle.d.ts +11 -11
  101. package/dist/src/ItemProperty/ItemProperty.d.ts +5 -5
  102. package/dist/src/ItemProperty/service/actors/hydrateFromDb.d.ts +2 -2
  103. package/dist/src/ItemProperty/service/actors/initialize.d.ts +2 -2
  104. package/dist/src/ItemProperty/service/actors/loadOrCreateProperty.d.ts +2 -2
  105. package/dist/src/ItemProperty/service/actors/resolveRelatedValue.d.ts +2 -2
  106. package/dist/src/ItemProperty/service/actors/resolveRemoteStorage.d.ts +2 -2
  107. package/dist/src/ItemProperty/service/actors/saveValueToDb/analyzeInput.d.ts +2 -2
  108. package/dist/src/ItemProperty/service/actors/saveValueToDb/saveFile.d.ts +2 -2
  109. package/dist/src/ItemProperty/service/actors/saveValueToDb/saveHtml.d.ts +2 -2
  110. package/dist/src/ItemProperty/service/actors/saveValueToDb/saveImage.d.ts +2 -2
  111. package/dist/src/ItemProperty/service/actors/saveValueToDb/saveItemStorage.d.ts +2 -2
  112. package/dist/src/ItemProperty/service/actors/saveValueToDb/saveRelation.d.ts +2 -2
  113. package/dist/src/ItemProperty/service/actors/waitForDb.d.ts +1 -1
  114. package/dist/src/ItemProperty/service/propertyMachine.d.ts +14 -14
  115. package/dist/src/Model/Model.d.ts +2 -2
  116. package/dist/src/Model/service/actors/createModelProperties.d.ts +1 -1
  117. package/dist/src/Model/service/actors/loadOrCreateModel.d.ts +1 -1
  118. package/dist/src/Model/service/actors/validateModel.d.ts +1 -1
  119. package/dist/src/Model/service/modelMachine.d.ts +6 -6
  120. package/dist/src/ModelProperty/ModelProperty.d.ts +3 -3
  121. package/dist/src/ModelProperty/service/actors/compareAndMarkDraft.d.ts +1 -1
  122. package/dist/src/ModelProperty/service/actors/saveToSchema.d.ts +1 -1
  123. package/dist/src/ModelProperty/service/actors/validateProperty.d.ts +1 -1
  124. package/dist/src/ModelProperty/service/modelPropertyMachine.d.ts +7 -7
  125. package/dist/src/Schema/Schema.d.ts +1 -1
  126. package/dist/src/Schema/service/actors/checkExistingSchema.d.ts +1 -1
  127. package/dist/src/Schema/service/actors/loadOrCreateSchema.d.ts +1 -1
  128. package/dist/src/Schema/service/actors/validateSchema.d.ts +1 -1
  129. package/dist/src/Schema/service/actors/writeModelsToDb.d.ts +1 -1
  130. package/dist/src/Schema/service/actors/writeSchemaToDb.d.ts +1 -1
  131. package/dist/src/Schema/service/addModelsMachine.d.ts +1 -1
  132. package/dist/src/Schema/service/schemaMachine.d.ts +7 -7
  133. package/dist/src/Schema/service/validation/SchemaValidationService.d.ts +4 -4
  134. package/dist/src/browser/db/Db.d.ts +2 -2
  135. package/dist/src/browser/db/drizzleFiles.d.ts +3 -2
  136. package/dist/src/browser/db/drizzleFiles.d.ts.map +1 -1
  137. package/dist/src/browser/helpers/ArweaveClient.d.ts +2 -2
  138. package/dist/src/browser/helpers/EasClient.d.ts +1 -1
  139. package/dist/src/browser/helpers/FileManager.d.ts +1 -1
  140. package/dist/src/browser/helpers/PathResolver.d.ts +1 -1
  141. package/dist/src/browser/helpers/QueryClient.d.ts +2 -2
  142. package/dist/src/browser/seed.d.ts +1 -1
  143. package/dist/src/client/BaseClientManager.d.ts +1 -1
  144. package/dist/src/client/ClientManager.d.ts +41 -41
  145. package/dist/src/client/actors/addModelsToDb.d.ts +1 -1
  146. package/dist/src/client/actors/addModelsToStore.d.ts +1 -1
  147. package/dist/src/client/actors/dbInit.d.ts +1 -1
  148. package/dist/src/client/actors/fileSystemInit.d.ts +1 -1
  149. package/dist/src/client/actors/platformClassesInit.d.ts +1 -1
  150. package/dist/src/client/actors/processSchemaFiles.d.ts +1 -1
  151. package/dist/src/client/actors/saveConfig.d.ts +1 -1
  152. package/dist/src/client/clientManagerMachine.d.ts +11 -11
  153. package/dist/src/client/constants.d.ts +2 -2
  154. package/dist/src/db/Db/BaseDb.d.ts +1 -1
  155. package/dist/src/db/read/getItem.d.ts +1 -1
  156. package/dist/src/db/read/getItemData.d.ts +1 -1
  157. package/dist/src/db/read/getItemProperties.d.ts +1 -1
  158. package/dist/src/db/read/getItemProperty.d.ts +1 -1
  159. package/dist/src/db/read/getItems.d.ts +1 -1
  160. package/dist/src/db/read/getMetadata.d.ts +1 -1
  161. package/dist/src/db/read/getModels.d.ts +1 -1
  162. package/dist/src/db/read/getPropertyData.d.ts +2 -2
  163. package/dist/src/db/read/getPublishPayload.d.ts +12 -4
  164. package/dist/src/db/read/getPublishPayload.d.ts.map +1 -1
  165. package/dist/src/db/read/getPublishPendingDiff.d.ts +25 -0
  166. package/dist/src/db/read/getPublishPendingDiff.d.ts.map +1 -0
  167. package/dist/src/db/read/getPublishUploads.d.ts +3 -3
  168. package/dist/src/db/read/getPublishUploads.d.ts.map +1 -1
  169. package/dist/src/db/read/getRelatedItemsForPublish.d.ts +1 -1
  170. package/dist/src/db/read/getRelatedItemsForPublish.d.ts.map +1 -1
  171. package/dist/src/db/read/getRelationValueData.d.ts +1 -1
  172. package/dist/src/db/read/getSeedData.d.ts +1 -1
  173. package/dist/src/db/read/getVersionData.d.ts +1 -1
  174. package/dist/src/db/write/applyArweaveL1TransactionIdLocal.d.ts +12 -0
  175. package/dist/src/db/write/applyArweaveL1TransactionIdLocal.d.ts.map +1 -0
  176. package/dist/src/db/write/createMetadata.d.ts +2 -2
  177. package/dist/src/db/write/createNewItem.d.ts +1 -1
  178. package/dist/src/db/write/createSeeds.d.ts +1 -1
  179. package/dist/src/db/write/saveMetadata.d.ts +1 -1
  180. package/dist/src/db/write/updateItemPropertyValue.d.ts +1 -1
  181. package/dist/src/db/write/updateMetadata.d.ts +2 -2
  182. package/dist/src/eas.d.ts +12 -1
  183. package/dist/src/eas.d.ts.map +1 -1
  184. package/dist/src/events/files/download.d.ts +1 -1
  185. package/dist/src/events/item/syncDbWithEas.d.ts.map +1 -1
  186. package/dist/src/helpers/ArweaveClient/BaseArweaveClient.d.ts +1 -1
  187. package/dist/src/helpers/ArweaveClient/arweaveL1UploadApi.d.ts +46 -0
  188. package/dist/src/helpers/ArweaveClient/arweaveL1UploadApi.d.ts.map +1 -0
  189. package/dist/src/helpers/ArweaveClient/uploadApiVerification.d.ts +1 -1
  190. package/dist/src/helpers/EasClient/BaseEasClient.d.ts +1 -1
  191. package/dist/src/helpers/QueryClient/BaseQueryClient.d.ts +1 -1
  192. package/dist/src/helpers/addresses.d.ts +1 -1
  193. package/dist/src/helpers/constants.d.ts +2 -0
  194. package/dist/src/helpers/constants.d.ts.map +1 -1
  195. package/dist/src/helpers/db.d.ts +4 -4
  196. package/dist/src/helpers/easPropertyCanonical.d.ts +15 -0
  197. package/dist/src/helpers/easPropertyCanonical.d.ts.map +1 -0
  198. package/dist/src/helpers/file/fetchAll/index.d.ts +1 -1
  199. package/dist/src/helpers/getSchemaForItemProperty.d.ts +1 -1
  200. package/dist/src/helpers/getSegmentedItemProperties.d.ts +6 -6
  201. package/dist/src/helpers/getSegmentedItemProperties.d.ts.map +1 -1
  202. package/dist/src/helpers/index.d.ts +4 -1
  203. package/dist/src/helpers/index.d.ts.map +1 -1
  204. package/dist/src/helpers/model.d.ts +1 -1
  205. package/dist/src/helpers/ownership.d.ts +1 -1
  206. package/dist/src/helpers/property/index.d.ts +1 -1
  207. package/dist/src/helpers/property.d.ts +1 -1
  208. package/dist/src/helpers/publishConfig.d.ts +1 -1
  209. package/dist/src/helpers/relationSeedRef.d.ts +8 -0
  210. package/dist/src/helpers/relationSeedRef.d.ts.map +1 -0
  211. package/dist/src/helpers/schema.d.ts +2 -2
  212. package/dist/src/helpers/updateSchema.d.ts +2 -2
  213. package/dist/src/imports/json.d.ts +1 -1
  214. package/dist/src/imports/markdown.d.ts +1 -1
  215. package/dist/src/index.d.ts +11 -4
  216. package/dist/src/index.d.ts.map +1 -1
  217. package/dist/src/interfaces/IItem.d.ts +5 -3
  218. package/dist/src/interfaces/IItem.d.ts.map +1 -1
  219. package/dist/src/interfaces/IItemProperty.d.ts +3 -3
  220. package/dist/src/node/codegen/drizzle.d.ts +1 -1
  221. package/dist/src/node/db/Db.d.ts +3 -3
  222. package/dist/src/node/helpers/ArweaveClient.d.ts +2 -2
  223. package/dist/src/node/helpers/EasClient.d.ts +1 -1
  224. package/dist/src/node/helpers/FileManager.d.ts +1 -1
  225. package/dist/src/node/helpers/PathResolver.d.ts +1 -1
  226. package/dist/src/node/helpers/QueryClient.d.ts +2 -2
  227. package/dist/src/seedSchema/ArweaveL1FinalizeSchema.d.ts +233 -0
  228. package/dist/src/seedSchema/ArweaveL1FinalizeSchema.d.ts.map +1 -0
  229. package/dist/src/seedSchema/index.d.ts +1 -0
  230. package/dist/src/seedSchema/index.d.ts.map +1 -1
  231. package/dist/src/services/publish/actors/createPublishAttempt.d.ts +1 -1
  232. package/dist/src/services/publish/actors/preparePublishRequestData.d.ts +1 -1
  233. package/dist/src/services/publish/actors/upload.d.ts +1 -1
  234. package/dist/src/services/publish/actors/validateItemData.d.ts +1 -1
  235. package/dist/src/services/publish/publishMachine.d.ts +7 -7
  236. package/dist/src/services/write/writeProcessMachine.d.ts +1 -1
  237. package/dist/src/types/db.d.ts +1 -1
  238. package/dist/src/types/index.d.ts +1 -1
  239. package/dist/src/types/item.d.ts +6 -6
  240. package/dist/src/types/machines.d.ts +2 -2
  241. package/dist/src/types/model.d.ts +3 -3
  242. package/dist/src/types/property.d.ts +3 -3
  243. package/dist/src/types/publish.d.ts +1 -1
  244. package/dist/src/types/seedProtocol.d.ts +1 -1
  245. package/package.json +2 -2
  246. package/dist/Db-DsFElL33.js.map +0 -1
  247. package/dist/cjs/getPublishPayload-dR9co4rH.js.map +0 -1
  248. package/dist/cjs/getPublishUploads-g61mgXaA.js.map +0 -1
  249. package/dist/cjs/getSegmentedItemProperties-NFvOHlAi.js.map +0 -1
  250. package/dist/cjs/index-9O_Ji1kY.js.map +0 -1
  251. package/dist/cjs/index-ud9i9fpp.js.map +0 -1
  252. package/dist/getPublishPayload-CdfPTl8l.js.map +0 -1
  253. package/dist/getPublishUploads-CGBky9q9.js.map +0 -1
  254. package/dist/getSegmentedItemProperties-CJWdYH9W.js.map +0 -1
  255. package/dist/index-C74KrwXN.js.map +0 -1
  256. package/dist/index-CgmWq1sF.js.map +0 -1
  257. package/dist/index-uPXtq2cf.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { waitFor, fromCallback, fromPromise, setup, assign, createActor } from 'xstate';
2
- import { sqliteTable, integer, text, unique, int, blob } from 'drizzle-orm/sqlite-core';
2
+ import { sqliteTable, integer, text, unique, int, blob, uniqueIndex } from 'drizzle-orm/sqlite-core';
3
3
  import { relations, eq, and, isNull, isNotNull, not, or, max, count, getTableColumns, sql, inArray, gt, desc } from 'drizzle-orm';
4
4
  import { customAlphabet } from 'nanoid';
5
5
  import * as nanoIdDictionary from 'nanoid-dictionary';
@@ -365,6 +365,8 @@ const SEED_PROTOCOL_SCHEMA_NAME = 'Seed Protocol';
365
365
  const INTERNAL_SCHEMA_IDS = ['SEEDPROTOCOL'];
366
366
  /** Default Arweave gateway host used across all packages */
367
367
  const DEFAULT_ARWEAVE_HOST = 'arweave.net';
368
+ /** Default Arweave gateway GraphQL endpoint (transaction / block queries). */
369
+ const DEFAULT_ARWEAVE_GRAPHQL_URL = 'https://arweave.net/graphql';
368
370
  /** Default Arweave gateways for fallback / metadata fetching (ordered by preference) */
369
371
  const DEFAULT_ARWEAVE_GATEWAYS = ['arweave.net', 'ar-io.net'];
370
372
  /**
@@ -379,6 +381,7 @@ var constants = /*#__PURE__*/Object.freeze({
379
381
  __proto__: null,
380
382
  CLIENT_NOT_INITIALIZED: CLIENT_NOT_INITIALIZED,
381
383
  DEFAULT_ARWEAVE_GATEWAYS: DEFAULT_ARWEAVE_GATEWAYS,
384
+ DEFAULT_ARWEAVE_GRAPHQL_URL: DEFAULT_ARWEAVE_GRAPHQL_URL,
382
385
  DEFAULT_ARWEAVE_HOST: DEFAULT_ARWEAVE_HOST,
383
386
  INIT_SCRIPT_SUCCESS_MESSAGE: INIT_SCRIPT_SUCCESS_MESSAGE,
384
387
  INTERNAL_DATA_TYPES: INTERNAL_DATA_TYPES,
@@ -588,6 +591,103 @@ async function getUploadPipelineTransactionStatus(uploadApiBaseUrl, txOrDataItem
588
591
  }
589
592
  }
590
593
 
594
+ const GATEWAY_TX_QUERY = `
595
+ query ArweaveGatewayTransaction($id: String!) {
596
+ transaction(id: $id) {
597
+ id
598
+ bundledIn {
599
+ id
600
+ }
601
+ block {
602
+ height
603
+ timestamp
604
+ }
605
+ }
606
+ }
607
+ `;
608
+ function getUploadApiArweaveStatusUrl(baseUrl, dataItemId) {
609
+ const base = normalizeUploadApiBaseUrl(baseUrl);
610
+ const id = encodeURIComponent(dataItemId);
611
+ return `${base}/api/upload/arweave/status/${id}`;
612
+ }
613
+ /**
614
+ * Whether L1 anchoring is complete per upload API status JSON.
615
+ */
616
+ function isArweaveL1AnchoringComplete(status) {
617
+ const l1 = status.l1;
618
+ if (!l1)
619
+ return false;
620
+ if (l1.meetsMinConfirmations === true)
621
+ return true;
622
+ if (l1.confirmed === true)
623
+ return true;
624
+ return false;
625
+ }
626
+ /**
627
+ * Fetches JSON from `GET /api/upload/arweave/status/{dataItemId}`.
628
+ * Returns `null` if the response is not OK or body is not JSON.
629
+ */
630
+ async function getArweaveUploadStatus(uploadApiBaseUrl, dataItemId) {
631
+ const url = getUploadApiArweaveStatusUrl(uploadApiBaseUrl, dataItemId);
632
+ try {
633
+ const response = await fetch(url);
634
+ if (!response.ok) {
635
+ return null;
636
+ }
637
+ const body = (await response.json());
638
+ return body && typeof body === 'object' ? body : null;
639
+ }
640
+ catch {
641
+ return null;
642
+ }
643
+ }
644
+ /**
645
+ * Queries an Arweave gateway GraphQL API for transaction + bundle info.
646
+ */
647
+ async function queryArweaveGatewayTransaction(graphqlUrl, dataItemId, init) {
648
+ const url = graphqlUrl.trim();
649
+ if (!url)
650
+ return null;
651
+ try {
652
+ const response = await fetch(url, {
653
+ method: 'POST',
654
+ headers: {
655
+ 'Content-Type': 'application/json',
656
+ },
657
+ body: JSON.stringify({
658
+ query: GATEWAY_TX_QUERY,
659
+ variables: { id: dataItemId },
660
+ }),
661
+ signal: init?.signal,
662
+ });
663
+ if (!response.ok) {
664
+ return null;
665
+ }
666
+ const json = (await response.json());
667
+ if (json.errors) {
668
+ return null;
669
+ }
670
+ const tx = json.data?.transaction;
671
+ if (!tx) {
672
+ return {
673
+ transactionId: null,
674
+ bundledInId: null,
675
+ blockHeight: null,
676
+ blockTimestamp: null,
677
+ };
678
+ }
679
+ return {
680
+ transactionId: typeof tx.id === 'string' ? tx.id : null,
681
+ bundledInId: tx.bundledIn?.id != null ? String(tx.bundledIn.id) : null,
682
+ blockHeight: tx.block?.height ?? null,
683
+ blockTimestamp: tx.block?.timestamp ?? null,
684
+ };
685
+ }
686
+ catch {
687
+ return null;
688
+ }
689
+ }
690
+
591
691
  class BaseEasClient {
592
692
  static setPlatformClass(platformClass) {
593
693
  if (!platformClass) {
@@ -1010,6 +1110,69 @@ function resolveMetadataRecord(records, preferredPropertyName, dataType, refValu
1010
1110
  return (records.find((r) => r.propertyName === preferredPropertyName) ?? records[0]);
1011
1111
  }
1012
1112
 
1113
+ /** Same rules as getCorrectId in helpers/index (avoid barrel circular import). */
1114
+ function parseLocalIdOrUid(localIdOrUid) {
1115
+ const id = { localId: undefined, uid: undefined };
1116
+ if (!localIdOrUid)
1117
+ return id;
1118
+ if (localIdOrUid.length === 10) {
1119
+ id.localId = localIdOrUid;
1120
+ }
1121
+ if (localIdOrUid.startsWith('0x') && localIdOrUid.length === 66) {
1122
+ id.uid = localIdOrUid;
1123
+ }
1124
+ return id;
1125
+ }
1126
+ /** Relation/image refs may be string ids or `{ seedLocalId?, seedUid? }`. */
1127
+ function normalizeRelationPropertyValue(value) {
1128
+ if (value == null)
1129
+ return undefined;
1130
+ if (typeof value === 'string') {
1131
+ const t = value.trim();
1132
+ return t !== '' ? t : undefined;
1133
+ }
1134
+ if (typeof value === 'object' && value !== null) {
1135
+ const o = value;
1136
+ if (typeof o.seedLocalId === 'string' && o.seedLocalId.trim() !== '') {
1137
+ return o.seedLocalId.trim();
1138
+ }
1139
+ if (typeof o.seedUid === 'string' && o.seedUid.trim() !== '') {
1140
+ return o.seedUid.trim();
1141
+ }
1142
+ }
1143
+ return undefined;
1144
+ }
1145
+ /** getCorrectId only accepts 10-char local ids and 0x66 uids; local seed refs can be up to 21 chars. */
1146
+ const LOCAL_SEED_REF = /^[a-zA-Z0-9_-]{10,21}$/;
1147
+ /** Resolve seed ids from a single string (context propertyValue or DB row). */
1148
+ function resolveSeedIdsFromRefString(s) {
1149
+ const fromCorrect = parseLocalIdOrUid(s);
1150
+ if (fromCorrect.localId || fromCorrect.uid) {
1151
+ return { seedLocalId: fromCorrect.localId, seedUid: fromCorrect.uid };
1152
+ }
1153
+ if (LOCAL_SEED_REF.test(s) && !s.startsWith('0x')) {
1154
+ return { seedLocalId: s };
1155
+ }
1156
+ return {};
1157
+ }
1158
+
1159
+ function pickLatestPropertyAttestationsByRefAndSchema(attestations) {
1160
+ const byKey = new Map();
1161
+ for (const att of attestations) {
1162
+ const sid = att.schemaId;
1163
+ if (!sid)
1164
+ continue;
1165
+ const key = `${att.refUID ?? ''}:${sid}`;
1166
+ const existing = byKey.get(key);
1167
+ const t = att.timeCreated ?? 0;
1168
+ const t0 = existing?.timeCreated ?? 0;
1169
+ if (!existing || t > t0) {
1170
+ byKey.set(key, att);
1171
+ }
1172
+ }
1173
+ return [...byKey.values()];
1174
+ }
1175
+
1013
1176
  const logger$u = debug('seedSdk:shared:helpers');
1014
1177
  const { alphanumeric } = nanoIdDictionary;
1015
1178
  const generateId = () => {
@@ -1183,6 +1346,7 @@ var index = /*#__PURE__*/Object.freeze({
1183
1346
  convertTxIdToImage: convertTxIdToImage,
1184
1347
  generateId: generateId,
1185
1348
  getAlternatePropertyNameForInstanceLookup: getAlternatePropertyNameForInstanceLookup,
1349
+ getArweaveUploadStatus: getArweaveUploadStatus,
1186
1350
  getArweaveUrlForTransaction: getArweaveUrlForTransaction,
1187
1351
  getCorrectId: getCorrectId,
1188
1352
  getDataTypeFromString: getDataTypeFromString,
@@ -1194,15 +1358,21 @@ var index = /*#__PURE__*/Object.freeze({
1194
1358
  getPublisherForNewSeedsWithTimeout: getPublisherForNewSeedsWithTimeout,
1195
1359
  getRevokeExecutor: getRevokeExecutor,
1196
1360
  getUploadApiArweaveDataUrl: getUploadApiArweaveDataUrl,
1361
+ getUploadApiArweaveStatusUrl: getUploadApiArweaveStatusUrl,
1197
1362
  getUploadExecutor: getUploadExecutor,
1198
1363
  getUploadPipelineTransactionStatus: getUploadPipelineTransactionStatus,
1199
1364
  identifyString: identifyString,
1365
+ isArweaveL1AnchoringComplete: isArweaveL1AnchoringComplete,
1200
1366
  isBinary: isBinary,
1201
1367
  listRelationStoragePropertyName: listRelationStoragePropertyName,
1202
1368
  needsMetadataIdSuffix: needsMetadataIdSuffix,
1369
+ normalizeRelationPropertyValue: normalizeRelationPropertyValue,
1203
1370
  normalizeUploadApiBaseUrl: normalizeUploadApiBaseUrl,
1204
1371
  parseEasRelationPropertyName: parseEasRelationPropertyName,
1372
+ pickLatestPropertyAttestationsByRefAndSchema: pickLatestPropertyAttestationsByRefAndSchema,
1373
+ queryArweaveGatewayTransaction: queryArweaveGatewayTransaction,
1205
1374
  resolveMetadataRecord: resolveMetadataRecord,
1375
+ resolveSeedIdsFromRefString: resolveSeedIdsFromRefString,
1206
1376
  resolveStorageNameToSchemaName: resolveStorageNameToSchemaName,
1207
1377
  setAdditionalSyncAddresses: setAdditionalSyncAddresses,
1208
1378
  setGetPublisherForNewSeeds: setGetPublisherForNewSeeds,
@@ -1226,7 +1396,7 @@ const createPropertyInstances = async (propertyFileIds) => {
1226
1396
  return;
1227
1397
  }
1228
1398
  try {
1229
- const mod = await import('./ModelProperty-CkQaEsBu.js');
1399
+ const mod = await import('./ModelProperty-ChevZoUy.js');
1230
1400
  const ModelProperty = mod?.ModelProperty ?? mod?.default;
1231
1401
  if (!ModelProperty) {
1232
1402
  logger$t('createPropertyInstances: ModelProperty not available from dynamic import');
@@ -1410,7 +1580,7 @@ const loadOrCreateModel = fromCallback(({ sendBack, input: { context } }) => {
1410
1580
  // Step 2: Fallback to Schema context (only if database doesn't have the model)
1411
1581
  // This handles the case where model exists in schema file but not yet in database
1412
1582
  try {
1413
- const _mod_0 = await import('./Schema-Bnim4hAF.js');
1583
+ const _mod_0 = await import('./Schema-BQ5W3aOW.js');
1414
1584
  const _ns_0 = _mod_0.b;
1415
1585
  const schemaMod = _ns_0;
1416
1586
  const { Schema } = schemaMod;
@@ -1656,7 +1826,7 @@ const loadOrCreateModel = fromCallback(({ sendBack, input: { context } }) => {
1656
1826
  }
1657
1827
  // Mark schema as draft when a new model is created so saveNewVersion() can persist it
1658
1828
  try {
1659
- const _mod_1 = await import('./Schema-Bnim4hAF.js');
1829
+ const _mod_1 = await import('./Schema-BQ5W3aOW.js');
1660
1830
  const _ns_1 = _mod_1.b;
1661
1831
  const schemaMod = _ns_1;
1662
1832
  const { Schema } = schemaMod;
@@ -1702,10 +1872,10 @@ const validateModel = fromCallback(({ sendBack, input: { context } }) => {
1702
1872
  const _validateModel = async () => {
1703
1873
  try {
1704
1874
  // Use dynamic imports to break circular dependencies
1705
- const validationServiceMod = await import('./SchemaValidationService-DXxRk-9Q.js');
1875
+ const validationServiceMod = await import('./SchemaValidationService-DQx83Cte.js');
1706
1876
  const { SchemaValidationService } = validationServiceMod;
1707
1877
  const validationService = new SchemaValidationService();
1708
- const _mod_2 = await import('./Schema-Bnim4hAF.js');
1878
+ const _mod_2 = await import('./Schema-BQ5W3aOW.js');
1709
1879
  const _ns_2 = _mod_2.b;
1710
1880
  const schemaMod = _ns_2;
1711
1881
  const { Schema } = schemaMod;
@@ -1817,7 +1987,7 @@ const createModelProperties = fromCallback(({ sendBack, input }) => {
1817
1987
  return;
1818
1988
  }
1819
1989
  logger$r(`Creating ${Object.keys(propertyDefinitions).length} properties for model "${modelName}" (id: ${_dbId})`);
1820
- const mod = await import('./ModelProperty-CkQaEsBu.js');
1990
+ const mod = await import('./ModelProperty-ChevZoUy.js');
1821
1991
  const ModelProperty = mod?.ModelProperty ?? mod?.default;
1822
1992
  if (!ModelProperty) {
1823
1993
  logger$r('ModelProperty not available from dynamic import');
@@ -1921,7 +2091,7 @@ const validateEntity = fromPromise(async ({ input }) => {
1921
2091
  const structureMsg = `[validateEntity] Validating model structure`;
1922
2092
  logger$q(structureMsg);
1923
2093
  // Use existing Model validation
1924
- const validationServiceMod = await import('./SchemaValidationService-DXxRk-9Q.js');
2094
+ const validationServiceMod = await import('./SchemaValidationService-DQx83Cte.js');
1925
2095
  const { SchemaValidationService } = validationServiceMod;
1926
2096
  const validationService = new SchemaValidationService();
1927
2097
  // Validate model structure
@@ -1939,7 +2109,7 @@ const validateEntity = fromPromise(async ({ input }) => {
1939
2109
  if (entityInput.entityData.schemaName) {
1940
2110
  try {
1941
2111
  logger$q(`[validateEntity] Validating model against schema "${entityInput.entityData.schemaName}"`);
1942
- const _mod_3 = await import('./Schema-Bnim4hAF.js');
2112
+ const _mod_3 = await import('./Schema-BQ5W3aOW.js');
1943
2113
  const _ns_3 = _mod_3.b;
1944
2114
  const schemaMod = _ns_3;
1945
2115
  const { Schema } = schemaMod;
@@ -1977,7 +2147,7 @@ const validateEntity = fromPromise(async ({ input }) => {
1977
2147
  }
1978
2148
  else if (entityInput.entityType === 'modelProperty') {
1979
2149
  // Use existing ModelProperty validation
1980
- const validationServiceMod = await import('./SchemaValidationService-DXxRk-9Q.js');
2150
+ const validationServiceMod = await import('./SchemaValidationService-DQx83Cte.js');
1981
2151
  const { SchemaValidationService } = validationServiceMod;
1982
2152
  const validationService = new SchemaValidationService();
1983
2153
  // Validate property structure
@@ -1992,7 +2162,7 @@ const validateEntity = fromPromise(async ({ input }) => {
1992
2162
  // If schema name and model name provided, validate against schema
1993
2163
  if (entityInput.entityData._schemaName && entityInput.entityData.modelName) {
1994
2164
  try {
1995
- const _mod_4 = await import('./Schema-Bnim4hAF.js');
2165
+ const _mod_4 = await import('./Schema-BQ5W3aOW.js');
1996
2166
  const _ns_4 = _mod_4.b;
1997
2167
  const schemaMod = _ns_4;
1998
2168
  const { Schema } = schemaMod;
@@ -2023,7 +2193,7 @@ const validateEntity = fromPromise(async ({ input }) => {
2023
2193
  }
2024
2194
  else if (entityInput.entityType === 'schema') {
2025
2195
  // Schema validation - use existing validation
2026
- const validationServiceMod = await import('./SchemaValidationService-DXxRk-9Q.js');
2196
+ const validationServiceMod = await import('./SchemaValidationService-DQx83Cte.js');
2027
2197
  const { SchemaValidationService } = validationServiceMod;
2028
2198
  const validationService = new SchemaValidationService();
2029
2199
  const schemaResult = validationService.validateSchema(entityInput.entityData);
@@ -2206,6 +2376,26 @@ const uploadProcesses = sqliteTable('upload_processes', {
2206
2376
  updatedAt: int('updated_at'),
2207
2377
  });
2208
2378
 
2379
+ /** Background job: resolve L1 tx id and wait for L1 confirmation after bundler publish. */
2380
+ const arweaveL1FinalizeJobs = sqliteTable('arweave_l1_finalize_jobs', {
2381
+ id: int('id').primaryKey({ autoIncrement: true }),
2382
+ seedLocalId: text('seed_local_id').notNull(),
2383
+ dataItemId: text('data_item_id').notNull(),
2384
+ /** L1 bundle / anchor transaction id from gateway GraphQL `bundledIn.id`. */
2385
+ l1TransactionId: text('l1_transaction_id'),
2386
+ bundleId: text('bundle_id'),
2387
+ versionLocalId: text('version_local_id'),
2388
+ itemPropertyName: text('item_property_name'),
2389
+ /** `pending_l1` | `confirmed` | `failed` */
2390
+ phase: text('phase').notNull(),
2391
+ statusJson: text('status_json'),
2392
+ errorMessage: text('error_message'),
2393
+ createdAt: int('created_at').notNull(),
2394
+ updatedAt: int('updated_at').notNull(),
2395
+ }, (table) => ({
2396
+ dataItemIdUnique: uniqueIndex('arweave_l1_finalize_jobs_data_item_id_unique').on(table.dataItemId),
2397
+ }));
2398
+
2209
2399
  const logger$p = debug('seedSdk:helpers:db');
2210
2400
  /**
2211
2401
  * Resolve property_id from model name/type and property name.
@@ -4129,7 +4319,7 @@ const writeToDatabase = fromCallback(({ sendBack, input }) => {
4129
4319
  // initial write completes is not overwritten by the stale requestWrite payload.
4130
4320
  let dataToWrite = input.entityData;
4131
4321
  try {
4132
- const mod = await import('./ModelProperty-CkQaEsBu.js');
4322
+ const mod = await import('./ModelProperty-ChevZoUy.js');
4133
4323
  const ModelProperty = mod?.ModelProperty ?? mod?.default;
4134
4324
  if (ModelProperty && typeof ModelProperty.getById === 'function') {
4135
4325
  const instance = ModelProperty.getById(input.entityId);
@@ -4509,7 +4699,7 @@ const modelMachine = setup({
4509
4699
  // Create ModelProperty instances for any new property IDs
4510
4700
  if (Array.isArray(newPropertyIds) && newPropertyIds.length > 0) {
4511
4701
  // Import and create instances asynchronously (fire-and-forget)
4512
- import('./ModelProperty-CkQaEsBu.js').then(({ ModelProperty }) => {
4702
+ import('./ModelProperty-ChevZoUy.js').then(({ ModelProperty }) => {
4513
4703
  const createPromises = newPropertyIds.map(async (propertyFileId) => {
4514
4704
  try {
4515
4705
  const property = await ModelProperty.createById(propertyFileId);
@@ -5301,6 +5491,11 @@ const getItemVersionsFromEas = async ({ seedUids, excludeRevoked = true, }) => {
5301
5491
  });
5302
5492
  return itemVersions;
5303
5493
  };
5494
+ /**
5495
+ * Returns all property attestations for the given Version UIDs. May include multiple
5496
+ * rows per schema (patch updates). Use `pickLatestPropertyAttestationsByRefAndSchema`
5497
+ * from `@seedprotocol/sdk` to resolve canonical values per `(refUID, schemaId)`.
5498
+ */
5304
5499
  const getItemPropertiesFromEas = async ({ versionUids, excludeRevoked = true, }) => {
5305
5500
  const queryClient = BaseQueryClient.getQueryClient();
5306
5501
  const easClient = BaseEasClient.getEasClient();
@@ -5315,6 +5510,15 @@ const getItemPropertiesFromEas = async ({ versionUids, excludeRevoked = true, })
5315
5510
  });
5316
5511
  return itemProperties;
5317
5512
  };
5513
+ /**
5514
+ * Same query as {@link getItemPropertiesFromEas}, then keeps the **canonical** attestation per
5515
+ * `(refUID, schemaId)` (newest `timeCreated`). Recommended for display and app logic; use
5516
+ * {@link getItemPropertiesFromEas} when you need every row (e.g. auditing).
5517
+ */
5518
+ const getCanonicalItemPropertiesFromEas = async (props) => {
5519
+ const itemProperties = await getItemPropertiesFromEas(props);
5520
+ return pickLatestPropertyAttestationsByRefAndSchema(itemProperties);
5521
+ };
5318
5522
  const getEasSchemaUidBySchemaName = async ({ schemaName }) => {
5319
5523
  try {
5320
5524
  const queryClient = BaseQueryClient.getQueryClient();
@@ -5406,6 +5610,7 @@ const getSeedsBySchemaName = async (schemaName, limit = 10, skip) => {
5406
5610
 
5407
5611
  var eas = /*#__PURE__*/Object.freeze({
5408
5612
  __proto__: null,
5613
+ getCanonicalItemPropertiesFromEas: getCanonicalItemPropertiesFromEas,
5409
5614
  getEasSchemaUidBySchemaName: getEasSchemaUidBySchemaName,
5410
5615
  getItemPropertiesFromEas: getItemPropertiesFromEas,
5411
5616
  getItemVersionsFromEas: getItemVersionsFromEas,
@@ -5676,26 +5881,14 @@ const fetchDataFromEas = fromCallback(({ sendBack, input: { context } }) => {
5676
5881
  },
5677
5882
  }),
5678
5883
  });
5679
- // Filter properties by schemaId
5884
+ const latest = pickLatestPropertyAttestationsByRefAndSchema(itemProperties);
5680
5885
  const selectedPropertiesMap = {};
5681
- itemProperties.forEach((property) => {
5682
- const existingProperties = selectedPropertiesMap[property.schemaId] || [];
5683
- existingProperties.push(property);
5684
- selectedPropertiesMap[property.schemaId] = existingProperties;
5685
- });
5686
- // For each schemaId, sort property Attestations by timeCreated DESC
5687
- Object.keys(selectedPropertiesMap).forEach((schemaId) => {
5688
- const sorted = selectedPropertiesMap[schemaId].sort((a, b) => {
5689
- return a.timeCreated - b.timeCreated;
5690
- });
5691
- selectedPropertiesMap[schemaId] = sorted;
5692
- });
5693
- Object.keys(selectedPropertiesMap).forEach((schemaId) => {
5694
- // TODO: Finish this logic
5695
- // console.log('[singleItemActors] [fetchDataFromEas] schemaId', schemaId)
5696
- // sendBack({ type: 'addPropertyAttestation', schemaId })
5697
- });
5698
- // Attach processed properties to the itemService/itemMachine context
5886
+ for (const property of latest) {
5887
+ const sid = property.schemaId;
5888
+ if (!sid)
5889
+ continue;
5890
+ selectedPropertiesMap[sid] = [property];
5891
+ }
5699
5892
  sendBack({
5700
5893
  type: 'updatedPropertiesBySchemaUid',
5701
5894
  propertiesBySchemaUid: selectedPropertiesMap,
@@ -5789,7 +5982,7 @@ const createItemPropertyInstances = async (metadataRows, seedLocalId, seedUid, m
5789
5982
  const schemaNameToTry = model$1?.schemaName;
5790
5983
  if (schemaNameToTry) {
5791
5984
  try {
5792
- const _mod_5 = await import('./Schema-Bnim4hAF.js');
5985
+ const _mod_5 = await import('./Schema-BQ5W3aOW.js');
5793
5986
  const _ns_5 = _mod_5.b;
5794
5987
  const { Schema } = _ns_5;
5795
5988
  const schemaInstance = Schema.create(schemaNameToTry, { waitForReady: false });
@@ -5840,7 +6033,7 @@ const createItemPropertyInstances = async (metadataRows, seedLocalId, seedUid, m
5840
6033
  }
5841
6034
  }
5842
6035
  if (Object.keys(propertySchemas).length === 0) {
5843
- const schemaMod = await import('./index-CgmWq1sF.js');
6036
+ const schemaMod = await import('./index-BxfqPvtu.js');
5844
6037
  const { ModelPropertyDataTypes } = schemaMod;
5845
6038
  const KNOWN_MODEL_FALLBACKS = {
5846
6039
  Post: {
@@ -5889,7 +6082,7 @@ const createItemPropertyInstances = async (metadataRows, seedLocalId, seedUid, m
5889
6082
  // Infer propertyRecordSchema from metadata when schema is missing (enables persistence)
5890
6083
  let propSchema = propertySchemas[propertyName];
5891
6084
  if (!propSchema && isRefTypeFromMeta) {
5892
- const schemaMod = await import('./index-CgmWq1sF.js');
6085
+ const schemaMod = await import('./index-BxfqPvtu.js');
5893
6086
  const { ModelPropertyDataTypes } = schemaMod;
5894
6087
  propSchema = {
5895
6088
  dataType: refSeedType === 'html' ? ModelPropertyDataTypes.Html
@@ -6137,9 +6330,9 @@ const runPublish = fromCallback(({ sendBack, input: { context } }) => {
6137
6330
  sendBack({ type: 'publishError', error: new Error(`Item not found for seedLocalId: ${seedLocalId}`) });
6138
6331
  return;
6139
6332
  }
6140
- const getPublishUploadsMod = await import('./getPublishUploads-CGBky9q9.js');
6333
+ const getPublishUploadsMod = await import('./getPublishUploads-CKm5dsL6.js');
6141
6334
  const { getPublishUploads } = getPublishUploadsMod;
6142
- const getPublishPayloadMod = await import('./getPublishPayload-CdfPTl8l.js');
6335
+ const getPublishPayloadMod = await import('./getPublishPayload-eJL7ktes.js');
6143
6336
  const { getPublishPayload } = getPublishPayloadMod;
6144
6337
  const uploads = await getPublishUploads(item);
6145
6338
  let uploadedTransactions = [];
@@ -6904,7 +7097,7 @@ const resolveRelatedValue = fromCallback(({ sendBack, input: { context } }) => {
6904
7097
  const { isRelation, propertyValue, propertyName, seedUid, propertyRecordSchema, populatedFromDb, schemaUid, } = context;
6905
7098
  const _resolveRelatedValue = async () => {
6906
7099
  // Use dynamic import to break circular dependency
6907
- const schemaMod = await import('./index-CgmWq1sF.js');
7100
+ const schemaMod = await import('./index-BxfqPvtu.js');
6908
7101
  const { ModelPropertyDataTypes } = schemaMod;
6909
7102
  if (!propertyValue || !isRelation || populatedFromDb) {
6910
7103
  return;
@@ -7280,7 +7473,7 @@ const hydrateFromDb = fromCallback(({ sendBack, input: { context } }) => {
7280
7473
  // to use dynamically imported ModelPropertyDataTypes
7281
7474
  const _hydrateFromDb = async () => {
7282
7475
  // Use dynamic import to break circular dependency
7283
- const schemaMod = await import('./index-CgmWq1sF.js');
7476
+ const schemaMod = await import('./index-BxfqPvtu.js');
7284
7477
  const { ModelPropertyDataTypes } = schemaMod;
7285
7478
  const appDb = BaseDb.getAppDb();
7286
7479
  const whereClauses = [];
@@ -7585,7 +7778,7 @@ const loadOrCreateProperty = fromCallback(({ sendBack, input: { context } }) =>
7585
7778
  };
7586
7779
  // Merge with schema from file/DB to get validation rules (enum, pattern, etc.) - properties table doesn't store these
7587
7780
  try {
7588
- const { getPropertySchema } = await import('./property-Dt0U3UXJ.js');
7781
+ const { getPropertySchema } = await import('./property-BOdk-wW1.js');
7589
7782
  let schemaFromFile = await getPropertySchema(normalizedModelName, propertyName);
7590
7783
  if (!schemaFromFile?.validation) {
7591
7784
  // Fallback: get validation from schemaData in database (Schema context may not be loaded yet)
@@ -7969,9 +8162,9 @@ const analyzeInput = fromCallback(({ sendBack, input: { context, event } }) => {
7969
8162
  }
7970
8163
  const _analyzeInput = async () => {
7971
8164
  // Use dynamic import to break circular dependency
7972
- const schemaMod = await import('./index-CgmWq1sF.js');
8165
+ const schemaMod = await import('./index-BxfqPvtu.js');
7973
8166
  const { ModelPropertyDataTypes } = schemaMod;
7974
- const { SchemaValidationService } = await import('./SchemaValidationService-DXxRk-9Q.js');
8167
+ const { SchemaValidationService } = await import('./SchemaValidationService-DQx83Cte.js');
7975
8168
  let propertyName = propertyNameRaw;
7976
8169
  if (!propertyName) {
7977
8170
  throw new Error('propertyName is required');
@@ -8169,7 +8362,7 @@ const createMetadata = async (metadataValues, propertyRecordSchema, options) =>
8169
8362
  propertyRecordSchema?.validation &&
8170
8363
  metadataValues.propertyValue != null &&
8171
8364
  metadataValues.propertyValue !== '') {
8172
- const { SchemaValidationService } = await import('./SchemaValidationService-DXxRk-9Q.js');
8365
+ const { SchemaValidationService } = await import('./SchemaValidationService-DQx83Cte.js');
8173
8366
  const validationService = new SchemaValidationService();
8174
8367
  const validationResult = validationService.validatePropertyValue(metadataValues.propertyValue, propertyRecordSchema.dataType, propertyRecordSchema.validation, propertyRecordSchema.refValueType);
8175
8368
  if (!validationResult.isValid && validationResult.errors.length > 0) {
@@ -8756,7 +8949,7 @@ const saveRelation = fromCallback(({ sendBack, input: { context, event } }) => {
8756
8949
  }
8757
8950
  const _saveRelation = async () => {
8758
8951
  // Use dynamic import to break circular dependency
8759
- const schemaMod = await import('./index-CgmWq1sF.js');
8952
+ const schemaMod = await import('./index-BxfqPvtu.js');
8760
8953
  const { ModelPropertyDataTypes } = schemaMod;
8761
8954
  if (!propertyNameRaw) {
8762
8955
  throw new Error('propertyName is required');
@@ -9788,7 +9981,7 @@ class ItemProperty {
9788
9981
  return;
9789
9982
  }
9790
9983
  // Use dynamic import to break circular dependency
9791
- const schemaMod = await import('./index-CgmWq1sF.js');
9984
+ const schemaMod = await import('./index-BxfqPvtu.js');
9792
9985
  const { ModelPropertyDataTypes } = schemaMod;
9793
9986
  const { context } = snapshot;
9794
9987
  const { propertyRecordSchema } = context;
@@ -9946,7 +10139,7 @@ class ItemProperty {
9946
10139
  const normalizedRefValueType = normalizeDataType(propertyRecordSchema?.refValueType);
9947
10140
  const propertyNames = getMetadataPropertyNamesForQuery(propertyName, normalizedDataType, normalizedRefValueType);
9948
10141
  const propertyNameVariant = propertyNames.length > 1 ? propertyNames[1] : undefined;
9949
- const _mod_6 = await import('./index-C74KrwXN.js');
10142
+ const _mod_6 = await import('./index-BQv2k74p.js');
9950
10143
  const _ns_6 = _mod_6.s;
9951
10144
  const seedSchemaMod = _ns_6;
9952
10145
  const { metadata } = seedSchemaMod;
@@ -10647,7 +10840,7 @@ class ItemProperty {
10647
10840
  }
10648
10841
  async save() {
10649
10842
  const ctx = this._getSnapshotContext();
10650
- const { assertItemOwned } = await import('./ownership-QK5haR3-.js');
10843
+ const { assertItemOwned } = await import('./ownership-tVhYQomL.js');
10651
10844
  await assertItemOwned({
10652
10845
  seedLocalId: ctx?.seedLocalId ?? undefined,
10653
10846
  seedUid: ctx?.seedUid ?? undefined,
@@ -10740,7 +10933,7 @@ class ItemProperty {
10740
10933
  if (!propertyName || (!seedLocalId && !seedUid))
10741
10934
  return;
10742
10935
  if (db) {
10743
- const _mod_7 = await import('./index-C74KrwXN.js');
10936
+ const _mod_7 = await import('./index-BQv2k74p.js');
10744
10937
  const _ns_7 = _mod_7.s;
10745
10938
  const seedSchemaMod = _ns_7;
10746
10939
  const { metadata } = seedSchemaMod;
@@ -10987,7 +11180,7 @@ class Item {
10987
11180
  });
10988
11181
  };
10989
11182
  this.unpublish = async () => {
10990
- const { assertItemOwned } = await import('./ownership-QK5haR3-.js');
11183
+ const { assertItemOwned } = await import('./ownership-tVhYQomL.js');
10991
11184
  const { getRevokeExecutor } = await Promise.resolve().then(function () { return publishConfig; });
10992
11185
  await assertItemOwned(this);
10993
11186
  const seedUid = this.seedUid;
@@ -11011,7 +11204,7 @@ class Item {
11011
11204
  this._service.send({ type: 'updateContext', revokedAt });
11012
11205
  };
11013
11206
  this.publish = async () => {
11014
- const { assertItemOwned } = await import('./ownership-QK5haR3-.js');
11207
+ const { assertItemOwned } = await import('./ownership-tVhYQomL.js');
11015
11208
  await assertItemOwned(this);
11016
11209
  this._service.send({ type: 'startPublish' });
11017
11210
  return new Promise((resolve, reject) => {
@@ -11047,15 +11240,14 @@ class Item {
11047
11240
  };
11048
11241
  this.getPublishUploads = async () => {
11049
11242
  // Use dynamic import to break circular dependency
11050
- const getPublishUploadsMod = await import('./getPublishUploads-CGBky9q9.js');
11243
+ const getPublishUploadsMod = await import('./getPublishUploads-CKm5dsL6.js');
11051
11244
  const { getPublishUploads } = getPublishUploadsMod;
11052
11245
  return await getPublishUploads(this);
11053
11246
  };
11054
- this.getPublishPayload = async (uploadedTransactions) => {
11055
- // Use dynamic import to break circular dependency
11056
- const getPublishPayloadMod = await import('./getPublishPayload-CdfPTl8l.js');
11247
+ this.getPublishPayload = async (uploadedTransactions, options) => {
11248
+ const getPublishPayloadMod = await import('./getPublishPayload-eJL7ktes.js');
11057
11249
  const { getPublishPayload } = getPublishPayloadMod;
11058
- return await getPublishPayload(this, uploadedTransactions);
11250
+ return await getPublishPayload(this, uploadedTransactions, options);
11059
11251
  };
11060
11252
  this.persistSeedUid = async (publisher) => {
11061
11253
  const ctx = this._getSnapshotContext();
@@ -11944,7 +12136,7 @@ class Item {
11944
12136
  setupState.subscriptionSetUp = true;
11945
12137
  logger(`[Item._setupLiveQuerySubscription] Setting up liveQuery for seedLocalId: ${seedLocalId}`);
11946
12138
  try {
11947
- const _mod_8 = await import('./index-C74KrwXN.js');
12139
+ const _mod_8 = await import('./index-BQv2k74p.js');
11948
12140
  const _ns_8 = _mod_8.s;
11949
12141
  const seedSchemaMod = _ns_8;
11950
12142
  const { seeds, versions, metadata } = seedSchemaMod;
@@ -12255,7 +12447,7 @@ class Item {
12255
12447
  * Destroy the item: soft delete in DB, remove from caches, clean up subscriptions, stop service.
12256
12448
  */
12257
12449
  async destroy() {
12258
- const { assertItemOwned } = await import('./ownership-QK5haR3-.js');
12450
+ const { assertItemOwned } = await import('./ownership-tVhYQomL.js');
12259
12451
  await assertItemOwned(this);
12260
12452
  const context = this._getSnapshotContext();
12261
12453
  const cacheKey = context.seedUid || context.seedLocalId;
@@ -12899,10 +13091,11 @@ const runSyncFromEas = async (options) => {
12899
13091
  const { versionUids } = await saveEasVersionsToDb({
12900
13092
  itemVersions,
12901
13093
  });
12902
- const itemProperties = await getItemPropertiesFromEas({
13094
+ const rawProperties = await getItemPropertiesFromEas({
12903
13095
  versionUids,
12904
13096
  excludeRevoked: false,
12905
13097
  });
13098
+ const itemProperties = pickLatestPropertyAttestationsByRefAndSchema(rawProperties);
12906
13099
  await saveEasPropertiesToDb({
12907
13100
  itemProperties,
12908
13101
  itemSeeds,
@@ -12989,20 +13182,20 @@ const platformClassesInit = fromCallback(({ sendBack, input: { context, event }
12989
13182
  let PathResolver;
12990
13183
  let EasClient;
12991
13184
  if (isBrowser()) {
12992
- FileManager = (await import('./FileManager-Bk-JeMoA.js')).FileManager;
12993
- Db = (await import('./Db-DsFElL33.js')).Db;
12994
- QueryClient = (await import('./QueryClient-CnONLIkA.js')).QueryClient;
12995
- ArweaveClient = (await import('./ArweaveClient-Zz6VwCkj.js')).ArweaveClient;
12996
- PathResolver = (await import('./PathResolver-C3sdR5LL.js')).PathResolver;
12997
- EasClient = (await import('./EasClient-B2N8bc3C.js')).EasClient;
13185
+ FileManager = (await import('./FileManager-Cze8qmS1.js')).FileManager;
13186
+ Db = (await import('./Db-DS2GBY6h.js')).Db;
13187
+ QueryClient = (await import('./QueryClient-By2vdhIz.js')).QueryClient;
13188
+ ArweaveClient = (await import('./ArweaveClient-CAdWVQnJ.js')).ArweaveClient;
13189
+ PathResolver = (await import('./PathResolver-C5gj9EU2.js')).PathResolver;
13190
+ EasClient = (await import('./EasClient-D1eibg8b.js')).EasClient;
12998
13191
  }
12999
13192
  else if (isNode()) {
13000
- FileManager = (await import('./FileManager-Cqy_Lq46.js')).FileManager;
13001
- Db = (await import('./Db-Cvoi9q3N.js')).Db;
13002
- QueryClient = (await import('./QueryClient-Ctgd0tDn.js')).QueryClient;
13003
- ArweaveClient = (await import('./ArweaveClient-DPeCeRMF.js')).ArweaveClient;
13004
- PathResolver = (await import('./PathResolver-DF1QFI1d.js')).PathResolver;
13005
- EasClient = (await import('./EasClient-D5Nn1WBF.js')).EasClient;
13193
+ FileManager = (await import('./FileManager-DSTAwkqw.js')).FileManager;
13194
+ Db = (await import('./Db-8N3-le9a.js')).Db;
13195
+ QueryClient = (await import('./QueryClient-BGv6JOls.js')).QueryClient;
13196
+ ArweaveClient = (await import('./ArweaveClient-V62RJhsZ.js')).ArweaveClient;
13197
+ PathResolver = (await import('./PathResolver-3TuYA9yv.js')).PathResolver;
13198
+ EasClient = (await import('./EasClient-nOmY5meW.js')).EasClient;
13006
13199
  }
13007
13200
  else {
13008
13201
  throw new Error(`Unable to determine environment. isBrowser()=${isBrowser()}, isNode()=${isNode()}. Platform-specific implementations could not be loaded.`);
@@ -16537,7 +16730,7 @@ const saveDraftLogger = debug('seedSdk:model:saveDraftToDb');
16537
16730
  // Lazy import cache for ModelProperty to avoid circular dependency
16538
16731
  // Eagerly start loading to minimize delay on first access
16539
16732
  let ModelPropertyClass = null;
16540
- const modelPropertyImportPromise = import('./ModelProperty-CkQaEsBu.js')
16733
+ const modelPropertyImportPromise = import('./ModelProperty-ChevZoUy.js')
16541
16734
  .then(module => {
16542
16735
  ModelPropertyClass = module.ModelProperty;
16543
16736
  return ModelPropertyClass;
@@ -16554,7 +16747,7 @@ function getModelProperty() {
16554
16747
  }
16555
16748
  // Lazy import cache for Schema to avoid circular dependency
16556
16749
  let SchemaClass = null;
16557
- const schemaImportPromise = (async () => { const _mod_9 = await import('./Schema-Bnim4hAF.js'); return _mod_9.b; })()
16750
+ const schemaImportPromise = (async () => { const _mod_9 = await import('./Schema-BQ5W3aOW.js'); return _mod_9.b; })()
16558
16751
  .then(module => {
16559
16752
  SchemaClass = module.Schema;
16560
16753
  return SchemaClass;
@@ -18294,5 +18487,5 @@ var Model$1 = /*#__PURE__*/Object.freeze({
18294
18487
  const TModelValues = Type.Record(Type.String(), Type.Any());
18295
18488
  const TModelSchema = Type.Record(Type.String(), TProperty);
18296
18489
 
18297
- export { BaseEasClient as $, modelPropertiesToObject as A, Boolean$1 as B, parseListPropertyValueFromStorage as C, Date$1 as D, INTERNAL_PROPERTY_NAMES as E, File$1 as F, defaultAttestationData as G, INTERNAL_DATA_TYPES as H, Image as I, Json as J, toSnakeCase as K, List as L, Model as M, Number$1 as N, getEasSchemaUidForSchemaDefinition as O, Property as P, getEasSchemaForItemProperty as Q, Relation as R, getItemData as S, TModelValues as T, resolveStorageNameToSchemaName as U, VERSION_SCHEMA_UID_OPTIMISM_SEPOLIA as V, appState as W, BasePathResolver as X, SEED_CONFIG_FILE as Y, ZERO_BYTES32 as Z, SEED_CONFIG_FALLBACKS as _, TModelSchema as a, ClientManager as a$, EAS_ENDPOINT as a0, BaseQueryClient as a1, config as a2, metadata$1 as a3, modelRelations as a4, modelSchemas as a5, modelUids as a6, modelsRelations as a7, propertiesRelations as a8, propertyUidRelations as a9, generateId as aA, withExcludeRevokedFilter as aB, SeedModels as aC, DEFAULT_ARWEAVE_HOST as aD, DEFAULT_ARWEAVE_GATEWAYS as aE, updateSeedRevokedAt as aF, getAddressesForItemsFilter as aG, getArweaveUrlForTransaction as aH, normalizeUploadApiBaseUrl as aI, getUploadApiArweaveDataUrl as aJ, getUploadPipelineTransactionStatus as aK, waitForEntityIdle as aL, setUploadExecutor as aM, getUploadExecutor as aN, setGetPublisherForNewSeeds as aO, getGetPublisherForNewSeeds as aP, setRevokeExecutor as aQ, getRevokeExecutor as aR, setAdditionalSyncAddresses as aS, createSchema as aT, readSchema as aU, listCompleteSchemaFiles as aV, getSchemaNameFromId as aW, importJsonSchema as aX, readJsonImportFile as aY, syncSchemaFromSource as aZ, transformImportToSchemaFile as a_, propertyUids as aa, publishProcesses as ab, schemas as ac, uploadProcesses as ad, graphql as ae, getPropertyIdForModelAndName as af, eventEmitter as ag, getClient as ah, ClientManagerState as ai, MachineIds as aj, createNewItem as ak, getVersionData$1 as al, getMetadataLatest as am, loadAllSchemasFromDb as an, propertyMachine as ao, SEED_PROTOCOL_SCHEMA_NAME as ap, ImageSize as aq, ItemProperty as ar, setSchemaUidForSchemaDefinition as as, setSchemaUidForModel as at, getModelSchemasFromEas as au, getItemVersionsFromEas as av, getItemPropertiesFromEas as aw, getEasSchemaUidBySchemaName as ax, getSeedsFromSchemaUids as ay, getSeedsBySchemaName as az, ModelPropertyDataTypes as b, saveAppState as b0, addModelsToDb$1 as b1, SCHEMA_NJK as b2, INIT_SCRIPT_SUCCESS_MESSAGE as b3, SCHEMA_TS as b4, getRefValueType as b5, loadSchemaFromFile as b6, writeProcessMachine as b7, getModelIdByFileId as b8, createReactiveProxy as b9, findEntity as ba, forceRemoveFromCaches as bb, runDestroyLifecycle as bc, getModelId as bd, addSchemaToDb as be, createModelsFromJson as bf, loadModelsFromDbForSchema as bg, getLatestSchemaVersion as bh, isInternalSchema as bi, createModelFromJson as bj, ConflictError as bk, unloadEntity as bl, clearDestroySubscriptions as bm, setupEntityLiveQuery as bn, ModelSchema as bo, BaseFileManager$1 as bp, db as bq, eas as br, getPropertyData$1 as bs, schema as bt, SEEDPROTOCOL_Seed_Protocol_v1 as bu, Model$1 as bv, TPropertyDataType as c, TStorageType as d, TProperty as e, TPropertyConstructor as f, TPropertyDefs as g, PropertyMetadataKey as h, PropertyConstructor as i, Text as j, DEFAULT_TEXT_MAX_LENGTH as k, TValidationRules as l, getOwnedAddressesFromDb as m, normalizeDataType as n, BaseDb as o, getGetAdditionalSyncAddresses as p, getCorrectId as q, Item as r, seeds as s, BaseFileManager as t, getContentHash as u, BaseArweaveClient as v, getEasSchemaUidForModel as w, models$1 as x, properties as y, versions as z };
18298
- //# sourceMappingURL=index-uPXtq2cf.js.map
18490
+ export { SEED_CONFIG_FILE as $, versions as A, Boolean$1 as B, modelPropertiesToObject as C, Date$1 as D, parseListPropertyValueFromStorage as E, File$1 as F, getCorrectId as G, INTERNAL_PROPERTY_NAMES as H, Image as I, Json as J, defaultAttestationData as K, List as L, Model as M, Number$1 as N, INTERNAL_DATA_TYPES as O, Property as P, toSnakeCase as Q, Relation as R, getEasSchemaUidForSchemaDefinition as S, TModelValues as T, getEasSchemaForItemProperty as U, VERSION_SCHEMA_UID_OPTIMISM_SEPOLIA as V, getItemData as W, resolveStorageNameToSchemaName as X, appState as Y, ZERO_BYTES32 as Z, BasePathResolver as _, TModelSchema as a, SeedModels as a$, SEED_CONFIG_FALLBACKS as a0, BaseEasClient as a1, EAS_ENDPOINT as a2, BaseQueryClient as a3, arweaveL1FinalizeJobs as a4, config as a5, metadata$1 as a6, modelRelations as a7, modelSchemas as a8, modelUids as a9, waitForEntityIdle as aA, createReactiveProxy as aB, findEntity as aC, forceRemoveFromCaches as aD, runDestroyLifecycle as aE, getModelId as aF, getClient as aG, ClientManagerState as aH, MachineIds as aI, createNewItem as aJ, getVersionData$1 as aK, getMetadataLatest as aL, loadAllSchemasFromDb as aM, propertyMachine as aN, SEED_PROTOCOL_SCHEMA_NAME as aO, ImageSize as aP, setSchemaUidForSchemaDefinition as aQ, setSchemaUidForModel as aR, getModelSchemasFromEas as aS, getItemVersionsFromEas as aT, getItemPropertiesFromEas as aU, getCanonicalItemPropertiesFromEas as aV, getEasSchemaUidBySchemaName as aW, getSeedsFromSchemaUids as aX, getSeedsBySchemaName as aY, withExcludeRevokedFilter as aZ, pickLatestPropertyAttestationsByRefAndSchema as a_, modelsRelations as aa, propertiesRelations as ab, propertyUidRelations as ac, propertyUids as ad, publishProcesses as ae, schemas as af, uploadProcesses as ag, graphql as ah, getPropertyIdForModelAndName as ai, saveAppState as aj, addModelsToDb$1 as ak, SCHEMA_NJK as al, ItemProperty as am, eventEmitter as an, ClientManager as ao, INIT_SCRIPT_SUCCESS_MESSAGE as ap, SCHEMA_TS as aq, getRefValueType as ar, importJsonSchema as as, loadSchemaFromFile as at, readJsonImportFile as au, syncSchemaFromSource as av, transformImportToSchemaFile as aw, writeProcessMachine as ax, getModelIdByFileId as ay, generateId as az, ModelPropertyDataTypes as b, DEFAULT_ARWEAVE_HOST as b0, DEFAULT_ARWEAVE_GATEWAYS as b1, DEFAULT_ARWEAVE_GRAPHQL_URL as b2, updateSeedRevokedAt as b3, getAddressesForItemsFilter as b4, getArweaveUrlForTransaction as b5, normalizeUploadApiBaseUrl as b6, getUploadApiArweaveDataUrl as b7, getUploadPipelineTransactionStatus as b8, getUploadApiArweaveStatusUrl as b9, db as bA, eas as bB, getPropertyData$1 as bC, schema as bD, SEEDPROTOCOL_Seed_Protocol_v1 as bE, Model$1 as bF, getArweaveUploadStatus as ba, isArweaveL1AnchoringComplete as bb, queryArweaveGatewayTransaction as bc, setUploadExecutor as bd, getUploadExecutor as be, setGetPublisherForNewSeeds as bf, getGetPublisherForNewSeeds as bg, setRevokeExecutor as bh, getRevokeExecutor as bi, setAdditionalSyncAddresses as bj, createSchema as bk, readSchema as bl, listCompleteSchemaFiles as bm, getSchemaNameFromId as bn, addSchemaToDb as bo, createModelsFromJson as bp, loadModelsFromDbForSchema as bq, getLatestSchemaVersion as br, isInternalSchema as bs, createModelFromJson as bt, ConflictError as bu, unloadEntity as bv, clearDestroySubscriptions as bw, setupEntityLiveQuery as bx, ModelSchema as by, BaseFileManager$1 as bz, TPropertyDataType as c, TStorageType as d, TProperty as e, TPropertyConstructor as f, TPropertyDefs as g, PropertyMetadataKey as h, PropertyConstructor as i, Text as j, DEFAULT_TEXT_MAX_LENGTH as k, TValidationRules as l, getOwnedAddressesFromDb as m, normalizeDataType as n, BaseDb as o, getGetAdditionalSyncAddresses as p, normalizeRelationPropertyValue as q, resolveSeedIdsFromRefString as r, seeds as s, Item as t, BaseFileManager as u, getContentHash as v, BaseArweaveClient as w, getEasSchemaUidForModel as x, models$1 as y, properties as z };
18491
+ //# sourceMappingURL=index-BvZCYMxA.js.map