@seedprotocol/sdk 0.5.2 → 0.6.0

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 (127) hide show
  1. package/dist/{BasePathResolver-BDgc7c4T.js → BasePathResolver-DWY_hb8w.js} +2 -2
  2. package/dist/{BasePathResolver-BDgc7c4T.js.map → BasePathResolver-DWY_hb8w.js.map} +1 -1
  3. package/dist/{ModelProperty-BBXBvgvy.js → ModelProperty-DGJf78CS.js} +21 -21
  4. package/dist/{ModelProperty-BBXBvgvy.js.map → ModelProperty-DGJf78CS.js.map} +1 -1
  5. package/dist/{Schema-xAt7jWlW.js → Schema-Drmce3q-.js} +39 -39
  6. package/dist/{Schema-xAt7jWlW.js.map → Schema-Drmce3q-.js.map} +1 -1
  7. package/dist/{SchemaValidationService-CLzAdBm-.js → SchemaValidationService-a_sfnpDV.js} +5 -5
  8. package/dist/{SchemaValidationService-CLzAdBm-.js.map → SchemaValidationService-a_sfnpDV.js.map} +1 -1
  9. package/dist/{backfillMetadataPropertyIds-DBVaIs7O.js → backfillMetadataPropertyIds-CZcOi-cK.js} +3 -3
  10. package/dist/{backfillMetadataPropertyIds-DBVaIs7O.js.map → backfillMetadataPropertyIds-CZcOi-cK.js.map} +1 -1
  11. package/dist/cjs/{ModelProperty-Dgd4tGrB.js → ModelProperty-BA26rMV8.js} +17 -17
  12. package/dist/cjs/{ModelProperty-Dgd4tGrB.js.map → ModelProperty-BA26rMV8.js.map} +1 -1
  13. package/dist/cjs/{Schema-dkd-eo3B.js → Schema-Hgwq3L34.js} +20 -20
  14. package/dist/cjs/{Schema-dkd-eo3B.js.map → Schema-Hgwq3L34.js.map} +1 -1
  15. package/dist/cjs/{SchemaValidationService-BMnjcVWV.js → SchemaValidationService-DVmOGZao.js} +2 -2
  16. package/dist/cjs/{SchemaValidationService-BMnjcVWV.js.map → SchemaValidationService-DVmOGZao.js.map} +1 -1
  17. package/dist/cjs/{backfillMetadataPropertyIds-ClLuj3s6.js → backfillMetadataPropertyIds-BWJI4eCj.js} +2 -2
  18. package/dist/cjs/{backfillMetadataPropertyIds-ClLuj3s6.js.map → backfillMetadataPropertyIds-BWJI4eCj.js.map} +1 -1
  19. package/dist/cjs/{eas-nWAzbl_F.js → eas-BJ8FtbU9.js} +3 -3
  20. package/dist/cjs/{eas-nWAzbl_F.js.map → eas-BJ8FtbU9.js.map} +1 -1
  21. package/dist/cjs/{getItem-B08FgglK.js → getItem-DdBKeEEU.js} +2 -2
  22. package/dist/cjs/{getItem-B08FgglK.js.map → getItem-DdBKeEEU.js.map} +1 -1
  23. package/dist/cjs/{getPublishPayload-B_G_6qkE.js → getPublishPayload-DSBLjMKl.js} +11 -11
  24. package/dist/cjs/{getPublishPayload-B_G_6qkE.js.map → getPublishPayload-DSBLjMKl.js.map} +1 -1
  25. package/dist/cjs/{getPublishUploads-Dt-DS-lo.js → getPublishUploads-DMKnK2_R.js} +4 -4
  26. package/dist/cjs/{getPublishUploads-Dt-DS-lo.js.map → getPublishUploads-DMKnK2_R.js.map} +1 -1
  27. package/dist/cjs/{getSegmentedItemProperties-BDGbeDW7.js → getSegmentedItemProperties-D0ZzTmvi.js} +3 -3
  28. package/dist/cjs/{getSegmentedItemProperties-BDGbeDW7.js.map → getSegmentedItemProperties-D0ZzTmvi.js.map} +1 -1
  29. package/dist/cjs/{index-CRBI6dSD.js → index-BD1b6zAi.js} +498 -40
  30. package/dist/cjs/index-BD1b6zAi.js.map +1 -0
  31. package/dist/cjs/{index-Dx19j60c.js → index-DQggpLqI.js} +3 -3
  32. package/dist/cjs/index-DQggpLqI.js.map +1 -0
  33. package/dist/cjs/index.browser-BSf8HpnU.js.map +1 -1
  34. package/dist/cjs/{property-628qAHpN.js → property-D4IB0zBz.js} +4 -4
  35. package/dist/cjs/{property-628qAHpN.js.map → property-D4IB0zBz.js.map} +1 -1
  36. package/dist/cjs/{syncDbWithEas-DOBtMPw-.js → syncDbWithEas-BYvFJc7N.js} +6 -6
  37. package/dist/cjs/{syncDbWithEas-DOBtMPw-.js.map → syncDbWithEas-BYvFJc7N.js.map} +1 -1
  38. package/dist/{configurePlatform-Ce6NIKRP.js → configurePlatform-CXQCT7N8.js} +3 -3
  39. package/dist/{configurePlatform-Ce6NIKRP.js.map → configurePlatform-CXQCT7N8.js.map} +1 -1
  40. package/dist/{constants-slkc9uq0.js → constants-B7aNfB_1.js} +3 -3
  41. package/dist/constants-B7aNfB_1.js.map +1 -0
  42. package/dist/constants-DMHTYMgJ.js.map +1 -1
  43. package/dist/{db-CSmK0c3e.js → db-Bad8QKfZ.js} +18 -18
  44. package/dist/{db-CSmK0c3e.js.map → db-Bad8QKfZ.js.map} +1 -1
  45. package/dist/{eas-rx1grht5.js → eas-BB9hVW68.js} +6 -6
  46. package/dist/{eas-rx1grht5.js.map → eas-BB9hVW68.js.map} +1 -1
  47. package/dist/{getItem-hPBJU5JF.js → getItem-Cina46nb.js} +5 -5
  48. package/dist/{getItem-hPBJU5JF.js.map → getItem-Cina46nb.js.map} +1 -1
  49. package/dist/{getPublishPayload-5ugovGK5.js → getPublishPayload-BEO52UOv.js} +16 -16
  50. package/dist/{getPublishPayload-5ugovGK5.js.map → getPublishPayload-BEO52UOv.js.map} +1 -1
  51. package/dist/{getPublishUploads-CdWeci-s.js → getPublishUploads-CJjfqJi9.js} +7 -7
  52. package/dist/{getPublishUploads-CdWeci-s.js.map → getPublishUploads-CJjfqJi9.js.map} +1 -1
  53. package/dist/{getSegmentedItemProperties-DV2LHElJ.js → getSegmentedItemProperties-CbzFDgFr.js} +5 -5
  54. package/dist/{getSegmentedItemProperties-DV2LHElJ.js.map → getSegmentedItemProperties-CbzFDgFr.js.map} +1 -1
  55. package/dist/{index-ClwdGWfr.js → index-B4In0GEO.js} +428 -64
  56. package/dist/index-B4In0GEO.js.map +1 -0
  57. package/dist/index-DNOCl06b.js +28 -0
  58. package/dist/index-DNOCl06b.js.map +1 -0
  59. package/dist/{index-QMrBK-L3.js → index-DrEkRiuK.js} +2 -2
  60. package/dist/index-DrEkRiuK.js.map +1 -0
  61. package/dist/{index.node-CrXwRoiB.js → index.node-CnP9s4cV.js} +4 -4
  62. package/dist/{index.node-CrXwRoiB.js.map → index.node-CnP9s4cV.js.map} +1 -1
  63. package/dist/main.cjs +1 -1
  64. package/dist/main.js +19 -20
  65. package/dist/main.js.map +1 -1
  66. package/dist/node.js +10 -10
  67. package/dist/node.js.map +1 -1
  68. package/dist/platform.browser.js +4 -4
  69. package/dist/platform.browser.js.map +1 -1
  70. package/dist/platform.node.js +3 -3
  71. package/dist/{property-CKhOxRNt.js → property-DIN1zQ_c.js} +8 -8
  72. package/dist/{property-CKhOxRNt.js.map → property-DIN1zQ_c.js.map} +1 -1
  73. package/dist/src/Item/Item.d.ts +5 -0
  74. package/dist/src/Item/Item.d.ts.map +1 -1
  75. package/dist/src/Item/service/itemMachineSingle.d.ts +2 -2
  76. package/dist/src/Item/service/itemMachineSingle.d.ts.map +1 -1
  77. package/dist/src/ItemProperty/ItemProperty.d.ts +1 -1
  78. package/dist/src/ItemProperty/service/propertyMachine.d.ts +2 -2
  79. package/dist/src/ItemProperty/service/propertyMachine.d.ts.map +1 -1
  80. package/dist/src/Model/service/modelMachine.d.ts +10 -18
  81. package/dist/src/Model/service/modelMachine.d.ts.map +1 -1
  82. package/dist/src/ModelProperty/service/modelPropertyMachine.d.ts +5 -13
  83. package/dist/src/ModelProperty/service/modelPropertyMachine.d.ts.map +1 -1
  84. package/dist/src/Schema/service/addModelsMachine.d.ts +8 -8
  85. package/dist/src/Schema/service/addModelsMachine.d.ts.map +1 -1
  86. package/dist/src/Schema/service/schemaMachine.d.ts +22 -30
  87. package/dist/src/Schema/service/schemaMachine.d.ts.map +1 -1
  88. package/dist/src/client/ClientManager.d.ts +16 -6
  89. package/dist/src/client/ClientManager.d.ts.map +1 -1
  90. package/dist/src/client/clientManagerMachine.d.ts +2 -2
  91. package/dist/src/client/clientManagerMachine.d.ts.map +1 -1
  92. package/dist/src/client/events.d.ts +7 -0
  93. package/dist/src/client/events.d.ts.map +1 -1
  94. package/dist/src/db/write/removeLocalCopiesForAddresses.d.ts +20 -0
  95. package/dist/src/db/write/removeLocalCopiesForAddresses.d.ts.map +1 -0
  96. package/dist/src/events/item/easSyncManager.d.ts +2 -2
  97. package/dist/src/events/item/easSyncManager.d.ts.map +1 -1
  98. package/dist/src/helpers/file/download/index.d.ts +2 -2
  99. package/dist/src/helpers/file/download/index.d.ts.map +1 -1
  100. package/dist/src/helpers/file/fetchAll/index.d.ts +2 -2
  101. package/dist/src/helpers/file/fetchAll/index.d.ts.map +1 -1
  102. package/dist/src/helpers/mediaRef.d.ts +2 -2
  103. package/dist/src/helpers/mediaRef.d.ts.map +1 -1
  104. package/dist/src/helpers/ownership.d.ts +7 -0
  105. package/dist/src/helpers/ownership.d.ts.map +1 -1
  106. package/dist/src/index.d.ts +2 -2
  107. package/dist/src/index.d.ts.map +1 -1
  108. package/dist/src/services/publish/publishMachine.d.ts +1 -1
  109. package/dist/src/services/publish/publishMachine.d.ts.map +1 -1
  110. package/dist/src/services/write/writeProcessMachine.d.ts +2 -6
  111. package/dist/src/services/write/writeProcessMachine.d.ts.map +1 -1
  112. package/dist/{syncDbWithEas-GsaXzTIY.js → syncDbWithEas-ceVUuWSZ.js} +13 -13
  113. package/dist/{syncDbWithEas-GsaXzTIY.js.map → syncDbWithEas-ceVUuWSZ.js.map} +1 -1
  114. package/dist/{updateSeedRevokedAt-Ba0OhDQj.js → updateSeedRevokedAt-CtRjZiyh.js} +2 -2
  115. package/dist/{updateSeedRevokedAt-Ba0OhDQj.js.map → updateSeedRevokedAt-CtRjZiyh.js.map} +1 -1
  116. package/package.json +23 -6
  117. package/dist/cjs/index-CRBI6dSD.js.map +0 -1
  118. package/dist/cjs/index-Dx19j60c.js.map +0 -1
  119. package/dist/cjs/ownership-3Tc1-Yrc.js +0 -105
  120. package/dist/cjs/ownership-3Tc1-Yrc.js.map +0 -1
  121. package/dist/constants-slkc9uq0.js.map +0 -1
  122. package/dist/index-CcH2e0Zr.js +0 -23
  123. package/dist/index-CcH2e0Zr.js.map +0 -1
  124. package/dist/index-ClwdGWfr.js.map +0 -1
  125. package/dist/index-QMrBK-L3.js.map +0 -1
  126. package/dist/ownership-58i0iyD9.js +0 -106
  127. package/dist/ownership-58i0iyD9.js.map +0 -1
@@ -1,12 +1,12 @@
1
1
  import { fromCallback, setup, assign, createActor } from 'xstate';
2
- import { k as getRefValueType, i as generateId, a8 as createModelsFromJson, $ as listCompleteSchemaFiles, a9 as getLatestSchemaVersion, aa as createModelFromJson, M as Model, w as writeProcessMachine, n as loadSchemaFromFile, u as waitForEntityIdle, v as createReactiveProxy, x as findEntity, J as loadAllSchemasFromDb, ab as ConflictError, E as getClient, ac as unloadEntity, ad as clearDestroySubscriptions, y as forceRemoveFromCaches, z as runDestroyLifecycle, ae as setupEntityLiveQuery } from './index-ClwdGWfr.js';
3
- import { C as ClientManagerState } from './constants-slkc9uq0.js';
4
- import { addSchemaToDb, addModelsToDb, loadModelsFromDbForSchema } from './db-CSmK0c3e.js';
5
- import { B as BaseDb, r as schemas, m as models, i as modelSchemas, p as properties, a as BaseFileManager } from './BasePathResolver-BDgc7c4T.js';
2
+ import { k as getRefValueType, h as generateId, aa as createModelsFromJson, V as listCompleteSchemaFiles, ab as getLatestSchemaVersion, ac as createModelFromJson, M as Model, w as writeProcessMachine, n as loadSchemaFromFile, u as waitForEntityIdle, v as createReactiveProxy, x as findEntity, W as loadAllSchemasFromDb, ad as ConflictError, H as getClient, ae as unloadEntity, af as clearDestroySubscriptions, y as forceRemoveFromCaches, z as runDestroyLifecycle, ag as setupEntityLiveQuery } from './index-B4In0GEO.js';
3
+ import { C as ClientManagerState } from './constants-B7aNfB_1.js';
4
+ import { addSchemaToDb, addModelsToDb, loadModelsFromDbForSchema } from './db-Bad8QKfZ.js';
5
+ import { a as BaseDb, s as schemas, m as models, i as modelSchemas, p as properties, B as BaseFileManager } from './BasePathResolver-DWY_hb8w.js';
6
6
  import { eq, desc, and } from 'drizzle-orm';
7
7
  import debug from 'debug';
8
8
  import { SEED_PROTOCOL_SCHEMA_NAME, isInternalSchema } from './constants-DMHTYMgJ.js';
9
- import { SchemaValidationService } from './SchemaValidationService-CLzAdBm-.js';
9
+ import { SchemaValidationService } from './SchemaValidationService-a_sfnpDV.js';
10
10
  import 'pluralize';
11
11
 
12
12
  const logger$d = debug('seedSdk:schema:actors:loadOrCreateSchema');
@@ -51,8 +51,8 @@ const createModelInstances$2 = async (modelIds) => {
51
51
  return;
52
52
  }
53
53
  try {
54
- const _mod_0 = await import('./index-ClwdGWfr.js');
55
- const _ns_0 = _mod_0.am;
54
+ const _mod_0 = await import('./index-B4In0GEO.js');
55
+ const _ns_0 = _mod_0.ao;
56
56
  const modelMod = _ns_0;
57
57
  const { Model } = modelMod;
58
58
  // Create instances for all model IDs in parallel
@@ -166,8 +166,8 @@ const loadOrCreateSchema = fromCallback(({ sendBack, input: { context } }) => {
166
166
  // For Seed Protocol, always load from internal file, never create new
167
167
  logger$d(`Loading internal Seed Protocol schema from SDK`);
168
168
  try {
169
- const _mod_1 = await import('./index-ClwdGWfr.js');
170
- const _ns_1 = _mod_1.al;
169
+ const _mod_1 = await import('./index-B4In0GEO.js');
170
+ const _ns_1 = _mod_1.an;
171
171
  const internalSchema = _ns_1;
172
172
  const schemaFile = internalSchema.default;
173
173
  // Check if it exists in database, if not, add it
@@ -661,8 +661,8 @@ const loadOrCreateSchema = fromCallback(({ sendBack, input: { context } }) => {
661
661
  // Ensure models are populated (fallback for seed-protocol if missing)
662
662
  if ((!mergedModels || Object.keys(mergedModels).length === 0) && schemaName === 'Seed Protocol') {
663
663
  try {
664
- const _mod_2 = await import('./index-ClwdGWfr.js');
665
- const _ns_2 = _mod_2.al;
664
+ const _mod_2 = await import('./index-B4In0GEO.js');
665
+ const _ns_2 = _mod_2.an;
666
666
  const internalSchema = _ns_2;
667
667
  const internalSchemaFile = internalSchema.default;
668
668
  mergedModels = { ...(internalSchemaFile.models || {}) };
@@ -890,8 +890,8 @@ const loadOrCreateSchema = fromCallback(({ sendBack, input: { context } }) => {
890
890
  // Ensure models are populated (fallback for seed-protocol if missing)
891
891
  if ((!mergedModels || Object.keys(mergedModels).length === 0) && schemaName === 'Seed Protocol') {
892
892
  try {
893
- const _mod_3 = await import('./index-ClwdGWfr.js');
894
- const _ns_3 = _mod_3.al;
893
+ const _mod_3 = await import('./index-B4In0GEO.js');
894
+ const _ns_3 = _mod_3.an;
895
895
  const internalSchema = _ns_3;
896
896
  const internalSchemaFile = internalSchema.default;
897
897
  mergedModels = { ...(internalSchemaFile.models || {}) };
@@ -981,8 +981,8 @@ const loadOrCreateSchema = fromCallback(({ sendBack, input: { context } }) => {
981
981
  // Ensure models are populated (fallback for seed-protocol if missing)
982
982
  if ((!mergedModels || Object.keys(mergedModels).length === 0) && schemaName === 'Seed Protocol') {
983
983
  try {
984
- const _mod_4 = await import('./index-ClwdGWfr.js');
985
- const _ns_4 = _mod_4.al;
984
+ const _mod_4 = await import('./index-B4In0GEO.js');
985
+ const _ns_4 = _mod_4.an;
986
986
  const internalSchema = _ns_4;
987
987
  const internalSchemaFile = internalSchema.default;
988
988
  mergedModels = { ...(internalSchemaFile.models || {}) };
@@ -1069,8 +1069,8 @@ const loadOrCreateSchema = fromCallback(({ sendBack, input: { context } }) => {
1069
1069
  // If schemaData is missing, try to load from internal schema file for seed-protocol
1070
1070
  if (!dbSchema.schemaData && schemaName === 'Seed Protocol') {
1071
1071
  try {
1072
- const _mod_5 = await import('./index-ClwdGWfr.js');
1073
- const _ns_5 = _mod_5.al;
1072
+ const _mod_5 = await import('./index-B4In0GEO.js');
1073
+ const _ns_5 = _mod_5.an;
1074
1074
  const internalSchema = _ns_5;
1075
1075
  const schemaFile = internalSchema.default;
1076
1076
  logger$d(`Found seed-protocol schema in internal file (schemaData missing, using internal schema)`);
@@ -1180,8 +1180,8 @@ const loadOrCreateSchema = fromCallback(({ sendBack, input: { context } }) => {
1180
1180
  // Ensure models are populated (fallback for seed-protocol if missing)
1181
1181
  if ((!mergedModels || Object.keys(mergedModels).length === 0) && schemaName === 'Seed Protocol') {
1182
1182
  try {
1183
- const _mod_6 = await import('./index-ClwdGWfr.js');
1184
- const _ns_6 = _mod_6.al;
1183
+ const _mod_6 = await import('./index-B4In0GEO.js');
1184
+ const _ns_6 = _mod_6.an;
1185
1185
  const internalSchema = _ns_6;
1186
1186
  const internalSchemaFile = internalSchema.default;
1187
1187
  mergedModels = { ...(internalSchemaFile.models || {}) };
@@ -2083,8 +2083,8 @@ const createModelInstances$1 = async (modelIds) => {
2083
2083
  return;
2084
2084
  }
2085
2085
  try {
2086
- const _mod_7 = await import('./index-ClwdGWfr.js');
2087
- const _ns_7 = _mod_7.am;
2086
+ const _mod_7 = await import('./index-B4In0GEO.js');
2087
+ const _ns_7 = _mod_7.ao;
2088
2088
  const mod = _ns_7;
2089
2089
  const Model = mod?.Model ?? mod?.default;
2090
2090
  if (!Model) {
@@ -2130,8 +2130,8 @@ const checkExistingSchema = fromCallback(({ sendBack, input: { context } }) => {
2130
2130
  if (isInternal && schemaName === SEED_PROTOCOL_SCHEMA_NAME) {
2131
2131
  // For Seed Protocol, check if it exists in database
2132
2132
  try {
2133
- const _mod_8 = await import('./index-ClwdGWfr.js');
2134
- const _ns_8 = _mod_8.al;
2133
+ const _mod_8 = await import('./index-B4In0GEO.js');
2134
+ const _ns_8 = _mod_8.an;
2135
2135
  const internalSchema = _ns_8;
2136
2136
  const schemaFile = internalSchema.default;
2137
2137
  if (db && schemaFile.id) {
@@ -2490,8 +2490,8 @@ const writeSchemaToDb = fromCallback(({ sendBack, input }) => {
2490
2490
  if (isInternal && schemaName === SEED_PROTOCOL_SCHEMA_NAME) {
2491
2491
  // For Seed Protocol, load from internal file
2492
2492
  logger$b(`Loading internal Seed Protocol schema from SDK`);
2493
- const _mod_9 = await import('./index-ClwdGWfr.js');
2494
- const _ns_9 = _mod_9.al;
2493
+ const _mod_9 = await import('./index-B4In0GEO.js');
2494
+ const _ns_9 = _mod_9.an;
2495
2495
  const internalSchema = _ns_9;
2496
2496
  finalSchema = internalSchema.default;
2497
2497
  const db = BaseDb.getAppDb();
@@ -2960,8 +2960,8 @@ const createModelInstances = fromCallback(({ sendBack, input }) => {
2960
2960
  return;
2961
2961
  }
2962
2962
  try {
2963
- const _mod_10 = await import('./index-ClwdGWfr.js');
2964
- const _ns_10 = _mod_10.am;
2963
+ const _mod_10 = await import('./index-B4In0GEO.js');
2964
+ const _ns_10 = _mod_10.ao;
2965
2965
  const modelMod = _ns_10;
2966
2966
  const { Model } = modelMod;
2967
2967
  // Create instances for all model IDs in parallel
@@ -3048,8 +3048,8 @@ const verifyModelInstancesInCache = fromCallback(({ sendBack, input }) => {
3048
3048
  }
3049
3049
  try {
3050
3050
  const result = await verifyWithRetry$2(async () => {
3051
- const _mod_11 = await import('./index-ClwdGWfr.js');
3052
- const _ns_11 = _mod_11.am;
3051
+ const _mod_11 = await import('./index-B4In0GEO.js');
3052
+ const _ns_11 = _mod_11.ao;
3053
3053
  const modelMod = _ns_11;
3054
3054
  const { Model } = modelMod;
3055
3055
  // Check each model ID in the cache
@@ -3107,7 +3107,7 @@ const writePropertiesToDb = fromCallback(({ sendBack, input }) => {
3107
3107
  const _write = async () => {
3108
3108
  const { modelIds } = input;
3109
3109
  try {
3110
- const _mod_12 = await import('./BasePathResolver-BDgc7c4T.js');
3110
+ const _mod_12 = await import('./BasePathResolver-DWY_hb8w.js');
3111
3111
  const _ns_12 = _mod_12.M;
3112
3112
  const modelSchemaMod = _ns_12;
3113
3113
  const { models: modelsTable, properties: propertiesTable } = modelSchemaMod;
@@ -3297,10 +3297,10 @@ const createPropertyInstances = fromCallback(({ sendBack, input }) => {
3297
3297
  return;
3298
3298
  }
3299
3299
  try {
3300
- const modProp = await import('./ModelProperty-BBXBvgvy.js');
3300
+ const modProp = await import('./ModelProperty-DGJf78CS.js');
3301
3301
  const ModelProperty = modProp?.ModelProperty ?? modProp?.default;
3302
- const _mod_13 = await import('./index-ClwdGWfr.js');
3303
- const _ns_13 = _mod_13.am;
3302
+ const _mod_13 = await import('./index-B4In0GEO.js');
3303
+ const _ns_13 = _mod_13.ao;
3304
3304
  const modModel = _ns_13;
3305
3305
  const Model = modModel?.Model ?? modModel?.default;
3306
3306
  if (!ModelProperty || !Model) {
@@ -3406,7 +3406,7 @@ const verifyPropertyInstancesInCache = fromCallback(({ sendBack, input }) => {
3406
3406
  }
3407
3407
  try {
3408
3408
  const result = await verifyWithRetry(async () => {
3409
- const mod = await import('./ModelProperty-BBXBvgvy.js');
3409
+ const mod = await import('./ModelProperty-DGJf78CS.js');
3410
3410
  const ModelProperty = mod?.ModelProperty ?? mod?.default;
3411
3411
  if (!ModelProperty) {
3412
3412
  throw new Error('ModelProperty not available from dynamic import');
@@ -4428,7 +4428,7 @@ async function loadSchemaWithRenames(schemaFilePath, modelRenames) {
4428
4428
  updatedAt: new Date(schemaFile.metadata.updatedAt).getTime(),
4429
4429
  };
4430
4430
  // Use dynamic import to break circular dependency
4431
- const dbMod = await import('./db-CSmK0c3e.js');
4431
+ const dbMod = await import('./db-Bad8QKfZ.js');
4432
4432
  const { addSchemaToDb, addModelsToDb } = dbMod;
4433
4433
  // Add schema to database with schemaFileId
4434
4434
  const schemaRecord = await addSchemaToDb(schemaInput, schemaFile.id);
@@ -4539,7 +4539,7 @@ async function renameModelProperty(schemaName, modelName, oldPropertyName, newPr
4539
4539
  await BaseFileManager.waitForFileWithContent(newFilePath);
4540
4540
  logger$1(`Renamed property ${oldPropertyName} to ${newPropertyName} in schema ${schemaName} v${newVersion}`);
4541
4541
  // Migrate metadata rows so ItemProperty values follow the new name (prevents duplicate ItemProperties)
4542
- const { migrateMetadataForPropertyRename } = await import('./db-CSmK0c3e.js');
4542
+ const { migrateMetadataForPropertyRename } = await import('./db-Bad8QKfZ.js');
4543
4543
  const migratedCount = await migrateMetadataForPropertyRename(modelName, oldPropertyName, newPropertyName, oldProperty.id);
4544
4544
  if (migratedCount > 0) {
4545
4545
  logger$1(`Migrated ${migratedCount} metadata rows for property rename`);
@@ -5748,7 +5748,7 @@ class Schema {
5748
5748
  _dbVersion: publishedSchema.version,
5749
5749
  });
5750
5750
  // Clear edited flags on all ModelProperty instances and in database
5751
- const modelPropertyMod = await import('./ModelProperty-BBXBvgvy.js');
5751
+ const modelPropertyMod = await import('./ModelProperty-DGJf78CS.js');
5752
5752
  const { ModelProperty } = modelPropertyMod;
5753
5753
  for (const propertyKey of context._editedProperties) {
5754
5754
  const [modelName, propertyName] = propertyKey.split(':');
@@ -6550,5 +6550,5 @@ var Schema$1 = /*#__PURE__*/Object.freeze({
6550
6550
  schemaInstanceState: schemaInstanceState
6551
6551
  });
6552
6552
 
6553
- export { Schema as S, deleteModelFromSchema as a, Schema$1 as b, deletePropertyFromModel as d, renameModelProperty as r, schemaMachine as s, updateModelProperties as u };
6554
- //# sourceMappingURL=Schema-xAt7jWlW.js.map
6553
+ export { Schema as S, deletePropertyFromModel as a, Schema$1 as b, deleteModelFromSchema as d, renameModelProperty as r, schemaMachine as s, updateModelProperties as u };
6554
+ //# sourceMappingURL=Schema-Drmce3q-.js.map