@seedprotocol/sdk 0.7.8 → 0.7.9-next.1177.ga3e08ed
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.
- package/README.md +1 -1
- package/dist/{ClientManager-B1r_8P5Z.js → ClientManager-GZfXErDX.js} +187 -1451
- package/dist/ClientManager-GZfXErDX.js.map +1 -0
- package/dist/{Item-CjTEShfk.js → Item-0oDoTPhi.js} +175 -238
- package/dist/Item-0oDoTPhi.js.map +1 -0
- package/dist/{ModelProperty-C3749Wjq.js → ModelProperty-i5flwzQG.js} +41 -40
- package/dist/ModelProperty-i5flwzQG.js.map +1 -0
- package/dist/{Schema-CX9CTtho.js → Schema-PFZwG9Nl.js} +88 -1623
- package/dist/Schema-PFZwG9Nl.js.map +1 -0
- package/dist/{SchemaValidationService-T5mqnY8q.js → SchemaValidationService-DnGKel4V.js} +7 -6
- package/dist/{SchemaValidationService-T5mqnY8q.js.map → SchemaValidationService-DnGKel4V.js.map} +1 -1
- package/dist/{backfillMetadataPropertyIds-DWWkh-Ex.js → backfillMetadataPropertyIds-BbxgavEQ.js} +4 -4
- package/dist/{backfillMetadataPropertyIds-DWWkh-Ex.js.map → backfillMetadataPropertyIds-BbxgavEQ.js.map} +1 -1
- package/dist/{changeFeed-DcsZ7deG.js → changeFeed-DKdVlUmt.js} +8 -7
- package/dist/changeFeed-DKdVlUmt.js.map +1 -0
- package/dist/configurePlatform-CrMafpMW.js +29 -0
- package/dist/configurePlatform-CrMafpMW.js.map +1 -0
- package/dist/db/drizzle/0024_merge_republished_ghost_seeds.sql +29 -0
- package/dist/db/drizzle/meta/0024_snapshot.json +1645 -0
- package/dist/db/drizzle/meta/_journal.json +7 -0
- package/dist/{detachRowsBeforeDelete-Bo_pky-R.js → detachRowsBeforeDelete-DXFYSHRR.js} +2 -3
- package/dist/{detachRowsBeforeDelete-Bo_pky-R.js.map → detachRowsBeforeDelete-DXFYSHRR.js.map} +1 -1
- package/dist/dist/{ClientManager-B1r_8P5Z.d.ts → ClientManager-GZfXErDX.d.ts} +323 -406
- package/dist/dist/ClientManager-GZfXErDX.d.ts.map +1 -0
- package/dist/dist/{Item-CjTEShfk.d.ts → Item-0oDoTPhi.d.ts} +85 -91
- package/dist/dist/Item-0oDoTPhi.d.ts.map +1 -0
- package/dist/dist/{ModelProperty-C3749Wjq.d.ts → ModelProperty-i5flwzQG.d.ts} +1 -1
- package/dist/dist/{ModelProperty-C3749Wjq.d.ts.map → ModelProperty-i5flwzQG.d.ts.map} +1 -1
- package/dist/dist/{Schema-CX9CTtho.d.ts → Schema-PFZwG9Nl.d.ts} +7 -183
- package/dist/dist/Schema-PFZwG9Nl.d.ts.map +1 -0
- package/dist/dist/{SchemaValidationService-T5mqnY8q.d.ts → SchemaValidationService-DnGKel4V.d.ts} +1 -1
- package/dist/dist/{SchemaValidationService-T5mqnY8q.d.ts.map → SchemaValidationService-DnGKel4V.d.ts.map} +1 -1
- package/dist/dist/{backfillMetadataPropertyIds-DWWkh-Ex.d.ts → backfillMetadataPropertyIds-BbxgavEQ.d.ts} +1 -1
- package/dist/dist/backfillMetadataPropertyIds-BbxgavEQ.d.ts.map +1 -0
- package/dist/dist/{changeFeed-DcsZ7deG.d.ts → changeFeed-DKdVlUmt.d.ts} +17 -20
- package/dist/dist/changeFeed-DKdVlUmt.d.ts.map +1 -0
- package/dist/dist/configurePlatform-CrMafpMW.d.ts +5 -0
- package/dist/dist/configurePlatform-CrMafpMW.d.ts.map +1 -0
- package/dist/dist/{detachRowsBeforeDelete-Bo_pky-R.d.ts → detachRowsBeforeDelete-DXFYSHRR.d.ts} +1 -1
- package/dist/dist/detachRowsBeforeDelete-DXFYSHRR.d.ts.map +1 -0
- package/dist/dist/{eas--9vtNkma.d.ts → eas-dyepi5jz.d.ts} +1 -1
- package/dist/dist/eas-dyepi5jz.d.ts.map +1 -0
- package/dist/dist/{errors-Do7v6RKu.d.ts → errors-C1qUEZ7A.d.ts} +5 -2
- package/dist/dist/errors-C1qUEZ7A.d.ts.map +1 -0
- package/dist/dist/{errors-rIWK7gwJ.d.ts → errors-D1zHAqjr.d.ts} +1 -1
- package/dist/dist/{errors-rIWK7gwJ.d.ts.map → errors-D1zHAqjr.d.ts.map} +1 -1
- package/dist/dist/eventBus-7vxTCc3a.d.ts +18 -0
- package/dist/dist/eventBus-7vxTCc3a.d.ts.map +1 -0
- package/dist/dist/findSeedRowsByUid-CT3sOXXw.d.ts +13 -0
- package/dist/dist/findSeedRowsByUid-CT3sOXXw.d.ts.map +1 -0
- package/dist/dist/{getItem-5j22EWWE.d.ts → getItem-Bhjecbia.d.ts} +1 -1
- package/dist/dist/getItem-Bhjecbia.d.ts.map +1 -0
- package/dist/dist/{getPublishPayload-BGl2SaGK.d.ts → getPublishPayload-DH4rMqXG.d.ts} +1 -1
- package/dist/dist/getPublishPayload-DH4rMqXG.d.ts.map +1 -0
- package/dist/dist/{getPublishUploads-DVsDx6Xf.d.ts → getPublishUploads-BzUIDA2G.d.ts} +5 -5
- package/dist/dist/getPublishUploads-BzUIDA2G.d.ts.map +1 -0
- package/dist/dist/index-CkYb3wcU.d.ts +14 -0
- package/dist/dist/index-CkYb3wcU.d.ts.map +1 -0
- package/dist/dist/{index-Dp4uyZYx.d.ts → index-DJmWkVIK.d.ts} +5 -5
- package/dist/dist/index-DJmWkVIK.d.ts.map +1 -0
- package/dist/dist/{index-C0SetTd1.d.ts → index-Dx_GTdyQ.d.ts} +1457 -1513
- package/dist/dist/index-Dx_GTdyQ.d.ts.map +1 -0
- package/dist/dist/{index-CZQrNqvq.d.ts → index-PbnKw2es.d.ts} +1 -1
- package/dist/dist/{index-CZQrNqvq.d.ts.map → index-PbnKw2es.d.ts.map} +1 -1
- package/dist/dist/{index.browser-Ll71Y_Dl.d.ts → index.browser-i9uPJice.d.ts} +13 -40
- package/dist/dist/{index.browser-Ll71Y_Dl.d.ts.map → index.browser-i9uPJice.d.ts.map} +1 -1
- package/dist/dist/{index.node-CgltN0cC.d.ts → index.node-CzMwMr_d.d.ts} +2 -45
- package/dist/dist/{index.node-CgltN0cC.d.ts.map → index.node-CzMwMr_d.d.ts.map} +1 -1
- package/dist/dist/minimumUpgradeVersion-BDhHvHtr.d.ts +9 -0
- package/dist/dist/minimumUpgradeVersion-BDhHvHtr.d.ts.map +1 -0
- package/dist/dist/{modelPropertyRecordSchemas-C_lYTzMr.d.ts → modelPropertyRecordSchemas-C5lW9aA-.d.ts} +1 -1
- package/dist/dist/modelPropertyRecordSchemas-C5lW9aA-.d.ts.map +1 -0
- package/dist/dist/platform.browser.d.ts +2 -2
- package/dist/dist/platform.node.d.ts +2 -2
- package/dist/dist/{property-pcDxNEpy.d.ts → property-BwYtg5Q_.d.ts} +3 -3
- package/dist/dist/property-BwYtg5Q_.d.ts.map +1 -0
- package/dist/dist/{propertyValidationRules-BEjN0f3-.d.ts → propertyValidationRules-CyHdpcPP.d.ts} +1 -1
- package/dist/dist/propertyValidationRules-CyHdpcPP.d.ts.map +1 -0
- package/dist/dist/{publishDraftGraph-I5yKe1Xz.d.ts → publishDraftGraph-C5F6b7GK.d.ts} +23 -6
- package/dist/dist/publishDraftGraph-C5F6b7GK.d.ts.map +1 -0
- package/dist/dist/{resolveModelForSyncedSeed-C5KXn6ex.d.ts → resolveModelForSyncedSeed-4gO9Hfn2.d.ts} +1 -1
- package/dist/dist/resolveModelForSyncedSeed-4gO9Hfn2.d.ts.map +1 -0
- package/dist/dist/syncDbWithEas-DUu_wjUG.d.ts +13 -0
- package/dist/dist/syncDbWithEas-DUu_wjUG.d.ts.map +1 -0
- package/dist/dist/{tolerantWebAccess-CIpS7RLk.d.ts → tolerantWebAccess-DecKDGen.d.ts} +1 -1
- package/dist/dist/{tolerantWebAccess-CIpS7RLk.d.ts.map → tolerantWebAccess-DecKDGen.d.ts.map} +1 -1
- package/dist/dist/{updateSeedRevokedAt-CR4zwn-6.d.ts → updateSeedRevokedAt-CP606vKs.d.ts} +1 -1
- package/dist/dist/updateSeedRevokedAt-CP606vKs.d.ts.map +1 -0
- package/dist/{eas--9vtNkma.js → eas-dyepi5jz.js} +3 -4
- package/dist/eas-dyepi5jz.js.map +1 -0
- package/dist/{errors-Do7v6RKu.js → errors-C1qUEZ7A.js} +12 -6
- package/dist/errors-C1qUEZ7A.js.map +1 -0
- package/dist/{errors-rIWK7gwJ.js → errors-D1zHAqjr.js} +46 -98
- package/dist/errors-D1zHAqjr.js.map +1 -0
- package/dist/eventBus-7vxTCc3a.js +64 -0
- package/dist/eventBus-7vxTCc3a.js.map +1 -0
- package/dist/findSeedRowsByUid-CT3sOXXw.js +47 -0
- package/dist/findSeedRowsByUid-CT3sOXXw.js.map +1 -0
- package/dist/{getItem-5j22EWWE.js → getItem-Bhjecbia.js} +5 -5
- package/dist/{getItem-5j22EWWE.js.map → getItem-Bhjecbia.js.map} +1 -1
- package/dist/{getPublishPayload-BGl2SaGK.js → getPublishPayload-DH4rMqXG.js} +27 -27
- package/dist/getPublishPayload-DH4rMqXG.js.map +1 -0
- package/dist/{getPublishUploads-DVsDx6Xf.js → getPublishUploads-BzUIDA2G.js} +64 -95
- package/dist/getPublishUploads-BzUIDA2G.js.map +1 -0
- package/dist/{index-CJK3F_MK.js → index-CkYb3wcU.js} +9 -8
- package/dist/index-CkYb3wcU.js.map +1 -0
- package/dist/{index-Dp4uyZYx.js → index-DJmWkVIK.js} +9 -8
- package/dist/index-DJmWkVIK.js.map +1 -0
- package/dist/{index-C0SetTd1.js → index-Dx_GTdyQ.js} +27 -463
- package/dist/index-Dx_GTdyQ.js.map +1 -0
- package/dist/{index-CZQrNqvq.js → index-PbnKw2es.js} +2 -2
- package/dist/index-PbnKw2es.js.map +1 -0
- package/dist/{index.browser-Ll71Y_Dl.js → index.browser-i9uPJice.js} +239 -179
- package/dist/index.browser-i9uPJice.js.map +1 -0
- package/dist/{index.node-CgltN0cC.js → index.node-CzMwMr_d.js} +51 -216
- package/dist/index.node-CzMwMr_d.js.map +1 -0
- package/dist/main.js +165 -241
- package/dist/main.js.map +1 -1
- package/dist/minimumUpgradeVersion-BDhHvHtr.js +81 -0
- package/dist/minimumUpgradeVersion-BDhHvHtr.js.map +1 -0
- package/dist/{modelPropertyRecordSchemas-C_lYTzMr.js → modelPropertyRecordSchemas-C5lW9aA-.js} +5 -5
- package/dist/{modelPropertyRecordSchemas-C_lYTzMr.js.map → modelPropertyRecordSchemas-C5lW9aA-.js.map} +1 -1
- package/dist/node.js +14 -221
- package/dist/node.js.map +1 -1
- package/dist/platform.browser.js +8 -7
- package/dist/platform.browser.js.map +1 -1
- package/dist/platform.node.js +7 -7
- package/dist/{property-pcDxNEpy.js → property-BwYtg5Q_.js} +8 -9
- package/dist/property-BwYtg5Q_.js.map +1 -0
- package/dist/{propertyValidationRules-BEjN0f3-.js → propertyValidationRules-CyHdpcPP.js} +10 -10
- package/dist/{propertyValidationRules-BEjN0f3-.js.map → propertyValidationRules-CyHdpcPP.js.map} +1 -1
- package/dist/{publishDraftGraph-I5yKe1Xz.js → publishDraftGraph-C5F6b7GK.js} +104 -35
- package/dist/publishDraftGraph-C5F6b7GK.js.map +1 -0
- package/dist/{resolveModelForSyncedSeed-C5KXn6ex.js → resolveModelForSyncedSeed-4gO9Hfn2.js} +3 -2
- package/dist/{resolveModelForSyncedSeed-C5KXn6ex.js.map → resolveModelForSyncedSeed-4gO9Hfn2.js.map} +1 -1
- package/dist/seedSchema/PendingWriteSchema.ts +3 -2
- package/dist/src/Item/Item.d.ts +1 -0
- package/dist/src/Item/Item.d.ts.map +1 -1
- package/dist/src/Item/service/actors/runPublish.d.ts.map +1 -1
- package/dist/src/ItemProperty/ItemProperty.d.ts +2 -2
- package/dist/src/ItemProperty/ItemProperty.d.ts.map +1 -1
- package/dist/src/ItemProperty/service/propertyMachine.d.ts +1 -1
- package/dist/src/ItemProperty/service/propertyMachine.d.ts.map +1 -1
- package/dist/src/Model/Model.d.ts.map +1 -1
- package/dist/src/Model/service/modelMachine.d.ts +0 -20
- package/dist/src/Model/service/modelMachine.d.ts.map +1 -1
- package/dist/src/ModelProperty/service/modelPropertyMachine.d.ts +0 -20
- package/dist/src/ModelProperty/service/modelPropertyMachine.d.ts.map +1 -1
- package/dist/src/Schema/service/schemaMachine.d.ts +1 -107
- package/dist/src/Schema/service/schemaMachine.d.ts.map +1 -1
- package/dist/src/Schema/validation.d.ts +0 -1
- package/dist/src/Schema/validation.d.ts.map +1 -1
- package/dist/src/browser/db/Db.d.ts +8 -3
- package/dist/src/browser/db/Db.d.ts.map +1 -1
- package/dist/src/browser/db/createSqlocalDrizzle.d.ts +20 -2
- package/dist/src/browser/db/createSqlocalDrizzle.d.ts.map +1 -1
- package/dist/src/browser/db/drizzleFiles.d.ts +3 -2
- package/dist/src/browser/db/drizzleFiles.d.ts.map +1 -1
- package/dist/src/browser/workers/FileDownloader.d.ts +1 -1
- package/dist/src/browser/workers/FileDownloader.d.ts.map +1 -1
- package/dist/src/browser/workers/filesDownload.d.ts.map +1 -1
- package/dist/src/client/actors/fileSystemInit.d.ts.map +1 -1
- package/dist/src/client/actors/platformClassesInit.d.ts +1 -1
- package/dist/src/client/actors/platformClassesInit.d.ts.map +1 -1
- package/dist/src/client/actors/processSchemaFiles.d.ts.map +1 -1
- package/dist/src/client/clientManagerMachine.d.ts.map +1 -1
- package/dist/src/client/constants.d.ts +0 -51
- package/dist/src/client/constants.d.ts.map +1 -1
- package/dist/src/db/minimumUpgradeVersion.d.ts +33 -0
- package/dist/src/db/minimumUpgradeVersion.d.ts.map +1 -0
- package/dist/src/db/read/batchLatestPublishedVersionBySeedLocalIds.d.ts +2 -1
- package/dist/src/db/read/batchLatestPublishedVersionBySeedLocalIds.d.ts.map +1 -1
- package/dist/src/db/read/findSeedRowsByUid.d.ts +13 -0
- package/dist/src/db/read/findSeedRowsByUid.d.ts.map +1 -0
- package/dist/src/db/read/getItemData.d.ts.map +1 -1
- package/dist/src/db/read/getLatestPublishedVersionRow.d.ts +2 -1
- package/dist/src/db/read/getLatestPublishedVersionRow.d.ts.map +1 -1
- package/dist/src/db/read/getLatestVersionRow.d.ts +1 -1
- package/dist/src/db/read/getLatestVersionRow.d.ts.map +1 -1
- package/dist/src/db/read/getPublishPayload.d.ts +4 -0
- package/dist/src/db/read/getPublishPayload.d.ts.map +1 -1
- package/dist/src/db/read/getPublishUploads.d.ts +1 -3
- package/dist/src/db/read/getPublishUploads.d.ts.map +1 -1
- package/dist/src/db/read/getRelatedItemsForPublish.d.ts +2 -0
- package/dist/src/db/read/getRelatedItemsForPublish.d.ts.map +1 -1
- package/dist/src/db/read/itemLoads.d.ts +20 -0
- package/dist/src/db/read/itemLoads.d.ts.map +1 -0
- package/dist/src/db/read/publishDraftGraph.d.ts +7 -0
- package/dist/src/db/read/publishDraftGraph.d.ts.map +1 -1
- package/dist/src/db/read/resolveRelatedSeedRef.d.ts +4 -4
- package/dist/src/db/read/resolveRelatedSeedRef.d.ts.map +1 -1
- package/dist/src/db/read/subqueries/latestVersion.d.ts +14 -0
- package/dist/src/db/read/subqueries/latestVersion.d.ts.map +1 -0
- package/dist/src/db/read/subqueries/versionData.d.ts +2 -2
- package/dist/src/db/read/subqueries/versionData.d.ts.map +1 -1
- package/dist/src/db/read/summarizePublishWork.d.ts.map +1 -1
- package/dist/src/db/write/applyPropertyAttestationUidsFromPublish.d.ts +6 -0
- package/dist/src/db/write/applyPropertyAttestationUidsFromPublish.d.ts.map +1 -1
- package/dist/src/db/write/easSyncProcess.d.ts +1 -1
- package/dist/src/db/write/easSyncProcess.d.ts.map +1 -1
- package/dist/src/db/write/updateVersionUid.d.ts +2 -2
- package/dist/src/db/write/updateVersionUid.d.ts.map +1 -1
- package/dist/src/events/files/download.d.ts +1 -10
- package/dist/src/events/files/download.d.ts.map +1 -1
- package/dist/src/events/item/easSyncManager.d.ts +0 -1
- package/dist/src/events/item/easSyncManager.d.ts.map +1 -1
- package/dist/src/events/item/index.d.ts.map +1 -1
- package/dist/src/events/item/syncDbWithEas.d.ts +0 -10
- package/dist/src/events/item/syncDbWithEas.d.ts.map +1 -1
- package/dist/src/helpers/FileManager/BaseFileManager.d.ts +1 -1
- package/dist/src/helpers/FileManager/BaseFileManager.d.ts.map +1 -1
- package/dist/src/helpers/FileManager/IFileManager.d.ts +7 -0
- package/dist/src/helpers/FileManager/IFileManager.d.ts.map +1 -1
- package/dist/src/helpers/FileManager/errors.d.ts +4 -1
- package/dist/src/helpers/FileManager/errors.d.ts.map +1 -1
- package/dist/src/helpers/arweaveContentTags.d.ts +1 -2
- package/dist/src/helpers/arweaveContentTags.d.ts.map +1 -1
- package/dist/src/helpers/constants.d.ts +3 -12
- package/dist/src/helpers/constants.d.ts.map +1 -1
- package/dist/src/helpers/db.d.ts +3 -28
- package/dist/src/helpers/db.d.ts.map +1 -1
- package/dist/src/helpers/ethereumUtils.d.ts +0 -2
- package/dist/src/helpers/ethereumUtils.d.ts.map +1 -1
- package/dist/src/helpers/htmlEmbeddedDataUriPublish.d.ts +2 -1
- package/dist/src/helpers/htmlEmbeddedDataUriPublish.d.ts.map +1 -1
- package/dist/src/helpers/index.d.ts +0 -7
- package/dist/src/helpers/index.d.ts.map +1 -1
- package/dist/src/helpers/itemStorageFile.d.ts +2 -2
- package/dist/src/helpers/reconcilePropertyDraftRows.d.ts +2 -1
- package/dist/src/helpers/reconcilePropertyDraftRows.d.ts.map +1 -1
- package/dist/src/helpers/schema.d.ts +0 -73
- package/dist/src/helpers/schema.d.ts.map +1 -1
- package/dist/src/helpers/updateSchema.d.ts +0 -46
- package/dist/src/helpers/updateSchema.d.ts.map +1 -1
- package/dist/src/imports/index.d.ts +0 -1
- package/dist/src/imports/index.d.ts.map +1 -1
- package/dist/src/imports/json.d.ts +2 -1
- package/dist/src/imports/json.d.ts.map +1 -1
- package/dist/src/index.d.ts +4 -6
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/node/db/Db.d.ts.map +1 -1
- package/dist/src/node/helpers/dotSeedDir.d.ts +7 -0
- package/dist/src/node/helpers/dotSeedDir.d.ts.map +1 -0
- package/dist/src/node/index.d.ts +0 -5
- package/dist/src/node/index.d.ts.map +1 -1
- package/dist/src/outbox/index.d.ts +1 -1
- package/dist/src/outbox/index.d.ts.map +1 -1
- package/dist/src/outbox/itemAppliers.d.ts.map +1 -1
- package/dist/src/outbox/outbox.d.ts +3 -19
- package/dist/src/outbox/outbox.d.ts.map +1 -1
- package/dist/src/platform/configurePlatform.d.ts.map +1 -1
- package/dist/src/platform/index.browser.d.ts.map +1 -1
- package/dist/src/platform/index.node.d.ts.map +1 -1
- package/dist/src/platform/types.d.ts +0 -2
- package/dist/src/platform/types.d.ts.map +1 -1
- package/dist/src/query/createLocalQueryDataSource.d.ts.map +1 -1
- package/dist/src/seedSchema/PendingWriteSchema.d.ts.map +1 -1
- package/dist/src/services/write/actors/validateEntity.d.ts +1 -1
- package/dist/src/services/write/actors/validateEntity.d.ts.map +1 -1
- package/dist/src/services/write/actors/writeToDatabase.d.ts.map +1 -1
- package/dist/src/services/write/writeProcessMachine.d.ts +1 -23
- package/dist/src/services/write/writeProcessMachine.d.ts.map +1 -1
- package/dist/src/stores/eas.d.ts +0 -1
- package/dist/src/stores/eas.d.ts.map +1 -1
- package/dist/src/types/index.d.ts +1 -18
- package/dist/src/types/index.d.ts.map +1 -1
- package/dist/src/types/machines.d.ts +1 -32
- package/dist/src/types/machines.d.ts.map +1 -1
- package/dist/{syncDbWithEas-b4fESZ7C.js → syncDbWithEas-DUu_wjUG.js} +37 -105
- package/dist/syncDbWithEas-DUu_wjUG.js.map +1 -0
- package/dist/{tolerantWebAccess-CIpS7RLk.js → tolerantWebAccess-DecKDGen.js} +9 -8
- package/dist/{tolerantWebAccess-CIpS7RLk.js.map → tolerantWebAccess-DecKDGen.js.map} +1 -1
- package/dist/{updateSeedRevokedAt-CR4zwn-6.js → updateSeedRevokedAt-CP606vKs.js} +3 -3
- package/dist/{updateSeedRevokedAt-CR4zwn-6.js.map → updateSeedRevokedAt-CP606vKs.js.map} +1 -1
- package/package.json +6 -8
- package/dist/ClientManager-B1r_8P5Z.js.map +0 -1
- package/dist/Item-CjTEShfk.js.map +0 -1
- package/dist/ModelProperty-C3749Wjq.js.map +0 -1
- package/dist/Schema-CX9CTtho.js.map +0 -1
- package/dist/changeFeed-DcsZ7deG.js.map +0 -1
- package/dist/configurePlatform-AWild9o4.js +0 -81
- package/dist/configurePlatform-AWild9o4.js.map +0 -1
- package/dist/dist/ClientManager-B1r_8P5Z.d.ts.map +0 -1
- package/dist/dist/Item-CjTEShfk.d.ts.map +0 -1
- package/dist/dist/Schema-CX9CTtho.d.ts.map +0 -1
- package/dist/dist/backfillMetadataPropertyIds-DWWkh-Ex.d.ts.map +0 -1
- package/dist/dist/changeFeed-DcsZ7deG.d.ts.map +0 -1
- package/dist/dist/configurePlatform-AWild9o4.d.ts +0 -30
- package/dist/dist/configurePlatform-AWild9o4.d.ts.map +0 -1
- package/dist/dist/detachRowsBeforeDelete-Bo_pky-R.d.ts.map +0 -1
- package/dist/dist/eas--9vtNkma.d.ts.map +0 -1
- package/dist/dist/errors-Do7v6RKu.d.ts.map +0 -1
- package/dist/dist/getItem-5j22EWWE.d.ts.map +0 -1
- package/dist/dist/getPublishPayload-BGl2SaGK.d.ts.map +0 -1
- package/dist/dist/getPublishUploads-DVsDx6Xf.d.ts.map +0 -1
- package/dist/dist/index-C0SetTd1.d.ts.map +0 -1
- package/dist/dist/index-CJK3F_MK.d.ts +0 -14
- package/dist/dist/index-CJK3F_MK.d.ts.map +0 -1
- package/dist/dist/index-Dp4uyZYx.d.ts.map +0 -1
- package/dist/dist/modelPropertyRecordSchemas-C_lYTzMr.d.ts.map +0 -1
- package/dist/dist/property-pcDxNEpy.d.ts.map +0 -1
- package/dist/dist/propertyValidationRules-BEjN0f3-.d.ts.map +0 -1
- package/dist/dist/publishDraftGraph-I5yKe1Xz.d.ts.map +0 -1
- package/dist/dist/resetAmbiguousLegacyItemData-0Tin9-JK.d.ts +0 -17
- package/dist/dist/resetAmbiguousLegacyItemData-0Tin9-JK.d.ts.map +0 -1
- package/dist/dist/resolveModelForSyncedSeed-C5KXn6ex.d.ts.map +0 -1
- package/dist/dist/syncDbWithEas-b4fESZ7C.d.ts +0 -22
- package/dist/dist/syncDbWithEas-b4fESZ7C.d.ts.map +0 -1
- package/dist/dist/updateSeedRevokedAt-CR4zwn-6.d.ts.map +0 -1
- package/dist/eas--9vtNkma.js.map +0 -1
- package/dist/errors-Do7v6RKu.js.map +0 -1
- package/dist/errors-rIWK7gwJ.js.map +0 -1
- package/dist/getPublishPayload-BGl2SaGK.js.map +0 -1
- package/dist/getPublishUploads-DVsDx6Xf.js.map +0 -1
- package/dist/index-C0SetTd1.js.map +0 -1
- package/dist/index-CJK3F_MK.js.map +0 -1
- package/dist/index-CZQrNqvq.js.map +0 -1
- package/dist/index-Dp4uyZYx.js.map +0 -1
- package/dist/index.browser-Ll71Y_Dl.js.map +0 -1
- package/dist/index.node-CgltN0cC.js.map +0 -1
- package/dist/property-pcDxNEpy.js.map +0 -1
- package/dist/publishDraftGraph-I5yKe1Xz.js.map +0 -1
- package/dist/resetAmbiguousLegacyItemData-0Tin9-JK.js +0 -98
- package/dist/resetAmbiguousLegacyItemData-0Tin9-JK.js.map +0 -1
- package/dist/src/Schema/service/actors/loadOrCreateSchema.d.ts +0 -5
- package/dist/src/Schema/service/actors/loadOrCreateSchema.d.ts.map +0 -1
- package/dist/src/browser/db/sqlWasmClient.d.ts +0 -1
- package/dist/src/browser/db/sqlWasmClient.d.ts.map +0 -1
- package/dist/src/browser/helpers/PathResolver.d.ts +0 -41
- package/dist/src/browser/helpers/PathResolver.d.ts.map +0 -1
- package/dist/src/browser/index.d.ts +0 -3
- package/dist/src/browser/index.d.ts.map +0 -1
- package/dist/src/browser/seed.d.ts +0 -21
- package/dist/src/browser/seed.d.ts.map +0 -1
- package/dist/src/browser/workers/content-hash.d.ts +0 -2
- package/dist/src/browser/workers/content-hash.d.ts.map +0 -1
- package/dist/src/browser/workers/dbWorker.d.ts +0 -1
- package/dist/src/browser/workers/dbWorker.d.ts.map +0 -1
- package/dist/src/client/BaseClientManager.d.ts +0 -7
- package/dist/src/client/BaseClientManager.d.ts.map +0 -1
- package/dist/src/client/actions/setAddresses.d.ts +0 -2
- package/dist/src/client/actions/setAddresses.d.ts.map +0 -1
- package/dist/src/db/alignRowPublishers.d.ts +0 -25
- package/dist/src/db/alignRowPublishers.d.ts.map +0 -1
- package/dist/src/db/clearStoredDisplayUrls.d.ts +0 -18
- package/dist/src/db/clearStoredDisplayUrls.d.ts.map +0 -1
- package/dist/src/db/migrateLegacyItemStorageRows.d.ts +0 -57
- package/dist/src/db/migrateLegacyItemStorageRows.d.ts.map +0 -1
- package/dist/src/db/read/getExistingItem.d.ts +0 -12
- package/dist/src/db/read/getExistingItem.d.ts.map +0 -1
- package/dist/src/db/read/getModels.d.ts +0 -5
- package/dist/src/db/read/getModels.d.ts.map +0 -1
- package/dist/src/db/read/getVersionsForVersionUids.d.ts +0 -10
- package/dist/src/db/read/getVersionsForVersionUids.d.ts.map +0 -1
- package/dist/src/db/removeForeignAttestationRows.d.ts +0 -27
- package/dist/src/db/removeForeignAttestationRows.d.ts.map +0 -1
- package/dist/src/db/resetAmbiguousLegacyItemData.d.ts +0 -17
- package/dist/src/db/resetAmbiguousLegacyItemData.d.ts.map +0 -1
- package/dist/src/db/write/applyArweaveL1TransactionIdLocal.d.ts +0 -14
- package/dist/src/db/write/applyArweaveL1TransactionIdLocal.d.ts.map +0 -1
- package/dist/src/db/write/convertVerbatimItemStorageRow.d.ts +0 -44
- package/dist/src/db/write/convertVerbatimItemStorageRow.d.ts.map +0 -1
- package/dist/src/db/write/restoreDataItemIdsOverwrittenByL1.d.ts +0 -18
- package/dist/src/db/write/restoreDataItemIdsOverwrittenByL1.d.ts.map +0 -1
- package/dist/src/db/write/saveAppState.d.ts +0 -2
- package/dist/src/db/write/saveAppState.d.ts.map +0 -1
- package/dist/src/eslint-rules/align-imports.d.ts +0 -12
- package/dist/src/eslint-rules/align-imports.d.ts.map +0 -1
- package/dist/src/events/files/index.d.ts +0 -4
- package/dist/src/events/files/index.d.ts.map +0 -1
- package/dist/src/events/index.d.ts +0 -13
- package/dist/src/events/index.d.ts.map +0 -1
- package/dist/src/events/services/allItems.d.ts +0 -6
- package/dist/src/events/services/allItems.d.ts.map +0 -1
- package/dist/src/events/services/index.d.ts +0 -3
- package/dist/src/events/services/index.d.ts.map +0 -1
- package/dist/src/helpers/ArweaveClient/index.d.ts +0 -30
- package/dist/src/helpers/ArweaveClient/index.d.ts.map +0 -1
- package/dist/src/helpers/PathResolver/BasePathResolver.d.ts +0 -26
- package/dist/src/helpers/PathResolver/BasePathResolver.d.ts.map +0 -1
- package/dist/src/helpers/PathResolver/IPathResolver.d.ts +0 -16
- package/dist/src/helpers/PathResolver/IPathResolver.d.ts.map +0 -1
- package/dist/src/helpers/easRevokedFilter.d.ts +0 -2
- package/dist/src/helpers/easRevokedFilter.d.ts.map +0 -1
- package/dist/src/helpers/file/fetchAll/actors.d.ts +0 -16
- package/dist/src/helpers/file/fetchAll/actors.d.ts.map +0 -1
- package/dist/src/helpers/file/fetchAll/index.d.ts +0 -58
- package/dist/src/helpers/file/fetchAll/index.d.ts.map +0 -1
- package/dist/src/helpers/files.d.ts +0 -10
- package/dist/src/helpers/files.d.ts.map +0 -1
- package/dist/src/helpers/updateMachineContext.d.ts +0 -7
- package/dist/src/helpers/updateMachineContext.d.ts.map +0 -1
- package/dist/src/imports/markdown.d.ts +0 -40
- package/dist/src/imports/markdown.d.ts.map +0 -1
- package/dist/src/node/constants.d.ts +0 -2
- package/dist/src/node/constants.d.ts.map +0 -1
- package/dist/src/node/db/index.d.ts +0 -5
- package/dist/src/node/db/index.d.ts.map +0 -1
- package/dist/src/node/helpers/PathResolver.d.ts +0 -44
- package/dist/src/node/helpers/PathResolver.d.ts.map +0 -1
- package/dist/src/node/helpers/scripts.d.ts +0 -14
- package/dist/src/node/helpers/scripts.d.ts.map +0 -1
- package/dist/src/node/seed.d.ts +0 -1
- package/dist/src/node/seed.d.ts.map +0 -1
- package/dist/src/node/webpack/fs-proxy.d.ts +0 -4
- package/dist/src/node/webpack/fs-proxy.d.ts.map +0 -1
- package/dist/src/node/webpack/index.d.ts +0 -7
- package/dist/src/node/webpack/index.d.ts.map +0 -1
- package/dist/src/services/events.d.ts +0 -2
- package/dist/src/services/events.d.ts.map +0 -1
- package/dist/src/testing/platformTestHandle.d.ts +0 -8
- package/dist/src/testing/platformTestHandle.d.ts.map +0 -1
- package/dist/src/types/browser.d.ts +0 -24
- package/dist/src/types/browser.d.ts.map +0 -1
- package/dist/src/types/seedProtocol.d.ts +0 -16
- package/dist/src/types/seedProtocol.d.ts.map +0 -1
- package/dist/src/types/services.d.ts +0 -1
- package/dist/src/types/services.d.ts.map +0 -1
- package/dist/syncDbWithEas-b4fESZ7C.js.map +0 -1
|
@@ -1,243 +1,31 @@
|
|
|
1
|
-
declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
src: "addModelsToDb";
|
|
30
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
31
|
-
id: string | undefined;
|
|
32
|
-
} | {
|
|
33
|
-
src: "processSchemaFiles";
|
|
34
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
35
|
-
id: string | undefined;
|
|
36
|
-
} | {
|
|
37
|
-
src: "saveAppState";
|
|
38
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
39
|
-
id: string | undefined;
|
|
40
|
-
}, {
|
|
41
|
-
type: "assignInitError";
|
|
42
|
-
params: import("xstate").NonReducibleUnknown;
|
|
43
|
-
}, never, never, {}, string, {}, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, {
|
|
44
|
-
id?: string | undefined | undefined;
|
|
45
|
-
states?: {} | undefined;
|
|
46
|
-
}, import("xstate").MetaObject>>;
|
|
47
|
-
/**
|
|
48
|
-
* Calls `listener` with the clientManager actor when it changes: `init()` after `stop()`
|
|
49
|
-
* replaces the actor, and `stop()` ends the current one. Subscribe to the actor itself for its
|
|
50
|
-
* state changes. Returns a function that removes the listener.
|
|
51
|
-
*/
|
|
52
|
-
subscribeService: (listener: any) => () => void;
|
|
53
|
-
/**
|
|
54
|
-
* Initialise the SDK. Calls made while an init is running share it. Once initialised, a
|
|
55
|
-
* call with the same config resolves at once and applies any change in `addresses`; a
|
|
56
|
-
* call with a different config throws INIT_CONFIG_CONFLICT_MESSAGE (call stop() first).
|
|
57
|
-
*/
|
|
58
|
-
init: (options: any) => Promise<void>;
|
|
59
|
-
setAddresses: (addresses: any) => Promise<void>;
|
|
60
|
-
getAddresses: () => Promise<{
|
|
61
|
-
owned: any;
|
|
62
|
-
watched: any;
|
|
63
|
-
}>;
|
|
64
|
-
getOwnedAddresses: () => Promise<any>;
|
|
65
|
-
getWatchedAddresses: () => Promise<any>;
|
|
66
|
-
/**
|
|
67
|
-
* Stamp local seeds/versions/metadata that have no publisher and no real uid.
|
|
68
|
-
* Sealed rows (real EAS uid or attestationRaw) are left unchanged.
|
|
69
|
-
* Use after `setAddresses` on connect; `setPublishWallet` does this automatically.
|
|
70
|
-
*/
|
|
71
|
-
claimUnpublishedDrafts: (publisher: any) => Promise<any>;
|
|
72
|
-
/**
|
|
73
|
-
* Hard-delete local on-chain seed copies for the given publisher addresses.
|
|
74
|
-
* Drafts (no uid / attestationRaw) are kept. Chain is untouched; reconnect can rehydrate via syncFromEas.
|
|
75
|
-
*/
|
|
76
|
-
removeLocalCopiesForAddresses: (addresses: any) => Promise<{
|
|
77
|
-
removedSeedLocalIds: any;
|
|
78
|
-
removedSeedUids: any;
|
|
79
|
-
}>;
|
|
80
|
-
/**
|
|
81
|
-
* Syncs item attestations from EAS for the configured models and given addresses.
|
|
82
|
-
* Uses owned + watched addresses from DB when addresses are not provided.
|
|
83
|
-
*/
|
|
84
|
-
syncFromEas: (options: any) => Promise<void>;
|
|
85
|
-
addModel: (modelDef: any) => Promise<void>;
|
|
86
|
-
/**
|
|
87
|
-
* Calls `callback` once the client is initialised, or on the next microtask if it already
|
|
88
|
-
* is. Returns a function that cancels the callback.
|
|
89
|
-
*/
|
|
90
|
-
onReady: (callback: any) => () => void;
|
|
91
|
-
stop: () => void;
|
|
92
|
-
unload: () => void;
|
|
93
|
-
};
|
|
94
|
-
INIT_CONFIG_CONFLICT_MESSAGE: string;
|
|
95
|
-
readonly clientManager: import("xstate").Actor<import("xstate").StateMachine<{}, import("xstate").AnyEventObject, {
|
|
96
|
-
[x: string]: import("xstate").ActorRefFromLogic<import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>> | undefined;
|
|
97
|
-
}, {
|
|
98
|
-
src: "platformClassesInit";
|
|
99
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
100
|
-
id: string | undefined;
|
|
101
|
-
} | {
|
|
102
|
-
src: "fileSystemInit";
|
|
103
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
104
|
-
id: string | undefined;
|
|
105
|
-
} | {
|
|
106
|
-
src: "dbInit";
|
|
107
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
108
|
-
id: string | undefined;
|
|
109
|
-
} | {
|
|
110
|
-
src: "saveConfig";
|
|
111
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
112
|
-
id: string | undefined;
|
|
113
|
-
} | {
|
|
114
|
-
src: "addModelsToStore";
|
|
115
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
116
|
-
id: string | undefined;
|
|
117
|
-
} | {
|
|
118
|
-
src: "addModelsToDb";
|
|
119
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
120
|
-
id: string | undefined;
|
|
121
|
-
} | {
|
|
122
|
-
src: "processSchemaFiles";
|
|
123
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
124
|
-
id: string | undefined;
|
|
125
|
-
} | {
|
|
126
|
-
src: "saveAppState";
|
|
127
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
128
|
-
id: string | undefined;
|
|
129
|
-
}, {
|
|
130
|
-
type: "assignInitError";
|
|
131
|
-
params: import("xstate").NonReducibleUnknown;
|
|
132
|
-
}, never, never, {}, string, {}, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, {
|
|
133
|
-
id?: string | undefined | undefined;
|
|
134
|
-
states?: {} | undefined;
|
|
135
|
-
}, import("xstate").MetaObject>>;
|
|
136
|
-
getClient: () => {
|
|
137
|
-
isInitialized: () => any;
|
|
138
|
-
getService: () => import("xstate").Actor<import("xstate").StateMachine<{}, import("xstate").AnyEventObject, {
|
|
139
|
-
[x: string]: import("xstate").ActorRefFromLogic<import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>> | undefined;
|
|
140
|
-
}, {
|
|
141
|
-
src: "platformClassesInit";
|
|
142
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
143
|
-
id: string | undefined;
|
|
144
|
-
} | {
|
|
145
|
-
src: "fileSystemInit";
|
|
146
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
147
|
-
id: string | undefined;
|
|
148
|
-
} | {
|
|
149
|
-
src: "dbInit";
|
|
150
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
151
|
-
id: string | undefined;
|
|
152
|
-
} | {
|
|
153
|
-
src: "saveConfig";
|
|
154
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
155
|
-
id: string | undefined;
|
|
156
|
-
} | {
|
|
157
|
-
src: "addModelsToStore";
|
|
158
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
159
|
-
id: string | undefined;
|
|
160
|
-
} | {
|
|
161
|
-
src: "addModelsToDb";
|
|
162
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
163
|
-
id: string | undefined;
|
|
164
|
-
} | {
|
|
165
|
-
src: "processSchemaFiles";
|
|
166
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
167
|
-
id: string | undefined;
|
|
168
|
-
} | {
|
|
169
|
-
src: "saveAppState";
|
|
170
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
171
|
-
id: string | undefined;
|
|
172
|
-
}, {
|
|
173
|
-
type: "assignInitError";
|
|
174
|
-
params: import("xstate").NonReducibleUnknown;
|
|
175
|
-
}, never, never, {}, string, {}, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, {
|
|
176
|
-
id?: string | undefined | undefined;
|
|
177
|
-
states?: {} | undefined;
|
|
178
|
-
}, import("xstate").MetaObject>>;
|
|
179
|
-
/**
|
|
180
|
-
* Calls `listener` with the clientManager actor when it changes: `init()` after `stop()`
|
|
181
|
-
* replaces the actor, and `stop()` ends the current one. Subscribe to the actor itself for its
|
|
182
|
-
* state changes. Returns a function that removes the listener.
|
|
183
|
-
*/
|
|
184
|
-
subscribeService: (listener: any) => () => void;
|
|
185
|
-
/**
|
|
186
|
-
* Initialise the SDK. Calls made while an init is running share it. Once initialised, a
|
|
187
|
-
* call with the same config resolves at once and applies any change in `addresses`; a
|
|
188
|
-
* call with a different config throws INIT_CONFIG_CONFLICT_MESSAGE (call stop() first).
|
|
189
|
-
*/
|
|
190
|
-
init: (options: any) => Promise<void>;
|
|
191
|
-
setAddresses: (addresses: any) => Promise<void>;
|
|
192
|
-
getAddresses: () => Promise<{
|
|
193
|
-
owned: any;
|
|
194
|
-
watched: any;
|
|
195
|
-
}>;
|
|
196
|
-
getOwnedAddresses: () => Promise<any>;
|
|
197
|
-
getWatchedAddresses: () => Promise<any>;
|
|
198
|
-
/**
|
|
199
|
-
* Stamp local seeds/versions/metadata that have no publisher and no real uid.
|
|
200
|
-
* Sealed rows (real EAS uid or attestationRaw) are left unchanged.
|
|
201
|
-
* Use after `setAddresses` on connect; `setPublishWallet` does this automatically.
|
|
202
|
-
*/
|
|
203
|
-
claimUnpublishedDrafts: (publisher: any) => Promise<any>;
|
|
204
|
-
/**
|
|
205
|
-
* Hard-delete local on-chain seed copies for the given publisher addresses.
|
|
206
|
-
* Drafts (no uid / attestationRaw) are kept. Chain is untouched; reconnect can rehydrate via syncFromEas.
|
|
207
|
-
*/
|
|
208
|
-
removeLocalCopiesForAddresses: (addresses: any) => Promise<{
|
|
209
|
-
removedSeedLocalIds: any;
|
|
210
|
-
removedSeedUids: any;
|
|
211
|
-
}>;
|
|
212
|
-
/**
|
|
213
|
-
* Syncs item attestations from EAS for the configured models and given addresses.
|
|
214
|
-
* Uses owned + watched addresses from DB when addresses are not provided.
|
|
215
|
-
*/
|
|
216
|
-
syncFromEas: (options: any) => Promise<void>;
|
|
217
|
-
addModel: (modelDef: any) => Promise<void>;
|
|
218
|
-
/**
|
|
219
|
-
* Calls `callback` once the client is initialised, or on the next microtask if it already
|
|
220
|
-
* is. Returns a function that cancels the callback.
|
|
221
|
-
*/
|
|
222
|
-
onReady: (callback: any) => () => void;
|
|
223
|
-
stop: () => void;
|
|
224
|
-
unload: () => void;
|
|
225
|
-
};
|
|
226
|
-
}>;
|
|
227
|
-
/**
|
|
228
|
-
* Thin published-JSON helper: `getSeed` via the local (or auto) query source.
|
|
229
|
-
* Does not touch Item / drafts / liveQuery.
|
|
230
|
-
*
|
|
231
|
-
* Prefer this (or `@seedprotocol/query` `getSeed` / `queryBySchema`) for
|
|
232
|
-
* canonical published Seed JSON. Use `getItemData` / Item for draft-head authoring.
|
|
233
|
-
*/
|
|
234
|
-
declare function getPublishedSeedRecord(seedUid: any, options: any): Promise<import("@seedprotocol/query").GetSeedResult | null>;
|
|
235
|
-
/**
|
|
236
|
-
* Extract the schema name from a schemaId string
|
|
237
|
-
* @param schemaId - Schema ID in the format `${schemaName}-${schemaVersion}`
|
|
238
|
-
* @returns The schema name, or null if the format is invalid
|
|
239
|
-
*/
|
|
240
|
-
declare function getSchemaNameFromId(schemaId: any): string | null;
|
|
1
|
+
declare function listCompleteSchemaFiles(): Promise<{
|
|
2
|
+
name: any;
|
|
3
|
+
version: any;
|
|
4
|
+
filePath: any;
|
|
5
|
+
schemaFileId: any;
|
|
6
|
+
}[]>;
|
|
7
|
+
declare function loadAllSchemasFromDb(): Promise<({
|
|
8
|
+
schema: any;
|
|
9
|
+
isDraft: boolean;
|
|
10
|
+
source: string;
|
|
11
|
+
schemaRecordId: any;
|
|
12
|
+
filePath?: undefined;
|
|
13
|
+
dbMatchesFile?: undefined;
|
|
14
|
+
} | {
|
|
15
|
+
schema: any;
|
|
16
|
+
isDraft: boolean;
|
|
17
|
+
source: string;
|
|
18
|
+
schemaRecordId: any;
|
|
19
|
+
filePath: any;
|
|
20
|
+
dbMatchesFile: boolean;
|
|
21
|
+
} | {
|
|
22
|
+
schema: any;
|
|
23
|
+
isDraft: boolean;
|
|
24
|
+
source: string;
|
|
25
|
+
schemaRecordId: any;
|
|
26
|
+
filePath: any;
|
|
27
|
+
dbMatchesFile?: undefined;
|
|
28
|
+
})[]>;
|
|
241
29
|
declare namespace ClientManager {
|
|
242
30
|
function isInitialized(): any;
|
|
243
31
|
function getService(): import("xstate").Actor<import("xstate").StateMachine<{}, import("xstate").AnyEventObject, {
|
|
@@ -301,37 +89,6 @@ declare namespace ClientManager {
|
|
|
301
89
|
function stop(): void;
|
|
302
90
|
function unload(): void;
|
|
303
91
|
}
|
|
304
|
-
declare function isSeedQueryLocalSourceRegistered(): boolean;
|
|
305
|
-
/** appState key recording which EAS chain the local database holds attestations from. */
|
|
306
|
-
declare const EAS_CHAIN_ID_APP_STATE_KEY: "easChainId";
|
|
307
|
-
declare function listCompleteSchemaFiles(): Promise<{
|
|
308
|
-
name: any;
|
|
309
|
-
version: any;
|
|
310
|
-
filePath: any;
|
|
311
|
-
schemaFileId: any;
|
|
312
|
-
}[]>;
|
|
313
|
-
declare function loadAllSchemasFromDb(): Promise<({
|
|
314
|
-
schema: any;
|
|
315
|
-
isDraft: boolean;
|
|
316
|
-
source: string;
|
|
317
|
-
schemaRecordId: any;
|
|
318
|
-
filePath?: undefined;
|
|
319
|
-
dbMatchesFile?: undefined;
|
|
320
|
-
} | {
|
|
321
|
-
schema: any;
|
|
322
|
-
isDraft: boolean;
|
|
323
|
-
source: string;
|
|
324
|
-
schemaRecordId: any;
|
|
325
|
-
filePath: any;
|
|
326
|
-
dbMatchesFile: boolean;
|
|
327
|
-
} | {
|
|
328
|
-
schema: any;
|
|
329
|
-
isDraft: boolean;
|
|
330
|
-
source: string;
|
|
331
|
-
schemaRecordId: any;
|
|
332
|
-
filePath: any;
|
|
333
|
-
dbMatchesFile?: undefined;
|
|
334
|
-
})[]>;
|
|
335
92
|
/**
|
|
336
93
|
* Merge multiple EAS sync intents: full sync (no concrete address list) wins;
|
|
337
94
|
* otherwise union addresses (first-seen casing).
|
|
@@ -341,15 +98,8 @@ declare function mergeEasSyncRequestIntents(parts: any): {
|
|
|
341
98
|
} | {
|
|
342
99
|
addresses: any[];
|
|
343
100
|
};
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
* Read a schema file by name and version
|
|
347
|
-
* @param name - The name of the schema
|
|
348
|
-
* @param version - The version of the schema
|
|
349
|
-
* @param schemaFileId - Schema file ID (required)
|
|
350
|
-
* @returns The schema object, or null if not found
|
|
351
|
-
*/
|
|
352
|
-
declare function readSchema(name: any, version: any, schemaFileId: any): Promise<any>;
|
|
101
|
+
/** appState key recording which EAS chain the local database holds attestations from. */
|
|
102
|
+
declare const EAS_CHAIN_ID_APP_STATE_KEY: "easChainId";
|
|
353
103
|
/**
|
|
354
104
|
* Register the SDK SQLite/files adapter with `@seedprotocol/query`.
|
|
355
105
|
* Safe to call multiple times; re-registers with a fresh adapter instance.
|
|
@@ -357,8 +107,8 @@ declare function readSchema(name: any, version: any, schemaFileId: any): Promise
|
|
|
357
107
|
*/
|
|
358
108
|
declare function registerSeedQueryLocalSource(options: any): boolean;
|
|
359
109
|
declare function requestEasSyncFromAddressChange(addresses: any): void;
|
|
360
|
-
declare function requestEasSyncFromEventBus(): void;
|
|
361
110
|
declare function requestEasSyncFromModelsInit(): void;
|
|
111
|
+
declare const INIT_CONFIG_CONFLICT_MESSAGE: string;
|
|
362
112
|
declare function sendEasSyncClientRequest(correlationId: any, options: any): void;
|
|
363
113
|
/**
|
|
364
114
|
* Turns retries without an explicit `enabled` on or off; `undefined` restores the default.
|
|
@@ -366,13 +116,15 @@ declare function sendEasSyncClientRequest(correlationId: any, options: any): voi
|
|
|
366
116
|
*/
|
|
367
117
|
declare function setRetriesWhenOnlineEnabled(enabled: any): any;
|
|
368
118
|
declare function startEasSyncActor(): void;
|
|
369
|
-
/** A Relation value names a local seed that doesn't exist. */
|
|
370
|
-
declare class RelationTargetError extends Error {
|
|
371
|
-
constructor(targets: any);
|
|
372
|
-
targets: any;
|
|
373
|
-
}
|
|
374
119
|
/** Unregister local query source (tests / client unload). */
|
|
375
120
|
declare function unregisterSeedQueryLocalSource(): void;
|
|
121
|
+
/**
|
|
122
|
+
* Get the latest version number for a schema by name
|
|
123
|
+
* Only considers complete schema files (with $schema field)
|
|
124
|
+
* @param name - The name of the schema
|
|
125
|
+
* @returns The latest version number, or 0 if no schema found
|
|
126
|
+
*/
|
|
127
|
+
declare function getLatestSchemaVersion(name: any): Promise<any>;
|
|
376
128
|
/**
|
|
377
129
|
* For callers of createModelsFromJson that write the models with addModelsToDb: pass `promise` as its
|
|
378
130
|
* persistedBy and call `settle` once addModelsToDb has run or failed (in a finally). The new models wait
|
|
@@ -392,13 +144,6 @@ declare function createRowsWrittenSignal(): {
|
|
|
392
144
|
* @returns ModelDefinitions object with Model classes
|
|
393
145
|
*/
|
|
394
146
|
declare function createModelsFromJson(importData: any, modelFileIds: any, propertyFileIds: any, persistedBy: any): Promise<{}>;
|
|
395
|
-
/**
|
|
396
|
-
* Get the latest version number for a schema by name
|
|
397
|
-
* Only considers complete schema files (with $schema field)
|
|
398
|
-
* @param name - The name of the schema
|
|
399
|
-
* @returns The latest version number, or 0 if no schema found
|
|
400
|
-
*/
|
|
401
|
-
declare function getLatestSchemaVersion(name: any): Promise<any>;
|
|
402
147
|
/**
|
|
403
148
|
* Convert a JSON model's properties to the schema property format Model.create and addModelsToDb take
|
|
404
149
|
* @param modelName - The name of the model (for error messages)
|
|
@@ -406,21 +151,19 @@ declare function getLatestSchemaVersion(name: any): Promise<any>;
|
|
|
406
151
|
* @param propertyFileIds - Optional map of property names to their file IDs from the JSON file
|
|
407
152
|
*/
|
|
408
153
|
declare function jsonPropertiesToSchemaProperties(modelName: any, modelDef: any, propertyFileIds: any): {};
|
|
154
|
+
/** A Relation value names a local seed that doesn't exist. */
|
|
155
|
+
declare class RelationTargetError extends Error {
|
|
156
|
+
constructor(targets: any);
|
|
157
|
+
targets: any;
|
|
158
|
+
}
|
|
409
159
|
declare var schema: Readonly<{
|
|
410
160
|
__proto__: null;
|
|
411
|
-
createSchema: (schema: any, schemaFileId: any) => Promise<void>;
|
|
412
|
-
deleteSchema: typeof deleteSchema;
|
|
413
|
-
filterLatestSchemas: typeof filterLatestSchemas;
|
|
414
|
-
findSchemaByName: typeof findSchemaByName;
|
|
415
161
|
getLatestSchemaVersion: typeof getLatestSchemaVersion;
|
|
416
162
|
getSchemaNameFromId: typeof getSchemaNameFromId;
|
|
417
163
|
listCompleteSchemaFiles: typeof listCompleteSchemaFiles;
|
|
418
164
|
listLatestSchemaFiles: typeof listLatestSchemaFiles;
|
|
419
165
|
listSchemaFiles: typeof listSchemaFiles;
|
|
420
166
|
loadAllSchemasFromDb: typeof loadAllSchemasFromDb;
|
|
421
|
-
migrateFileSchemasToDb: typeof migrateFileSchemasToDb;
|
|
422
|
-
readSchema: (name: any, version: any, schemaFileId: any) => Promise<any>;
|
|
423
|
-
updateSchema: typeof updateSchema;
|
|
424
167
|
}>;
|
|
425
168
|
declare var SEEDPROTOCOL_Seed_Protocol_v1: Readonly<{
|
|
426
169
|
__proto__: null;
|
|
@@ -637,27 +380,253 @@ declare var SEEDPROTOCOL_Seed_Protocol_v1: Readonly<{
|
|
|
637
380
|
};
|
|
638
381
|
};
|
|
639
382
|
};
|
|
640
|
-
version: number;
|
|
641
|
-
}>;
|
|
642
|
-
declare var conflicts: Readonly<{
|
|
643
|
-
__proto__: null;
|
|
644
|
-
findSetConflict: typeof findSetConflict;
|
|
645
|
-
getItemConflicts: typeof getItemConflicts;
|
|
646
|
-
getPropertyConflict: typeof getPropertyConflict;
|
|
647
|
-
keepLocalDraftsOverSyncedRows: typeof keepLocalDraftsOverSyncedRows;
|
|
648
|
-
markPropertyConflictsResolved: typeof markPropertyConflictsResolved;
|
|
649
|
-
recordPropertyEdit: typeof recordPropertyEdit;
|
|
650
|
-
}>;
|
|
651
|
-
declare var itemAppliers: Readonly<{
|
|
652
|
-
__proto__: null;
|
|
653
|
-
RelationTargetError: typeof RelationTargetError;
|
|
654
|
-
applyCreateItem: typeof applyCreateItem;
|
|
655
|
-
applyDelete: typeof applyDelete;
|
|
656
|
-
applyItemStorageValue: typeof applyItemStorageValue;
|
|
657
|
-
applyStorageValue: typeof applyStorageValue;
|
|
658
|
-
deleteFiles: typeof deleteFiles;
|
|
659
|
-
startItemOutbox: typeof startItemOutbox;
|
|
660
|
-
throwItemWriteError: typeof throwItemWriteError;
|
|
383
|
+
version: number;
|
|
384
|
+
}>;
|
|
385
|
+
declare var conflicts: Readonly<{
|
|
386
|
+
__proto__: null;
|
|
387
|
+
findSetConflict: typeof findSetConflict;
|
|
388
|
+
getItemConflicts: typeof getItemConflicts;
|
|
389
|
+
getPropertyConflict: typeof getPropertyConflict;
|
|
390
|
+
keepLocalDraftsOverSyncedRows: typeof keepLocalDraftsOverSyncedRows;
|
|
391
|
+
markPropertyConflictsResolved: typeof markPropertyConflictsResolved;
|
|
392
|
+
recordPropertyEdit: typeof recordPropertyEdit;
|
|
393
|
+
}>;
|
|
394
|
+
declare var itemAppliers: Readonly<{
|
|
395
|
+
__proto__: null;
|
|
396
|
+
RelationTargetError: typeof RelationTargetError;
|
|
397
|
+
applyCreateItem: typeof applyCreateItem;
|
|
398
|
+
applyDelete: typeof applyDelete;
|
|
399
|
+
applyItemStorageValue: typeof applyItemStorageValue;
|
|
400
|
+
applyStorageValue: typeof applyStorageValue;
|
|
401
|
+
deleteFiles: typeof deleteFiles;
|
|
402
|
+
startItemOutbox: typeof startItemOutbox;
|
|
403
|
+
throwItemWriteError: typeof throwItemWriteError;
|
|
404
|
+
}>;
|
|
405
|
+
declare var ClientManager$1: Readonly<{
|
|
406
|
+
__proto__: null;
|
|
407
|
+
CLIENT_ALREADY_STOPPED_WARNING: string;
|
|
408
|
+
ClientManager: {
|
|
409
|
+
isInitialized: () => any;
|
|
410
|
+
getService: () => import("xstate").Actor<import("xstate").StateMachine<{}, import("xstate").AnyEventObject, {
|
|
411
|
+
[x: string]: import("xstate").ActorRefFromLogic<import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>> | undefined;
|
|
412
|
+
}, {
|
|
413
|
+
src: "platformClassesInit";
|
|
414
|
+
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
415
|
+
id: string | undefined;
|
|
416
|
+
} | {
|
|
417
|
+
src: "fileSystemInit";
|
|
418
|
+
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
419
|
+
id: string | undefined;
|
|
420
|
+
} | {
|
|
421
|
+
src: "dbInit";
|
|
422
|
+
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
423
|
+
id: string | undefined;
|
|
424
|
+
} | {
|
|
425
|
+
src: "saveConfig";
|
|
426
|
+
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
427
|
+
id: string | undefined;
|
|
428
|
+
} | {
|
|
429
|
+
src: "addModelsToStore";
|
|
430
|
+
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
431
|
+
id: string | undefined;
|
|
432
|
+
} | {
|
|
433
|
+
src: "addModelsToDb";
|
|
434
|
+
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
435
|
+
id: string | undefined;
|
|
436
|
+
} | {
|
|
437
|
+
src: "processSchemaFiles";
|
|
438
|
+
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
439
|
+
id: string | undefined;
|
|
440
|
+
} | {
|
|
441
|
+
src: "saveAppState";
|
|
442
|
+
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
443
|
+
id: string | undefined;
|
|
444
|
+
}, {
|
|
445
|
+
type: "assignInitError";
|
|
446
|
+
params: import("xstate").NonReducibleUnknown;
|
|
447
|
+
}, never, never, {}, string, {}, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, {
|
|
448
|
+
id?: string | undefined | undefined;
|
|
449
|
+
states?: {} | undefined;
|
|
450
|
+
}, import("xstate").MetaObject>>;
|
|
451
|
+
/**
|
|
452
|
+
* Calls `listener` with the clientManager actor when it changes: `init()` after `stop()`
|
|
453
|
+
* replaces the actor, and `stop()` ends the current one. Subscribe to the actor itself for its
|
|
454
|
+
* state changes. Returns a function that removes the listener.
|
|
455
|
+
*/
|
|
456
|
+
subscribeService: (listener: any) => () => void;
|
|
457
|
+
/**
|
|
458
|
+
* Initialise the SDK. Calls made while an init is running share it. Once initialised, a
|
|
459
|
+
* call with the same config resolves at once and applies any change in `addresses`; a
|
|
460
|
+
* call with a different config throws INIT_CONFIG_CONFLICT_MESSAGE (call stop() first).
|
|
461
|
+
*/
|
|
462
|
+
init: (options: any) => Promise<void>;
|
|
463
|
+
setAddresses: (addresses: any) => Promise<void>;
|
|
464
|
+
getAddresses: () => Promise<{
|
|
465
|
+
owned: any;
|
|
466
|
+
watched: any;
|
|
467
|
+
}>;
|
|
468
|
+
getOwnedAddresses: () => Promise<any>;
|
|
469
|
+
getWatchedAddresses: () => Promise<any>;
|
|
470
|
+
/**
|
|
471
|
+
* Stamp local seeds/versions/metadata that have no publisher and no real uid.
|
|
472
|
+
* Sealed rows (real EAS uid or attestationRaw) are left unchanged.
|
|
473
|
+
* Use after `setAddresses` on connect; `setPublishWallet` does this automatically.
|
|
474
|
+
*/
|
|
475
|
+
claimUnpublishedDrafts: (publisher: any) => Promise<any>;
|
|
476
|
+
/**
|
|
477
|
+
* Hard-delete local on-chain seed copies for the given publisher addresses.
|
|
478
|
+
* Drafts (no uid / attestationRaw) are kept. Chain is untouched; reconnect can rehydrate via syncFromEas.
|
|
479
|
+
*/
|
|
480
|
+
removeLocalCopiesForAddresses: (addresses: any) => Promise<{
|
|
481
|
+
removedSeedLocalIds: any;
|
|
482
|
+
removedSeedUids: any;
|
|
483
|
+
}>;
|
|
484
|
+
/**
|
|
485
|
+
* Syncs item attestations from EAS for the configured models and given addresses.
|
|
486
|
+
* Uses owned + watched addresses from DB when addresses are not provided.
|
|
487
|
+
*/
|
|
488
|
+
syncFromEas: (options: any) => Promise<void>;
|
|
489
|
+
addModel: (modelDef: any) => Promise<void>;
|
|
490
|
+
/**
|
|
491
|
+
* Calls `callback` once the client is initialised, or on the next microtask if it already
|
|
492
|
+
* is. Returns a function that cancels the callback.
|
|
493
|
+
*/
|
|
494
|
+
onReady: (callback: any) => () => void;
|
|
495
|
+
stop: () => void;
|
|
496
|
+
unload: () => void;
|
|
497
|
+
};
|
|
498
|
+
INIT_CONFIG_CONFLICT_MESSAGE: string;
|
|
499
|
+
readonly clientManager: import("xstate").Actor<import("xstate").StateMachine<{}, import("xstate").AnyEventObject, {
|
|
500
|
+
[x: string]: import("xstate").ActorRefFromLogic<import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>> | undefined;
|
|
501
|
+
}, {
|
|
502
|
+
src: "platformClassesInit";
|
|
503
|
+
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
504
|
+
id: string | undefined;
|
|
505
|
+
} | {
|
|
506
|
+
src: "fileSystemInit";
|
|
507
|
+
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
508
|
+
id: string | undefined;
|
|
509
|
+
} | {
|
|
510
|
+
src: "dbInit";
|
|
511
|
+
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
512
|
+
id: string | undefined;
|
|
513
|
+
} | {
|
|
514
|
+
src: "saveConfig";
|
|
515
|
+
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
516
|
+
id: string | undefined;
|
|
517
|
+
} | {
|
|
518
|
+
src: "addModelsToStore";
|
|
519
|
+
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
520
|
+
id: string | undefined;
|
|
521
|
+
} | {
|
|
522
|
+
src: "addModelsToDb";
|
|
523
|
+
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
524
|
+
id: string | undefined;
|
|
525
|
+
} | {
|
|
526
|
+
src: "processSchemaFiles";
|
|
527
|
+
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
528
|
+
id: string | undefined;
|
|
529
|
+
} | {
|
|
530
|
+
src: "saveAppState";
|
|
531
|
+
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
532
|
+
id: string | undefined;
|
|
533
|
+
}, {
|
|
534
|
+
type: "assignInitError";
|
|
535
|
+
params: import("xstate").NonReducibleUnknown;
|
|
536
|
+
}, never, never, {}, string, {}, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, {
|
|
537
|
+
id?: string | undefined | undefined;
|
|
538
|
+
states?: {} | undefined;
|
|
539
|
+
}, import("xstate").MetaObject>>;
|
|
540
|
+
getClient: () => {
|
|
541
|
+
isInitialized: () => any;
|
|
542
|
+
getService: () => import("xstate").Actor<import("xstate").StateMachine<{}, import("xstate").AnyEventObject, {
|
|
543
|
+
[x: string]: import("xstate").ActorRefFromLogic<import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>> | undefined;
|
|
544
|
+
}, {
|
|
545
|
+
src: "platformClassesInit";
|
|
546
|
+
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
547
|
+
id: string | undefined;
|
|
548
|
+
} | {
|
|
549
|
+
src: "fileSystemInit";
|
|
550
|
+
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
551
|
+
id: string | undefined;
|
|
552
|
+
} | {
|
|
553
|
+
src: "dbInit";
|
|
554
|
+
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
555
|
+
id: string | undefined;
|
|
556
|
+
} | {
|
|
557
|
+
src: "saveConfig";
|
|
558
|
+
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
559
|
+
id: string | undefined;
|
|
560
|
+
} | {
|
|
561
|
+
src: "addModelsToStore";
|
|
562
|
+
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
563
|
+
id: string | undefined;
|
|
564
|
+
} | {
|
|
565
|
+
src: "addModelsToDb";
|
|
566
|
+
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
567
|
+
id: string | undefined;
|
|
568
|
+
} | {
|
|
569
|
+
src: "processSchemaFiles";
|
|
570
|
+
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
571
|
+
id: string | undefined;
|
|
572
|
+
} | {
|
|
573
|
+
src: "saveAppState";
|
|
574
|
+
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
575
|
+
id: string | undefined;
|
|
576
|
+
}, {
|
|
577
|
+
type: "assignInitError";
|
|
578
|
+
params: import("xstate").NonReducibleUnknown;
|
|
579
|
+
}, never, never, {}, string, {}, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, {
|
|
580
|
+
id?: string | undefined | undefined;
|
|
581
|
+
states?: {} | undefined;
|
|
582
|
+
}, import("xstate").MetaObject>>;
|
|
583
|
+
/**
|
|
584
|
+
* Calls `listener` with the clientManager actor when it changes: `init()` after `stop()`
|
|
585
|
+
* replaces the actor, and `stop()` ends the current one. Subscribe to the actor itself for its
|
|
586
|
+
* state changes. Returns a function that removes the listener.
|
|
587
|
+
*/
|
|
588
|
+
subscribeService: (listener: any) => () => void;
|
|
589
|
+
/**
|
|
590
|
+
* Initialise the SDK. Calls made while an init is running share it. Once initialised, a
|
|
591
|
+
* call with the same config resolves at once and applies any change in `addresses`; a
|
|
592
|
+
* call with a different config throws INIT_CONFIG_CONFLICT_MESSAGE (call stop() first).
|
|
593
|
+
*/
|
|
594
|
+
init: (options: any) => Promise<void>;
|
|
595
|
+
setAddresses: (addresses: any) => Promise<void>;
|
|
596
|
+
getAddresses: () => Promise<{
|
|
597
|
+
owned: any;
|
|
598
|
+
watched: any;
|
|
599
|
+
}>;
|
|
600
|
+
getOwnedAddresses: () => Promise<any>;
|
|
601
|
+
getWatchedAddresses: () => Promise<any>;
|
|
602
|
+
/**
|
|
603
|
+
* Stamp local seeds/versions/metadata that have no publisher and no real uid.
|
|
604
|
+
* Sealed rows (real EAS uid or attestationRaw) are left unchanged.
|
|
605
|
+
* Use after `setAddresses` on connect; `setPublishWallet` does this automatically.
|
|
606
|
+
*/
|
|
607
|
+
claimUnpublishedDrafts: (publisher: any) => Promise<any>;
|
|
608
|
+
/**
|
|
609
|
+
* Hard-delete local on-chain seed copies for the given publisher addresses.
|
|
610
|
+
* Drafts (no uid / attestationRaw) are kept. Chain is untouched; reconnect can rehydrate via syncFromEas.
|
|
611
|
+
*/
|
|
612
|
+
removeLocalCopiesForAddresses: (addresses: any) => Promise<{
|
|
613
|
+
removedSeedLocalIds: any;
|
|
614
|
+
removedSeedUids: any;
|
|
615
|
+
}>;
|
|
616
|
+
/**
|
|
617
|
+
* Syncs item attestations from EAS for the configured models and given addresses.
|
|
618
|
+
* Uses owned + watched addresses from DB when addresses are not provided.
|
|
619
|
+
*/
|
|
620
|
+
syncFromEas: (options: any) => Promise<void>;
|
|
621
|
+
addModel: (modelDef: any) => Promise<void>;
|
|
622
|
+
/**
|
|
623
|
+
* Calls `callback` once the client is initialised, or on the next microtask if it already
|
|
624
|
+
* is. Returns a function that cancels the callback.
|
|
625
|
+
*/
|
|
626
|
+
onReady: (callback: any) => () => void;
|
|
627
|
+
stop: () => void;
|
|
628
|
+
unload: () => void;
|
|
629
|
+
};
|
|
661
630
|
}>;
|
|
662
631
|
/** Writes a new item's rows on `db` (see CreateItemOp). */
|
|
663
632
|
declare function applyCreateItem(seedLocalId: any, value: any, db: any): Promise<{
|
|
@@ -748,57 +717,11 @@ declare function loadSchemaFromFile(schemaFilePath: any): Promise<any>;
|
|
|
748
717
|
/** Marks the property's conflicts resolved. */
|
|
749
718
|
declare function markPropertyConflictsResolved(seedLocalId: any, propertyName: any): Promise<void>;
|
|
750
719
|
declare function getContentHash(data: any): Promise<string>;
|
|
751
|
-
/**
|
|
752
|
-
* A legacy ItemStorage draft row: a local edit (no attestation uid, not derived from one) that holds
|
|
753
|
-
* the content itself in property_value, with no file reference. Item.create / createNewItem stored
|
|
754
|
-
* ItemStorage values like this before they went through the save pipeline.
|
|
755
|
-
*/
|
|
756
|
-
declare function isVerbatimItemStorageDraftRow(row: any): boolean;
|
|
757
|
-
/**
|
|
758
|
-
* Convert one legacy ItemStorage draft row (see {@link isVerbatimItemStorageDraftRow}) into the
|
|
759
|
-
* shape saveItemStorage gives a row: the content goes to the file a save would write
|
|
760
|
-
* (`<seedUid or seedLocalId><extension>` in the property's storage directory), and the row records
|
|
761
|
-
* `refResolvedValue`, `localStorageDir` and `refValueType: 'file'` with property_value cleared.
|
|
762
|
-
* Used by publish (resolveItemStorageChildFile) and the one-time migration (migrateLegacyItemStorageRows).
|
|
763
|
-
*
|
|
764
|
-
* Reading the row, writing the file and updating the row happen under the file's lock
|
|
765
|
-
* ({@link withItemStorageFileLock}), which saveItemStorage holds too: a save in this or another tab
|
|
766
|
-
* either finishes before (the row, read again once the lock is held, is no longer legacy and is
|
|
767
|
-
* left alone) or starts after (and overwrites the file and row with its content). Without the lock
|
|
768
|
-
* a save landing between the read and the file write would have its file overwritten with the old
|
|
769
|
-
* content. The row update also stays conditional on the row being unchanged, for writers that
|
|
770
|
-
* don't take the lock (a tab still running an older SDK).
|
|
771
|
-
*
|
|
772
|
-
* Returns undefined when there was nothing to convert. Throws when the file can't be written; the
|
|
773
|
-
* row is then unchanged.
|
|
774
|
-
*/
|
|
775
|
-
declare function convertVerbatimItemStorageRow(localId: any, storage?: {}): Promise<any>;
|
|
776
720
|
/**
|
|
777
721
|
* Call before writing chain data to the local DB (EAS sync, publish, revoke). Records the
|
|
778
722
|
* current chain on an empty DB; throws when the DB holds data from a different chain.
|
|
779
723
|
*/
|
|
780
724
|
declare function assertLocalDbChain(): Promise<void>;
|
|
781
|
-
/**
|
|
782
|
-
* Read and parse a JSON import file
|
|
783
|
-
* Supports two formats:
|
|
784
|
-
* 1. Minimal format: { name: string, models: {...} }
|
|
785
|
-
* 2. Complete schema format: { $schema: string, metadata: { name: string }, models: {...}, ... }
|
|
786
|
-
* @param filePath - Path to the JSON import file
|
|
787
|
-
* @returns The parsed JSON import data normalized to JsonImportSchema format
|
|
788
|
-
* @throws Error if file cannot be read or parsed
|
|
789
|
-
*/
|
|
790
|
-
declare function readJsonImportFile(filePath: any): Promise<{
|
|
791
|
-
models: any;
|
|
792
|
-
nameMatch?: any;
|
|
793
|
-
name: any;
|
|
794
|
-
}>;
|
|
795
|
-
/** Registers the item appliers and starts draining. Safe to call more than once. */
|
|
796
|
-
declare function startItemOutbox(): void;
|
|
797
|
-
/**
|
|
798
|
-
* Rethrows a failed item op's error as its caller expects it: OwnershipError when the drainer
|
|
799
|
-
* refused the op for ownership, else the OutboxOpFailedError as is.
|
|
800
|
-
*/
|
|
801
|
-
declare function throwItemWriteError(error: any): void;
|
|
802
725
|
/**
|
|
803
726
|
* Gives `publisher` to local drafts that belong to no wallet yet: seeds with no publisher, no real
|
|
804
727
|
* uid and no attestationRaw, and those seeds' versions and property rows that are unsealed too.
|
|
@@ -830,17 +753,26 @@ declare function createLocalQueryDataSource(): {
|
|
|
830
753
|
readStorageBody(ref: any): Promise<any>;
|
|
831
754
|
};
|
|
832
755
|
/**
|
|
833
|
-
*
|
|
834
|
-
*
|
|
756
|
+
* Read and parse a JSON import file
|
|
757
|
+
* Supports two formats:
|
|
758
|
+
* 1. Minimal format: { name: string, models: {...} }
|
|
759
|
+
* 2. Complete schema format: { $schema: string, metadata: { name: string }, models: {...}, ... }
|
|
760
|
+
* @param filePath - Path to the JSON import file
|
|
761
|
+
* @returns The parsed JSON import data normalized to JsonImportSchema format
|
|
762
|
+
* @throws Error if file cannot be read or parsed
|
|
835
763
|
*/
|
|
836
|
-
declare function
|
|
764
|
+
declare function readJsonImportFile(filePath: any): Promise<{
|
|
765
|
+
models: any;
|
|
766
|
+
nameMatch?: any;
|
|
767
|
+
name: any;
|
|
768
|
+
}>;
|
|
769
|
+
/** Registers the item appliers and starts draining. Safe to call more than once. */
|
|
770
|
+
declare function startItemOutbox(): void;
|
|
837
771
|
/**
|
|
838
|
-
*
|
|
839
|
-
*
|
|
840
|
-
* @param schemaFileId - Schema file ID (required)
|
|
841
|
-
* @throws Error if schema already exists or if workingDir is invalid
|
|
772
|
+
* Rethrows a failed item op's error as its caller expects it: OwnershipError when the drainer
|
|
773
|
+
* refused the op for ownership, else the OutboxOpFailedError as is.
|
|
842
774
|
*/
|
|
843
|
-
declare function
|
|
775
|
+
declare function throwItemWriteError(error: any): void;
|
|
844
776
|
declare const easSyncActor: import("xstate").Actor<import("xstate").StateMachine<{}, import("xstate").AnyEventObject, {
|
|
845
777
|
[x: string]: import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<any, import("xstate").NonReducibleUnknown, import("xstate").EventObject>> | undefined;
|
|
846
778
|
}, {
|
|
@@ -946,26 +878,25 @@ declare function getClient(): {
|
|
|
946
878
|
unload: () => void;
|
|
947
879
|
};
|
|
948
880
|
/**
|
|
949
|
-
*
|
|
950
|
-
*
|
|
951
|
-
* @param version - The version of the schema
|
|
952
|
-
* @param schemaFileId - Schema file ID (required)
|
|
953
|
-
* @throws Error if schema doesn't exist
|
|
881
|
+
* Wait until the read chain is known before syncing. Only waits when `@seedprotocol/publish`
|
|
882
|
+
* is loaded but `initPublish` has not run, and no chain is configured or recorded locally.
|
|
954
883
|
*/
|
|
955
|
-
declare function
|
|
884
|
+
declare function waitForEasReadChain(timeoutMs?: number): Promise<void>;
|
|
956
885
|
/**
|
|
957
|
-
*
|
|
958
|
-
*
|
|
959
|
-
*
|
|
960
|
-
*
|
|
886
|
+
* Thin published-JSON helper: `getSeed` via the local (or auto) query source.
|
|
887
|
+
* Does not touch Item / drafts / liveQuery.
|
|
888
|
+
*
|
|
889
|
+
* Prefer this (or `@seedprotocol/query` `getSeed` / `queryBySchema`) for
|
|
890
|
+
* canonical published Seed JSON. Use `getItemData` / Item for draft-head authoring.
|
|
961
891
|
*/
|
|
962
|
-
declare function
|
|
892
|
+
declare function getPublishedSeedRecord(seedUid: any, options: any): Promise<import("@seedprotocol/query").GetSeedResult | null>;
|
|
963
893
|
/**
|
|
964
|
-
*
|
|
965
|
-
* @param
|
|
966
|
-
* @returns The schema
|
|
894
|
+
* Extract the schema name from a schemaId string
|
|
895
|
+
* @param schemaId - Schema ID in the format `${schemaName}-${schemaVersion}`
|
|
896
|
+
* @returns The schema name, or null if the format is invalid
|
|
967
897
|
*/
|
|
968
|
-
declare function
|
|
898
|
+
declare function getSchemaNameFromId(schemaId: any): string | null;
|
|
899
|
+
declare function isSeedQueryLocalSourceRegistered(): boolean;
|
|
969
900
|
/**
|
|
970
901
|
* Get only the latest version of each schema
|
|
971
902
|
* @returns Array of objects containing name, version, and file path for the latest version of each schema
|
|
@@ -982,20 +913,6 @@ declare function listSchemaFiles(): Promise<{
|
|
|
982
913
|
version: number;
|
|
983
914
|
filePath: any;
|
|
984
915
|
}[]>;
|
|
985
|
-
/**
|
|
986
|
-
* Migration helper: Migrate existing file-based schemas to the database
|
|
987
|
-
* This function should be called once to migrate existing schema files to the new database-first approach
|
|
988
|
-
* All existing schemas will be marked as published (isDraft = false) since they already exist in files
|
|
989
|
-
* @returns Number of schemas migrated
|
|
990
|
-
*/
|
|
991
|
-
declare function migrateFileSchemasToDb(): Promise<number>;
|
|
992
|
-
/**
|
|
993
|
-
* Update an existing schema file
|
|
994
|
-
* @param schema - The updated schema object (must have same name and version as existing)
|
|
995
|
-
* @param schemaFileId - Schema file ID (required)
|
|
996
|
-
* @throws Error if schema doesn't exist
|
|
997
|
-
*/
|
|
998
|
-
declare function updateSchema(schema: any, schemaFileId: any): Promise<void>;
|
|
999
916
|
/**
|
|
1000
917
|
* Conflicts between a local edit and a value sync wrote after it (ADR 0019). The local edit wins:
|
|
1001
918
|
* a pending edit applies over the synced row as a new draft, and a draft already written stays the
|
|
@@ -1031,5 +948,5 @@ declare function keepLocalDraftsOverSyncedRows(synced: any): Promise<void>;
|
|
|
1031
948
|
* local edit settles them (it was made with the synced value in view, or overrides it again).
|
|
1032
949
|
*/
|
|
1033
950
|
declare function recordPropertyEdit(op: any, conflict: any, db: any): Promise<void>;
|
|
1034
|
-
export {
|
|
1035
|
-
//# sourceMappingURL=ClientManager-
|
|
951
|
+
export { listCompleteSchemaFiles as A, loadAllSchemasFromDb as B, ClientManager as C, mergeEasSyncRequestIntents as D, EAS_CHAIN_ID_APP_STATE_KEY as E, registerSeedQueryLocalSource as F, requestEasSyncFromAddressChange as G, requestEasSyncFromModelsInit as H, INIT_CONFIG_CONFLICT_MESSAGE as I, sendEasSyncClientRequest as J, setRetriesWhenOnlineEnabled as K, startEasSyncActor as L, unregisterSeedQueryLocalSource as M, getLatestSchemaVersion as N, createRowsWrittenSignal as O, createModelsFromJson as P, jsonPropertiesToSchemaProperties as Q, RelationTargetError as R, schema as S, SEEDPROTOCOL_Seed_Protocol_v1 as T, conflicts as U, itemAppliers as V, ClientManager$1 as W, applyCreateItem as a, applyDelete as b, applyItemStorageValue as c, deleteFiles as d, applyStorageValue as e, getPropertyConflict as f, getItemConflicts as g, getRefValueType as h, importJsonSchema as i, syncSchemaFromSource as j, transformImportToSchemaFile as k, loadSchemaFromFile as l, markPropertyConflictsResolved as m, getContentHash as n, assertLocalDbChain as o, claimUnpublishedDrafts as p, createLocalQueryDataSource as q, readJsonImportFile as r, startItemOutbox as s, throwItemWriteError as t, easSyncActor as u, getClient as v, waitForEasReadChain as w, getPublishedSeedRecord as x, getSchemaNameFromId as y, isSeedQueryLocalSourceRegistered as z };
|
|
952
|
+
//# sourceMappingURL=ClientManager-GZfXErDX.d.ts.map
|