@seedprotocol/sdk 0.4.26 → 0.4.28

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 (100) hide show
  1. package/dist/{ArweaveClient-KF_T3NSr.js → ArweaveClient-BeW65rGS.js} +3 -3
  2. package/dist/{ArweaveClient-KF_T3NSr.js.map → ArweaveClient-BeW65rGS.js.map} +1 -1
  3. package/dist/{ArweaveClient-DoBABTLW.js → ArweaveClient-lm4d-WFB.js} +3 -3
  4. package/dist/{ArweaveClient-DoBABTLW.js.map → ArweaveClient-lm4d-WFB.js.map} +1 -1
  5. package/dist/{Db-Cg7Q5gIc.js → Db-CbS7T1_D.js} +4 -4
  6. package/dist/{Db-Cg7Q5gIc.js.map → Db-CbS7T1_D.js.map} +1 -1
  7. package/dist/{Db-DA_e7Jcc.js → Db-VYLhDCFW.js} +4 -4
  8. package/dist/{Db-DA_e7Jcc.js.map → Db-VYLhDCFW.js.map} +1 -1
  9. package/dist/{EasClient-B4VivHxM.js → EasClient-BsdrEbha.js} +2 -2
  10. package/dist/{EasClient-B4VivHxM.js.map → EasClient-BsdrEbha.js.map} +1 -1
  11. package/dist/{EasClient-CVPHYGNP.js → EasClient-McZ-yLnh.js} +2 -2
  12. package/dist/{EasClient-CVPHYGNP.js.map → EasClient-McZ-yLnh.js.map} +1 -1
  13. package/dist/{FileManager-BOxbzROS.js → FileManager-8X0RFG8j.js} +39 -6
  14. package/dist/FileManager-8X0RFG8j.js.map +1 -0
  15. package/dist/{FileManager-Ba5BCbCL.js → FileManager-wXAlwkmU.js} +2 -2
  16. package/dist/{FileManager-Ba5BCbCL.js.map → FileManager-wXAlwkmU.js.map} +1 -1
  17. package/dist/{ModelProperty-D6JLRqQW.js → ModelProperty-e1IIoSSC.js} +17 -17
  18. package/dist/{ModelProperty-D6JLRqQW.js.map → ModelProperty-e1IIoSSC.js.map} +1 -1
  19. package/dist/{PathResolver-D7WqjJCo.js → PathResolver-CCuiAvIu.js} +2 -2
  20. package/dist/{PathResolver-D7WqjJCo.js.map → PathResolver-CCuiAvIu.js.map} +1 -1
  21. package/dist/{PathResolver-DHTAlCzo.js → PathResolver-C_AdI9lp.js} +2 -2
  22. package/dist/{PathResolver-DHTAlCzo.js.map → PathResolver-C_AdI9lp.js.map} +1 -1
  23. package/dist/{QueryClient-B12y2daD.js → QueryClient-BCuLIB8_.js} +2 -2
  24. package/dist/{QueryClient-B12y2daD.js.map → QueryClient-BCuLIB8_.js.map} +1 -1
  25. package/dist/{QueryClient-BCxuWg7f.js → QueryClient-F2a7YH_K.js} +2 -2
  26. package/dist/{QueryClient-BCxuWg7f.js.map → QueryClient-F2a7YH_K.js.map} +1 -1
  27. package/dist/{Schema-B5_B8nM5.js → Schema-3_R_m7fn.js} +22 -22
  28. package/dist/{Schema-B5_B8nM5.js.map → Schema-3_R_m7fn.js.map} +1 -1
  29. package/dist/{SchemaValidationService-DXYRdSYa.js → SchemaValidationService-BAPhc_z8.js} +2 -2
  30. package/dist/{SchemaValidationService-DXYRdSYa.js.map → SchemaValidationService-BAPhc_z8.js.map} +1 -1
  31. package/dist/{backfillMetadataPropertyIds-BWEhAJPS.js → backfillMetadataPropertyIds-pnhgDwmf.js} +2 -2
  32. package/dist/{backfillMetadataPropertyIds-BWEhAJPS.js.map → backfillMetadataPropertyIds-pnhgDwmf.js.map} +1 -1
  33. package/dist/cjs/{ModelProperty-Ov1_YL9l.js → ModelProperty-B_wtA6Tp.js} +17 -17
  34. package/dist/cjs/{ModelProperty-Ov1_YL9l.js.map → ModelProperty-B_wtA6Tp.js.map} +1 -1
  35. package/dist/cjs/{Schema-CeG5iRX_.js → Schema-DycmdXix.js} +20 -20
  36. package/dist/cjs/{Schema-CeG5iRX_.js.map → Schema-DycmdXix.js.map} +1 -1
  37. package/dist/cjs/{SchemaValidationService-C8mdrNnp.js → SchemaValidationService-CutWcs3L.js} +2 -2
  38. package/dist/cjs/{SchemaValidationService-C8mdrNnp.js.map → SchemaValidationService-CutWcs3L.js.map} +1 -1
  39. package/dist/cjs/{backfillMetadataPropertyIds-LDYghZxU.js → backfillMetadataPropertyIds-BtL7WeI5.js} +2 -2
  40. package/dist/cjs/{backfillMetadataPropertyIds-LDYghZxU.js.map → backfillMetadataPropertyIds-BtL7WeI5.js.map} +1 -1
  41. package/dist/cjs/{getItem-CW3BFytl.js → getItem-B1qXuyLl.js} +2 -2
  42. package/dist/cjs/{getItem-CW3BFytl.js.map → getItem-B1qXuyLl.js.map} +1 -1
  43. package/dist/cjs/{getPublishPayload-C0hWIYCX.js → getPublishPayload-DGtDyXfX.js} +11 -11
  44. package/dist/cjs/{getPublishPayload-C0hWIYCX.js.map → getPublishPayload-DGtDyXfX.js.map} +1 -1
  45. package/dist/cjs/{getPublishUploads-CMpPR2JJ.js → getPublishUploads-BMVJ2gfR.js} +4 -4
  46. package/dist/cjs/{getPublishUploads-CMpPR2JJ.js.map → getPublishUploads-BMVJ2gfR.js.map} +1 -1
  47. package/dist/cjs/{getSegmentedItemProperties-B4ao_B1Q.js → getSegmentedItemProperties-V0HYWzgM.js} +3 -3
  48. package/dist/cjs/{getSegmentedItemProperties-B4ao_B1Q.js.map → getSegmentedItemProperties-V0HYWzgM.js.map} +1 -1
  49. package/dist/cjs/{index-Far6-WGM.js → index-C0v35eOT.js} +42 -43
  50. package/dist/cjs/index-C0v35eOT.js.map +1 -0
  51. package/dist/cjs/{index-Dty7eE10.js → index-Dbu8yrzO.js} +3 -3
  52. package/dist/cjs/index-Dbu8yrzO.js.map +1 -0
  53. package/dist/cjs/{ownership-TCXiKRY_.js → ownership-BPK6LY7d.js} +2 -2
  54. package/dist/cjs/{ownership-TCXiKRY_.js.map → ownership-BPK6LY7d.js.map} +1 -1
  55. package/dist/cjs/{property-BT7i8Tl-.js → property-Ctv4ZGoa.js} +4 -4
  56. package/dist/cjs/{property-BT7i8Tl-.js.map → property-Ctv4ZGoa.js.map} +1 -1
  57. package/dist/cjs/{syncDbWithEas-DUi78csI.js → syncDbWithEas-DgZ7Acmb.js} +5 -5
  58. package/dist/cjs/{syncDbWithEas-DUi78csI.js.map → syncDbWithEas-DgZ7Acmb.js.map} +1 -1
  59. package/dist/{getItem-D5_bPYyC.js → getItem-2pjRoJa0.js} +2 -2
  60. package/dist/{getItem-D5_bPYyC.js.map → getItem-2pjRoJa0.js.map} +1 -1
  61. package/dist/{getPublishPayload-DEdHgrgC.js → getPublishPayload-BAPoXumQ.js} +11 -11
  62. package/dist/{getPublishPayload-DEdHgrgC.js.map → getPublishPayload-BAPoXumQ.js.map} +1 -1
  63. package/dist/{getPublishUploads-CH72lAID.js → getPublishUploads-D75w3Et5.js} +4 -4
  64. package/dist/{getPublishUploads-CH72lAID.js.map → getPublishUploads-D75w3Et5.js.map} +1 -1
  65. package/dist/{getSegmentedItemProperties-Cp92QUHQ.js → getSegmentedItemProperties-BLU_UBYI.js} +3 -3
  66. package/dist/{getSegmentedItemProperties-Cp92QUHQ.js.map → getSegmentedItemProperties-BLU_UBYI.js.map} +1 -1
  67. package/dist/{index-Bp0ChnQr.js → index-CKY29lZp.js} +2 -2
  68. package/dist/index-CKY29lZp.js.map +1 -0
  69. package/dist/{index-DB3nZ0lK.js → index-CjrqUOwu.js} +3 -3
  70. package/dist/index-CjrqUOwu.js.map +1 -0
  71. package/dist/{index-18lln0cM.js → index-DKXcFcFk.js} +56 -57
  72. package/dist/index-DKXcFcFk.js.map +1 -0
  73. package/dist/main.cjs +1 -1
  74. package/dist/main.js +13 -13
  75. package/dist/node.js +10 -10
  76. package/dist/{ownership-D-KsIkxM.js → ownership-BbSCKuz4.js} +2 -2
  77. package/dist/{ownership-D-KsIkxM.js.map → ownership-BbSCKuz4.js.map} +1 -1
  78. package/dist/{property-DViA9nga.js → property-D0iZYPNc.js} +5 -5
  79. package/dist/{property-DViA9nga.js.map → property-D0iZYPNc.js.map} +1 -1
  80. package/dist/{queries-ANFHy2e0.js → queries-D4DDYMy9.js} +2 -2
  81. package/dist/{queries-ANFHy2e0.js.map → queries-D4DDYMy9.js.map} +1 -1
  82. package/dist/src/browser/db/Db.d.ts.map +1 -1
  83. package/dist/src/browser/helpers/FileManager.d.ts.map +1 -1
  84. package/dist/src/db/Db/BaseDb.d.ts.map +1 -1
  85. package/dist/src/vite/index.d.ts.map +1 -1
  86. package/dist/{syncDbWithEas-m-_3Ds7d.js → syncDbWithEas-D3gGL9OM.js} +6 -6
  87. package/dist/{syncDbWithEas-m-_3Ds7d.js.map → syncDbWithEas-D3gGL9OM.js.map} +1 -1
  88. package/dist/{updateSeedRevokedAt-BvAK-Rfh.js → updateSeedRevokedAt-DrtFzF85.js} +2 -2
  89. package/dist/{updateSeedRevokedAt-BvAK-Rfh.js.map → updateSeedRevokedAt-DrtFzF85.js.map} +1 -1
  90. package/dist/vite.cjs +15 -1
  91. package/dist/vite.cjs.map +1 -1
  92. package/dist/vite.js +15 -1
  93. package/dist/vite.js.map +1 -1
  94. package/package.json +9 -10
  95. package/dist/FileManager-BOxbzROS.js.map +0 -1
  96. package/dist/cjs/index-Dty7eE10.js.map +0 -1
  97. package/dist/cjs/index-Far6-WGM.js.map +0 -1
  98. package/dist/index-18lln0cM.js.map +0 -1
  99. package/dist/index-Bp0ChnQr.js.map +0 -1
  100. package/dist/index-DB3nZ0lK.js.map +0 -1
@@ -20,10 +20,9 @@ class BaseDb {
20
20
  this.PlatformClass = platformClass;
21
21
  }
22
22
  static getAppDb() {
23
- if (!this.PlatformClass) {
24
- return undefined;
25
- }
26
- return this.PlatformClass.getAppDb();
23
+ const _pc = this.PlatformClass;
24
+ const _db = _pc ? _pc.getAppDb() : undefined;
25
+ return _db;
27
26
  }
28
27
  static prepareDb(filesDir) {
29
28
  return this.PlatformClass.prepareDb(filesDir);
@@ -2206,7 +2205,7 @@ const createPropertyInstances = async (propertyFileIds) => {
2206
2205
  return;
2207
2206
  }
2208
2207
  try {
2209
- const mod = await import('./ModelProperty-D6JLRqQW.js');
2208
+ const mod = await import('./ModelProperty-e1IIoSSC.js');
2210
2209
  const ModelProperty = mod?.ModelProperty ?? mod?.default;
2211
2210
  if (!ModelProperty) {
2212
2211
  logger$t('createPropertyInstances: ModelProperty not available from dynamic import');
@@ -2390,7 +2389,7 @@ const loadOrCreateModel = fromCallback(({ sendBack, input: { context } }) => {
2390
2389
  // Step 2: Fallback to Schema context (only if database doesn't have the model)
2391
2390
  // This handles the case where model exists in schema file but not yet in database
2392
2391
  try {
2393
- const _mod_0 = await import('./Schema-B5_B8nM5.js');
2392
+ const _mod_0 = await import('./Schema-3_R_m7fn.js');
2394
2393
  const _ns_0 = _mod_0.b;
2395
2394
  const schemaMod = _ns_0;
2396
2395
  const { Schema } = schemaMod;
@@ -2636,7 +2635,7 @@ const loadOrCreateModel = fromCallback(({ sendBack, input: { context } }) => {
2636
2635
  }
2637
2636
  // Mark schema as draft when a new model is created so saveNewVersion() can persist it
2638
2637
  try {
2639
- const _mod_1 = await import('./Schema-B5_B8nM5.js');
2638
+ const _mod_1 = await import('./Schema-3_R_m7fn.js');
2640
2639
  const _ns_1 = _mod_1.b;
2641
2640
  const schemaMod = _ns_1;
2642
2641
  const { Schema } = schemaMod;
@@ -2682,10 +2681,10 @@ const validateModel = fromCallback(({ sendBack, input: { context } }) => {
2682
2681
  const _validateModel = async () => {
2683
2682
  try {
2684
2683
  // Use dynamic imports to break circular dependencies
2685
- const validationServiceMod = await import('./SchemaValidationService-DXYRdSYa.js');
2684
+ const validationServiceMod = await import('./SchemaValidationService-BAPhc_z8.js');
2686
2685
  const { SchemaValidationService } = validationServiceMod;
2687
2686
  const validationService = new SchemaValidationService();
2688
- const _mod_2 = await import('./Schema-B5_B8nM5.js');
2687
+ const _mod_2 = await import('./Schema-3_R_m7fn.js');
2689
2688
  const _ns_2 = _mod_2.b;
2690
2689
  const schemaMod = _ns_2;
2691
2690
  const { Schema } = schemaMod;
@@ -2797,7 +2796,7 @@ const createModelProperties = fromCallback(({ sendBack, input }) => {
2797
2796
  return;
2798
2797
  }
2799
2798
  logger$r(`Creating ${Object.keys(propertyDefinitions).length} properties for model "${modelName}" (id: ${_dbId})`);
2800
- const mod = await import('./ModelProperty-D6JLRqQW.js');
2799
+ const mod = await import('./ModelProperty-e1IIoSSC.js');
2801
2800
  const ModelProperty = mod?.ModelProperty ?? mod?.default;
2802
2801
  if (!ModelProperty) {
2803
2802
  logger$r('ModelProperty not available from dynamic import');
@@ -2901,7 +2900,7 @@ const validateEntity = fromPromise(async ({ input }) => {
2901
2900
  const structureMsg = `[validateEntity] Validating model structure`;
2902
2901
  logger$q(structureMsg);
2903
2902
  // Use existing Model validation
2904
- const validationServiceMod = await import('./SchemaValidationService-DXYRdSYa.js');
2903
+ const validationServiceMod = await import('./SchemaValidationService-BAPhc_z8.js');
2905
2904
  const { SchemaValidationService } = validationServiceMod;
2906
2905
  const validationService = new SchemaValidationService();
2907
2906
  // Validate model structure
@@ -2919,7 +2918,7 @@ const validateEntity = fromPromise(async ({ input }) => {
2919
2918
  if (entityInput.entityData.schemaName) {
2920
2919
  try {
2921
2920
  logger$q(`[validateEntity] Validating model against schema "${entityInput.entityData.schemaName}"`);
2922
- const _mod_3 = await import('./Schema-B5_B8nM5.js');
2921
+ const _mod_3 = await import('./Schema-3_R_m7fn.js');
2923
2922
  const _ns_3 = _mod_3.b;
2924
2923
  const schemaMod = _ns_3;
2925
2924
  const { Schema } = schemaMod;
@@ -2957,7 +2956,7 @@ const validateEntity = fromPromise(async ({ input }) => {
2957
2956
  }
2958
2957
  else if (entityInput.entityType === 'modelProperty') {
2959
2958
  // Use existing ModelProperty validation
2960
- const validationServiceMod = await import('./SchemaValidationService-DXYRdSYa.js');
2959
+ const validationServiceMod = await import('./SchemaValidationService-BAPhc_z8.js');
2961
2960
  const { SchemaValidationService } = validationServiceMod;
2962
2961
  const validationService = new SchemaValidationService();
2963
2962
  // Validate property structure
@@ -2972,7 +2971,7 @@ const validateEntity = fromPromise(async ({ input }) => {
2972
2971
  // If schema name and model name provided, validate against schema
2973
2972
  if (entityInput.entityData._schemaName && entityInput.entityData.modelName) {
2974
2973
  try {
2975
- const _mod_4 = await import('./Schema-B5_B8nM5.js');
2974
+ const _mod_4 = await import('./Schema-3_R_m7fn.js');
2976
2975
  const _ns_4 = _mod_4.b;
2977
2976
  const schemaMod = _ns_4;
2978
2977
  const { Schema } = schemaMod;
@@ -3003,7 +3002,7 @@ const validateEntity = fromPromise(async ({ input }) => {
3003
3002
  }
3004
3003
  else if (entityInput.entityType === 'schema') {
3005
3004
  // Schema validation - use existing validation
3006
- const validationServiceMod = await import('./SchemaValidationService-DXYRdSYa.js');
3005
+ const validationServiceMod = await import('./SchemaValidationService-BAPhc_z8.js');
3007
3006
  const { SchemaValidationService } = validationServiceMod;
3008
3007
  const validationService = new SchemaValidationService();
3009
3008
  const schemaResult = validationService.validateSchema(entityInput.entityData);
@@ -4955,7 +4954,7 @@ const writeToDatabase = fromCallback(({ sendBack, input }) => {
4955
4954
  // initial write completes is not overwritten by the stale requestWrite payload.
4956
4955
  let dataToWrite = input.entityData;
4957
4956
  try {
4958
- const mod = await import('./ModelProperty-D6JLRqQW.js');
4957
+ const mod = await import('./ModelProperty-e1IIoSSC.js');
4959
4958
  const ModelProperty = mod?.ModelProperty ?? mod?.default;
4960
4959
  if (ModelProperty && typeof ModelProperty.getById === 'function') {
4961
4960
  const instance = ModelProperty.getById(input.entityId);
@@ -5335,7 +5334,7 @@ const modelMachine = setup({
5335
5334
  // Create ModelProperty instances for any new property IDs
5336
5335
  if (Array.isArray(newPropertyIds) && newPropertyIds.length > 0) {
5337
5336
  // Import and create instances asynchronously (fire-and-forget)
5338
- import('./ModelProperty-D6JLRqQW.js').then(({ ModelProperty }) => {
5337
+ import('./ModelProperty-e1IIoSSC.js').then(({ ModelProperty }) => {
5339
5338
  const createPromises = newPropertyIds.map(async (propertyFileId) => {
5340
5339
  try {
5341
5340
  const property = await ModelProperty.createById(propertyFileId);
@@ -6754,7 +6753,7 @@ const createItemPropertyInstances = async (metadataRows, seedLocalId, seedUid, m
6754
6753
  const schemaNameToTry = model$1?.schemaName;
6755
6754
  if (schemaNameToTry) {
6756
6755
  try {
6757
- const _mod_5 = await import('./Schema-B5_B8nM5.js');
6756
+ const _mod_5 = await import('./Schema-3_R_m7fn.js');
6758
6757
  const _ns_5 = _mod_5.b;
6759
6758
  const { Schema } = _ns_5;
6760
6759
  const schemaInstance = Schema.create(schemaNameToTry, { waitForReady: false });
@@ -6805,7 +6804,7 @@ const createItemPropertyInstances = async (metadataRows, seedLocalId, seedUid, m
6805
6804
  }
6806
6805
  }
6807
6806
  if (Object.keys(propertySchemas).length === 0) {
6808
- const schemaMod = await import('./index-DB3nZ0lK.js');
6807
+ const schemaMod = await import('./index-CjrqUOwu.js');
6809
6808
  const { ModelPropertyDataTypes } = schemaMod;
6810
6809
  const KNOWN_MODEL_FALLBACKS = {
6811
6810
  Post: {
@@ -6852,7 +6851,7 @@ const createItemPropertyInstances = async (metadataRows, seedLocalId, seedUid, m
6852
6851
  // Infer propertyRecordSchema from metadata when schema is missing (enables persistence)
6853
6852
  let propSchema = propertySchemas[propertyName];
6854
6853
  if (!propSchema && isRefTypeFromMeta) {
6855
- const schemaMod = await import('./index-DB3nZ0lK.js');
6854
+ const schemaMod = await import('./index-CjrqUOwu.js');
6856
6855
  const { ModelPropertyDataTypes } = schemaMod;
6857
6856
  propSchema = {
6858
6857
  dataType: refSeedType === 'html' ? ModelPropertyDataTypes.Html
@@ -7061,7 +7060,7 @@ const loadOrCreateItem = fromCallback(({ sendBack, input: { context } }) => {
7061
7060
  // Without this, post.html returns seed ID on first render because loadOrCreateProperty hasn't finished.
7062
7061
  // Publish/attestation can keep properties in `saving` for many seconds; 5s caused timeouts during EAS work.
7063
7062
  const propertyIdleTimeoutMs = 120000;
7064
- await Promise.all(Array.from(propertyInstances.values()).map((prop) => waitForEntityIdle(prop, { timeout: propertyIdleTimeoutMs, throwOnError: false })));
7063
+ Promise.all(Array.from(propertyInstances.values()).map((prop) => waitForEntityIdle(prop, { timeout: propertyIdleTimeoutMs, throwOnError: false }))).catch(() => { });
7065
7064
  // Step 5: Return loaded item data with property instances
7066
7065
  sendBack({
7067
7066
  type: 'loadOrCreateItemSuccess',
@@ -7109,9 +7108,9 @@ const runPublish = fromCallback(({ sendBack, input: { context } }) => {
7109
7108
  sendBack({ type: 'publishError', error: new Error(`Item not found for seedLocalId: ${seedLocalId}`) });
7110
7109
  return;
7111
7110
  }
7112
- const getPublishUploadsMod = await import('./getPublishUploads-CH72lAID.js');
7111
+ const getPublishUploadsMod = await import('./getPublishUploads-D75w3Et5.js');
7113
7112
  const { getPublishUploads } = getPublishUploadsMod;
7114
- const getPublishPayloadMod = await import('./getPublishPayload-DEdHgrgC.js');
7113
+ const getPublishPayloadMod = await import('./getPublishPayload-BAPoXumQ.js');
7115
7114
  const { getPublishPayload } = getPublishPayloadMod;
7116
7115
  const uploads = await getPublishUploads(item);
7117
7116
  let uploadedTransactions = [];
@@ -7951,7 +7950,7 @@ const resolveRelatedValue = fromCallback(({ sendBack, input: { context } }) => {
7951
7950
  const { isRelation, propertyValue, propertyName, seedUid, propertyRecordSchema, populatedFromDb, schemaUid, } = context;
7952
7951
  const _resolveRelatedValue = async () => {
7953
7952
  // Use dynamic import to break circular dependency
7954
- const schemaMod = await import('./index-DB3nZ0lK.js');
7953
+ const schemaMod = await import('./index-CjrqUOwu.js');
7955
7954
  const { ModelPropertyDataTypes } = schemaMod;
7956
7955
  if (!propertyValue || !isRelation || populatedFromDb) {
7957
7956
  return;
@@ -8959,7 +8958,7 @@ const hydrateFromDb = fromCallback(({ sendBack, input: { context } }) => {
8959
8958
  // to use dynamically imported ModelPropertyDataTypes
8960
8959
  const _hydrateFromDb = async () => {
8961
8960
  // Use dynamic import to break circular dependency
8962
- const schemaMod = await import('./index-DB3nZ0lK.js');
8961
+ const schemaMod = await import('./index-CjrqUOwu.js');
8963
8962
  const { ModelPropertyDataTypes } = schemaMod;
8964
8963
  const appDb = BaseDb.getAppDb();
8965
8964
  const whereClauses = [];
@@ -9322,7 +9321,7 @@ const loadOrCreateProperty = fromCallback(({ sendBack, input: { context } }) =>
9322
9321
  };
9323
9322
  // Merge with schema from file/DB to get validation rules (enum, pattern, etc.) - properties table doesn't store these
9324
9323
  try {
9325
- const { getPropertySchema } = await import('./property-DViA9nga.js');
9324
+ const { getPropertySchema } = await import('./property-D0iZYPNc.js');
9326
9325
  let schemaFromFile = await getPropertySchema(normalizedModelName, propertyName);
9327
9326
  if (!schemaFromFile?.validation) {
9328
9327
  // Fallback: get validation from schemaData in database (Schema context may not be loaded yet)
@@ -9787,9 +9786,9 @@ const analyzeInput = fromCallback(({ sendBack, input: { context, event } }) => {
9787
9786
  }
9788
9787
  const _analyzeInput = async () => {
9789
9788
  // Use dynamic import to break circular dependency
9790
- const schemaMod = await import('./index-DB3nZ0lK.js');
9789
+ const schemaMod = await import('./index-CjrqUOwu.js');
9791
9790
  const { ModelPropertyDataTypes } = schemaMod;
9792
- const { SchemaValidationService } = await import('./SchemaValidationService-DXYRdSYa.js');
9791
+ const { SchemaValidationService } = await import('./SchemaValidationService-BAPhc_z8.js');
9793
9792
  let propertyName = propertyNameRaw;
9794
9793
  if (!propertyName) {
9795
9794
  throw new Error('propertyName is required');
@@ -9987,7 +9986,7 @@ const createMetadata = async (metadataValues, propertyRecordSchema, options) =>
9987
9986
  propertyRecordSchema?.validation &&
9988
9987
  metadataValues.propertyValue != null &&
9989
9988
  metadataValues.propertyValue !== '') {
9990
- const { SchemaValidationService } = await import('./SchemaValidationService-DXYRdSYa.js');
9989
+ const { SchemaValidationService } = await import('./SchemaValidationService-BAPhc_z8.js');
9991
9990
  const validationService = new SchemaValidationService();
9992
9991
  const validationResult = validationService.validatePropertyValue(metadataValues.propertyValue, propertyRecordSchema.dataType, propertyRecordSchema.validation, propertyRecordSchema.refValueType);
9993
9992
  if (!validationResult.isValid && validationResult.errors.length > 0) {
@@ -10578,7 +10577,7 @@ const saveRelation = fromCallback(({ sendBack, input: { context, event } }) => {
10578
10577
  }
10579
10578
  const _saveRelation = async () => {
10580
10579
  // Use dynamic import to break circular dependency
10581
- const schemaMod = await import('./index-DB3nZ0lK.js');
10580
+ const schemaMod = await import('./index-CjrqUOwu.js');
10582
10581
  const { ModelPropertyDataTypes } = schemaMod;
10583
10582
  if (!propertyNameRaw) {
10584
10583
  throw new Error('propertyName is required');
@@ -11622,7 +11621,7 @@ class ItemProperty {
11622
11621
  return;
11623
11622
  }
11624
11623
  // Use dynamic import to break circular dependency
11625
- const schemaMod = await import('./index-DB3nZ0lK.js');
11624
+ const schemaMod = await import('./index-CjrqUOwu.js');
11626
11625
  const { ModelPropertyDataTypes } = schemaMod;
11627
11626
  const { context } = snapshot;
11628
11627
  const { propertyRecordSchema } = context;
@@ -11793,7 +11792,7 @@ class ItemProperty {
11793
11792
  const normalizedRefValueType = normalizeDataType(propertyRecordSchema?.refValueType);
11794
11793
  const propertyNames = getMetadataPropertyNamesForQuery(propertyName, normalizedDataType, normalizedRefValueType);
11795
11794
  const propertyNameVariant = propertyNames.length > 1 ? propertyNames[1] : undefined;
11796
- const _mod_6 = await import('./index-Bp0ChnQr.js');
11795
+ const _mod_6 = await import('./index-CKY29lZp.js');
11797
11796
  const _ns_6 = _mod_6.s;
11798
11797
  const seedSchemaMod = _ns_6;
11799
11798
  const { metadata } = seedSchemaMod;
@@ -12523,7 +12522,7 @@ class ItemProperty {
12523
12522
  }
12524
12523
  async save() {
12525
12524
  const ctx = this._getSnapshotContext();
12526
- const { assertItemOwned } = await import('./ownership-D-KsIkxM.js');
12525
+ const { assertItemOwned } = await import('./ownership-BbSCKuz4.js');
12527
12526
  await assertItemOwned({
12528
12527
  seedLocalId: ctx?.seedLocalId ?? undefined,
12529
12528
  seedUid: ctx?.seedUid ?? undefined,
@@ -12616,7 +12615,7 @@ class ItemProperty {
12616
12615
  if (!propertyName || (!seedLocalId && !seedUid))
12617
12616
  return;
12618
12617
  if (db) {
12619
- const _mod_7 = await import('./index-Bp0ChnQr.js');
12618
+ const _mod_7 = await import('./index-CKY29lZp.js');
12620
12619
  const _ns_7 = _mod_7.s;
12621
12620
  const seedSchemaMod = _ns_7;
12622
12621
  const { metadata } = seedSchemaMod;
@@ -12864,7 +12863,7 @@ class Item {
12864
12863
  });
12865
12864
  };
12866
12865
  this.unpublish = async () => {
12867
- const { assertItemOwned } = await import('./ownership-D-KsIkxM.js');
12866
+ const { assertItemOwned } = await import('./ownership-BbSCKuz4.js');
12868
12867
  const { getRevokeExecutor } = await Promise.resolve().then(function () { return publishConfig; });
12869
12868
  await assertItemOwned(this);
12870
12869
  const seedUid = this.seedUid;
@@ -12888,7 +12887,7 @@ class Item {
12888
12887
  this._service.send({ type: 'updateContext', revokedAt });
12889
12888
  };
12890
12889
  this.publish = async () => {
12891
- const { assertItemOwned } = await import('./ownership-D-KsIkxM.js');
12890
+ const { assertItemOwned } = await import('./ownership-BbSCKuz4.js');
12892
12891
  await assertItemOwned(this);
12893
12892
  this._service.send({ type: 'startPublish' });
12894
12893
  return new Promise((resolve, reject) => {
@@ -12924,12 +12923,12 @@ class Item {
12924
12923
  };
12925
12924
  this.getPublishUploads = async (options) => {
12926
12925
  // Use dynamic import to break circular dependency
12927
- const getPublishUploadsMod = await import('./getPublishUploads-CH72lAID.js');
12926
+ const getPublishUploadsMod = await import('./getPublishUploads-D75w3Et5.js');
12928
12927
  const { getPublishUploads } = getPublishUploadsMod;
12929
12928
  return await getPublishUploads(this, [], undefined, options);
12930
12929
  };
12931
12930
  this.getPublishPayload = async (uploadedTransactions, options) => {
12932
- const getPublishPayloadMod = await import('./getPublishPayload-DEdHgrgC.js');
12931
+ const getPublishPayloadMod = await import('./getPublishPayload-BAPoXumQ.js');
12933
12932
  const { getPublishPayload } = getPublishPayloadMod;
12934
12933
  return await getPublishPayload(this, uploadedTransactions, options);
12935
12934
  };
@@ -13670,7 +13669,7 @@ class Item {
13670
13669
  if (!appDb || Item.instanceCache.size === 0) {
13671
13670
  return;
13672
13671
  }
13673
- const _mod_8 = await import('./index-Bp0ChnQr.js');
13672
+ const _mod_8 = await import('./index-CKY29lZp.js');
13674
13673
  const _ns_8 = _mod_8.s;
13675
13674
  const { metadata } = _ns_8;
13676
13675
  const { eq, and } = await import('drizzle-orm');
@@ -14121,7 +14120,7 @@ class Item {
14121
14120
  itemActor.send(event);
14122
14121
  };
14123
14122
  try {
14124
- const _mod_9 = await import('./index-Bp0ChnQr.js');
14123
+ const _mod_9 = await import('./index-CKY29lZp.js');
14125
14124
  const _ns_9 = _mod_9.s;
14126
14125
  const seedSchemaMod = _ns_9;
14127
14126
  const { seeds, versions, metadata } = seedSchemaMod;
@@ -14427,7 +14426,7 @@ class Item {
14427
14426
  * Destroy the item: soft delete in DB, remove from caches, clean up subscriptions, stop service.
14428
14427
  */
14429
14428
  async destroy() {
14430
- const { assertItemOwned } = await import('./ownership-D-KsIkxM.js');
14429
+ const { assertItemOwned } = await import('./ownership-BbSCKuz4.js');
14431
14430
  await assertItemOwned(this);
14432
14431
  const context = this._getSnapshotContext();
14433
14432
  const cacheKeys = Item.collectInstanceCacheKeysForInstance(this);
@@ -14583,7 +14582,7 @@ const runEasSync = fromPromise(async ({ input, }) => {
14583
14582
  requestPayload: input.requestPayload,
14584
14583
  persistedSnapshot: input.runningSnapshot,
14585
14584
  });
14586
- const { runSyncFromEas } = await import('./syncDbWithEas-m-_3Ds7d.js');
14585
+ const { runSyncFromEas } = await import('./syncDbWithEas-D3gGL9OM.js');
14587
14586
  try {
14588
14587
  await runSyncFromEas(toRunSyncArg(input.options));
14589
14588
  await finalizeEasSyncProcessRow(rowId, {
@@ -14893,20 +14892,20 @@ const platformClassesInit = fromCallback(({ sendBack, input: { context, event }
14893
14892
  let PathResolver;
14894
14893
  let EasClient;
14895
14894
  if (isBrowser()) {
14896
- FileManager = (await import('./FileManager-BOxbzROS.js')).FileManager;
14897
- Db = (await import('./Db-DA_e7Jcc.js')).Db;
14898
- QueryClient = (await import('./QueryClient-B12y2daD.js')).QueryClient;
14899
- ArweaveClient = (await import('./ArweaveClient-KF_T3NSr.js')).ArweaveClient;
14900
- PathResolver = (await import('./PathResolver-DHTAlCzo.js')).PathResolver;
14901
- EasClient = (await import('./EasClient-CVPHYGNP.js')).EasClient;
14895
+ FileManager = (await import('./FileManager-8X0RFG8j.js')).FileManager;
14896
+ Db = (await import('./Db-VYLhDCFW.js')).Db;
14897
+ QueryClient = (await import('./QueryClient-BCuLIB8_.js')).QueryClient;
14898
+ ArweaveClient = (await import('./ArweaveClient-BeW65rGS.js')).ArweaveClient;
14899
+ PathResolver = (await import('./PathResolver-C_AdI9lp.js')).PathResolver;
14900
+ EasClient = (await import('./EasClient-McZ-yLnh.js')).EasClient;
14902
14901
  }
14903
14902
  else if (isNode()) {
14904
- FileManager = (await import('./FileManager-Ba5BCbCL.js')).FileManager;
14905
- Db = (await import('./Db-Cg7Q5gIc.js')).Db;
14906
- QueryClient = (await import('./QueryClient-BCxuWg7f.js')).QueryClient;
14907
- ArweaveClient = (await import('./ArweaveClient-DoBABTLW.js')).ArweaveClient;
14908
- PathResolver = (await import('./PathResolver-D7WqjJCo.js')).PathResolver;
14909
- EasClient = (await import('./EasClient-B4VivHxM.js')).EasClient;
14903
+ FileManager = (await import('./FileManager-wXAlwkmU.js')).FileManager;
14904
+ Db = (await import('./Db-CbS7T1_D.js')).Db;
14905
+ QueryClient = (await import('./QueryClient-F2a7YH_K.js')).QueryClient;
14906
+ ArweaveClient = (await import('./ArweaveClient-lm4d-WFB.js')).ArweaveClient;
14907
+ PathResolver = (await import('./PathResolver-CCuiAvIu.js')).PathResolver;
14908
+ EasClient = (await import('./EasClient-BsdrEbha.js')).EasClient;
14910
14909
  }
14911
14910
  else {
14912
14911
  throw new Error(`Unable to determine environment. isBrowser()=${isBrowser()}, isNode()=${isNode()}. Platform-specific implementations could not be loaded.`);
@@ -18306,7 +18305,7 @@ const saveDraftLogger = debug('seedSdk:model:saveDraftToDb');
18306
18305
  // Lazy import cache for ModelProperty to avoid circular dependency
18307
18306
  // Eagerly start loading to minimize delay on first access
18308
18307
  let ModelPropertyClass = null;
18309
- const modelPropertyImportPromise = import('./ModelProperty-D6JLRqQW.js')
18308
+ const modelPropertyImportPromise = import('./ModelProperty-e1IIoSSC.js')
18310
18309
  .then(module => {
18311
18310
  ModelPropertyClass = module.ModelProperty;
18312
18311
  return ModelPropertyClass;
@@ -18323,7 +18322,7 @@ function getModelProperty() {
18323
18322
  }
18324
18323
  // Lazy import cache for Schema to avoid circular dependency
18325
18324
  let SchemaClass = null;
18326
- const schemaImportPromise = (async () => { const _mod_10 = await import('./Schema-B5_B8nM5.js'); return _mod_10.b; })()
18325
+ const schemaImportPromise = (async () => { const _mod_10 = await import('./Schema-3_R_m7fn.js'); return _mod_10.b; })()
18327
18326
  .then(module => {
18328
18327
  SchemaClass = module.Schema;
18329
18328
  return SchemaClass;
@@ -20064,4 +20063,4 @@ const TModelValues = Type.Record(Type.String(), Type.Any());
20064
20063
  const TModelSchema = Type.Record(Type.String(), TProperty);
20065
20064
 
20066
20065
  export { getItemData as $, models$1 as A, Boolean$1 as B, properties as C, Date$1 as D, isValidEasAttestationUid as E, File$1 as F, getLatestPublishedVersionRow as G, Html as H, Image as I, Json as J, modelPropertiesToObject as K, List as L, Model as M, Number$1 as N, parseListPropertyValueFromStorage as O, Property as P, getCorrectId as Q, Relation as R, INTERNAL_PROPERTY_NAMES as S, TModelValues as T, defaultAttestationData as U, VERSION_SCHEMA_UID_OPTIMISM_SEPOLIA as V, INTERNAL_DATA_TYPES as W, toSnakeCase as X, getEasSchemaUidForSchemaDefinition as Y, ZERO_BYTES32 as Z, getEasSchemaForItemProperty as _, TModelSchema as a, compareMetadataRowsLatestFirst as a$, resolveStorageNameToSchemaName as a0, appState as a1, BasePathResolver as a2, SEED_CONFIG_FILE as a3, SEED_CONFIG_FALLBACKS as a4, BaseEasClient as a5, EAS_ENDPOINT as a6, BaseQueryClient as a7, arweaveL1FinalizeJobs as a8, config as a9, GET_SEEDS as aA, GET_VERSIONS as aB, GET_PROPERTIES as aC, setSchemaUidForSchemaDefinition as aD, parseEasRelationPropertyName as aE, addModelsToDb$1 as aF, SCHEMA_NJK as aG, ItemProperty as aH, ClientManager as aI, INIT_SCRIPT_SUCCESS_MESSAGE as aJ, SCHEMA_TS as aK, getRefValueType as aL, importJsonSchema as aM, loadSchemaFromFile as aN, readJsonImportFile as aO, syncSchemaFromSource as aP, transformImportToSchemaFile as aQ, writeProcessMachine as aR, getModelIdByFileId as aS, waitForEntityIdle as aT, createReactiveProxy as aU, findEntity as aV, forceRemoveFromCaches as aW, runDestroyLifecycle as aX, getModelId as aY, isPlaceholderUid as aZ, normalizeBytes32Hex as a_, easSyncProcesses as aa, metadata$1 as ab, modelRelations as ac, modelSchemas as ad, modelUids as ae, modelsRelations as af, propertiesRelations as ag, propertyUidRelations as ah, propertyUids as ai, publishProcesses as aj, schemas as ak, uploadProcesses as al, versions as am, graphql as an, getPropertyIdForModelAndName as ao, getAllAddressesFromDb as ap, getModelSchemasFromEas as aq, getSeedsFromSchemaUids as ar, getItemVersionsFromEas as as, getItemPropertiesFromEas as at, pickLatestPropertyAttestationsByRefAndSchema as au, scheduleBulkFilesDownloadFromEasSync as av, eventEmitter as aw, EAS_SEED_DATA_SYNCED_TO_DB_EVENT as ax, generateId as ay, escapeSqliteString as az, ModelPropertyDataTypes as b, isInternalSchema as b$, getArweaveUrlForTransaction as b0, ADDRESSES_PERSISTED_EVENT as b1, parseAddressesPersistedPayload as b2, getClient as b3, ClientManagerState as b4, MachineIds as b5, createNewItem as b6, getVersionData$1 as b7, getMetadataLatest as b8, loadAllSchemasFromDb as b9, queryArweaveGatewayTransaction as bA, queryArweaveGatewayTransactionWithFallback as bB, ensureReadGatewaySelected as bC, invalidateReadGatewayCache as bD, resetArweaveReadGatewayForTests as bE, setUploadExecutor as bF, getUploadExecutor as bG, setGetPublisherForNewSeeds as bH, getGetPublisherForNewSeeds as bI, setRevokeExecutor as bJ, getRevokeExecutor as bK, setAdditionalSyncAddresses as bL, createSchema as bM, readSchema as bN, listCompleteSchemaFiles as bO, getSchemaNameFromId as bP, easSyncActor as bQ, startEasSyncActor as bR, sendEasSyncClientRequest as bS, requestEasSyncFromAddressChange as bT, requestEasSyncFromEventBus as bU, requestEasSyncFromModelsInit as bV, mergeEasSyncRequestIntents as bW, addSchemaToDb as bX, createModelsFromJson as bY, loadModelsFromDbForSchema as bZ, getLatestSchemaVersion as b_, propertyMachine as ba, SEED_PROTOCOL_SCHEMA_NAME as bb, ImageSize as bc, setSchemaUidForModel as bd, getCanonicalItemPropertiesFromEas as be, getEasSchemaUidBySchemaName as bf, getSeedsBySchemaName as bg, withExcludeRevokedFilter as bh, classifyMediaRef as bi, resolveMediaRef as bj, normalizeFeedItemFields as bk, getFeedItemStringField as bl, SeedModels as bm, DEFAULT_ARWEAVE_HOST as bn, DEFAULT_ARWEAVE_GATEWAYS as bo, DEFAULT_ARWEAVE_GRAPHQL_URL as bp, getDefaultArweaveReadGatewayHostsOrdered as bq, mergePrimaryHostWithDefaults as br, isKnownArweaveGatewayHostname as bs, getAddressesForItemsFilter as bt, normalizeUploadApiBaseUrl as bu, getUploadApiArweaveDataUrl as bv, getUploadPipelineTransactionStatus as bw, getUploadApiArweaveStatusUrl as bx, getArweaveUploadStatus as by, isArweaveL1AnchoringComplete as bz, TPropertyDataType as c, createModelFromJson as c0, ConflictError as c1, unloadEntity as c2, clearDestroySubscriptions as c3, setupEntityLiveQuery as c4, ModelSchema as c5, BaseFileManager$1 as c6, db as c7, eas as c8, getPropertyData$1 as c9, Item$1 as ca, schema as cb, SEEDPROTOCOL_Seed_Protocol_v1 as cc, Model$1 as cd, TStorageType as d, THtmlEmbeddedDataUriPolicy as e, TProperty as f, TPropertyConstructor as g, TPropertyDefs as h, PropertyMetadataKey as i, PropertyConstructor as j, Text as k, DEFAULT_TEXT_MAX_LENGTH as l, TValidationRules as m, normalizeDataType as n, getOwnedAddressesFromDb as o, BaseDb as p, getGetAdditionalSyncAddresses as q, resolveSeedIdsFromRefString as r, seeds as s, normalizeRelationPropertyValue as t, Item as u, BaseFileManager as v, getContentHash as w, htmlEmbeddedImageCoPublish as x, BaseArweaveClient as y, getEasSchemaUidForModel as z };
20067
- //# sourceMappingURL=index-18lln0cM.js.map
20066
+ //# sourceMappingURL=index-DKXcFcFk.js.map