@seedprotocol/sdk 0.4.13 → 0.4.14

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 (86) hide show
  1. package/dist/{ArweaveClient-Bot35vMf.js → ArweaveClient-D6E8xe3J.js} +3 -3
  2. package/dist/{ArweaveClient-Bot35vMf.js.map → ArweaveClient-D6E8xe3J.js.map} +1 -1
  3. package/dist/{ArweaveClient-C6mBPWwy.js → ArweaveClient-DElJwN08.js} +3 -3
  4. package/dist/{ArweaveClient-C6mBPWwy.js.map → ArweaveClient-DElJwN08.js.map} +1 -1
  5. package/dist/{Db-rlxROH4S.js → Db-DW1Un2jz.js} +3 -3
  6. package/dist/{Db-rlxROH4S.js.map → Db-DW1Un2jz.js.map} +1 -1
  7. package/dist/{Db-DP7ELP9S.js → Db-De4o7jww.js} +3 -3
  8. package/dist/{Db-DP7ELP9S.js.map → Db-De4o7jww.js.map} +1 -1
  9. package/dist/{EasClient-CHI9lBP8.js → EasClient-BpGDIkmb.js} +2 -2
  10. package/dist/{EasClient-CHI9lBP8.js.map → EasClient-BpGDIkmb.js.map} +1 -1
  11. package/dist/{EasClient-CszJzwqw.js → EasClient-DGY_mkrd.js} +2 -2
  12. package/dist/{EasClient-CszJzwqw.js.map → EasClient-DGY_mkrd.js.map} +1 -1
  13. package/dist/{FileManager-Dy3BbIxq.js → FileManager-Cw8mOIqZ.js} +2 -2
  14. package/dist/{FileManager-Dy3BbIxq.js.map → FileManager-Cw8mOIqZ.js.map} +1 -1
  15. package/dist/{FileManager-C7yOhPvS.js → FileManager-DrHQbmYj.js} +2 -2
  16. package/dist/{FileManager-C7yOhPvS.js.map → FileManager-DrHQbmYj.js.map} +1 -1
  17. package/dist/{ModelProperty--OQb3Dy0.js → ModelProperty-D8d25NtC.js} +17 -17
  18. package/dist/{ModelProperty--OQb3Dy0.js.map → ModelProperty-D8d25NtC.js.map} +1 -1
  19. package/dist/{PathResolver-D--w4fFE.js → PathResolver-BHj0UZTj.js} +2 -2
  20. package/dist/{PathResolver-D--w4fFE.js.map → PathResolver-BHj0UZTj.js.map} +1 -1
  21. package/dist/{PathResolver-BtnV9pXS.js → PathResolver-D1k3dZg5.js} +2 -2
  22. package/dist/{PathResolver-BtnV9pXS.js.map → PathResolver-D1k3dZg5.js.map} +1 -1
  23. package/dist/{QueryClient-Bia5wKCO.js → QueryClient-BCVom0BA.js} +2 -2
  24. package/dist/{QueryClient-Bia5wKCO.js.map → QueryClient-BCVom0BA.js.map} +1 -1
  25. package/dist/{QueryClient-BdNnK6Es.js → QueryClient-D4974vvo.js} +2 -2
  26. package/dist/{QueryClient-BdNnK6Es.js.map → QueryClient-D4974vvo.js.map} +1 -1
  27. package/dist/{Schema-DF4mLt86.js → Schema-CLlE7onI.js} +21 -21
  28. package/dist/{Schema-DF4mLt86.js.map → Schema-CLlE7onI.js.map} +1 -1
  29. package/dist/{SchemaValidationService-D4LwnnIB.js → SchemaValidationService-CwKY3QlY.js} +2 -2
  30. package/dist/{SchemaValidationService-D4LwnnIB.js.map → SchemaValidationService-CwKY3QlY.js.map} +1 -1
  31. package/dist/cjs/{ModelProperty-C5BRfISV.js → ModelProperty-CgQ3zR-u.js} +17 -17
  32. package/dist/cjs/{ModelProperty-C5BRfISV.js.map → ModelProperty-CgQ3zR-u.js.map} +1 -1
  33. package/dist/cjs/{Schema-DVJG8ISB.js → Schema-B0D7LgYb.js} +20 -20
  34. package/dist/cjs/{Schema-DVJG8ISB.js.map → Schema-B0D7LgYb.js.map} +1 -1
  35. package/dist/cjs/{SchemaValidationService-_wef0VX6.js → SchemaValidationService-DUIOUvC_.js} +2 -2
  36. package/dist/cjs/{SchemaValidationService-_wef0VX6.js.map → SchemaValidationService-DUIOUvC_.js.map} +1 -1
  37. package/dist/cjs/{getItem-CUGoglni.js → getItem-BP4BYB4Z.js} +2 -2
  38. package/dist/cjs/{getItem-CUGoglni.js.map → getItem-BP4BYB4Z.js.map} +1 -1
  39. package/dist/cjs/{getPublishPayload-CGl97AXX.js → getPublishPayload-B90BFd8m.js} +5 -5
  40. package/dist/cjs/{getPublishPayload-CGl97AXX.js.map → getPublishPayload-B90BFd8m.js.map} +1 -1
  41. package/dist/cjs/{getPublishUploads-BA5PdoJ3.js → getPublishUploads-D4DMfuOm.js} +3 -3
  42. package/dist/cjs/{getPublishUploads-BA5PdoJ3.js.map → getPublishUploads-D4DMfuOm.js.map} +1 -1
  43. package/dist/cjs/{getSegmentedItemProperties-D3iBFPeo.js → getSegmentedItemProperties-KdudlzXm.js} +2 -2
  44. package/dist/cjs/{getSegmentedItemProperties-D3iBFPeo.js.map → getSegmentedItemProperties-KdudlzXm.js.map} +1 -1
  45. package/dist/cjs/{index-CpBFvNId.js → index-BM8CSlnN.js} +2 -2
  46. package/dist/cjs/index-BM8CSlnN.js.map +1 -0
  47. package/dist/cjs/{index-B3K0jG2t.js → index-CUd7xS2i.js} +33 -30
  48. package/dist/cjs/index-CUd7xS2i.js.map +1 -0
  49. package/dist/cjs/{ownership-CkgGUliG.js → ownership-D3npAPnx.js} +2 -2
  50. package/dist/cjs/{ownership-CkgGUliG.js.map → ownership-D3npAPnx.js.map} +1 -1
  51. package/dist/{getItem-CbGS6wbp.js → getItem-B_IP-uNX.js} +2 -2
  52. package/dist/{getItem-CbGS6wbp.js.map → getItem-B_IP-uNX.js.map} +1 -1
  53. package/dist/{getPublishPayload-jUcwhhs1.js → getPublishPayload-BekDN5Ti.js} +5 -5
  54. package/dist/{getPublishPayload-jUcwhhs1.js.map → getPublishPayload-BekDN5Ti.js.map} +1 -1
  55. package/dist/{getPublishUploads-BAsUuLSM.js → getPublishUploads-DPk5RcAG.js} +3 -3
  56. package/dist/{getPublishUploads-BAsUuLSM.js.map → getPublishUploads-DPk5RcAG.js.map} +1 -1
  57. package/dist/{getSegmentedItemProperties-1QklOMkN.js → getSegmentedItemProperties-DfQNbOpb.js} +2 -2
  58. package/dist/{getSegmentedItemProperties-1QklOMkN.js.map → getSegmentedItemProperties-DfQNbOpb.js.map} +1 -1
  59. package/dist/{index-CjAALVQh.js → index-DbmqfO-Q.js} +2 -2
  60. package/dist/index-DbmqfO-Q.js.map +1 -0
  61. package/dist/{index-BUFvepcD.js → index-Dh_gxItx.js} +47 -44
  62. package/dist/index-Dh_gxItx.js.map +1 -0
  63. package/dist/{index-BnBV-CWp.js → index-XBnjc_SF.js} +3 -3
  64. package/dist/index-XBnjc_SF.js.map +1 -0
  65. package/dist/main.cjs +1 -1
  66. package/dist/main.js +11 -11
  67. package/dist/node.js +10 -10
  68. package/dist/{ownership-CeuRaVwP.js → ownership-CEv7BhIh.js} +2 -2
  69. package/dist/{ownership-CeuRaVwP.js.map → ownership-CEv7BhIh.js.map} +1 -1
  70. package/dist/{property-BiZvboSH.js → property-CppuVi-i.js} +4 -4
  71. package/dist/{property-BiZvboSH.js.map → property-CppuVi-i.js.map} +1 -1
  72. package/dist/{queries-B2xdenwS.js → queries-B1vaglQW.js} +2 -2
  73. package/dist/{queries-B2xdenwS.js.map → queries-B1vaglQW.js.map} +1 -1
  74. package/dist/src/browser/helpers/index.d.ts.map +1 -1
  75. package/dist/src/helpers/QueryClient/BaseQueryClient.d.ts.map +1 -1
  76. package/dist/src/vite/index.d.ts.map +1 -1
  77. package/dist/vite.cjs +129 -1
  78. package/dist/vite.cjs.map +1 -1
  79. package/dist/vite.js +128 -1
  80. package/dist/vite.js.map +1 -1
  81. package/package.json +5 -3
  82. package/dist/cjs/index-B3K0jG2t.js.map +0 -1
  83. package/dist/cjs/index-CpBFvNId.js.map +0 -1
  84. package/dist/index-BUFvepcD.js.map +0 -1
  85. package/dist/index-BnBV-CWp.js.map +0 -1
  86. package/dist/index-CjAALVQh.js.map +0 -1
@@ -526,6 +526,9 @@ class BaseQueryClient {
526
526
  this.PlatformClass = platformClass;
527
527
  }
528
528
  static getQueryClient() {
529
+ if (!this.PlatformClass) {
530
+ throw new Error('QueryClient PlatformClass has not been set. Ensure the platform-specific QueryClient is initialized before use. For Node.js, import from @seedprotocol/sdk/node. For browser, the SDK should auto-initialize via platformClassesInit().');
531
+ }
529
532
  return this.PlatformClass.getQueryClient();
530
533
  }
531
534
  }
@@ -770,7 +773,7 @@ const createPropertyInstances = async (propertyFileIds) => {
770
773
  return;
771
774
  }
772
775
  try {
773
- const mod = await import('./ModelProperty--OQb3Dy0.js');
776
+ const mod = await import('./ModelProperty-D8d25NtC.js');
774
777
  const ModelProperty = mod?.ModelProperty ?? mod?.default;
775
778
  if (!ModelProperty) {
776
779
  logger$s('createPropertyInstances: ModelProperty not available from dynamic import');
@@ -954,7 +957,7 @@ const loadOrCreateModel = fromCallback(({ sendBack, input: { context } }) => {
954
957
  // Step 2: Fallback to Schema context (only if database doesn't have the model)
955
958
  // This handles the case where model exists in schema file but not yet in database
956
959
  try {
957
- const _mod_0 = await import('./Schema-DF4mLt86.js');
960
+ const _mod_0 = await import('./Schema-CLlE7onI.js');
958
961
  const _ns_0 = _mod_0.b;
959
962
  const schemaMod = _ns_0;
960
963
  const { Schema } = schemaMod;
@@ -1200,7 +1203,7 @@ const loadOrCreateModel = fromCallback(({ sendBack, input: { context } }) => {
1200
1203
  }
1201
1204
  // Mark schema as draft when a new model is created so saveNewVersion() can persist it
1202
1205
  try {
1203
- const _mod_1 = await import('./Schema-DF4mLt86.js');
1206
+ const _mod_1 = await import('./Schema-CLlE7onI.js');
1204
1207
  const _ns_1 = _mod_1.b;
1205
1208
  const schemaMod = _ns_1;
1206
1209
  const { Schema } = schemaMod;
@@ -1246,10 +1249,10 @@ const validateModel = fromCallback(({ sendBack, input: { context } }) => {
1246
1249
  const _validateModel = async () => {
1247
1250
  try {
1248
1251
  // Use dynamic imports to break circular dependencies
1249
- const validationServiceMod = await import('./SchemaValidationService-D4LwnnIB.js');
1252
+ const validationServiceMod = await import('./SchemaValidationService-CwKY3QlY.js');
1250
1253
  const { SchemaValidationService } = validationServiceMod;
1251
1254
  const validationService = new SchemaValidationService();
1252
- const _mod_2 = await import('./Schema-DF4mLt86.js');
1255
+ const _mod_2 = await import('./Schema-CLlE7onI.js');
1253
1256
  const _ns_2 = _mod_2.b;
1254
1257
  const schemaMod = _ns_2;
1255
1258
  const { Schema } = schemaMod;
@@ -1361,7 +1364,7 @@ const createModelProperties = fromCallback(({ sendBack, input }) => {
1361
1364
  return;
1362
1365
  }
1363
1366
  logger$q(`Creating ${Object.keys(propertyDefinitions).length} properties for model "${modelName}" (id: ${_dbId})`);
1364
- const mod = await import('./ModelProperty--OQb3Dy0.js');
1367
+ const mod = await import('./ModelProperty-D8d25NtC.js');
1365
1368
  const ModelProperty = mod?.ModelProperty ?? mod?.default;
1366
1369
  if (!ModelProperty) {
1367
1370
  logger$q('ModelProperty not available from dynamic import');
@@ -1464,7 +1467,7 @@ const validateEntity = fromPromise(async ({ input }) => {
1464
1467
  const structureMsg = `[validateEntity] Validating model structure`;
1465
1468
  logger$p(structureMsg);
1466
1469
  // Use existing Model validation
1467
- const validationServiceMod = await import('./SchemaValidationService-D4LwnnIB.js');
1470
+ const validationServiceMod = await import('./SchemaValidationService-CwKY3QlY.js');
1468
1471
  const { SchemaValidationService } = validationServiceMod;
1469
1472
  const validationService = new SchemaValidationService();
1470
1473
  // Validate model structure
@@ -1482,7 +1485,7 @@ const validateEntity = fromPromise(async ({ input }) => {
1482
1485
  if (entityInput.entityData.schemaName) {
1483
1486
  try {
1484
1487
  logger$p(`[validateEntity] Validating model against schema "${entityInput.entityData.schemaName}"`);
1485
- const _mod_3 = await import('./Schema-DF4mLt86.js');
1488
+ const _mod_3 = await import('./Schema-CLlE7onI.js');
1486
1489
  const _ns_3 = _mod_3.b;
1487
1490
  const schemaMod = _ns_3;
1488
1491
  const { Schema } = schemaMod;
@@ -1520,7 +1523,7 @@ const validateEntity = fromPromise(async ({ input }) => {
1520
1523
  }
1521
1524
  else if (entityInput.entityType === 'modelProperty') {
1522
1525
  // Use existing ModelProperty validation
1523
- const validationServiceMod = await import('./SchemaValidationService-D4LwnnIB.js');
1526
+ const validationServiceMod = await import('./SchemaValidationService-CwKY3QlY.js');
1524
1527
  const { SchemaValidationService } = validationServiceMod;
1525
1528
  const validationService = new SchemaValidationService();
1526
1529
  // Validate property structure
@@ -1535,7 +1538,7 @@ const validateEntity = fromPromise(async ({ input }) => {
1535
1538
  // If schema name and model name provided, validate against schema
1536
1539
  if (entityInput.entityData._schemaName && entityInput.entityData.modelName) {
1537
1540
  try {
1538
- const _mod_4 = await import('./Schema-DF4mLt86.js');
1541
+ const _mod_4 = await import('./Schema-CLlE7onI.js');
1539
1542
  const _ns_4 = _mod_4.b;
1540
1543
  const schemaMod = _ns_4;
1541
1544
  const { Schema } = schemaMod;
@@ -1566,7 +1569,7 @@ const validateEntity = fromPromise(async ({ input }) => {
1566
1569
  }
1567
1570
  else if (entityInput.entityType === 'schema') {
1568
1571
  // Schema validation - use existing validation
1569
- const validationServiceMod = await import('./SchemaValidationService-D4LwnnIB.js');
1572
+ const validationServiceMod = await import('./SchemaValidationService-CwKY3QlY.js');
1570
1573
  const { SchemaValidationService } = validationServiceMod;
1571
1574
  const validationService = new SchemaValidationService();
1572
1575
  const schemaResult = validationService.validateSchema(entityInput.entityData);
@@ -2184,7 +2187,7 @@ async function checkIfPropertyIsEdited(modelName, propertyName, schemaFileValue)
2184
2187
  const cacheKey = `${modelName}:${propertyName}`;
2185
2188
  // First, check the in-memory cache (for current session edits)
2186
2189
  // Robust dynamic import for consumer re-bundling (named or default export)
2187
- const mod = await import('./ModelProperty--OQb3Dy0.js');
2190
+ const mod = await import('./ModelProperty-D8d25NtC.js');
2188
2191
  const ModelProperty = mod?.ModelProperty ?? mod?.default;
2189
2192
  if (!ModelProperty) {
2190
2193
  logger$o('ModelProperty not available from dynamic import');
@@ -3492,7 +3495,7 @@ const writeToDatabase = fromCallback(({ sendBack, input }) => {
3492
3495
  // initial write completes is not overwritten by the stale requestWrite payload.
3493
3496
  let dataToWrite = input.entityData;
3494
3497
  try {
3495
- const mod = await import('./ModelProperty--OQb3Dy0.js');
3498
+ const mod = await import('./ModelProperty-D8d25NtC.js');
3496
3499
  const ModelProperty = mod?.ModelProperty ?? mod?.default;
3497
3500
  if (ModelProperty && typeof ModelProperty.getById === 'function') {
3498
3501
  const instance = ModelProperty.getById(input.entityId);
@@ -3872,7 +3875,7 @@ const modelMachine = setup({
3872
3875
  // Create ModelProperty instances for any new property IDs
3873
3876
  if (Array.isArray(newPropertyIds) && newPropertyIds.length > 0) {
3874
3877
  // Import and create instances asynchronously (fire-and-forget)
3875
- import('./ModelProperty--OQb3Dy0.js').then(({ ModelProperty }) => {
3878
+ import('./ModelProperty-D8d25NtC.js').then(({ ModelProperty }) => {
3876
3879
  const createPromises = newPropertyIds.map(async (propertyFileId) => {
3877
3880
  try {
3878
3881
  const property = await ModelProperty.createById(propertyFileId);
@@ -5357,9 +5360,9 @@ const runPublish = fromCallback(({ sendBack, input: { context } }) => {
5357
5360
  sendBack({ type: 'publishError', error: new Error(`Item not found for seedLocalId: ${seedLocalId}`) });
5358
5361
  return;
5359
5362
  }
5360
- const getPublishUploadsMod = await import('./getPublishUploads-BAsUuLSM.js');
5363
+ const getPublishUploadsMod = await import('./getPublishUploads-DPk5RcAG.js');
5361
5364
  const { getPublishUploads } = getPublishUploadsMod;
5362
- const getPublishPayloadMod = await import('./getPublishPayload-jUcwhhs1.js');
5365
+ const getPublishPayloadMod = await import('./getPublishPayload-BekDN5Ti.js');
5363
5366
  const { getPublishPayload } = getPublishPayloadMod;
5364
5367
  const uploads = await getPublishUploads(item);
5365
5368
  let uploadedTransactions = [];
@@ -6118,7 +6121,7 @@ const resolveRelatedValue = fromCallback(({ sendBack, input: { context } }) => {
6118
6121
  const { isRelation, propertyValue, propertyName, seedUid, propertyRecordSchema, populatedFromDb, schemaUid, } = context;
6119
6122
  const _resolveRelatedValue = async () => {
6120
6123
  // Use dynamic import to break circular dependency
6121
- const schemaMod = await import('./index-BnBV-CWp.js');
6124
+ const schemaMod = await import('./index-XBnjc_SF.js');
6122
6125
  const { ModelPropertyDataTypes } = schemaMod;
6123
6126
  if (!propertyValue || !isRelation || populatedFromDb) {
6124
6127
  return;
@@ -6458,7 +6461,7 @@ const hydrateFromDb = fromCallback(({ sendBack, input: { context } }) => {
6458
6461
  // to use dynamically imported ModelPropertyDataTypes
6459
6462
  const _hydrateFromDb = async () => {
6460
6463
  // Use dynamic import to break circular dependency
6461
- const schemaMod = await import('./index-BnBV-CWp.js');
6464
+ const schemaMod = await import('./index-XBnjc_SF.js');
6462
6465
  const { ModelPropertyDataTypes } = schemaMod;
6463
6466
  const appDb = BaseDb.getAppDb();
6464
6467
  const whereClauses = [];
@@ -6968,7 +6971,7 @@ const analyzeInput = fromCallback(({ sendBack, input: { context, event } }) => {
6968
6971
  }
6969
6972
  const _analyzeInput = async () => {
6970
6973
  // Use dynamic import to break circular dependency
6971
- const schemaMod = await import('./index-BnBV-CWp.js');
6974
+ const schemaMod = await import('./index-XBnjc_SF.js');
6972
6975
  const { ModelPropertyDataTypes } = schemaMod;
6973
6976
  let propertyName = propertyNameRaw;
6974
6977
  if (!propertyName) {
@@ -7612,7 +7615,7 @@ const saveRelation = fromCallback(({ sendBack, input: { context, event } }) => {
7612
7615
  }
7613
7616
  const _saveRelation = async () => {
7614
7617
  // Use dynamic import to break circular dependency
7615
- const schemaMod = await import('./index-BnBV-CWp.js');
7618
+ const schemaMod = await import('./index-XBnjc_SF.js');
7616
7619
  const { ModelPropertyDataTypes } = schemaMod;
7617
7620
  if (!propertyNameRaw) {
7618
7621
  throw new Error('propertyName is required');
@@ -8476,7 +8479,7 @@ class ItemProperty {
8476
8479
  return;
8477
8480
  }
8478
8481
  // Use dynamic import to break circular dependency
8479
- const schemaMod = await import('./index-BnBV-CWp.js');
8482
+ const schemaMod = await import('./index-XBnjc_SF.js');
8480
8483
  const { ModelPropertyDataTypes } = schemaMod;
8481
8484
  const { context } = snapshot;
8482
8485
  const { propertyRecordSchema } = context;
@@ -8592,7 +8595,7 @@ class ItemProperty {
8592
8595
  setupState.subscriptionSetUp = true;
8593
8596
  logger(`[ItemProperty._setupLiveQuerySubscription] Setting up liveQuery for propertyName: ${propertyName}, seedLocalId: ${seedLocalId}`);
8594
8597
  try {
8595
- const _mod_5 = await import('./index-CjAALVQh.js');
8598
+ const _mod_5 = await import('./index-DbmqfO-Q.js');
8596
8599
  const _ns_5 = _mod_5.s;
8597
8600
  const seedSchemaMod = _ns_5;
8598
8601
  const { metadata } = seedSchemaMod;
@@ -9164,7 +9167,7 @@ class ItemProperty {
9164
9167
  }
9165
9168
  async save() {
9166
9169
  const ctx = this._getSnapshotContext();
9167
- const { assertItemOwned } = await import('./ownership-CeuRaVwP.js');
9170
+ const { assertItemOwned } = await import('./ownership-CEv7BhIh.js');
9168
9171
  await assertItemOwned({
9169
9172
  seedLocalId: ctx?.seedLocalId ?? undefined,
9170
9173
  seedUid: ctx?.seedUid ?? undefined,
@@ -9257,7 +9260,7 @@ class ItemProperty {
9257
9260
  if (!propertyName || (!seedLocalId && !seedUid))
9258
9261
  return;
9259
9262
  if (db) {
9260
- const _mod_6 = await import('./index-CjAALVQh.js');
9263
+ const _mod_6 = await import('./index-DbmqfO-Q.js');
9261
9264
  const _ns_6 = _mod_6.s;
9262
9265
  const seedSchemaMod = _ns_6;
9263
9266
  const { metadata } = seedSchemaMod;
@@ -9486,7 +9489,7 @@ class Item {
9486
9489
  });
9487
9490
  };
9488
9491
  this.publish = async () => {
9489
- const { assertItemOwned } = await import('./ownership-CeuRaVwP.js');
9492
+ const { assertItemOwned } = await import('./ownership-CEv7BhIh.js');
9490
9493
  await assertItemOwned(this);
9491
9494
  this._service.send({ type: 'startPublish' });
9492
9495
  return new Promise((resolve, reject) => {
@@ -9522,13 +9525,13 @@ class Item {
9522
9525
  };
9523
9526
  this.getPublishUploads = async () => {
9524
9527
  // Use dynamic import to break circular dependency
9525
- const getPublishUploadsMod = await import('./getPublishUploads-BAsUuLSM.js');
9528
+ const getPublishUploadsMod = await import('./getPublishUploads-DPk5RcAG.js');
9526
9529
  const { getPublishUploads } = getPublishUploadsMod;
9527
9530
  return await getPublishUploads(this);
9528
9531
  };
9529
9532
  this.getPublishPayload = async (uploadedTransactions) => {
9530
9533
  // Use dynamic import to break circular dependency
9531
- const getPublishPayloadMod = await import('./getPublishPayload-jUcwhhs1.js');
9534
+ const getPublishPayloadMod = await import('./getPublishPayload-BekDN5Ti.js');
9532
9535
  const { getPublishPayload } = getPublishPayloadMod;
9533
9536
  return await getPublishPayload(this, uploadedTransactions);
9534
9537
  };
@@ -10371,7 +10374,7 @@ class Item {
10371
10374
  setupState.subscriptionSetUp = true;
10372
10375
  logger(`[Item._setupLiveQuerySubscription] Setting up liveQuery for seedLocalId: ${seedLocalId}`);
10373
10376
  try {
10374
- const _mod_7 = await import('./index-CjAALVQh.js');
10377
+ const _mod_7 = await import('./index-DbmqfO-Q.js');
10375
10378
  const _ns_7 = _mod_7.s;
10376
10379
  const seedSchemaMod = _ns_7;
10377
10380
  const { seeds, versions, metadata } = seedSchemaMod;
@@ -10652,7 +10655,7 @@ class Item {
10652
10655
  * Destroy the item: soft delete in DB, remove from caches, clean up subscriptions, stop service.
10653
10656
  */
10654
10657
  async destroy() {
10655
- const { assertItemOwned } = await import('./ownership-CeuRaVwP.js');
10658
+ const { assertItemOwned } = await import('./ownership-CEv7BhIh.js');
10656
10659
  await assertItemOwned(this);
10657
10660
  const context = this._getSnapshotContext();
10658
10661
  const cacheKey = context.seedUid || context.seedLocalId;
@@ -11314,20 +11317,20 @@ const platformClassesInit = fromCallback(({ sendBack, input: { context, event }
11314
11317
  let PathResolver;
11315
11318
  let EasClient;
11316
11319
  if (isBrowser()) {
11317
- FileManager = (await import('./FileManager-C7yOhPvS.js')).FileManager;
11318
- Db = (await import('./Db-rlxROH4S.js')).Db;
11319
- QueryClient = (await import('./QueryClient-Bia5wKCO.js')).QueryClient;
11320
- ArweaveClient = (await import('./ArweaveClient-C6mBPWwy.js')).ArweaveClient;
11321
- PathResolver = (await import('./PathResolver-BtnV9pXS.js')).PathResolver;
11322
- EasClient = (await import('./EasClient-CszJzwqw.js')).EasClient;
11320
+ FileManager = (await import('./FileManager-DrHQbmYj.js')).FileManager;
11321
+ Db = (await import('./Db-DW1Un2jz.js')).Db;
11322
+ QueryClient = (await import('./QueryClient-BCVom0BA.js')).QueryClient;
11323
+ ArweaveClient = (await import('./ArweaveClient-DElJwN08.js')).ArweaveClient;
11324
+ PathResolver = (await import('./PathResolver-D1k3dZg5.js')).PathResolver;
11325
+ EasClient = (await import('./EasClient-DGY_mkrd.js')).EasClient;
11323
11326
  }
11324
11327
  else if (isNode()) {
11325
- FileManager = (await import('./FileManager-Dy3BbIxq.js')).FileManager;
11326
- Db = (await import('./Db-DP7ELP9S.js')).Db;
11327
- QueryClient = (await import('./QueryClient-BdNnK6Es.js')).QueryClient;
11328
- ArweaveClient = (await import('./ArweaveClient-Bot35vMf.js')).ArweaveClient;
11329
- PathResolver = (await import('./PathResolver-D--w4fFE.js')).PathResolver;
11330
- EasClient = (await import('./EasClient-CHI9lBP8.js')).EasClient;
11328
+ FileManager = (await import('./FileManager-Cw8mOIqZ.js')).FileManager;
11329
+ Db = (await import('./Db-De4o7jww.js')).Db;
11330
+ QueryClient = (await import('./QueryClient-D4974vvo.js')).QueryClient;
11331
+ ArweaveClient = (await import('./ArweaveClient-D6E8xe3J.js')).ArweaveClient;
11332
+ PathResolver = (await import('./PathResolver-BHj0UZTj.js')).PathResolver;
11333
+ EasClient = (await import('./EasClient-BpGDIkmb.js')).EasClient;
11331
11334
  }
11332
11335
  else {
11333
11336
  throw new Error(`Unable to determine environment. isBrowser()=${isBrowser()}, isNode()=${isNode()}. Platform-specific implementations could not be loaded.`);
@@ -14589,7 +14592,7 @@ const saveDraftLogger = debug('seedSdk:model:saveDraftToDb');
14589
14592
  // Lazy import cache for ModelProperty to avoid circular dependency
14590
14593
  // Eagerly start loading to minimize delay on first access
14591
14594
  let ModelPropertyClass = null;
14592
- const modelPropertyImportPromise = import('./ModelProperty--OQb3Dy0.js')
14595
+ const modelPropertyImportPromise = import('./ModelProperty-D8d25NtC.js')
14593
14596
  .then(module => {
14594
14597
  ModelPropertyClass = module.ModelProperty;
14595
14598
  return ModelPropertyClass;
@@ -14606,7 +14609,7 @@ function getModelProperty() {
14606
14609
  }
14607
14610
  // Lazy import cache for Schema to avoid circular dependency
14608
14611
  let SchemaClass = null;
14609
- const schemaImportPromise = (async () => { const _mod_8 = await import('./Schema-DF4mLt86.js'); return _mod_8.b; })()
14612
+ const schemaImportPromise = (async () => { const _mod_8 = await import('./Schema-CLlE7onI.js'); return _mod_8.b; })()
14610
14613
  .then(module => {
14611
14614
  SchemaClass = module.Schema;
14612
14615
  return SchemaClass;
@@ -16347,4 +16350,4 @@ Type.Record(Type.String(), Type.Any());
16347
16350
  Type.Record(Type.String(), TProperty);
16348
16351
 
16349
16352
  export { propertyUids as $, BasePathResolver as A, Boolean$1 as B, BaseFileManager as C, Date$1 as D, appState as E, SEED_CONFIG_FALLBACKS as F, BaseEasClient as G, EAS_ENDPOINT as H, Image as I, Json as J, config as K, List as L, Model as M, Number$1 as N, metadata$1 as O, Property as P, modelRelations as Q, Relation as R, SEED_CONFIG_FILE as S, TPropertyDataType as T, modelSchemas as U, VERSION_SCHEMA_UID_OPTIMISM_SEPOLIA as V, modelUids as W, modelsRelations as X, propertiesRelations as Y, ZERO_BYTES32 as Z, propertyUidRelations as _, ModelPropertyDataTypes as a, Model$1 as a$, schemas as a0, versions as a1, graphql as a2, saveAppState as a3, addModelsToDb$1 as a4, SCHEMA_NJK as a5, ItemProperty as a6, eventEmitter as a7, ClientManager as a8, INIT_SCRIPT_SUCCESS_MESSAGE as a9, getSeedsFromSchemaUids as aA, getSeedsBySchemaName as aB, SeedModels as aC, DEFAULT_ARWEAVE_HOST as aD, DEFAULT_ARWEAVE_GATEWAYS as aE, getArweaveUrlForTransaction as aF, setUploadExecutor as aG, getUploadExecutor as aH, createSchema as aI, readSchema as aJ, listCompleteSchemaFiles as aK, SEED_PROTOCOL_SCHEMA_NAME as aL, addSchemaToDb as aM, createModelsFromJson as aN, loadModelsFromDbForSchema as aO, getLatestSchemaVersion as aP, isInternalSchema as aQ, createModelFromJson as aR, ConflictError as aS, unloadEntity as aT, clearDestroySubscriptions as aU, setupEntityLiveQuery as aV, ModelSchema as aW, BaseFileManager$1 as aX, db as aY, schema as aZ, SEEDPROTOCOL_Seed_Protocol_v1 as a_, SCHEMA_TS as aa, importJsonSchema as ab, loadSchemaFromFile as ac, readJsonImportFile as ad, transformImportToSchemaFile as ae, writeProcessMachine as af, getModelIdByFileId as ag, generateId as ah, waitForEntityIdle as ai, createReactiveProxy as aj, findEntity as ak, forceRemoveFromCaches as al, runDestroyLifecycle as am, getModelId as an, getClient as ao, ClientManagerState as ap, getVersionData$1 as aq, createNewItem as ar, loadAllSchemasFromDb as as, getSchemaNameFromId as at, setSchemaUidForSchemaDefinition as au, setSchemaUidForModel as av, getModelSchemasFromEas as aw, getItemVersionsFromEas as ax, getItemPropertiesFromEas as ay, getEasSchemaUidBySchemaName as az, TStorageType as b, TProperty as c, TPropertyConstructor as d, PropertyMetadataKey as e, PropertyConstructor as f, Text as g, TValidationRules as h, getOwnedAddressesFromDb as i, BaseDb as j, getEasSchemaUidForModel as k, getCorrectId as l, defaultAttestationData as m, normalizeDataType as n, INTERNAL_DATA_TYPES as o, getEasSchemaUidForSchemaDefinition as p, getEasSchemaForItemProperty as q, modelPropertiesToObject as r, seeds as s, toSnakeCase as t, models$1 as u, properties as v, getItemData as w, Item as x, BaseQueryClient as y, BaseArweaveClient as z };
16350
- //# sourceMappingURL=index-BUFvepcD.js.map
16353
+ //# sourceMappingURL=index-Dh_gxItx.js.map