@seedprotocol/sdk 0.7.9-next.1177.ga3e08ed → 0.7.9-next.1189.g5e63267

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 (200) hide show
  1. package/dist/{ClientManager-GZfXErDX.js → ClientManager-DqL0q_eu.js} +30 -17
  2. package/dist/ClientManager-DqL0q_eu.js.map +1 -0
  3. package/dist/{Item-0oDoTPhi.js → Item-CG5IhPtL.js} +260 -113
  4. package/dist/Item-CG5IhPtL.js.map +1 -0
  5. package/dist/{ModelProperty-i5flwzQG.js → ModelProperty-DDD47KVm.js} +26 -26
  6. package/dist/{ModelProperty-i5flwzQG.js.map → ModelProperty-DDD47KVm.js.map} +1 -1
  7. package/dist/{Schema-PFZwG9Nl.js → Schema-BS8oR7QV.js} +24 -24
  8. package/dist/{Schema-PFZwG9Nl.js.map → Schema-BS8oR7QV.js.map} +1 -1
  9. package/dist/{SchemaValidationService-DnGKel4V.js → SchemaValidationService-CZzKNL04.js} +6 -6
  10. package/dist/{SchemaValidationService-DnGKel4V.js.map → SchemaValidationService-CZzKNL04.js.map} +1 -1
  11. package/dist/{backfillMetadataPropertyIds-BbxgavEQ.js → backfillMetadataPropertyIds-C7P7FL6F.js} +3 -3
  12. package/dist/{backfillMetadataPropertyIds-BbxgavEQ.js.map → backfillMetadataPropertyIds-C7P7FL6F.js.map} +1 -1
  13. package/dist/{changeFeed-DKdVlUmt.js → changeFeed-M8sGbOrW.js} +6 -6
  14. package/dist/{changeFeed-DKdVlUmt.js.map → changeFeed-M8sGbOrW.js.map} +1 -1
  15. package/dist/{configurePlatform-CrMafpMW.js → configurePlatform-Dukm2QwO.js} +2 -2
  16. package/dist/{configurePlatform-CrMafpMW.js.map → configurePlatform-Dukm2QwO.js.map} +1 -1
  17. package/dist/db/drizzle/0025_add_metadata_retract.sql +1 -0
  18. package/dist/db/drizzle/meta/0025_snapshot.json +1652 -0
  19. package/dist/db/drizzle/meta/_journal.json +7 -0
  20. package/dist/{detachRowsBeforeDelete-DXFYSHRR.js → detachRowsBeforeDelete-Di1enVUF.js} +2 -2
  21. package/dist/{detachRowsBeforeDelete-DXFYSHRR.js.map → detachRowsBeforeDelete-Di1enVUF.js.map} +1 -1
  22. package/dist/dist/{ClientManager-GZfXErDX.d.ts → ClientManager-DqL0q_eu.d.ts} +1 -1
  23. package/dist/dist/{ClientManager-GZfXErDX.d.ts.map → ClientManager-DqL0q_eu.d.ts.map} +1 -1
  24. package/dist/dist/{Item-0oDoTPhi.d.ts → Item-CG5IhPtL.d.ts} +103 -64
  25. package/dist/dist/Item-CG5IhPtL.d.ts.map +1 -0
  26. package/dist/dist/{ModelProperty-i5flwzQG.d.ts → ModelProperty-DDD47KVm.d.ts} +1 -1
  27. package/dist/dist/{ModelProperty-i5flwzQG.d.ts.map → ModelProperty-DDD47KVm.d.ts.map} +1 -1
  28. package/dist/dist/{Schema-PFZwG9Nl.d.ts → Schema-BS8oR7QV.d.ts} +2 -2
  29. package/dist/dist/{Schema-PFZwG9Nl.d.ts.map → Schema-BS8oR7QV.d.ts.map} +1 -1
  30. package/dist/dist/{SchemaValidationService-DnGKel4V.d.ts → SchemaValidationService-CZzKNL04.d.ts} +1 -1
  31. package/dist/dist/{SchemaValidationService-DnGKel4V.d.ts.map → SchemaValidationService-CZzKNL04.d.ts.map} +1 -1
  32. package/dist/dist/{backfillMetadataPropertyIds-BbxgavEQ.d.ts → backfillMetadataPropertyIds-C7P7FL6F.d.ts} +1 -1
  33. package/dist/dist/backfillMetadataPropertyIds-C7P7FL6F.d.ts.map +1 -0
  34. package/dist/dist/{changeFeed-DKdVlUmt.d.ts → changeFeed-M8sGbOrW.d.ts} +1 -1
  35. package/dist/dist/{changeFeed-DKdVlUmt.d.ts.map → changeFeed-M8sGbOrW.d.ts.map} +1 -1
  36. package/dist/dist/{configurePlatform-CrMafpMW.d.ts → configurePlatform-Dukm2QwO.d.ts} +1 -1
  37. package/dist/dist/configurePlatform-Dukm2QwO.d.ts.map +1 -0
  38. package/dist/dist/{detachRowsBeforeDelete-DXFYSHRR.d.ts → detachRowsBeforeDelete-Di1enVUF.d.ts} +1 -1
  39. package/dist/dist/detachRowsBeforeDelete-Di1enVUF.d.ts.map +1 -0
  40. package/dist/dist/{eas-dyepi5jz.d.ts → eas-B5VJolSj.d.ts} +1 -1
  41. package/dist/dist/eas-B5VJolSj.d.ts.map +1 -0
  42. package/dist/dist/{errors-D1zHAqjr.d.ts → errors-CS3nDpUU.d.ts} +1 -1
  43. package/dist/dist/{errors-D1zHAqjr.d.ts.map → errors-CS3nDpUU.d.ts.map} +1 -1
  44. package/dist/dist/{findSeedRowsByUid-CT3sOXXw.d.ts → findSeedRowsByUid-CuQmK7An.d.ts} +1 -1
  45. package/dist/dist/findSeedRowsByUid-CuQmK7An.d.ts.map +1 -0
  46. package/dist/dist/{getItem-Bhjecbia.d.ts → getItem-Uha3_H0t.d.ts} +1 -1
  47. package/dist/dist/getItem-Uha3_H0t.d.ts.map +1 -0
  48. package/dist/dist/{getPublishPayload-DH4rMqXG.d.ts → getPublishPayload-pbin4lk8.d.ts} +20 -2
  49. package/dist/dist/getPublishPayload-pbin4lk8.d.ts.map +1 -0
  50. package/dist/dist/getPublishPendingDiff-ByIaPvCn.d.ts +18 -0
  51. package/dist/dist/getPublishPendingDiff-ByIaPvCn.d.ts.map +1 -0
  52. package/dist/dist/{getPublishUploads-BzUIDA2G.d.ts → getPublishUploads-BBqiowVc.d.ts} +1 -1
  53. package/dist/dist/{getPublishUploads-BzUIDA2G.d.ts.map → getPublishUploads-BBqiowVc.d.ts.map} +1 -1
  54. package/dist/dist/{index-DJmWkVIK.d.ts → index-DQoyhp2c.d.ts} +5 -5
  55. package/dist/dist/index-DQoyhp2c.d.ts.map +1 -0
  56. package/dist/dist/{index-PbnKw2es.d.ts → index-DxHpPNfn.d.ts} +18 -1
  57. package/dist/dist/{index-PbnKw2es.d.ts.map → index-DxHpPNfn.d.ts.map} +1 -1
  58. package/dist/dist/{index-CkYb3wcU.d.ts → index-njjjo74v.d.ts} +13 -13
  59. package/dist/dist/index-njjjo74v.d.ts.map +1 -0
  60. package/dist/dist/{index-Dx_GTdyQ.d.ts → index-rOTW-2QZ.d.ts} +139 -118
  61. package/dist/dist/index-rOTW-2QZ.d.ts.map +1 -0
  62. package/dist/dist/{index.browser-i9uPJice.d.ts → index.browser-QPWBkLJA.d.ts} +52 -1
  63. package/dist/dist/{index.browser-i9uPJice.d.ts.map → index.browser-QPWBkLJA.d.ts.map} +1 -1
  64. package/dist/dist/{index.node-CzMwMr_d.d.ts → index.node-WsEJCOwC.d.ts} +69 -1
  65. package/dist/dist/{index.node-CzMwMr_d.d.ts.map → index.node-WsEJCOwC.d.ts.map} +1 -1
  66. package/dist/dist/{modelPropertyRecordSchemas-C5lW9aA-.d.ts → modelPropertyRecordSchemas-onFOG2x6.d.ts} +1 -1
  67. package/dist/dist/modelPropertyRecordSchemas-onFOG2x6.d.ts.map +1 -0
  68. package/dist/dist/platform.browser.d.ts +2 -2
  69. package/dist/dist/platform.node.d.ts +2 -2
  70. package/dist/dist/{property-BwYtg5Q_.d.ts → property-C85DCD7K.d.ts} +3 -3
  71. package/dist/dist/property-C85DCD7K.d.ts.map +1 -0
  72. package/dist/dist/{propertyValidationRules-CyHdpcPP.d.ts → propertyValidationRules-CjUPOFeu.d.ts} +1 -1
  73. package/dist/dist/propertyValidationRules-CjUPOFeu.d.ts.map +1 -0
  74. package/dist/dist/{publishDraftGraph-C5F6b7GK.d.ts → publishDraftGraph-DBWAN72w.d.ts} +1 -1
  75. package/dist/dist/{publishDraftGraph-C5F6b7GK.d.ts.map → publishDraftGraph-DBWAN72w.d.ts.map} +1 -1
  76. package/dist/dist/{resolveModelForSyncedSeed-4gO9Hfn2.d.ts → resolveModelForSyncedSeed-fIURvYRV.d.ts} +1 -1
  77. package/dist/dist/resolveModelForSyncedSeed-fIURvYRV.d.ts.map +1 -0
  78. package/dist/dist/{syncDbWithEas-DUu_wjUG.d.ts → syncDbWithEas-BMHoou6X.d.ts} +1 -1
  79. package/dist/dist/syncDbWithEas-BMHoou6X.d.ts.map +1 -0
  80. package/dist/dist/{tolerantWebAccess-DecKDGen.d.ts → tolerantWebAccess-BHndShch.d.ts} +1 -1
  81. package/dist/dist/{tolerantWebAccess-DecKDGen.d.ts.map → tolerantWebAccess-BHndShch.d.ts.map} +1 -1
  82. package/dist/dist/{updateSeedRevokedAt-CP606vKs.d.ts → updateSeedRevokedAt-DpfG6ztE.d.ts} +1 -1
  83. package/dist/dist/updateSeedRevokedAt-DpfG6ztE.d.ts.map +1 -0
  84. package/dist/{eas-dyepi5jz.js → eas-B5VJolSj.js} +3 -3
  85. package/dist/{eas-dyepi5jz.js.map → eas-B5VJolSj.js.map} +1 -1
  86. package/dist/{errors-D1zHAqjr.js → errors-CS3nDpUU.js} +26 -26
  87. package/dist/{errors-D1zHAqjr.js.map → errors-CS3nDpUU.js.map} +1 -1
  88. package/dist/{findSeedRowsByUid-CT3sOXXw.js → findSeedRowsByUid-CuQmK7An.js} +3 -3
  89. package/dist/{findSeedRowsByUid-CT3sOXXw.js.map → findSeedRowsByUid-CuQmK7An.js.map} +1 -1
  90. package/dist/{getItem-Bhjecbia.js → getItem-Uha3_H0t.js} +4 -4
  91. package/dist/{getItem-Bhjecbia.js.map → getItem-Uha3_H0t.js.map} +1 -1
  92. package/dist/{getPublishPayload-DH4rMqXG.js → getPublishPayload-pbin4lk8.js} +201 -99
  93. package/dist/getPublishPayload-pbin4lk8.js.map +1 -0
  94. package/dist/getPublishPendingDiff-ByIaPvCn.js +118 -0
  95. package/dist/getPublishPendingDiff-ByIaPvCn.js.map +1 -0
  96. package/dist/{getPublishUploads-BzUIDA2G.js → getPublishUploads-BBqiowVc.js} +7 -7
  97. package/dist/{getPublishUploads-BzUIDA2G.js.map → getPublishUploads-BBqiowVc.js.map} +1 -1
  98. package/dist/{index-DJmWkVIK.js → index-DQoyhp2c.js} +8 -8
  99. package/dist/index-DQoyhp2c.js.map +1 -0
  100. package/dist/{index-PbnKw2es.js → index-DxHpPNfn.js} +2 -2
  101. package/dist/index-DxHpPNfn.js.map +1 -0
  102. package/dist/{index-CkYb3wcU.js → index-njjjo74v.js} +7 -7
  103. package/dist/index-njjjo74v.js.map +1 -0
  104. package/dist/{index-Dx_GTdyQ.js → index-rOTW-2QZ.js} +18 -3
  105. package/dist/index-rOTW-2QZ.js.map +1 -0
  106. package/dist/{index.browser-i9uPJice.js → index.browser-QPWBkLJA.js} +50 -34
  107. package/dist/index.browser-QPWBkLJA.js.map +1 -0
  108. package/dist/{index.node-CzMwMr_d.js → index.node-WsEJCOwC.js} +5 -5
  109. package/dist/{index.node-CzMwMr_d.js.map → index.node-WsEJCOwC.js.map} +1 -1
  110. package/dist/main.js +73 -103
  111. package/dist/main.js.map +1 -1
  112. package/dist/{modelPropertyRecordSchemas-C5lW9aA-.js → modelPropertyRecordSchemas-onFOG2x6.js} +4 -4
  113. package/dist/{modelPropertyRecordSchemas-C5lW9aA-.js.map → modelPropertyRecordSchemas-onFOG2x6.js.map} +1 -1
  114. package/dist/node.js +9 -9
  115. package/dist/node.js.map +1 -1
  116. package/dist/platform.browser.js +5 -5
  117. package/dist/platform.node.js +4 -4
  118. package/dist/{property-BwYtg5Q_.js → property-C85DCD7K.js} +6 -6
  119. package/dist/{property-BwYtg5Q_.js.map → property-C85DCD7K.js.map} +1 -1
  120. package/dist/{propertyValidationRules-CyHdpcPP.js → propertyValidationRules-CjUPOFeu.js} +6 -6
  121. package/dist/{propertyValidationRules-CyHdpcPP.js.map → propertyValidationRules-CjUPOFeu.js.map} +1 -1
  122. package/dist/{publishDraftGraph-C5F6b7GK.js → publishDraftGraph-DBWAN72w.js} +9 -9
  123. package/dist/{publishDraftGraph-C5F6b7GK.js.map → publishDraftGraph-DBWAN72w.js.map} +1 -1
  124. package/dist/{resolveModelForSyncedSeed-4gO9Hfn2.js → resolveModelForSyncedSeed-fIURvYRV.js} +2 -2
  125. package/dist/{resolveModelForSyncedSeed-4gO9Hfn2.js.map → resolveModelForSyncedSeed-fIURvYRV.js.map} +1 -1
  126. package/dist/seedSchema/MetadataSchema.ts +3 -0
  127. package/dist/src/Item/Item.d.ts.map +1 -1
  128. package/dist/src/Item/service/actors/loadOrCreateItem.d.ts.map +1 -1
  129. package/dist/src/ItemProperty/ItemProperty.d.ts +26 -0
  130. package/dist/src/ItemProperty/ItemProperty.d.ts.map +1 -1
  131. package/dist/src/ItemProperty/service/actors/loadOrCreateProperty.d.ts.map +1 -1
  132. package/dist/src/ItemProperty/service/actors/saveValueToDb/analyzeInput.d.ts.map +1 -1
  133. package/dist/src/ItemProperty/service/actors/saveValueToDb/saveFile.d.ts.map +1 -1
  134. package/dist/src/ItemProperty/service/actors/saveValueToDb/saveImage.d.ts.map +1 -1
  135. package/dist/src/ItemProperty/service/propertyMachine.d.ts +4 -1
  136. package/dist/src/ItemProperty/service/propertyMachine.d.ts.map +1 -1
  137. package/dist/src/browser/db/drizzleFiles.d.ts +3 -2
  138. package/dist/src/browser/db/drizzleFiles.d.ts.map +1 -1
  139. package/dist/src/db/read/getPropertyClear.d.ts +45 -0
  140. package/dist/src/db/read/getPropertyClear.d.ts.map +1 -0
  141. package/dist/src/db/read/getPublishPayload.d.ts.map +1 -1
  142. package/dist/src/db/read/getPublishPendingDiff.d.ts +5 -0
  143. package/dist/src/db/read/getPublishPendingDiff.d.ts.map +1 -1
  144. package/dist/src/db/read/summarizePublishWork.d.ts +5 -0
  145. package/dist/src/db/read/summarizePublishWork.d.ts.map +1 -1
  146. package/dist/src/db/write/markPropertyAttestationsRetracted.d.ts +11 -0
  147. package/dist/src/db/write/markPropertyAttestationsRetracted.d.ts.map +1 -0
  148. package/dist/src/db/write/updateItemPropertyValue.d.ts +2 -0
  149. package/dist/src/db/write/updateItemPropertyValue.d.ts.map +1 -1
  150. package/dist/src/events/item/syncDbWithEas.d.ts.map +1 -1
  151. package/dist/src/helpers/compareMetadataRowsLatestFirst.d.ts +9 -9
  152. package/dist/src/helpers/compareMetadataRowsLatestFirst.d.ts.map +1 -1
  153. package/dist/src/helpers/metadataPropertyNames.d.ts +6 -1
  154. package/dist/src/helpers/metadataPropertyNames.d.ts.map +1 -1
  155. package/dist/src/index.d.ts +3 -1
  156. package/dist/src/index.d.ts.map +1 -1
  157. package/dist/src/interfaces/IItemProperty.d.ts +4 -0
  158. package/dist/src/interfaces/IItemProperty.d.ts.map +1 -1
  159. package/dist/src/node/index.d.ts +1 -1
  160. package/dist/src/node/index.d.ts.map +1 -1
  161. package/dist/src/outbox/itemAppliers.d.ts +7 -0
  162. package/dist/src/outbox/itemAppliers.d.ts.map +1 -1
  163. package/dist/src/outbox/pendingValues.d.ts.map +1 -1
  164. package/dist/src/seedSchema/MetadataSchema.d.ts +17 -0
  165. package/dist/src/seedSchema/MetadataSchema.d.ts.map +1 -1
  166. package/dist/src/types/property.d.ts +8 -0
  167. package/dist/src/types/property.d.ts.map +1 -1
  168. package/dist/{syncDbWithEas-DUu_wjUG.js → syncDbWithEas-BMHoou6X.js} +47 -23
  169. package/dist/syncDbWithEas-BMHoou6X.js.map +1 -0
  170. package/dist/{tolerantWebAccess-DecKDGen.js → tolerantWebAccess-BHndShch.js} +6 -6
  171. package/dist/{tolerantWebAccess-DecKDGen.js.map → tolerantWebAccess-BHndShch.js.map} +1 -1
  172. package/dist/{updateSeedRevokedAt-CP606vKs.js → updateSeedRevokedAt-DpfG6ztE.js} +3 -3
  173. package/dist/{updateSeedRevokedAt-CP606vKs.js.map → updateSeedRevokedAt-DpfG6ztE.js.map} +1 -1
  174. package/package.json +6 -6
  175. package/dist/ClientManager-GZfXErDX.js.map +0 -1
  176. package/dist/Item-0oDoTPhi.js.map +0 -1
  177. package/dist/dist/Item-0oDoTPhi.d.ts.map +0 -1
  178. package/dist/dist/backfillMetadataPropertyIds-BbxgavEQ.d.ts.map +0 -1
  179. package/dist/dist/configurePlatform-CrMafpMW.d.ts.map +0 -1
  180. package/dist/dist/detachRowsBeforeDelete-DXFYSHRR.d.ts.map +0 -1
  181. package/dist/dist/eas-dyepi5jz.d.ts.map +0 -1
  182. package/dist/dist/findSeedRowsByUid-CT3sOXXw.d.ts.map +0 -1
  183. package/dist/dist/getItem-Bhjecbia.d.ts.map +0 -1
  184. package/dist/dist/getPublishPayload-DH4rMqXG.d.ts.map +0 -1
  185. package/dist/dist/index-CkYb3wcU.d.ts.map +0 -1
  186. package/dist/dist/index-DJmWkVIK.d.ts.map +0 -1
  187. package/dist/dist/index-Dx_GTdyQ.d.ts.map +0 -1
  188. package/dist/dist/modelPropertyRecordSchemas-C5lW9aA-.d.ts.map +0 -1
  189. package/dist/dist/property-BwYtg5Q_.d.ts.map +0 -1
  190. package/dist/dist/propertyValidationRules-CyHdpcPP.d.ts.map +0 -1
  191. package/dist/dist/resolveModelForSyncedSeed-4gO9Hfn2.d.ts.map +0 -1
  192. package/dist/dist/syncDbWithEas-DUu_wjUG.d.ts.map +0 -1
  193. package/dist/dist/updateSeedRevokedAt-CP606vKs.d.ts.map +0 -1
  194. package/dist/getPublishPayload-DH4rMqXG.js.map +0 -1
  195. package/dist/index-CkYb3wcU.js.map +0 -1
  196. package/dist/index-DJmWkVIK.js.map +0 -1
  197. package/dist/index-Dx_GTdyQ.js.map +0 -1
  198. package/dist/index-PbnKw2es.js.map +0 -1
  199. package/dist/index.browser-i9uPJice.js.map +0 -1
  200. package/dist/syncDbWithEas-DUu_wjUG.js.map +0 -1
@@ -1,13 +1,13 @@
1
1
  import { fromCallback, setup, assign, createActor } from 'xstate';
2
- import { L as BaseDb, aq as SEED_PROTOCOL_SCHEMA_NAME, J as schemas, Q as BaseFileManager, aL as loadModelsFromDbForSchema, aM as mergeDbModelsIntoSchemaModels, aF as isInternalSchema, p as models, z as modelSchemas, aN as addSchemaToDb, ad as generateId, i as isDataType, M as ModelPropertyDataTypes, aO as addModelsToDb, E as properties, aP as clearNameMatchLevels } from './index-Dx_GTdyQ.js';
3
- import { SchemaValidationService } from './SchemaValidationService-DnGKel4V.js';
4
- import { A as listCompleteSchemaFiles, N as getLatestSchemaVersion, O as createRowsWrittenSignal, P as createModelsFromJson, l as loadSchemaFromFile, Q as jsonPropertiesToSchemaProperties, B as loadAllSchemasFromDb, v as getClient } from './ClientManager-GZfXErDX.js';
2
+ import { L as BaseDb, ar as SEED_PROTOCOL_SCHEMA_NAME, J as schemas, Q as BaseFileManager, aM as loadModelsFromDbForSchema, aN as mergeDbModelsIntoSchemaModels, aG as isInternalSchema, p as models, z as modelSchemas, aO as addSchemaToDb, a5 as generateId, i as isDataType, M as ModelPropertyDataTypes, aP as addModelsToDb, E as properties, aQ as clearNameMatchLevels } from './index-rOTW-2QZ.js';
3
+ import { SchemaValidationService } from './SchemaValidationService-CZzKNL04.js';
4
+ import { A as listCompleteSchemaFiles, N as getLatestSchemaVersion, O as createRowsWrittenSignal, P as createModelsFromJson, l as loadSchemaFromFile, Q as jsonPropertiesToSchemaProperties, B as loadAllSchemasFromDb, v as getClient } from './ClientManager-DqL0q_eu.js';
5
5
  import { eq, desc, and } from 'drizzle-orm';
6
6
  import debug from 'debug';
7
- import { c as currentEvictionEpoch, M as Model, g as getDraftSaveError, C as ConflictError, r as recordSchemaDestroy, f as finishSchemaDestroy, e as setupEntityLiveQuery, t as trackDraftSave } from './errors-D1zHAqjr.js';
7
+ import { c as currentEvictionEpoch, M as Model, g as getDraftSaveError, C as ConflictError, r as recordSchemaDestroy, f as finishSchemaDestroy, e as setupEntityLiveQuery, t as trackDraftSave } from './errors-CS3nDpUU.js';
8
8
  import 'pluralize';
9
9
  import '@seedprotocol/eas';
10
- import { aj as ActorKeyedState, N as DEFAULT_READY_TIMEOUT_MS, B as waitForEntityIdle, P as createReactiveProxy, R as findEntity, W as ClientManagerState, ak as clearDestroySubscriptions, S as forceRemoveFromCaches, al as unloadEntity, T as runDestroyLifecycle } from './Item-0oDoTPhi.js';
10
+ import { ak as ActorKeyedState, Q as DEFAULT_READY_TIMEOUT_MS, F as waitForEntityIdle, R as createReactiveProxy, T as findEntity, X as ClientManagerState, al as clearDestroySubscriptions, U as forceRemoveFromCaches, am as unloadEntity, V as runDestroyLifecycle } from './Item-CG5IhPtL.js';
11
11
 
12
12
  const validationService = new SchemaValidationService();
13
13
  // Validation timeout in milliseconds (10 seconds)
@@ -123,7 +123,7 @@ const createModelInstances$1 = async (modelIds, evictionEpoch) => {
123
123
  return;
124
124
  }
125
125
  try {
126
- const _mod_0 = await import('./errors-D1zHAqjr.js');
126
+ const _mod_0 = await import('./errors-CS3nDpUU.js');
127
127
  const _ns_0 = _mod_0.i;
128
128
  const mod = _ns_0;
129
129
  const Model = mod?.Model ?? mod?.default;
@@ -175,7 +175,7 @@ const checkExistingSchema = fromCallback(({ sendBack, input: { context } }) => {
175
175
  if (isInternal && schemaName === SEED_PROTOCOL_SCHEMA_NAME) {
176
176
  // For Seed Protocol, check if it exists in database
177
177
  try {
178
- const _mod_1 = await import('./ClientManager-GZfXErDX.js');
178
+ const _mod_1 = await import('./ClientManager-DqL0q_eu.js');
179
179
  const _ns_1 = _mod_1.T;
180
180
  const internalSchema = _ns_1;
181
181
  const schemaFile = internalSchema.default;
@@ -511,7 +511,7 @@ const writeSchemaToDb = fromCallback(({ sendBack, input }) => {
511
511
  if (isInternal && schemaName === SEED_PROTOCOL_SCHEMA_NAME) {
512
512
  // For Seed Protocol, load from internal file
513
513
  logger$b(`Loading internal Seed Protocol schema from SDK`);
514
- const _mod_2 = await import('./ClientManager-GZfXErDX.js');
514
+ const _mod_2 = await import('./ClientManager-DqL0q_eu.js');
515
515
  const _ns_2 = _mod_2.T;
516
516
  const internalSchema = _ns_2;
517
517
  finalSchema = internalSchema.default;
@@ -984,7 +984,7 @@ const createModelInstances = fromCallback(({ sendBack, input }) => {
984
984
  return;
985
985
  }
986
986
  try {
987
- const _mod_3 = await import('./errors-D1zHAqjr.js');
987
+ const _mod_3 = await import('./errors-CS3nDpUU.js');
988
988
  const _ns_3 = _mod_3.i;
989
989
  const modelMod = _ns_3;
990
990
  const { Model } = modelMod;
@@ -1076,7 +1076,7 @@ const verifyModelInstancesInCache = fromCallback(({ sendBack, input }) => {
1076
1076
  }
1077
1077
  try {
1078
1078
  const result = await verifyWithRetry$2(async () => {
1079
- const _mod_4 = await import('./errors-D1zHAqjr.js');
1079
+ const _mod_4 = await import('./errors-CS3nDpUU.js');
1080
1080
  const _ns_4 = _mod_4.i;
1081
1081
  const modelMod = _ns_4;
1082
1082
  const { Model } = modelMod;
@@ -1135,7 +1135,7 @@ const writePropertiesToDb = fromCallback(({ sendBack, input }) => {
1135
1135
  const _write = async () => {
1136
1136
  const { modelIds } = input;
1137
1137
  try {
1138
- const _mod_5 = await import('./index-Dx_GTdyQ.js');
1138
+ const _mod_5 = await import('./index-rOTW-2QZ.js');
1139
1139
  const _ns_5 = _mod_5.ba;
1140
1140
  const modelSchemaMod = _ns_5;
1141
1141
  const { models: modelsTable, properties: propertiesTable } = modelSchemaMod;
@@ -1325,9 +1325,9 @@ const createPropertyInstances = fromCallback(({ sendBack, input }) => {
1325
1325
  return;
1326
1326
  }
1327
1327
  try {
1328
- const modProp = await import('./ModelProperty-i5flwzQG.js');
1328
+ const modProp = await import('./ModelProperty-DDD47KVm.js');
1329
1329
  const ModelProperty = modProp?.ModelProperty ?? modProp?.default;
1330
- const _mod_6 = await import('./errors-D1zHAqjr.js');
1330
+ const _mod_6 = await import('./errors-CS3nDpUU.js');
1331
1331
  const _ns_6 = _mod_6.i;
1332
1332
  const modModel = _ns_6;
1333
1333
  const Model = modModel?.Model ?? modModel?.default;
@@ -1434,7 +1434,7 @@ const verifyPropertyInstancesInCache = fromCallback(({ sendBack, input }) => {
1434
1434
  }
1435
1435
  try {
1436
1436
  const result = await verifyWithRetry(async () => {
1437
- const mod = await import('./ModelProperty-i5flwzQG.js');
1437
+ const mod = await import('./ModelProperty-DDD47KVm.js');
1438
1438
  const ModelProperty = mod?.ModelProperty ?? mod?.default;
1439
1439
  if (!ModelProperty) {
1440
1440
  throw new Error('ModelProperty not available from dynamic import');
@@ -2402,7 +2402,7 @@ async function loadSchemaWithRenames(schemaFilePath, modelRenames) {
2402
2402
  updatedAt: new Date(schemaFile.metadata.updatedAt).getTime(),
2403
2403
  };
2404
2404
  // Use dynamic import to break circular dependency
2405
- const _mod_7 = await import('./index-Dx_GTdyQ.js');
2405
+ const _mod_7 = await import('./index-rOTW-2QZ.js');
2406
2406
  const _ns_7 = _mod_7.bf;
2407
2407
  const dbMod = _ns_7;
2408
2408
  const { addSchemaToDb, addModelsToDb } = dbMod;
@@ -2526,7 +2526,7 @@ async function renameModelProperty(schemaName, modelName, oldPropertyName, newPr
2526
2526
  await BaseFileManager.waitForFileWithContent(newFilePath);
2527
2527
  logger$1(`Renamed property ${oldPropertyName} to ${newPropertyName} in schema ${schemaName} v${newVersion}`);
2528
2528
  // Migrate metadata rows so ItemProperty values follow the new name (prevents duplicate ItemProperties)
2529
- const _mod_8 = await import('./index-Dx_GTdyQ.js');
2529
+ const _mod_8 = await import('./index-rOTW-2QZ.js');
2530
2530
  const _ns_8 = _mod_8.bf;
2531
2531
  const { migrateMetadataForPropertyRename } = _ns_8;
2532
2532
  const migratedCount = await migrateMetadataForPropertyRename(modelName, oldPropertyName, newPropertyName, oldProperty.id, { schemaName });
@@ -3299,7 +3299,7 @@ class Schema {
3299
3299
  const modelDbId = modelInstance.getService().getSnapshot().context._dbId;
3300
3300
  const db = BaseDb.getAppDb();
3301
3301
  if (propertyContexts.length === 0 && modelDbId && db) {
3302
- const { ModelProperty } = await import('./ModelProperty-i5flwzQG.js');
3302
+ const { ModelProperty } = await import('./ModelProperty-DDD47KVm.js');
3303
3303
  const rows = await db.select().from(properties).where(eq(properties.modelId, modelDbId));
3304
3304
  propertyContexts = rows.map((row) => {
3305
3305
  const cached = row.schemaFileId ? ModelProperty.getById(row.schemaFileId) : undefined;
@@ -3465,7 +3465,7 @@ class Schema {
3465
3465
  savedSchema: publishedSchema,
3466
3466
  });
3467
3467
  // Clear edited flags on all ModelProperty instances and in database
3468
- const modelPropertyMod = await import('./ModelProperty-i5flwzQG.js');
3468
+ const modelPropertyMod = await import('./ModelProperty-DDD47KVm.js');
3469
3469
  const { ModelProperty } = modelPropertyMod;
3470
3470
  for (const propertyKey of context._editedProperties) {
3471
3471
  const [modelName, propertyName] = propertyKey.split(':');
@@ -3488,7 +3488,7 @@ class Schema {
3488
3488
  try {
3489
3489
  if (db && modelName && propertyName) {
3490
3490
  // Find this schema's model by name
3491
- const _mod_9 = await import('./index-Dx_GTdyQ.js');
3491
+ const _mod_9 = await import('./index-rOTW-2QZ.js');
3492
3492
  const _ns_9 = _mod_9.be;
3493
3493
  const { resolveModelRecord } = _ns_9;
3494
3494
  const modelRecord = await resolveModelRecord(modelName, { schemaName: thisSchemaName }, db);
@@ -4120,10 +4120,10 @@ class Schema {
4120
4120
  // instances too, or a re-import would get them back with dangling _dbIds.
4121
4121
  if (schemaName) {
4122
4122
  const evictedModelNames = Model.evictForSchema(schemaName);
4123
- const { ModelProperty } = await import('./ModelProperty-i5flwzQG.js');
4123
+ const { ModelProperty } = await import('./ModelProperty-DDD47KVm.js');
4124
4124
  ModelProperty.evictForModels(evictedModelNames, schemaName);
4125
4125
  // Evicting stops new writes but not ones already running; let those land before deleting their rows
4126
- const _mod_10 = await import('./errors-D1zHAqjr.js');
4126
+ const _mod_10 = await import('./errors-CS3nDpUU.js');
4127
4127
  const _ns_10 = _mod_10.h;
4128
4128
  const { waitForInFlightWrites } = _ns_10;
4129
4129
  await waitForInFlightWrites();
@@ -4156,7 +4156,7 @@ class Schema {
4156
4156
  .map((r) => r.modelId)
4157
4157
  .filter((id) => id != null)),
4158
4158
  ];
4159
- const { detachModelRows } = await import('./detachRowsBeforeDelete-DXFYSHRR.js');
4159
+ const { detachModelRows } = await import('./detachRowsBeforeDelete-Di1enVUF.js');
4160
4160
  await detachModelRows(db, modelIds);
4161
4161
  await db.delete(modelSchemas).where(inArray(modelSchemas.schemaId, schemaIds));
4162
4162
  for (const modelId of modelIds) {
@@ -4171,7 +4171,7 @@ class Schema {
4171
4171
  // the destroyed schema back on the next Schema.all().
4172
4172
  // Match on name as well as id: versions imported from complete schema files can each
4173
4173
  // have their own id, and any version left behind would bring the schema back.
4174
- const _mod_11 = await import('./ClientManager-GZfXErDX.js');
4174
+ const _mod_11 = await import('./ClientManager-DqL0q_eu.js');
4175
4175
  const _ns_11 = _mod_11.S;
4176
4176
  const { listCompleteSchemaFiles } = _ns_11;
4177
4177
  const files = await listCompleteSchemaFiles().catch(() => []);
@@ -4367,4 +4367,4 @@ var Schema$1 = /*#__PURE__*/Object.freeze({
4367
4367
  });
4368
4368
 
4369
4369
  export { Schema as S, Schema$1 as a, renameModelProperty as r, schemaMachine as s, updateModelProperties as u };
4370
- //# sourceMappingURL=Schema-PFZwG9Nl.js.map
4370
+ //# sourceMappingURL=Schema-BS8oR7QV.js.map