@seedprotocol/sdk 0.4.18 → 0.4.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/dist/{ArweaveClient-CpShI0B0.js → ArweaveClient-CAdWVQnJ.js} +3 -3
  2. package/dist/{ArweaveClient-CpShI0B0.js.map → ArweaveClient-CAdWVQnJ.js.map} +1 -1
  3. package/dist/{ArweaveClient-WfxkMgxb.js → ArweaveClient-V62RJhsZ.js} +3 -3
  4. package/dist/{ArweaveClient-WfxkMgxb.js.map → ArweaveClient-V62RJhsZ.js.map} +1 -1
  5. package/dist/{Db-29bu0gJx.js → Db-8N3-le9a.js} +4 -4
  6. package/dist/{Db-29bu0gJx.js.map → Db-8N3-le9a.js.map} +1 -1
  7. package/dist/{Db-DWvxJG22.js → Db-DS2GBY6h.js} +133 -6
  8. package/dist/Db-DS2GBY6h.js.map +1 -0
  9. package/dist/{EasClient-BwBg9Kkd.js → EasClient-D1eibg8b.js} +2 -2
  10. package/dist/{EasClient-CtLqK_qz.js.map → EasClient-D1eibg8b.js.map} +1 -1
  11. package/dist/{EasClient-CtLqK_qz.js → EasClient-nOmY5meW.js} +2 -2
  12. package/dist/{EasClient-BwBg9Kkd.js.map → EasClient-nOmY5meW.js.map} +1 -1
  13. package/dist/{FileManager-DgraLHZS.js → FileManager-Cze8qmS1.js} +2 -2
  14. package/dist/{FileManager-DgraLHZS.js.map → FileManager-Cze8qmS1.js.map} +1 -1
  15. package/dist/{FileManager-DSihj6Sj.js → FileManager-DSTAwkqw.js} +2 -2
  16. package/dist/{FileManager-DSihj6Sj.js.map → FileManager-DSTAwkqw.js.map} +1 -1
  17. package/dist/{ModelProperty-Bz3V3LoI.js → ModelProperty-ChevZoUy.js} +24 -24
  18. package/dist/{ModelProperty-Bz3V3LoI.js.map → ModelProperty-ChevZoUy.js.map} +1 -1
  19. package/dist/{PathResolver-DOu-0k75.js → PathResolver-3TuYA9yv.js} +2 -2
  20. package/dist/{PathResolver-DOu-0k75.js.map → PathResolver-3TuYA9yv.js.map} +1 -1
  21. package/dist/{PathResolver-DQ5hyu8X.js → PathResolver-C5gj9EU2.js} +2 -2
  22. package/dist/{PathResolver-DQ5hyu8X.js.map → PathResolver-C5gj9EU2.js.map} +1 -1
  23. package/dist/{QueryClient-DYaqIx7e.js → QueryClient-BGv6JOls.js} +2 -2
  24. package/dist/{QueryClient-DYaqIx7e.js.map → QueryClient-BGv6JOls.js.map} +1 -1
  25. package/dist/{QueryClient-CJV1m2rc.js → QueryClient-By2vdhIz.js} +2 -2
  26. package/dist/{QueryClient-CJV1m2rc.js.map → QueryClient-By2vdhIz.js.map} +1 -1
  27. package/dist/{Schema-CFMbnImW.js → Schema-BQ5W3aOW.js} +38 -38
  28. package/dist/{Schema-CFMbnImW.js.map → Schema-BQ5W3aOW.js.map} +1 -1
  29. package/dist/{SchemaValidationService-D4ZVetLE.js → SchemaValidationService-DQx83Cte.js} +2 -2
  30. package/dist/{SchemaValidationService-D4ZVetLE.js.map → SchemaValidationService-DQx83Cte.js.map} +1 -1
  31. package/dist/{backfillMetadataPropertyIds-DptGKVzG.js → backfillMetadataPropertyIds-CMsU83q9.js} +2 -2
  32. package/dist/{backfillMetadataPropertyIds-DptGKVzG.js.map → backfillMetadataPropertyIds-CMsU83q9.js.map} +1 -1
  33. package/dist/cjs/{ModelProperty-TPey_B4m.js → ModelProperty-Cuj839nX.js} +17 -17
  34. package/dist/cjs/{ModelProperty-TPey_B4m.js.map → ModelProperty-Cuj839nX.js.map} +1 -1
  35. package/dist/cjs/{Schema-B-IQEtpX.js → Schema-TFe24NNG.js} +20 -20
  36. package/dist/cjs/{Schema-B-IQEtpX.js.map → Schema-TFe24NNG.js.map} +1 -1
  37. package/dist/cjs/{SchemaValidationService-IQ0Gc9HM.js → SchemaValidationService-DVQrRpse.js} +2 -2
  38. package/dist/cjs/{SchemaValidationService-IQ0Gc9HM.js.map → SchemaValidationService-DVQrRpse.js.map} +1 -1
  39. package/dist/cjs/{backfillMetadataPropertyIds-BBPgBc2W.js → backfillMetadataPropertyIds-BiXK4hT1.js} +2 -2
  40. package/dist/cjs/{backfillMetadataPropertyIds-BBPgBc2W.js.map → backfillMetadataPropertyIds-BiXK4hT1.js.map} +1 -1
  41. package/dist/cjs/{getItem-CWf0OO0F.js → getItem-FgLv9abh.js} +2 -2
  42. package/dist/cjs/{getItem-CWf0OO0F.js.map → getItem-FgLv9abh.js.map} +1 -1
  43. package/dist/cjs/{getPublishPayload-muuS1j0F.js → getPublishPayload-h_Rz8nVX.js} +18 -10
  44. package/dist/cjs/getPublishPayload-h_Rz8nVX.js.map +1 -0
  45. package/dist/cjs/{getPublishUploads-CONYV9QQ.js → getPublishUploads-DdSwst2x.js} +4 -4
  46. package/dist/cjs/{getPublishUploads-CONYV9QQ.js.map → getPublishUploads-DdSwst2x.js.map} +1 -1
  47. package/dist/cjs/{getSegmentedItemProperties-Dl3J_uCe.js → getSegmentedItemProperties-Bu4P_MG8.js} +3 -3
  48. package/dist/cjs/{getSegmentedItemProperties-Dl3J_uCe.js.map → getSegmentedItemProperties-Bu4P_MG8.js.map} +1 -1
  49. package/dist/cjs/{index-D7a8oFJP.js → index-CKJeh6ic.js} +3 -3
  50. package/dist/cjs/index-CKJeh6ic.js.map +1 -0
  51. package/dist/cjs/{index-Bte-I6OD.js → index-pyKmk9hA.js} +161 -38
  52. package/dist/cjs/index-pyKmk9hA.js.map +1 -0
  53. package/dist/cjs/{ownership-Bxv6CUrH.js → ownership-gfm5thj7.js} +2 -2
  54. package/dist/cjs/{ownership-Bxv6CUrH.js.map → ownership-gfm5thj7.js.map} +1 -1
  55. package/dist/cjs/{property-xOF5k4ka.js → property-Dw0b_Sf8.js} +4 -4
  56. package/dist/cjs/{property-xOF5k4ka.js.map → property-Dw0b_Sf8.js.map} +1 -1
  57. package/dist/db/drizzle/drizzle/0010_add_arweave_l1_finalize_jobs.sql +16 -0
  58. package/dist/db/drizzle/drizzle/meta/0010_snapshot.json +1182 -0
  59. package/dist/db/drizzle/drizzle/meta/_journal.json +7 -0
  60. package/dist/{getItem-Hubs_yxu.js → getItem-Bd9U9Yih.js} +2 -2
  61. package/dist/{getItem-Hubs_yxu.js.map → getItem-Bd9U9Yih.js.map} +1 -1
  62. package/dist/{getPublishPayload-CqUCIlu1.js → getPublishPayload-eJL7ktes.js} +21 -13
  63. package/dist/getPublishPayload-eJL7ktes.js.map +1 -0
  64. package/dist/{getPublishUploads-QgfPyhcs.js → getPublishUploads-CKm5dsL6.js} +4 -4
  65. package/dist/{getPublishUploads-QgfPyhcs.js.map → getPublishUploads-CKm5dsL6.js.map} +1 -1
  66. package/dist/{getSegmentedItemProperties-Dzscmm_m.js → getSegmentedItemProperties-B74LN_bz.js} +3 -3
  67. package/dist/{getSegmentedItemProperties-Dzscmm_m.js.map → getSegmentedItemProperties-B74LN_bz.js.map} +1 -1
  68. package/dist/{index-QSl4EYun.js → index-BQv2k74p.js} +3 -2
  69. package/dist/index-BQv2k74p.js.map +1 -0
  70. package/dist/{index-CtzvJMAE.js → index-BvZCYMxA.js} +188 -53
  71. package/dist/index-BvZCYMxA.js.map +1 -0
  72. package/dist/{index-VmIdPfTW.js → index-BxfqPvtu.js} +3 -3
  73. package/dist/index-BxfqPvtu.js.map +1 -0
  74. package/dist/main.cjs +1 -1
  75. package/dist/main.js +55 -14
  76. package/dist/main.js.map +1 -1
  77. package/dist/node.js +10 -10
  78. package/dist/{ownership-loPNh3_a.js → ownership-tVhYQomL.js} +2 -2
  79. package/dist/{ownership-loPNh3_a.js.map → ownership-tVhYQomL.js.map} +1 -1
  80. package/dist/{property-D8HimAKw.js → property-BOdk-wW1.js} +6 -6
  81. package/dist/{property-D8HimAKw.js.map → property-BOdk-wW1.js.map} +1 -1
  82. package/dist/{queries-DPADHnwy.js → queries-DBqVwEdv.js} +2 -2
  83. package/dist/{queries-DPADHnwy.js.map → queries-DBqVwEdv.js.map} +1 -1
  84. package/dist/seedSchema/ArweaveL1FinalizeSchema.ts +28 -0
  85. package/dist/seedSchema/index.d.ts +3 -0
  86. package/dist/seedSchema/index.ts +1 -0
  87. package/dist/src/browser/db/drizzleFiles.d.ts +3 -2
  88. package/dist/src/browser/db/drizzleFiles.d.ts.map +1 -1
  89. package/dist/src/db/read/getPublishPayload.d.ts.map +1 -1
  90. package/dist/src/db/write/applyArweaveL1TransactionIdLocal.d.ts +12 -0
  91. package/dist/src/db/write/applyArweaveL1TransactionIdLocal.d.ts.map +1 -0
  92. package/dist/src/eas.d.ts +6 -0
  93. package/dist/src/eas.d.ts.map +1 -1
  94. package/dist/src/events/item/syncDbWithEas.d.ts.map +1 -1
  95. package/dist/src/helpers/ArweaveClient/arweaveL1UploadApi.d.ts +46 -0
  96. package/dist/src/helpers/ArweaveClient/arweaveL1UploadApi.d.ts.map +1 -0
  97. package/dist/src/helpers/constants.d.ts +2 -0
  98. package/dist/src/helpers/constants.d.ts.map +1 -1
  99. package/dist/src/helpers/index.d.ts +1 -0
  100. package/dist/src/helpers/index.d.ts.map +1 -1
  101. package/dist/src/index.d.ts +6 -4
  102. package/dist/src/index.d.ts.map +1 -1
  103. package/dist/src/seedSchema/ArweaveL1FinalizeSchema.d.ts +233 -0
  104. package/dist/src/seedSchema/ArweaveL1FinalizeSchema.d.ts.map +1 -0
  105. package/dist/src/seedSchema/index.d.ts +1 -0
  106. package/dist/src/seedSchema/index.d.ts.map +1 -1
  107. package/package.json +1 -1
  108. package/dist/Db-DWvxJG22.js.map +0 -1
  109. package/dist/cjs/getPublishPayload-muuS1j0F.js.map +0 -1
  110. package/dist/cjs/index-Bte-I6OD.js.map +0 -1
  111. package/dist/cjs/index-D7a8oFJP.js.map +0 -1
  112. package/dist/getPublishPayload-CqUCIlu1.js.map +0 -1
  113. package/dist/index-CtzvJMAE.js.map +0 -1
  114. package/dist/index-QSl4EYun.js.map +0 -1
  115. package/dist/index-VmIdPfTW.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { waitFor, fromCallback, fromPromise, setup, assign, createActor } from 'xstate';
2
- import { sqliteTable, integer, text, unique, int, blob } from 'drizzle-orm/sqlite-core';
2
+ import { sqliteTable, integer, text, unique, int, blob, uniqueIndex } from 'drizzle-orm/sqlite-core';
3
3
  import { relations, eq, and, isNull, isNotNull, not, or, max, count, getTableColumns, sql, inArray, gt, desc } from 'drizzle-orm';
4
4
  import { customAlphabet } from 'nanoid';
5
5
  import * as nanoIdDictionary from 'nanoid-dictionary';
@@ -365,6 +365,8 @@ const SEED_PROTOCOL_SCHEMA_NAME = 'Seed Protocol';
365
365
  const INTERNAL_SCHEMA_IDS = ['SEEDPROTOCOL'];
366
366
  /** Default Arweave gateway host used across all packages */
367
367
  const DEFAULT_ARWEAVE_HOST = 'arweave.net';
368
+ /** Default Arweave gateway GraphQL endpoint (transaction / block queries). */
369
+ const DEFAULT_ARWEAVE_GRAPHQL_URL = 'https://arweave.net/graphql';
368
370
  /** Default Arweave gateways for fallback / metadata fetching (ordered by preference) */
369
371
  const DEFAULT_ARWEAVE_GATEWAYS = ['arweave.net', 'ar-io.net'];
370
372
  /**
@@ -379,6 +381,7 @@ var constants = /*#__PURE__*/Object.freeze({
379
381
  __proto__: null,
380
382
  CLIENT_NOT_INITIALIZED: CLIENT_NOT_INITIALIZED,
381
383
  DEFAULT_ARWEAVE_GATEWAYS: DEFAULT_ARWEAVE_GATEWAYS,
384
+ DEFAULT_ARWEAVE_GRAPHQL_URL: DEFAULT_ARWEAVE_GRAPHQL_URL,
382
385
  DEFAULT_ARWEAVE_HOST: DEFAULT_ARWEAVE_HOST,
383
386
  INIT_SCRIPT_SUCCESS_MESSAGE: INIT_SCRIPT_SUCCESS_MESSAGE,
384
387
  INTERNAL_DATA_TYPES: INTERNAL_DATA_TYPES,
@@ -588,6 +591,103 @@ async function getUploadPipelineTransactionStatus(uploadApiBaseUrl, txOrDataItem
588
591
  }
589
592
  }
590
593
 
594
+ const GATEWAY_TX_QUERY = `
595
+ query ArweaveGatewayTransaction($id: String!) {
596
+ transaction(id: $id) {
597
+ id
598
+ bundledIn {
599
+ id
600
+ }
601
+ block {
602
+ height
603
+ timestamp
604
+ }
605
+ }
606
+ }
607
+ `;
608
+ function getUploadApiArweaveStatusUrl(baseUrl, dataItemId) {
609
+ const base = normalizeUploadApiBaseUrl(baseUrl);
610
+ const id = encodeURIComponent(dataItemId);
611
+ return `${base}/api/upload/arweave/status/${id}`;
612
+ }
613
+ /**
614
+ * Whether L1 anchoring is complete per upload API status JSON.
615
+ */
616
+ function isArweaveL1AnchoringComplete(status) {
617
+ const l1 = status.l1;
618
+ if (!l1)
619
+ return false;
620
+ if (l1.meetsMinConfirmations === true)
621
+ return true;
622
+ if (l1.confirmed === true)
623
+ return true;
624
+ return false;
625
+ }
626
+ /**
627
+ * Fetches JSON from `GET /api/upload/arweave/status/{dataItemId}`.
628
+ * Returns `null` if the response is not OK or body is not JSON.
629
+ */
630
+ async function getArweaveUploadStatus(uploadApiBaseUrl, dataItemId) {
631
+ const url = getUploadApiArweaveStatusUrl(uploadApiBaseUrl, dataItemId);
632
+ try {
633
+ const response = await fetch(url);
634
+ if (!response.ok) {
635
+ return null;
636
+ }
637
+ const body = (await response.json());
638
+ return body && typeof body === 'object' ? body : null;
639
+ }
640
+ catch {
641
+ return null;
642
+ }
643
+ }
644
+ /**
645
+ * Queries an Arweave gateway GraphQL API for transaction + bundle info.
646
+ */
647
+ async function queryArweaveGatewayTransaction(graphqlUrl, dataItemId, init) {
648
+ const url = graphqlUrl.trim();
649
+ if (!url)
650
+ return null;
651
+ try {
652
+ const response = await fetch(url, {
653
+ method: 'POST',
654
+ headers: {
655
+ 'Content-Type': 'application/json',
656
+ },
657
+ body: JSON.stringify({
658
+ query: GATEWAY_TX_QUERY,
659
+ variables: { id: dataItemId },
660
+ }),
661
+ signal: init?.signal,
662
+ });
663
+ if (!response.ok) {
664
+ return null;
665
+ }
666
+ const json = (await response.json());
667
+ if (json.errors) {
668
+ return null;
669
+ }
670
+ const tx = json.data?.transaction;
671
+ if (!tx) {
672
+ return {
673
+ transactionId: null,
674
+ bundledInId: null,
675
+ blockHeight: null,
676
+ blockTimestamp: null,
677
+ };
678
+ }
679
+ return {
680
+ transactionId: typeof tx.id === 'string' ? tx.id : null,
681
+ bundledInId: tx.bundledIn?.id != null ? String(tx.bundledIn.id) : null,
682
+ blockHeight: tx.block?.height ?? null,
683
+ blockTimestamp: tx.block?.timestamp ?? null,
684
+ };
685
+ }
686
+ catch {
687
+ return null;
688
+ }
689
+ }
690
+
591
691
  class BaseEasClient {
592
692
  static setPlatformClass(platformClass) {
593
693
  if (!platformClass) {
@@ -1246,6 +1346,7 @@ var index = /*#__PURE__*/Object.freeze({
1246
1346
  convertTxIdToImage: convertTxIdToImage,
1247
1347
  generateId: generateId,
1248
1348
  getAlternatePropertyNameForInstanceLookup: getAlternatePropertyNameForInstanceLookup,
1349
+ getArweaveUploadStatus: getArweaveUploadStatus,
1249
1350
  getArweaveUrlForTransaction: getArweaveUrlForTransaction,
1250
1351
  getCorrectId: getCorrectId,
1251
1352
  getDataTypeFromString: getDataTypeFromString,
@@ -1257,9 +1358,11 @@ var index = /*#__PURE__*/Object.freeze({
1257
1358
  getPublisherForNewSeedsWithTimeout: getPublisherForNewSeedsWithTimeout,
1258
1359
  getRevokeExecutor: getRevokeExecutor,
1259
1360
  getUploadApiArweaveDataUrl: getUploadApiArweaveDataUrl,
1361
+ getUploadApiArweaveStatusUrl: getUploadApiArweaveStatusUrl,
1260
1362
  getUploadExecutor: getUploadExecutor,
1261
1363
  getUploadPipelineTransactionStatus: getUploadPipelineTransactionStatus,
1262
1364
  identifyString: identifyString,
1365
+ isArweaveL1AnchoringComplete: isArweaveL1AnchoringComplete,
1263
1366
  isBinary: isBinary,
1264
1367
  listRelationStoragePropertyName: listRelationStoragePropertyName,
1265
1368
  needsMetadataIdSuffix: needsMetadataIdSuffix,
@@ -1267,6 +1370,7 @@ var index = /*#__PURE__*/Object.freeze({
1267
1370
  normalizeUploadApiBaseUrl: normalizeUploadApiBaseUrl,
1268
1371
  parseEasRelationPropertyName: parseEasRelationPropertyName,
1269
1372
  pickLatestPropertyAttestationsByRefAndSchema: pickLatestPropertyAttestationsByRefAndSchema,
1373
+ queryArweaveGatewayTransaction: queryArweaveGatewayTransaction,
1270
1374
  resolveMetadataRecord: resolveMetadataRecord,
1271
1375
  resolveSeedIdsFromRefString: resolveSeedIdsFromRefString,
1272
1376
  resolveStorageNameToSchemaName: resolveStorageNameToSchemaName,
@@ -1292,7 +1396,7 @@ const createPropertyInstances = async (propertyFileIds) => {
1292
1396
  return;
1293
1397
  }
1294
1398
  try {
1295
- const mod = await import('./ModelProperty-Bz3V3LoI.js');
1399
+ const mod = await import('./ModelProperty-ChevZoUy.js');
1296
1400
  const ModelProperty = mod?.ModelProperty ?? mod?.default;
1297
1401
  if (!ModelProperty) {
1298
1402
  logger$t('createPropertyInstances: ModelProperty not available from dynamic import');
@@ -1476,7 +1580,7 @@ const loadOrCreateModel = fromCallback(({ sendBack, input: { context } }) => {
1476
1580
  // Step 2: Fallback to Schema context (only if database doesn't have the model)
1477
1581
  // This handles the case where model exists in schema file but not yet in database
1478
1582
  try {
1479
- const _mod_0 = await import('./Schema-CFMbnImW.js');
1583
+ const _mod_0 = await import('./Schema-BQ5W3aOW.js');
1480
1584
  const _ns_0 = _mod_0.b;
1481
1585
  const schemaMod = _ns_0;
1482
1586
  const { Schema } = schemaMod;
@@ -1722,7 +1826,7 @@ const loadOrCreateModel = fromCallback(({ sendBack, input: { context } }) => {
1722
1826
  }
1723
1827
  // Mark schema as draft when a new model is created so saveNewVersion() can persist it
1724
1828
  try {
1725
- const _mod_1 = await import('./Schema-CFMbnImW.js');
1829
+ const _mod_1 = await import('./Schema-BQ5W3aOW.js');
1726
1830
  const _ns_1 = _mod_1.b;
1727
1831
  const schemaMod = _ns_1;
1728
1832
  const { Schema } = schemaMod;
@@ -1768,10 +1872,10 @@ const validateModel = fromCallback(({ sendBack, input: { context } }) => {
1768
1872
  const _validateModel = async () => {
1769
1873
  try {
1770
1874
  // Use dynamic imports to break circular dependencies
1771
- const validationServiceMod = await import('./SchemaValidationService-D4ZVetLE.js');
1875
+ const validationServiceMod = await import('./SchemaValidationService-DQx83Cte.js');
1772
1876
  const { SchemaValidationService } = validationServiceMod;
1773
1877
  const validationService = new SchemaValidationService();
1774
- const _mod_2 = await import('./Schema-CFMbnImW.js');
1878
+ const _mod_2 = await import('./Schema-BQ5W3aOW.js');
1775
1879
  const _ns_2 = _mod_2.b;
1776
1880
  const schemaMod = _ns_2;
1777
1881
  const { Schema } = schemaMod;
@@ -1883,7 +1987,7 @@ const createModelProperties = fromCallback(({ sendBack, input }) => {
1883
1987
  return;
1884
1988
  }
1885
1989
  logger$r(`Creating ${Object.keys(propertyDefinitions).length} properties for model "${modelName}" (id: ${_dbId})`);
1886
- const mod = await import('./ModelProperty-Bz3V3LoI.js');
1990
+ const mod = await import('./ModelProperty-ChevZoUy.js');
1887
1991
  const ModelProperty = mod?.ModelProperty ?? mod?.default;
1888
1992
  if (!ModelProperty) {
1889
1993
  logger$r('ModelProperty not available from dynamic import');
@@ -1987,7 +2091,7 @@ const validateEntity = fromPromise(async ({ input }) => {
1987
2091
  const structureMsg = `[validateEntity] Validating model structure`;
1988
2092
  logger$q(structureMsg);
1989
2093
  // Use existing Model validation
1990
- const validationServiceMod = await import('./SchemaValidationService-D4ZVetLE.js');
2094
+ const validationServiceMod = await import('./SchemaValidationService-DQx83Cte.js');
1991
2095
  const { SchemaValidationService } = validationServiceMod;
1992
2096
  const validationService = new SchemaValidationService();
1993
2097
  // Validate model structure
@@ -2005,7 +2109,7 @@ const validateEntity = fromPromise(async ({ input }) => {
2005
2109
  if (entityInput.entityData.schemaName) {
2006
2110
  try {
2007
2111
  logger$q(`[validateEntity] Validating model against schema "${entityInput.entityData.schemaName}"`);
2008
- const _mod_3 = await import('./Schema-CFMbnImW.js');
2112
+ const _mod_3 = await import('./Schema-BQ5W3aOW.js');
2009
2113
  const _ns_3 = _mod_3.b;
2010
2114
  const schemaMod = _ns_3;
2011
2115
  const { Schema } = schemaMod;
@@ -2043,7 +2147,7 @@ const validateEntity = fromPromise(async ({ input }) => {
2043
2147
  }
2044
2148
  else if (entityInput.entityType === 'modelProperty') {
2045
2149
  // Use existing ModelProperty validation
2046
- const validationServiceMod = await import('./SchemaValidationService-D4ZVetLE.js');
2150
+ const validationServiceMod = await import('./SchemaValidationService-DQx83Cte.js');
2047
2151
  const { SchemaValidationService } = validationServiceMod;
2048
2152
  const validationService = new SchemaValidationService();
2049
2153
  // Validate property structure
@@ -2058,7 +2162,7 @@ const validateEntity = fromPromise(async ({ input }) => {
2058
2162
  // If schema name and model name provided, validate against schema
2059
2163
  if (entityInput.entityData._schemaName && entityInput.entityData.modelName) {
2060
2164
  try {
2061
- const _mod_4 = await import('./Schema-CFMbnImW.js');
2165
+ const _mod_4 = await import('./Schema-BQ5W3aOW.js');
2062
2166
  const _ns_4 = _mod_4.b;
2063
2167
  const schemaMod = _ns_4;
2064
2168
  const { Schema } = schemaMod;
@@ -2089,7 +2193,7 @@ const validateEntity = fromPromise(async ({ input }) => {
2089
2193
  }
2090
2194
  else if (entityInput.entityType === 'schema') {
2091
2195
  // Schema validation - use existing validation
2092
- const validationServiceMod = await import('./SchemaValidationService-D4ZVetLE.js');
2196
+ const validationServiceMod = await import('./SchemaValidationService-DQx83Cte.js');
2093
2197
  const { SchemaValidationService } = validationServiceMod;
2094
2198
  const validationService = new SchemaValidationService();
2095
2199
  const schemaResult = validationService.validateSchema(entityInput.entityData);
@@ -2272,6 +2376,26 @@ const uploadProcesses = sqliteTable('upload_processes', {
2272
2376
  updatedAt: int('updated_at'),
2273
2377
  });
2274
2378
 
2379
+ /** Background job: resolve L1 tx id and wait for L1 confirmation after bundler publish. */
2380
+ const arweaveL1FinalizeJobs = sqliteTable('arweave_l1_finalize_jobs', {
2381
+ id: int('id').primaryKey({ autoIncrement: true }),
2382
+ seedLocalId: text('seed_local_id').notNull(),
2383
+ dataItemId: text('data_item_id').notNull(),
2384
+ /** L1 bundle / anchor transaction id from gateway GraphQL `bundledIn.id`. */
2385
+ l1TransactionId: text('l1_transaction_id'),
2386
+ bundleId: text('bundle_id'),
2387
+ versionLocalId: text('version_local_id'),
2388
+ itemPropertyName: text('item_property_name'),
2389
+ /** `pending_l1` | `confirmed` | `failed` */
2390
+ phase: text('phase').notNull(),
2391
+ statusJson: text('status_json'),
2392
+ errorMessage: text('error_message'),
2393
+ createdAt: int('created_at').notNull(),
2394
+ updatedAt: int('updated_at').notNull(),
2395
+ }, (table) => ({
2396
+ dataItemIdUnique: uniqueIndex('arweave_l1_finalize_jobs_data_item_id_unique').on(table.dataItemId),
2397
+ }));
2398
+
2275
2399
  const logger$p = debug('seedSdk:helpers:db');
2276
2400
  /**
2277
2401
  * Resolve property_id from model name/type and property name.
@@ -4195,7 +4319,7 @@ const writeToDatabase = fromCallback(({ sendBack, input }) => {
4195
4319
  // initial write completes is not overwritten by the stale requestWrite payload.
4196
4320
  let dataToWrite = input.entityData;
4197
4321
  try {
4198
- const mod = await import('./ModelProperty-Bz3V3LoI.js');
4322
+ const mod = await import('./ModelProperty-ChevZoUy.js');
4199
4323
  const ModelProperty = mod?.ModelProperty ?? mod?.default;
4200
4324
  if (ModelProperty && typeof ModelProperty.getById === 'function') {
4201
4325
  const instance = ModelProperty.getById(input.entityId);
@@ -4575,7 +4699,7 @@ const modelMachine = setup({
4575
4699
  // Create ModelProperty instances for any new property IDs
4576
4700
  if (Array.isArray(newPropertyIds) && newPropertyIds.length > 0) {
4577
4701
  // Import and create instances asynchronously (fire-and-forget)
4578
- import('./ModelProperty-Bz3V3LoI.js').then(({ ModelProperty }) => {
4702
+ import('./ModelProperty-ChevZoUy.js').then(({ ModelProperty }) => {
4579
4703
  const createPromises = newPropertyIds.map(async (propertyFileId) => {
4580
4704
  try {
4581
4705
  const property = await ModelProperty.createById(propertyFileId);
@@ -5386,6 +5510,15 @@ const getItemPropertiesFromEas = async ({ versionUids, excludeRevoked = true, })
5386
5510
  });
5387
5511
  return itemProperties;
5388
5512
  };
5513
+ /**
5514
+ * Same query as {@link getItemPropertiesFromEas}, then keeps the **canonical** attestation per
5515
+ * `(refUID, schemaId)` (newest `timeCreated`). Recommended for display and app logic; use
5516
+ * {@link getItemPropertiesFromEas} when you need every row (e.g. auditing).
5517
+ */
5518
+ const getCanonicalItemPropertiesFromEas = async (props) => {
5519
+ const itemProperties = await getItemPropertiesFromEas(props);
5520
+ return pickLatestPropertyAttestationsByRefAndSchema(itemProperties);
5521
+ };
5389
5522
  const getEasSchemaUidBySchemaName = async ({ schemaName }) => {
5390
5523
  try {
5391
5524
  const queryClient = BaseQueryClient.getQueryClient();
@@ -5477,6 +5610,7 @@ const getSeedsBySchemaName = async (schemaName, limit = 10, skip) => {
5477
5610
 
5478
5611
  var eas = /*#__PURE__*/Object.freeze({
5479
5612
  __proto__: null,
5613
+ getCanonicalItemPropertiesFromEas: getCanonicalItemPropertiesFromEas,
5480
5614
  getEasSchemaUidBySchemaName: getEasSchemaUidBySchemaName,
5481
5615
  getItemPropertiesFromEas: getItemPropertiesFromEas,
5482
5616
  getItemVersionsFromEas: getItemVersionsFromEas,
@@ -5848,7 +5982,7 @@ const createItemPropertyInstances = async (metadataRows, seedLocalId, seedUid, m
5848
5982
  const schemaNameToTry = model$1?.schemaName;
5849
5983
  if (schemaNameToTry) {
5850
5984
  try {
5851
- const _mod_5 = await import('./Schema-CFMbnImW.js');
5985
+ const _mod_5 = await import('./Schema-BQ5W3aOW.js');
5852
5986
  const _ns_5 = _mod_5.b;
5853
5987
  const { Schema } = _ns_5;
5854
5988
  const schemaInstance = Schema.create(schemaNameToTry, { waitForReady: false });
@@ -5899,7 +6033,7 @@ const createItemPropertyInstances = async (metadataRows, seedLocalId, seedUid, m
5899
6033
  }
5900
6034
  }
5901
6035
  if (Object.keys(propertySchemas).length === 0) {
5902
- const schemaMod = await import('./index-VmIdPfTW.js');
6036
+ const schemaMod = await import('./index-BxfqPvtu.js');
5903
6037
  const { ModelPropertyDataTypes } = schemaMod;
5904
6038
  const KNOWN_MODEL_FALLBACKS = {
5905
6039
  Post: {
@@ -5948,7 +6082,7 @@ const createItemPropertyInstances = async (metadataRows, seedLocalId, seedUid, m
5948
6082
  // Infer propertyRecordSchema from metadata when schema is missing (enables persistence)
5949
6083
  let propSchema = propertySchemas[propertyName];
5950
6084
  if (!propSchema && isRefTypeFromMeta) {
5951
- const schemaMod = await import('./index-VmIdPfTW.js');
6085
+ const schemaMod = await import('./index-BxfqPvtu.js');
5952
6086
  const { ModelPropertyDataTypes } = schemaMod;
5953
6087
  propSchema = {
5954
6088
  dataType: refSeedType === 'html' ? ModelPropertyDataTypes.Html
@@ -6196,9 +6330,9 @@ const runPublish = fromCallback(({ sendBack, input: { context } }) => {
6196
6330
  sendBack({ type: 'publishError', error: new Error(`Item not found for seedLocalId: ${seedLocalId}`) });
6197
6331
  return;
6198
6332
  }
6199
- const getPublishUploadsMod = await import('./getPublishUploads-QgfPyhcs.js');
6333
+ const getPublishUploadsMod = await import('./getPublishUploads-CKm5dsL6.js');
6200
6334
  const { getPublishUploads } = getPublishUploadsMod;
6201
- const getPublishPayloadMod = await import('./getPublishPayload-CqUCIlu1.js');
6335
+ const getPublishPayloadMod = await import('./getPublishPayload-eJL7ktes.js');
6202
6336
  const { getPublishPayload } = getPublishPayloadMod;
6203
6337
  const uploads = await getPublishUploads(item);
6204
6338
  let uploadedTransactions = [];
@@ -6963,7 +7097,7 @@ const resolveRelatedValue = fromCallback(({ sendBack, input: { context } }) => {
6963
7097
  const { isRelation, propertyValue, propertyName, seedUid, propertyRecordSchema, populatedFromDb, schemaUid, } = context;
6964
7098
  const _resolveRelatedValue = async () => {
6965
7099
  // Use dynamic import to break circular dependency
6966
- const schemaMod = await import('./index-VmIdPfTW.js');
7100
+ const schemaMod = await import('./index-BxfqPvtu.js');
6967
7101
  const { ModelPropertyDataTypes } = schemaMod;
6968
7102
  if (!propertyValue || !isRelation || populatedFromDb) {
6969
7103
  return;
@@ -7339,7 +7473,7 @@ const hydrateFromDb = fromCallback(({ sendBack, input: { context } }) => {
7339
7473
  // to use dynamically imported ModelPropertyDataTypes
7340
7474
  const _hydrateFromDb = async () => {
7341
7475
  // Use dynamic import to break circular dependency
7342
- const schemaMod = await import('./index-VmIdPfTW.js');
7476
+ const schemaMod = await import('./index-BxfqPvtu.js');
7343
7477
  const { ModelPropertyDataTypes } = schemaMod;
7344
7478
  const appDb = BaseDb.getAppDb();
7345
7479
  const whereClauses = [];
@@ -7644,7 +7778,7 @@ const loadOrCreateProperty = fromCallback(({ sendBack, input: { context } }) =>
7644
7778
  };
7645
7779
  // Merge with schema from file/DB to get validation rules (enum, pattern, etc.) - properties table doesn't store these
7646
7780
  try {
7647
- const { getPropertySchema } = await import('./property-D8HimAKw.js');
7781
+ const { getPropertySchema } = await import('./property-BOdk-wW1.js');
7648
7782
  let schemaFromFile = await getPropertySchema(normalizedModelName, propertyName);
7649
7783
  if (!schemaFromFile?.validation) {
7650
7784
  // Fallback: get validation from schemaData in database (Schema context may not be loaded yet)
@@ -8028,9 +8162,9 @@ const analyzeInput = fromCallback(({ sendBack, input: { context, event } }) => {
8028
8162
  }
8029
8163
  const _analyzeInput = async () => {
8030
8164
  // Use dynamic import to break circular dependency
8031
- const schemaMod = await import('./index-VmIdPfTW.js');
8165
+ const schemaMod = await import('./index-BxfqPvtu.js');
8032
8166
  const { ModelPropertyDataTypes } = schemaMod;
8033
- const { SchemaValidationService } = await import('./SchemaValidationService-D4ZVetLE.js');
8167
+ const { SchemaValidationService } = await import('./SchemaValidationService-DQx83Cte.js');
8034
8168
  let propertyName = propertyNameRaw;
8035
8169
  if (!propertyName) {
8036
8170
  throw new Error('propertyName is required');
@@ -8228,7 +8362,7 @@ const createMetadata = async (metadataValues, propertyRecordSchema, options) =>
8228
8362
  propertyRecordSchema?.validation &&
8229
8363
  metadataValues.propertyValue != null &&
8230
8364
  metadataValues.propertyValue !== '') {
8231
- const { SchemaValidationService } = await import('./SchemaValidationService-D4ZVetLE.js');
8365
+ const { SchemaValidationService } = await import('./SchemaValidationService-DQx83Cte.js');
8232
8366
  const validationService = new SchemaValidationService();
8233
8367
  const validationResult = validationService.validatePropertyValue(metadataValues.propertyValue, propertyRecordSchema.dataType, propertyRecordSchema.validation, propertyRecordSchema.refValueType);
8234
8368
  if (!validationResult.isValid && validationResult.errors.length > 0) {
@@ -8815,7 +8949,7 @@ const saveRelation = fromCallback(({ sendBack, input: { context, event } }) => {
8815
8949
  }
8816
8950
  const _saveRelation = async () => {
8817
8951
  // Use dynamic import to break circular dependency
8818
- const schemaMod = await import('./index-VmIdPfTW.js');
8952
+ const schemaMod = await import('./index-BxfqPvtu.js');
8819
8953
  const { ModelPropertyDataTypes } = schemaMod;
8820
8954
  if (!propertyNameRaw) {
8821
8955
  throw new Error('propertyName is required');
@@ -9847,7 +9981,7 @@ class ItemProperty {
9847
9981
  return;
9848
9982
  }
9849
9983
  // Use dynamic import to break circular dependency
9850
- const schemaMod = await import('./index-VmIdPfTW.js');
9984
+ const schemaMod = await import('./index-BxfqPvtu.js');
9851
9985
  const { ModelPropertyDataTypes } = schemaMod;
9852
9986
  const { context } = snapshot;
9853
9987
  const { propertyRecordSchema } = context;
@@ -10005,7 +10139,7 @@ class ItemProperty {
10005
10139
  const normalizedRefValueType = normalizeDataType(propertyRecordSchema?.refValueType);
10006
10140
  const propertyNames = getMetadataPropertyNamesForQuery(propertyName, normalizedDataType, normalizedRefValueType);
10007
10141
  const propertyNameVariant = propertyNames.length > 1 ? propertyNames[1] : undefined;
10008
- const _mod_6 = await import('./index-QSl4EYun.js');
10142
+ const _mod_6 = await import('./index-BQv2k74p.js');
10009
10143
  const _ns_6 = _mod_6.s;
10010
10144
  const seedSchemaMod = _ns_6;
10011
10145
  const { metadata } = seedSchemaMod;
@@ -10706,7 +10840,7 @@ class ItemProperty {
10706
10840
  }
10707
10841
  async save() {
10708
10842
  const ctx = this._getSnapshotContext();
10709
- const { assertItemOwned } = await import('./ownership-loPNh3_a.js');
10843
+ const { assertItemOwned } = await import('./ownership-tVhYQomL.js');
10710
10844
  await assertItemOwned({
10711
10845
  seedLocalId: ctx?.seedLocalId ?? undefined,
10712
10846
  seedUid: ctx?.seedUid ?? undefined,
@@ -10799,7 +10933,7 @@ class ItemProperty {
10799
10933
  if (!propertyName || (!seedLocalId && !seedUid))
10800
10934
  return;
10801
10935
  if (db) {
10802
- const _mod_7 = await import('./index-QSl4EYun.js');
10936
+ const _mod_7 = await import('./index-BQv2k74p.js');
10803
10937
  const _ns_7 = _mod_7.s;
10804
10938
  const seedSchemaMod = _ns_7;
10805
10939
  const { metadata } = seedSchemaMod;
@@ -11046,7 +11180,7 @@ class Item {
11046
11180
  });
11047
11181
  };
11048
11182
  this.unpublish = async () => {
11049
- const { assertItemOwned } = await import('./ownership-loPNh3_a.js');
11183
+ const { assertItemOwned } = await import('./ownership-tVhYQomL.js');
11050
11184
  const { getRevokeExecutor } = await Promise.resolve().then(function () { return publishConfig; });
11051
11185
  await assertItemOwned(this);
11052
11186
  const seedUid = this.seedUid;
@@ -11070,7 +11204,7 @@ class Item {
11070
11204
  this._service.send({ type: 'updateContext', revokedAt });
11071
11205
  };
11072
11206
  this.publish = async () => {
11073
- const { assertItemOwned } = await import('./ownership-loPNh3_a.js');
11207
+ const { assertItemOwned } = await import('./ownership-tVhYQomL.js');
11074
11208
  await assertItemOwned(this);
11075
11209
  this._service.send({ type: 'startPublish' });
11076
11210
  return new Promise((resolve, reject) => {
@@ -11106,12 +11240,12 @@ class Item {
11106
11240
  };
11107
11241
  this.getPublishUploads = async () => {
11108
11242
  // Use dynamic import to break circular dependency
11109
- const getPublishUploadsMod = await import('./getPublishUploads-QgfPyhcs.js');
11243
+ const getPublishUploadsMod = await import('./getPublishUploads-CKm5dsL6.js');
11110
11244
  const { getPublishUploads } = getPublishUploadsMod;
11111
11245
  return await getPublishUploads(this);
11112
11246
  };
11113
11247
  this.getPublishPayload = async (uploadedTransactions, options) => {
11114
- const getPublishPayloadMod = await import('./getPublishPayload-CqUCIlu1.js');
11248
+ const getPublishPayloadMod = await import('./getPublishPayload-eJL7ktes.js');
11115
11249
  const { getPublishPayload } = getPublishPayloadMod;
11116
11250
  return await getPublishPayload(this, uploadedTransactions, options);
11117
11251
  };
@@ -12002,7 +12136,7 @@ class Item {
12002
12136
  setupState.subscriptionSetUp = true;
12003
12137
  logger(`[Item._setupLiveQuerySubscription] Setting up liveQuery for seedLocalId: ${seedLocalId}`);
12004
12138
  try {
12005
- const _mod_8 = await import('./index-QSl4EYun.js');
12139
+ const _mod_8 = await import('./index-BQv2k74p.js');
12006
12140
  const _ns_8 = _mod_8.s;
12007
12141
  const seedSchemaMod = _ns_8;
12008
12142
  const { seeds, versions, metadata } = seedSchemaMod;
@@ -12313,7 +12447,7 @@ class Item {
12313
12447
  * Destroy the item: soft delete in DB, remove from caches, clean up subscriptions, stop service.
12314
12448
  */
12315
12449
  async destroy() {
12316
- const { assertItemOwned } = await import('./ownership-loPNh3_a.js');
12450
+ const { assertItemOwned } = await import('./ownership-tVhYQomL.js');
12317
12451
  await assertItemOwned(this);
12318
12452
  const context = this._getSnapshotContext();
12319
12453
  const cacheKey = context.seedUid || context.seedLocalId;
@@ -12957,10 +13091,11 @@ const runSyncFromEas = async (options) => {
12957
13091
  const { versionUids } = await saveEasVersionsToDb({
12958
13092
  itemVersions,
12959
13093
  });
12960
- const itemProperties = await getItemPropertiesFromEas({
13094
+ const rawProperties = await getItemPropertiesFromEas({
12961
13095
  versionUids,
12962
13096
  excludeRevoked: false,
12963
13097
  });
13098
+ const itemProperties = pickLatestPropertyAttestationsByRefAndSchema(rawProperties);
12964
13099
  await saveEasPropertiesToDb({
12965
13100
  itemProperties,
12966
13101
  itemSeeds,
@@ -13047,20 +13182,20 @@ const platformClassesInit = fromCallback(({ sendBack, input: { context, event }
13047
13182
  let PathResolver;
13048
13183
  let EasClient;
13049
13184
  if (isBrowser()) {
13050
- FileManager = (await import('./FileManager-DgraLHZS.js')).FileManager;
13051
- Db = (await import('./Db-DWvxJG22.js')).Db;
13052
- QueryClient = (await import('./QueryClient-CJV1m2rc.js')).QueryClient;
13053
- ArweaveClient = (await import('./ArweaveClient-CpShI0B0.js')).ArweaveClient;
13054
- PathResolver = (await import('./PathResolver-DQ5hyu8X.js')).PathResolver;
13055
- EasClient = (await import('./EasClient-CtLqK_qz.js')).EasClient;
13185
+ FileManager = (await import('./FileManager-Cze8qmS1.js')).FileManager;
13186
+ Db = (await import('./Db-DS2GBY6h.js')).Db;
13187
+ QueryClient = (await import('./QueryClient-By2vdhIz.js')).QueryClient;
13188
+ ArweaveClient = (await import('./ArweaveClient-CAdWVQnJ.js')).ArweaveClient;
13189
+ PathResolver = (await import('./PathResolver-C5gj9EU2.js')).PathResolver;
13190
+ EasClient = (await import('./EasClient-D1eibg8b.js')).EasClient;
13056
13191
  }
13057
13192
  else if (isNode()) {
13058
- FileManager = (await import('./FileManager-DSihj6Sj.js')).FileManager;
13059
- Db = (await import('./Db-29bu0gJx.js')).Db;
13060
- QueryClient = (await import('./QueryClient-DYaqIx7e.js')).QueryClient;
13061
- ArweaveClient = (await import('./ArweaveClient-WfxkMgxb.js')).ArweaveClient;
13062
- PathResolver = (await import('./PathResolver-DOu-0k75.js')).PathResolver;
13063
- EasClient = (await import('./EasClient-BwBg9Kkd.js')).EasClient;
13193
+ FileManager = (await import('./FileManager-DSTAwkqw.js')).FileManager;
13194
+ Db = (await import('./Db-8N3-le9a.js')).Db;
13195
+ QueryClient = (await import('./QueryClient-BGv6JOls.js')).QueryClient;
13196
+ ArweaveClient = (await import('./ArweaveClient-V62RJhsZ.js')).ArweaveClient;
13197
+ PathResolver = (await import('./PathResolver-3TuYA9yv.js')).PathResolver;
13198
+ EasClient = (await import('./EasClient-nOmY5meW.js')).EasClient;
13064
13199
  }
13065
13200
  else {
13066
13201
  throw new Error(`Unable to determine environment. isBrowser()=${isBrowser()}, isNode()=${isNode()}. Platform-specific implementations could not be loaded.`);
@@ -16595,7 +16730,7 @@ const saveDraftLogger = debug('seedSdk:model:saveDraftToDb');
16595
16730
  // Lazy import cache for ModelProperty to avoid circular dependency
16596
16731
  // Eagerly start loading to minimize delay on first access
16597
16732
  let ModelPropertyClass = null;
16598
- const modelPropertyImportPromise = import('./ModelProperty-Bz3V3LoI.js')
16733
+ const modelPropertyImportPromise = import('./ModelProperty-ChevZoUy.js')
16599
16734
  .then(module => {
16600
16735
  ModelPropertyClass = module.ModelProperty;
16601
16736
  return ModelPropertyClass;
@@ -16612,7 +16747,7 @@ function getModelProperty() {
16612
16747
  }
16613
16748
  // Lazy import cache for Schema to avoid circular dependency
16614
16749
  let SchemaClass = null;
16615
- const schemaImportPromise = (async () => { const _mod_9 = await import('./Schema-CFMbnImW.js'); return _mod_9.b; })()
16750
+ const schemaImportPromise = (async () => { const _mod_9 = await import('./Schema-BQ5W3aOW.js'); return _mod_9.b; })()
16616
16751
  .then(module => {
16617
16752
  SchemaClass = module.Schema;
16618
16753
  return SchemaClass;
@@ -18352,5 +18487,5 @@ var Model$1 = /*#__PURE__*/Object.freeze({
18352
18487
  const TModelValues = Type.Record(Type.String(), Type.Any());
18353
18488
  const TModelSchema = Type.Record(Type.String(), TProperty);
18354
18489
 
18355
- export { SEED_CONFIG_FILE as $, versions as A, Boolean$1 as B, modelPropertiesToObject as C, Date$1 as D, parseListPropertyValueFromStorage as E, File$1 as F, getCorrectId as G, INTERNAL_PROPERTY_NAMES as H, Image as I, Json as J, defaultAttestationData as K, List as L, Model as M, Number$1 as N, INTERNAL_DATA_TYPES as O, Property as P, toSnakeCase as Q, Relation as R, getEasSchemaUidForSchemaDefinition as S, TModelValues as T, getEasSchemaForItemProperty as U, VERSION_SCHEMA_UID_OPTIMISM_SEPOLIA as V, getItemData as W, resolveStorageNameToSchemaName as X, appState as Y, ZERO_BYTES32 as Z, BasePathResolver as _, TModelSchema as a, importJsonSchema as a$, SEED_CONFIG_FALLBACKS as a0, BaseEasClient as a1, EAS_ENDPOINT as a2, BaseQueryClient as a3, config as a4, metadata$1 as a5, modelRelations as a6, modelSchemas as a7, modelUids as a8, modelsRelations as a9, getEasSchemaUidBySchemaName as aA, getSeedsFromSchemaUids as aB, getSeedsBySchemaName as aC, generateId as aD, withExcludeRevokedFilter as aE, pickLatestPropertyAttestationsByRefAndSchema as aF, SeedModels as aG, DEFAULT_ARWEAVE_HOST as aH, DEFAULT_ARWEAVE_GATEWAYS as aI, updateSeedRevokedAt as aJ, getAddressesForItemsFilter as aK, getArweaveUrlForTransaction as aL, normalizeUploadApiBaseUrl as aM, getUploadApiArweaveDataUrl as aN, getUploadPipelineTransactionStatus as aO, waitForEntityIdle as aP, setUploadExecutor as aQ, getUploadExecutor as aR, setGetPublisherForNewSeeds as aS, getGetPublisherForNewSeeds as aT, setRevokeExecutor as aU, getRevokeExecutor as aV, setAdditionalSyncAddresses as aW, createSchema as aX, readSchema as aY, listCompleteSchemaFiles as aZ, getSchemaNameFromId as a_, propertiesRelations as aa, propertyUidRelations as ab, propertyUids as ac, publishProcesses as ad, schemas as ae, uploadProcesses as af, graphql as ag, getPropertyIdForModelAndName as ah, saveAppState as ai, eventEmitter as aj, getClient as ak, ClientManagerState as al, MachineIds as am, createNewItem as an, getVersionData$1 as ao, getMetadataLatest as ap, loadAllSchemasFromDb as aq, propertyMachine as ar, SEED_PROTOCOL_SCHEMA_NAME as as, ImageSize as at, ItemProperty as au, setSchemaUidForSchemaDefinition as av, setSchemaUidForModel as aw, getModelSchemasFromEas as ax, getItemVersionsFromEas as ay, getItemPropertiesFromEas as az, ModelPropertyDataTypes as b, readJsonImportFile as b0, syncSchemaFromSource as b1, transformImportToSchemaFile as b2, ClientManager as b3, addModelsToDb$1 as b4, SCHEMA_NJK as b5, INIT_SCRIPT_SUCCESS_MESSAGE as b6, SCHEMA_TS as b7, getRefValueType as b8, loadSchemaFromFile as b9, writeProcessMachine as ba, getModelIdByFileId as bb, createReactiveProxy as bc, findEntity as bd, forceRemoveFromCaches as be, runDestroyLifecycle as bf, getModelId as bg, addSchemaToDb as bh, createModelsFromJson as bi, loadModelsFromDbForSchema as bj, getLatestSchemaVersion as bk, isInternalSchema as bl, createModelFromJson as bm, ConflictError as bn, unloadEntity as bo, clearDestroySubscriptions as bp, setupEntityLiveQuery as bq, ModelSchema as br, BaseFileManager$1 as bs, db as bt, eas as bu, getPropertyData$1 as bv, schema as bw, SEEDPROTOCOL_Seed_Protocol_v1 as bx, Model$1 as by, TPropertyDataType as c, TStorageType as d, TProperty as e, TPropertyConstructor as f, TPropertyDefs as g, PropertyMetadataKey as h, PropertyConstructor as i, Text as j, DEFAULT_TEXT_MAX_LENGTH as k, TValidationRules as l, getOwnedAddressesFromDb as m, normalizeDataType as n, BaseDb as o, getGetAdditionalSyncAddresses as p, normalizeRelationPropertyValue as q, resolveSeedIdsFromRefString as r, seeds as s, Item as t, BaseFileManager as u, getContentHash as v, BaseArweaveClient as w, getEasSchemaUidForModel as x, models$1 as y, properties as z };
18356
- //# sourceMappingURL=index-CtzvJMAE.js.map
18490
+ export { SEED_CONFIG_FILE as $, versions as A, Boolean$1 as B, modelPropertiesToObject as C, Date$1 as D, parseListPropertyValueFromStorage as E, File$1 as F, getCorrectId as G, INTERNAL_PROPERTY_NAMES as H, Image as I, Json as J, defaultAttestationData as K, List as L, Model as M, Number$1 as N, INTERNAL_DATA_TYPES as O, Property as P, toSnakeCase as Q, Relation as R, getEasSchemaUidForSchemaDefinition as S, TModelValues as T, getEasSchemaForItemProperty as U, VERSION_SCHEMA_UID_OPTIMISM_SEPOLIA as V, getItemData as W, resolveStorageNameToSchemaName as X, appState as Y, ZERO_BYTES32 as Z, BasePathResolver as _, TModelSchema as a, SeedModels as a$, SEED_CONFIG_FALLBACKS as a0, BaseEasClient as a1, EAS_ENDPOINT as a2, BaseQueryClient as a3, arweaveL1FinalizeJobs as a4, config as a5, metadata$1 as a6, modelRelations as a7, modelSchemas as a8, modelUids as a9, waitForEntityIdle as aA, createReactiveProxy as aB, findEntity as aC, forceRemoveFromCaches as aD, runDestroyLifecycle as aE, getModelId as aF, getClient as aG, ClientManagerState as aH, MachineIds as aI, createNewItem as aJ, getVersionData$1 as aK, getMetadataLatest as aL, loadAllSchemasFromDb as aM, propertyMachine as aN, SEED_PROTOCOL_SCHEMA_NAME as aO, ImageSize as aP, setSchemaUidForSchemaDefinition as aQ, setSchemaUidForModel as aR, getModelSchemasFromEas as aS, getItemVersionsFromEas as aT, getItemPropertiesFromEas as aU, getCanonicalItemPropertiesFromEas as aV, getEasSchemaUidBySchemaName as aW, getSeedsFromSchemaUids as aX, getSeedsBySchemaName as aY, withExcludeRevokedFilter as aZ, pickLatestPropertyAttestationsByRefAndSchema as a_, modelsRelations as aa, propertiesRelations as ab, propertyUidRelations as ac, propertyUids as ad, publishProcesses as ae, schemas as af, uploadProcesses as ag, graphql as ah, getPropertyIdForModelAndName as ai, saveAppState as aj, addModelsToDb$1 as ak, SCHEMA_NJK as al, ItemProperty as am, eventEmitter as an, ClientManager as ao, INIT_SCRIPT_SUCCESS_MESSAGE as ap, SCHEMA_TS as aq, getRefValueType as ar, importJsonSchema as as, loadSchemaFromFile as at, readJsonImportFile as au, syncSchemaFromSource as av, transformImportToSchemaFile as aw, writeProcessMachine as ax, getModelIdByFileId as ay, generateId as az, ModelPropertyDataTypes as b, DEFAULT_ARWEAVE_HOST as b0, DEFAULT_ARWEAVE_GATEWAYS as b1, DEFAULT_ARWEAVE_GRAPHQL_URL as b2, updateSeedRevokedAt as b3, getAddressesForItemsFilter as b4, getArweaveUrlForTransaction as b5, normalizeUploadApiBaseUrl as b6, getUploadApiArweaveDataUrl as b7, getUploadPipelineTransactionStatus as b8, getUploadApiArweaveStatusUrl as b9, db as bA, eas as bB, getPropertyData$1 as bC, schema as bD, SEEDPROTOCOL_Seed_Protocol_v1 as bE, Model$1 as bF, getArweaveUploadStatus as ba, isArweaveL1AnchoringComplete as bb, queryArweaveGatewayTransaction as bc, setUploadExecutor as bd, getUploadExecutor as be, setGetPublisherForNewSeeds as bf, getGetPublisherForNewSeeds as bg, setRevokeExecutor as bh, getRevokeExecutor as bi, setAdditionalSyncAddresses as bj, createSchema as bk, readSchema as bl, listCompleteSchemaFiles as bm, getSchemaNameFromId as bn, addSchemaToDb as bo, createModelsFromJson as bp, loadModelsFromDbForSchema as bq, getLatestSchemaVersion as br, isInternalSchema as bs, createModelFromJson as bt, ConflictError as bu, unloadEntity as bv, clearDestroySubscriptions as bw, setupEntityLiveQuery as bx, ModelSchema as by, BaseFileManager$1 as bz, TPropertyDataType as c, TStorageType as d, TProperty as e, TPropertyConstructor as f, TPropertyDefs as g, PropertyMetadataKey as h, PropertyConstructor as i, Text as j, DEFAULT_TEXT_MAX_LENGTH as k, TValidationRules as l, getOwnedAddressesFromDb as m, normalizeDataType as n, BaseDb as o, getGetAdditionalSyncAddresses as p, normalizeRelationPropertyValue as q, resolveSeedIdsFromRefString as r, seeds as s, Item as t, BaseFileManager as u, getContentHash as v, BaseArweaveClient as w, getEasSchemaUidForModel as x, models$1 as y, properties as z };
18491
+ //# sourceMappingURL=index-BvZCYMxA.js.map