@seedprotocol/sdk 0.7.9-next.1189.g5e63267 → 0.7.9
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/dist/BaseFileManager-BAlySv8w.js +650 -0
- package/dist/BaseFileManager-BAlySv8w.js.map +1 -0
- package/dist/{Item-CG5IhPtL.js → Item-Bf4kWKpH.js} +5576 -6649
- package/dist/Item-Bf4kWKpH.js.map +1 -0
- package/dist/{ModelProperty-DDD47KVm.js → ModelProperty-BlaEgb_U.js} +345 -709
- package/dist/ModelProperty-BlaEgb_U.js.map +1 -0
- package/dist/Schema-J_1f6p0c.js +1456 -0
- package/dist/Schema-J_1f6p0c.js.map +1 -0
- package/dist/{SchemaValidationService-CZzKNL04.js → SchemaValidationService-CnmKyzR-.js} +6 -9
- package/dist/{SchemaValidationService-CZzKNL04.js.map → SchemaValidationService-CnmKyzR-.js.map} +1 -1
- package/dist/{configurePlatform-Dukm2QwO.js → configurePlatform-CiOJ1R3q.js} +3 -12
- package/dist/configurePlatform-CiOJ1R3q.js.map +1 -0
- package/dist/db/drizzle/0026_add_content_hash_to_schemas.sql +1 -0
- package/dist/db/drizzle/0027_link_metadata_property_ids.sql +74 -0
- package/dist/db/drizzle/0028_add_definition_to_properties.sql +17 -0
- package/dist/db/drizzle/0029_dedupe_chain_uids_add_unique_indexes.sql +120 -0
- package/dist/db/drizzle/meta/0026_snapshot.json +1659 -0
- package/dist/db/drizzle/meta/0027_snapshot.json +1659 -0
- package/dist/db/drizzle/meta/0028_snapshot.json +1666 -0
- package/dist/db/drizzle/meta/0029_snapshot.json +1691 -0
- package/dist/db/drizzle/meta/_journal.json +29 -1
- package/dist/{detachRowsBeforeDelete-Di1enVUF.js → detachRowsBeforeDelete-sEaUwlOU.js} +2 -13
- package/dist/{detachRowsBeforeDelete-Di1enVUF.js.map → detachRowsBeforeDelete-sEaUwlOU.js.map} +1 -1
- package/dist/dist/{index-rOTW-2QZ.d.ts → BaseFileManager-BAlySv8w.d.ts} +1407 -2700
- package/dist/dist/BaseFileManager-BAlySv8w.d.ts.map +1 -0
- package/dist/dist/{configurePlatform-Dukm2QwO.d.ts → configurePlatform-CiOJ1R3q.d.ts} +1 -1
- package/dist/dist/configurePlatform-CiOJ1R3q.d.ts.map +1 -0
- package/dist/dist/{index-DxHpPNfn.d.ts → index-D0V-mjCV.d.ts} +39 -1
- package/dist/dist/{index-DxHpPNfn.d.ts.map → index-D0V-mjCV.d.ts.map} +1 -1
- package/dist/dist/{index.node-WsEJCOwC.d.ts → index.node-CYPemH-t.d.ts} +157 -5
- package/dist/dist/{index.node-WsEJCOwC.d.ts.map → index.node-CYPemH-t.d.ts.map} +1 -1
- package/dist/dist/platform.node.d.ts +2 -2
- package/dist/eas-wB_fQ8Tc.js +32 -0
- package/dist/eas-wB_fQ8Tc.js.map +1 -0
- package/dist/errors-DLSoqSHG.js +6550 -0
- package/dist/errors-DLSoqSHG.js.map +1 -0
- package/dist/getPublishPayload-BnIwpwz1.js +760 -0
- package/dist/getPublishPayload-BnIwpwz1.js.map +1 -0
- package/dist/getPublishPendingDiff-D6_-A5ns.js +125 -0
- package/dist/getPublishPendingDiff-D6_-A5ns.js.map +1 -0
- package/dist/getPublishUploads-sS6JfPgz.js +783 -0
- package/dist/getPublishUploads-sS6JfPgz.js.map +1 -0
- package/dist/{index-DQoyhp2c.js → index-BVBmz_cc.js} +11 -14
- package/dist/index-BVBmz_cc.js.map +1 -0
- package/dist/index-CYGWPoOx.js +27 -0
- package/dist/index-CYGWPoOx.js.map +1 -0
- package/dist/{index-DxHpPNfn.js → index-D0V-mjCV.js} +2 -2
- package/dist/index-D0V-mjCV.js.map +1 -0
- package/dist/index-DmTtj1nk.js +817 -0
- package/dist/index-DmTtj1nk.js.map +1 -0
- package/dist/{index.browser-QPWBkLJA.js → index.browser-CUmBVYen.js} +397 -356
- package/dist/index.browser-CUmBVYen.js.map +1 -0
- package/dist/{index.node-WsEJCOwC.js → index.node-CYPemH-t.js} +10 -10
- package/dist/index.node-CYPemH-t.js.map +1 -0
- package/dist/main.js +23 -1075
- package/dist/main.js.map +1 -1
- package/dist/modelPropertyRecordSchemas-C7UgA5TH.js +48 -0
- package/dist/modelPropertyRecordSchemas-C7UgA5TH.js.map +1 -0
- package/dist/node.js +14 -18
- package/dist/node.js.map +1 -1
- package/dist/platform.browser.js +8 -13
- package/dist/platform.browser.js.map +1 -1
- package/dist/platform.node.js +6 -16
- package/dist/platform.node.js.map +1 -1
- package/dist/property-BxUYznH0.js +87 -0
- package/dist/property-BxUYznH0.js.map +1 -0
- package/dist/publishGraph-EcB40Uii.js +311 -0
- package/dist/publishGraph-EcB40Uii.js.map +1 -0
- package/dist/readHtmlBodyForStorageSeed-D6KPtWoR.js +110 -0
- package/dist/readHtmlBodyForStorageSeed-D6KPtWoR.js.map +1 -0
- package/dist/seedSchema/ModelSchema.ts +4 -0
- package/dist/seedSchema/ModelSchemaSchema.ts +5 -2
- package/dist/seedSchema/PendingWriteSchema.ts +4 -1
- package/dist/seedSchema/SchemaSchema.ts +3 -0
- package/dist/seedSchema/SeedSchema.ts +8 -2
- package/dist/seedSchema/VersionSchema.ts +7 -2
- package/dist/seedSchema/attestedUid.ts +10 -0
- package/dist/src/Item/Item.d.ts +32 -30
- package/dist/src/Item/Item.d.ts.map +1 -1
- package/dist/src/Item/loadItem.d.ts +12 -0
- package/dist/src/Item/loadItem.d.ts.map +1 -0
- package/dist/src/Item/service/itemMachineSingle.d.ts +2 -13
- package/dist/src/Item/service/itemMachineSingle.d.ts.map +1 -1
- package/dist/src/ItemProperty/ItemProperty.d.ts +77 -46
- package/dist/src/ItemProperty/ItemProperty.d.ts.map +1 -1
- package/dist/src/ItemProperty/loadProperty.d.ts +11 -0
- package/dist/src/ItemProperty/loadProperty.d.ts.map +1 -0
- package/dist/src/ItemProperty/propertyWrite.d.ts +54 -0
- package/dist/src/ItemProperty/propertyWrite.d.ts.map +1 -0
- package/dist/src/ItemProperty/{service/actors/saveValueToDb/rowContext.d.ts → rowContext.d.ts} +1 -1
- package/dist/src/ItemProperty/rowContext.d.ts.map +1 -0
- package/dist/src/ItemProperty/service/actors/hydrateFromDb.d.ts +6 -0
- package/dist/src/ItemProperty/service/actors/hydrateFromDb.d.ts.map +1 -1
- package/dist/src/ItemProperty/service/actors/modelPropertyRecordSchemas.d.ts +5 -15
- package/dist/src/ItemProperty/service/actors/modelPropertyRecordSchemas.d.ts.map +1 -1
- package/dist/src/ItemProperty/service/propertyMachine.d.ts +4 -50
- package/dist/src/ItemProperty/service/propertyMachine.d.ts.map +1 -1
- package/dist/src/Model/Model.d.ts +26 -56
- package/dist/src/Model/Model.d.ts.map +1 -1
- package/dist/src/Model/createModelProperties.d.ts +10 -0
- package/dist/src/Model/createModelProperties.d.ts.map +1 -0
- package/dist/src/Model/loadModel.d.ts +13 -0
- package/dist/src/Model/loadModel.d.ts.map +1 -0
- package/dist/src/Model/service/actors/validateModel.d.ts.map +1 -1
- package/dist/src/Model/service/modelMachine.d.ts +5 -114
- package/dist/src/Model/service/modelMachine.d.ts.map +1 -1
- package/dist/src/ModelProperty/ModelProperty.d.ts +44 -37
- package/dist/src/ModelProperty/ModelProperty.d.ts.map +1 -1
- package/dist/src/ModelProperty/service/actors/compareAndMarkDraft.d.ts.map +1 -1
- package/dist/src/ModelProperty/service/actors/validateProperty.d.ts.map +1 -1
- package/dist/src/ModelProperty/service/modelPropertyMachine.d.ts +6 -77
- package/dist/src/ModelProperty/service/modelPropertyMachine.d.ts.map +1 -1
- package/dist/src/Schema/Schema.d.ts +36 -37
- package/dist/src/Schema/Schema.d.ts.map +1 -1
- package/dist/src/Schema/loadOrCreateSchema.d.ts +21 -0
- package/dist/src/Schema/loadOrCreateSchema.d.ts.map +1 -0
- package/dist/src/Schema/service/schemaMachine.d.ts +7 -125
- package/dist/src/Schema/service/schemaMachine.d.ts.map +1 -1
- package/dist/src/browser/db/Db.d.ts.map +1 -1
- package/dist/src/browser/db/changeFeed.d.ts +2 -18
- package/dist/src/browser/db/changeFeed.d.ts.map +1 -1
- package/dist/src/browser/db/drizzleFiles.d.ts +6 -2
- package/dist/src/browser/db/drizzleFiles.d.ts.map +1 -1
- package/dist/src/browser/workers/filesDownload.d.ts.map +1 -1
- package/dist/src/browser/workers/imageResize.d.ts.map +1 -1
- package/dist/src/client/ClientManager.d.ts +90 -57
- package/dist/src/client/ClientManager.d.ts.map +1 -1
- package/dist/src/client/actors/addModelsToDb.d.ts +9 -7
- package/dist/src/client/actors/addModelsToDb.d.ts.map +1 -1
- package/dist/src/client/actors/dbInit.d.ts +3 -3
- package/dist/src/client/actors/dbInit.d.ts.map +1 -1
- package/dist/src/client/actors/fileSystemInit.d.ts +3 -3
- package/dist/src/client/actors/fileSystemInit.d.ts.map +1 -1
- package/dist/src/client/actors/platformClassesInit.d.ts +10 -5
- package/dist/src/client/actors/platformClassesInit.d.ts.map +1 -1
- package/dist/src/client/actors/processSchemaFiles.d.ts +18 -3
- package/dist/src/client/actors/processSchemaFiles.d.ts.map +1 -1
- package/dist/src/client/actors/saveConfig.d.ts +6 -3
- package/dist/src/client/actors/saveConfig.d.ts.map +1 -1
- package/dist/src/client/clientManagerMachine.d.ts +22 -20
- package/dist/src/client/clientManagerMachine.d.ts.map +1 -1
- package/dist/src/client/constants.d.ts +1 -9
- package/dist/src/client/constants.d.ts.map +1 -1
- package/dist/src/client/readiness.d.ts +26 -0
- package/dist/src/client/readiness.d.ts.map +1 -0
- package/dist/src/db/read/currentPropertyRow.d.ts +61 -0
- package/dist/src/db/read/currentPropertyRow.d.ts.map +1 -0
- package/dist/src/db/read/findSeedRow.d.ts +20 -0
- package/dist/src/db/read/findSeedRow.d.ts.map +1 -0
- package/dist/src/db/read/findSeedRowsByUid.d.ts +4 -1
- package/dist/src/db/read/findSeedRowsByUid.d.ts.map +1 -1
- package/dist/src/db/read/getAttesterForSeed.d.ts +1 -1
- package/dist/src/db/read/getAttesterForSeed.d.ts.map +1 -1
- package/dist/src/db/read/getItemData.d.ts.map +1 -1
- package/dist/src/db/read/getItemProperties.d.ts +5 -0
- package/dist/src/db/read/getItemProperties.d.ts.map +1 -1
- package/dist/src/db/read/getMetadataAttestationUidsForSeedUid.d.ts.map +1 -1
- package/dist/src/db/read/getModelSchemas.d.ts +0 -7
- package/dist/src/db/read/getModelSchemas.d.ts.map +1 -1
- package/dist/src/db/read/getModelsData.d.ts.map +1 -1
- package/dist/src/db/read/getPropertyClear.d.ts +5 -1
- package/dist/src/db/read/getPropertyClear.d.ts.map +1 -1
- package/dist/src/db/read/getPublishPayload.d.ts +35 -40
- package/dist/src/db/read/getPublishPayload.d.ts.map +1 -1
- package/dist/src/db/read/getPublishPendingDiff.d.ts +2 -2
- package/dist/src/db/read/getPublishPendingDiff.d.ts.map +1 -1
- package/dist/src/db/read/getPublishUploads.d.ts +59 -28
- package/dist/src/db/read/getPublishUploads.d.ts.map +1 -1
- package/dist/src/db/read/getSchemaUidForModel.d.ts.map +1 -1
- package/dist/src/db/read/getSeedPublishState.d.ts.map +1 -1
- package/dist/src/db/read/getSeedPublisher.d.ts.map +1 -1
- package/dist/src/db/read/getVersionsForSeedUid.d.ts.map +1 -1
- package/dist/src/db/read/isSeedRevoked.d.ts.map +1 -1
- package/dist/src/db/read/localModelSchemaLookups.d.ts +8 -0
- package/dist/src/db/read/localModelSchemaLookups.d.ts.map +1 -0
- package/dist/src/db/read/metadataProperty.d.ts +104 -0
- package/dist/src/db/read/metadataProperty.d.ts.map +1 -0
- package/dist/src/db/read/publishGraph.d.ts +148 -0
- package/dist/src/db/read/publishGraph.d.ts.map +1 -0
- package/dist/src/db/read/resolveModelRecord.d.ts +26 -2
- package/dist/src/db/read/resolveModelRecord.d.ts.map +1 -1
- package/dist/src/db/read/resolveRelatedSeedRef.d.ts +1 -7
- package/dist/src/db/read/resolveRelatedSeedRef.d.ts.map +1 -1
- package/dist/src/db/read/subqueries/metadataLatest.d.ts +3 -1
- package/dist/src/db/read/subqueries/metadataLatest.d.ts.map +1 -1
- package/dist/src/db/read/summarizePublishWork.d.ts +13 -5
- package/dist/src/db/read/summarizePublishWork.d.ts.map +1 -1
- package/dist/src/db/write/applyPropertyAttestationUidsFromPublish.d.ts +20 -21
- package/dist/src/db/write/applyPropertyAttestationUidsFromPublish.d.ts.map +1 -1
- package/dist/src/db/write/createMetadata.d.ts.map +1 -1
- package/dist/src/db/write/createNewItem.d.ts.map +1 -1
- package/dist/src/db/write/createSeeds.d.ts +5 -1
- package/dist/src/db/write/createSeeds.d.ts.map +1 -1
- package/dist/src/db/write/definitions.d.ts +127 -0
- package/dist/src/db/write/definitions.d.ts.map +1 -0
- package/dist/src/db/write/mergeChainRows.d.ts +22 -0
- package/dist/src/db/write/mergeChainRows.d.ts.map +1 -0
- package/dist/src/db/write/saveDefinition.d.ts +29 -0
- package/dist/src/db/write/saveDefinition.d.ts.map +1 -0
- package/dist/src/db/write/updateSeedUid.d.ts +4 -2
- package/dist/src/db/write/updateSeedUid.d.ts.map +1 -1
- package/dist/src/db/write/updateVersionUid.d.ts +12 -4
- package/dist/src/db/write/updateVersionUid.d.ts.map +1 -1
- package/dist/src/db/write/writeModelUids.d.ts +10 -0
- package/dist/src/db/write/writeModelUids.d.ts.map +1 -0
- package/dist/src/eas.d.ts +8 -6
- package/dist/src/eas.d.ts.map +1 -1
- package/dist/src/events/files/download.d.ts.map +1 -1
- package/dist/src/events/item/syncDbWithEas.d.ts.map +1 -1
- package/dist/src/helpers/arweaveContentTags.d.ts +1 -1
- package/dist/src/helpers/arweaveContentTags.d.ts.map +1 -1
- package/dist/src/helpers/compareMetadataRowsLatestFirst.d.ts +18 -3
- package/dist/src/helpers/compareMetadataRowsLatestFirst.d.ts.map +1 -1
- package/dist/src/helpers/constants.d.ts +5 -2
- package/dist/src/helpers/constants.d.ts.map +1 -1
- package/dist/src/helpers/dataUrl.d.ts +10 -0
- package/dist/src/helpers/dataUrl.d.ts.map +1 -0
- package/dist/src/helpers/db.d.ts +54 -105
- package/dist/src/helpers/db.d.ts.map +1 -1
- package/dist/src/helpers/ensureImageLocal.d.ts.map +1 -1
- package/dist/src/helpers/entity/contextUpdate.d.ts +20 -0
- package/dist/src/helpers/entity/contextUpdate.d.ts.map +1 -0
- package/dist/src/helpers/entity/draftSaveErrors.d.ts +5 -0
- package/dist/src/helpers/entity/draftSaveErrors.d.ts.map +1 -1
- package/dist/src/helpers/entity/entityCache.d.ts +65 -3
- package/dist/src/helpers/entity/entityCache.d.ts.map +1 -1
- package/dist/src/helpers/entity/entityCommon.d.ts +0 -22
- package/dist/src/helpers/entity/entityCommon.d.ts.map +1 -1
- package/dist/src/helpers/entity/entityLifecycle.d.ts +75 -0
- package/dist/src/helpers/entity/entityLifecycle.d.ts.map +1 -0
- package/dist/src/helpers/entity/entityLiveQuery.d.ts +1 -23
- package/dist/src/helpers/entity/entityLiveQuery.d.ts.map +1 -1
- package/dist/src/helpers/htmlEmbeddedDataUriPublish.d.ts +4 -9
- package/dist/src/helpers/htmlEmbeddedDataUriPublish.d.ts.map +1 -1
- package/dist/src/helpers/index.d.ts +2 -24
- package/dist/src/helpers/index.d.ts.map +1 -1
- package/dist/src/helpers/localImageBlobUrl.d.ts +7 -0
- package/dist/src/helpers/localImageBlobUrl.d.ts.map +1 -0
- package/dist/src/helpers/mediaRef.d.ts +3 -70
- package/dist/src/helpers/mediaRef.d.ts.map +1 -1
- package/dist/src/helpers/metadataPropertyNames.d.ts +34 -26
- package/dist/src/helpers/metadataPropertyNames.d.ts.map +1 -1
- package/dist/src/helpers/mimeTypes.d.ts +2 -1
- package/dist/src/helpers/mimeTypes.d.ts.map +1 -1
- package/dist/src/helpers/model.d.ts.map +1 -1
- package/dist/src/helpers/ownership.d.ts.map +1 -1
- package/dist/src/helpers/property.d.ts +21 -26
- package/dist/src/helpers/property.d.ts.map +1 -1
- package/dist/src/helpers/propertyDefinition.d.ts +59 -0
- package/dist/src/helpers/propertyDefinition.d.ts.map +1 -0
- package/dist/src/helpers/readHtmlBodyForStorageSeed.d.ts.map +1 -1
- package/dist/src/helpers/relationSeedRef.d.ts +0 -7
- package/dist/src/helpers/relationSeedRef.d.ts.map +1 -1
- package/dist/src/helpers/schema.d.ts +24 -38
- package/dist/src/helpers/schema.d.ts.map +1 -1
- package/dist/src/helpers/schemaApply.d.ts +135 -0
- package/dist/src/helpers/schemaApply.d.ts.map +1 -0
- package/dist/src/helpers/tabEvents.d.ts.map +1 -1
- package/dist/src/helpers/updateSchema.d.ts +2 -18
- package/dist/src/helpers/updateSchema.d.ts.map +1 -1
- package/dist/src/imports/index.d.ts +1 -1
- package/dist/src/imports/index.d.ts.map +1 -1
- package/dist/src/imports/json.d.ts +8 -78
- package/dist/src/imports/json.d.ts.map +1 -1
- package/dist/src/index.d.ts +13 -13
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/interfaces/IItem.d.ts +5 -0
- package/dist/src/interfaces/IItem.d.ts.map +1 -1
- package/dist/src/interfaces/IItemProperty.d.ts +9 -7
- package/dist/src/interfaces/IItemProperty.d.ts.map +1 -1
- package/dist/src/node/db/Db.d.ts.map +1 -1
- package/dist/src/node/index.d.ts +2 -1
- package/dist/src/node/index.d.ts.map +1 -1
- package/dist/src/outbox/conflicts.d.ts +2 -0
- package/dist/src/outbox/conflicts.d.ts.map +1 -1
- package/dist/src/outbox/itemAppliers.d.ts +63 -14
- package/dist/src/outbox/itemAppliers.d.ts.map +1 -1
- package/dist/src/outbox/outbox.d.ts +14 -3
- package/dist/src/outbox/outbox.d.ts.map +1 -1
- package/dist/src/outbox/pendingValues.d.ts +3 -1
- package/dist/src/outbox/pendingValues.d.ts.map +1 -1
- package/dist/src/outbox/storageValueRow.d.ts +7 -0
- package/dist/src/outbox/storageValueRow.d.ts.map +1 -0
- 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/seedSchema/ModelSchema.d.ts +19 -0
- package/dist/src/seedSchema/ModelSchema.d.ts.map +1 -1
- package/dist/src/seedSchema/ModelSchemaSchema.d.ts.map +1 -1
- package/dist/src/seedSchema/PendingWriteSchema.d.ts.map +1 -1
- package/dist/src/seedSchema/SchemaSchema.d.ts +19 -0
- package/dist/src/seedSchema/SchemaSchema.d.ts.map +1 -1
- package/dist/src/seedSchema/SeedSchema.d.ts.map +1 -1
- package/dist/src/seedSchema/VersionSchema.d.ts.map +1 -1
- package/dist/src/seedSchema/attestedUid.d.ts +9 -0
- package/dist/src/seedSchema/attestedUid.d.ts.map +1 -0
- package/dist/src/storageValue/content.d.ts +45 -0
- package/dist/src/storageValue/content.d.ts.map +1 -0
- package/dist/src/storageValue/findFile.d.ts +7 -0
- package/dist/src/storageValue/findFile.d.ts.map +1 -0
- package/dist/src/storageValue/resolve.d.ts +71 -0
- package/dist/src/storageValue/resolve.d.ts.map +1 -0
- package/dist/src/storageValue/save.d.ts +24 -0
- package/dist/src/storageValue/save.d.ts.map +1 -0
- package/dist/src/storageValue/stage.d.ts +22 -0
- package/dist/src/storageValue/stage.d.ts.map +1 -0
- package/dist/src/types/db.d.ts +0 -14
- package/dist/src/types/db.d.ts.map +1 -1
- package/dist/src/types/index.d.ts +3 -3
- package/dist/src/types/index.d.ts.map +1 -1
- package/dist/src/types/machines.d.ts +1 -1
- package/dist/src/types/machines.d.ts.map +1 -1
- package/dist/src/types/property.d.ts +9 -24
- package/dist/src/types/property.d.ts.map +1 -1
- package/dist/src/types/publish.d.ts +1 -1
- package/dist/src/types/publish.d.ts.map +1 -1
- package/dist/{syncDbWithEas-BMHoou6X.js → syncDbWithEas-CA7PvBgu.js} +112 -162
- package/dist/syncDbWithEas-CA7PvBgu.js.map +1 -0
- package/dist/tabEvents-CaVmngqr.js +3804 -0
- package/dist/tabEvents-CaVmngqr.js.map +1 -0
- package/dist/{tolerantWebAccess-BHndShch.js → tolerantWebAccess-BJqViq08.js} +10 -15
- package/dist/{tolerantWebAccess-BHndShch.js.map → tolerantWebAccess-BJqViq08.js.map} +1 -1
- package/dist/{resolveModelForSyncedSeed-fIURvYRV.js → updateSeedRevokedAt-BL9Bg-G7.js} +30 -4
- package/dist/updateSeedRevokedAt-BL9Bg-G7.js.map +1 -0
- package/package.json +6 -6
- package/dist/ClientManager-DqL0q_eu.js +0 -5292
- package/dist/ClientManager-DqL0q_eu.js.map +0 -1
- package/dist/Item-CG5IhPtL.js.map +0 -1
- package/dist/ModelProperty-DDD47KVm.js.map +0 -1
- package/dist/Schema-BS8oR7QV.js +0 -4370
- package/dist/Schema-BS8oR7QV.js.map +0 -1
- package/dist/backfillMetadataPropertyIds-C7P7FL6F.js +0 -72
- package/dist/backfillMetadataPropertyIds-C7P7FL6F.js.map +0 -1
- package/dist/changeFeed-M8sGbOrW.js +0 -726
- package/dist/changeFeed-M8sGbOrW.js.map +0 -1
- package/dist/configurePlatform-Dukm2QwO.js.map +0 -1
- package/dist/dist/ClientManager-DqL0q_eu.d.ts +0 -952
- package/dist/dist/ClientManager-DqL0q_eu.d.ts.map +0 -1
- package/dist/dist/Item-CG5IhPtL.d.ts +0 -1115
- package/dist/dist/Item-CG5IhPtL.d.ts.map +0 -1
- package/dist/dist/ModelProperty-DDD47KVm.d.ts +0 -315
- package/dist/dist/ModelProperty-DDD47KVm.d.ts.map +0 -1
- package/dist/dist/Schema-BS8oR7QV.d.ts +0 -432
- package/dist/dist/Schema-BS8oR7QV.d.ts.map +0 -1
- package/dist/dist/SchemaValidationService-CZzKNL04.d.ts +0 -118
- package/dist/dist/SchemaValidationService-CZzKNL04.d.ts.map +0 -1
- package/dist/dist/backfillMetadataPropertyIds-C7P7FL6F.d.ts +0 -7
- package/dist/dist/backfillMetadataPropertyIds-C7P7FL6F.d.ts.map +0 -1
- package/dist/dist/changeFeed-M8sGbOrW.d.ts +0 -160
- package/dist/dist/changeFeed-M8sGbOrW.d.ts.map +0 -1
- package/dist/dist/configurePlatform-Dukm2QwO.d.ts.map +0 -1
- package/dist/dist/detachRowsBeforeDelete-Di1enVUF.d.ts +0 -13
- package/dist/dist/detachRowsBeforeDelete-Di1enVUF.d.ts.map +0 -1
- package/dist/dist/eas-B5VJolSj.d.ts +0 -12
- package/dist/dist/eas-B5VJolSj.d.ts.map +0 -1
- package/dist/dist/errors-C1qUEZ7A.d.ts +0 -25
- package/dist/dist/errors-C1qUEZ7A.d.ts.map +0 -1
- package/dist/dist/errors-CS3nDpUU.d.ts +0 -515
- package/dist/dist/errors-CS3nDpUU.d.ts.map +0 -1
- package/dist/dist/eventBus-7vxTCc3a.d.ts +0 -18
- package/dist/dist/eventBus-7vxTCc3a.d.ts.map +0 -1
- package/dist/dist/findSeedRowsByUid-CuQmK7An.d.ts +0 -13
- package/dist/dist/findSeedRowsByUid-CuQmK7An.d.ts.map +0 -1
- package/dist/dist/getItem-Uha3_H0t.d.ts +0 -6
- package/dist/dist/getItem-Uha3_H0t.d.ts.map +0 -1
- package/dist/dist/getPublishPayload-pbin4lk8.d.ts +0 -65
- package/dist/dist/getPublishPayload-pbin4lk8.d.ts.map +0 -1
- package/dist/dist/getPublishPendingDiff-ByIaPvCn.d.ts +0 -18
- package/dist/dist/getPublishPendingDiff-ByIaPvCn.d.ts.map +0 -1
- package/dist/dist/getPublishUploads-BBqiowVc.d.ts +0 -89
- package/dist/dist/getPublishUploads-BBqiowVc.d.ts.map +0 -1
- package/dist/dist/index-DQoyhp2c.d.ts +0 -6
- package/dist/dist/index-DQoyhp2c.d.ts.map +0 -1
- package/dist/dist/index-njjjo74v.d.ts +0 -14
- package/dist/dist/index-njjjo74v.d.ts.map +0 -1
- package/dist/dist/index-rOTW-2QZ.d.ts.map +0 -1
- package/dist/dist/index.browser-QPWBkLJA.d.ts +0 -9959
- package/dist/dist/index.browser-QPWBkLJA.d.ts.map +0 -1
- package/dist/dist/mimeTypes-C9r76DCH.d.ts +0 -30
- package/dist/dist/mimeTypes-C9r76DCH.d.ts.map +0 -1
- package/dist/dist/model-oHA3YhOd.d.ts +0 -6
- package/dist/dist/model-oHA3YhOd.d.ts.map +0 -1
- package/dist/dist/modelPropertyRecordSchemas-onFOG2x6.d.ts +0 -7
- package/dist/dist/modelPropertyRecordSchemas-onFOG2x6.d.ts.map +0 -1
- package/dist/dist/platform.browser.d.ts +0 -3
- package/dist/dist/platform.browser.d.ts.map +0 -1
- package/dist/dist/property-C85DCD7K.d.ts +0 -37
- package/dist/dist/property-C85DCD7K.d.ts.map +0 -1
- package/dist/dist/propertyValidationRules-CjUPOFeu.d.ts +0 -13
- package/dist/dist/propertyValidationRules-CjUPOFeu.d.ts.map +0 -1
- package/dist/dist/publishDraftGraph-DBWAN72w.d.ts +0 -93
- package/dist/dist/publishDraftGraph-DBWAN72w.d.ts.map +0 -1
- package/dist/dist/resolveModelForSyncedSeed-fIURvYRV.d.ts +0 -21
- package/dist/dist/resolveModelForSyncedSeed-fIURvYRV.d.ts.map +0 -1
- package/dist/dist/syncDbWithEas-BMHoou6X.d.ts +0 -13
- package/dist/dist/syncDbWithEas-BMHoou6X.d.ts.map +0 -1
- package/dist/dist/tolerantWebAccess-BHndShch.d.ts +0 -113
- package/dist/dist/tolerantWebAccess-BHndShch.d.ts.map +0 -1
- package/dist/dist/updateSeedRevokedAt-DpfG6ztE.d.ts +0 -11
- package/dist/dist/updateSeedRevokedAt-DpfG6ztE.d.ts.map +0 -1
- package/dist/eas-B5VJolSj.js +0 -67
- package/dist/eas-B5VJolSj.js.map +0 -1
- package/dist/errors-CS3nDpUU.js +0 -4006
- package/dist/errors-CS3nDpUU.js.map +0 -1
- package/dist/eventBus-7vxTCc3a.js +0 -64
- package/dist/eventBus-7vxTCc3a.js.map +0 -1
- package/dist/findSeedRowsByUid-CuQmK7An.js +0 -47
- package/dist/findSeedRowsByUid-CuQmK7An.js.map +0 -1
- package/dist/getItem-Uha3_H0t.js +0 -45
- package/dist/getItem-Uha3_H0t.js.map +0 -1
- package/dist/getPublishPayload-pbin4lk8.js +0 -1736
- package/dist/getPublishPayload-pbin4lk8.js.map +0 -1
- package/dist/getPublishPendingDiff-ByIaPvCn.js +0 -118
- package/dist/getPublishPendingDiff-ByIaPvCn.js.map +0 -1
- package/dist/getPublishUploads-BBqiowVc.js +0 -1080
- package/dist/getPublishUploads-BBqiowVc.js.map +0 -1
- package/dist/index-DQoyhp2c.js.map +0 -1
- package/dist/index-DxHpPNfn.js.map +0 -1
- package/dist/index-njjjo74v.js +0 -29
- package/dist/index-njjjo74v.js.map +0 -1
- package/dist/index-rOTW-2QZ.js +0 -4760
- package/dist/index-rOTW-2QZ.js.map +0 -1
- package/dist/index.browser-QPWBkLJA.js.map +0 -1
- package/dist/index.node-WsEJCOwC.js.map +0 -1
- package/dist/mimeTypes-C9r76DCH.js +0 -209
- package/dist/mimeTypes-C9r76DCH.js.map +0 -1
- package/dist/model-oHA3YhOd.js +0 -29
- package/dist/model-oHA3YhOd.js.map +0 -1
- package/dist/modelPropertyRecordSchemas-onFOG2x6.js +0 -94
- package/dist/modelPropertyRecordSchemas-onFOG2x6.js.map +0 -1
- package/dist/property-C85DCD7K.js +0 -289
- package/dist/property-C85DCD7K.js.map +0 -1
- package/dist/propertyValidationRules-CjUPOFeu.js +0 -73
- package/dist/propertyValidationRules-CjUPOFeu.js.map +0 -1
- package/dist/publishDraftGraph-DBWAN72w.js +0 -505
- package/dist/publishDraftGraph-DBWAN72w.js.map +0 -1
- package/dist/resolveModelForSyncedSeed-fIURvYRV.js.map +0 -1
- package/dist/src/Item/service/actors/loadOrCreateItem.d.ts +0 -5
- package/dist/src/Item/service/actors/loadOrCreateItem.d.ts.map +0 -1
- package/dist/src/Item/service/actors/waitForDb.d.ts +0 -4
- package/dist/src/Item/service/actors/waitForDb.d.ts.map +0 -1
- package/dist/src/ItemProperty/service/actors/loadOrCreateProperty.d.ts +0 -5
- package/dist/src/ItemProperty/service/actors/loadOrCreateProperty.d.ts.map +0 -1
- package/dist/src/ItemProperty/service/actors/saveValueToDb/analyzeInput.d.ts +0 -5
- package/dist/src/ItemProperty/service/actors/saveValueToDb/analyzeInput.d.ts.map +0 -1
- package/dist/src/ItemProperty/service/actors/saveValueToDb/index.d.ts +0 -6
- package/dist/src/ItemProperty/service/actors/saveValueToDb/index.d.ts.map +0 -1
- package/dist/src/ItemProperty/service/actors/saveValueToDb/rowContext.d.ts.map +0 -1
- package/dist/src/ItemProperty/service/actors/saveValueToDb/saveFile.d.ts +0 -24
- package/dist/src/ItemProperty/service/actors/saveValueToDb/saveFile.d.ts.map +0 -1
- package/dist/src/ItemProperty/service/actors/saveValueToDb/saveHtml.d.ts +0 -5
- package/dist/src/ItemProperty/service/actors/saveValueToDb/saveHtml.d.ts.map +0 -1
- package/dist/src/ItemProperty/service/actors/saveValueToDb/saveImage.d.ts +0 -5
- package/dist/src/ItemProperty/service/actors/saveValueToDb/saveImage.d.ts.map +0 -1
- package/dist/src/ItemProperty/service/actors/saveValueToDb/saveItemStorage.d.ts +0 -10
- package/dist/src/ItemProperty/service/actors/saveValueToDb/saveItemStorage.d.ts.map +0 -1
- package/dist/src/ItemProperty/service/actors/saveValueToDb/storageValue.d.ts +0 -22
- package/dist/src/ItemProperty/service/actors/saveValueToDb/storageValue.d.ts.map +0 -1
- package/dist/src/ItemProperty/service/actors/waitForDb.d.ts +0 -4
- package/dist/src/ItemProperty/service/actors/waitForDb.d.ts.map +0 -1
- package/dist/src/Model/service/actors/createModelProperties.d.ts +0 -9
- package/dist/src/Model/service/actors/createModelProperties.d.ts.map +0 -1
- package/dist/src/Model/service/actors/loadOrCreateModel.d.ts +0 -5
- package/dist/src/Model/service/actors/loadOrCreateModel.d.ts.map +0 -1
- package/dist/src/Schema/service/actors/checkExistingSchema.d.ts +0 -5
- package/dist/src/Schema/service/actors/checkExistingSchema.d.ts.map +0 -1
- package/dist/src/Schema/service/actors/createModelInstances.d.ts +0 -11
- package/dist/src/Schema/service/actors/createModelInstances.d.ts.map +0 -1
- package/dist/src/Schema/service/actors/createPropertyInstances.d.ts +0 -12
- package/dist/src/Schema/service/actors/createPropertyInstances.d.ts.map +0 -1
- package/dist/src/Schema/service/actors/validateSchema.d.ts +0 -5
- package/dist/src/Schema/service/actors/validateSchema.d.ts.map +0 -1
- package/dist/src/Schema/service/actors/verifyModelInstancesInCache.d.ts +0 -6
- package/dist/src/Schema/service/actors/verifyModelInstancesInCache.d.ts.map +0 -1
- package/dist/src/Schema/service/actors/verifyModelsInDb.d.ts +0 -7
- package/dist/src/Schema/service/actors/verifyModelsInDb.d.ts.map +0 -1
- package/dist/src/Schema/service/actors/verifyPropertiesInDb.d.ts +0 -8
- package/dist/src/Schema/service/actors/verifyPropertiesInDb.d.ts.map +0 -1
- package/dist/src/Schema/service/actors/verifyPropertyInstancesInCache.d.ts +0 -6
- package/dist/src/Schema/service/actors/verifyPropertyInstancesInCache.d.ts.map +0 -1
- package/dist/src/Schema/service/actors/verifySchemaInDb.d.ts +0 -7
- package/dist/src/Schema/service/actors/verifySchemaInDb.d.ts.map +0 -1
- package/dist/src/Schema/service/actors/writeModelsToDb.d.ts +0 -9
- package/dist/src/Schema/service/actors/writeModelsToDb.d.ts.map +0 -1
- package/dist/src/Schema/service/actors/writePropertiesToDb.d.ts +0 -10
- package/dist/src/Schema/service/actors/writePropertiesToDb.d.ts.map +0 -1
- package/dist/src/Schema/service/actors/writeSchemaToDb.d.ts +0 -11
- package/dist/src/Schema/service/actors/writeSchemaToDb.d.ts.map +0 -1
- package/dist/src/browser/helpers/ArweaveClient.d.ts +0 -14
- package/dist/src/browser/helpers/ArweaveClient.d.ts.map +0 -1
- package/dist/src/browser/helpers/EasClient.d.ts +0 -10
- package/dist/src/browser/helpers/EasClient.d.ts.map +0 -1
- package/dist/src/browser/helpers/QueryClient.d.ts +0 -9
- package/dist/src/browser/helpers/QueryClient.d.ts.map +0 -1
- package/dist/src/client/actors/addModelsToStore.d.ts +0 -4
- package/dist/src/client/actors/addModelsToStore.d.ts.map +0 -1
- package/dist/src/db/backfillMetadataPropertyIds.d.ts +0 -7
- package/dist/src/db/backfillMetadataPropertyIds.d.ts.map +0 -1
- package/dist/src/db/read/getItem.d.ts +0 -3
- package/dist/src/db/read/getItem.d.ts.map +0 -1
- package/dist/src/db/read/getPropertyData.d.ts +0 -4
- package/dist/src/db/read/getPropertyData.d.ts.map +0 -1
- package/dist/src/db/read/getRelatedItemsForPublish.d.ts +0 -10
- package/dist/src/db/read/getRelatedItemsForPublish.d.ts.map +0 -1
- package/dist/src/db/read/getSeedData.d.ts +0 -12
- package/dist/src/db/read/getSeedData.d.ts.map +0 -1
- package/dist/src/db/read/itemLoads.d.ts +0 -20
- package/dist/src/db/read/itemLoads.d.ts.map +0 -1
- package/dist/src/db/read/publishDraftGraph.d.ts +0 -64
- package/dist/src/db/read/publishDraftGraph.d.ts.map +0 -1
- package/dist/src/db/write/linkModelToSchema.d.ts +0 -12
- package/dist/src/db/write/linkModelToSchema.d.ts.map +0 -1
- package/dist/src/helpers/ArweaveClient/BaseArweaveClient.d.ts +0 -2
- package/dist/src/helpers/ArweaveClient/BaseArweaveClient.d.ts.map +0 -1
- package/dist/src/helpers/ArweaveClient/arweaveL1UploadApi.d.ts +0 -2
- package/dist/src/helpers/ArweaveClient/arweaveL1UploadApi.d.ts.map +0 -1
- package/dist/src/helpers/ArweaveClient/selectReadGateway.d.ts +0 -2
- package/dist/src/helpers/ArweaveClient/selectReadGateway.d.ts.map +0 -1
- package/dist/src/helpers/ArweaveClient/uploadApiVerification.d.ts +0 -2
- package/dist/src/helpers/ArweaveClient/uploadApiVerification.d.ts.map +0 -1
- package/dist/src/helpers/EasClient/BaseEasClient.d.ts +0 -2
- package/dist/src/helpers/EasClient/BaseEasClient.d.ts.map +0 -1
- package/dist/src/helpers/QueryClient/BaseQueryClient.d.ts +0 -2
- package/dist/src/helpers/QueryClient/BaseQueryClient.d.ts.map +0 -1
- package/dist/src/helpers/easUid.d.ts +0 -2
- package/dist/src/helpers/easUid.d.ts.map +0 -1
- package/dist/src/helpers/entity/entityDestroy.d.ts +0 -49
- package/dist/src/helpers/entity/entityDestroy.d.ts.map +0 -1
- package/dist/src/helpers/entity/entityFind.d.ts +0 -52
- package/dist/src/helpers/entity/entityFind.d.ts.map +0 -1
- package/dist/src/helpers/entity/entityState.d.ts +0 -28
- package/dist/src/helpers/entity/entityState.d.ts.map +0 -1
- package/dist/src/helpers/entity/entityUnload.d.ts +0 -56
- package/dist/src/helpers/entity/entityUnload.d.ts.map +0 -1
- package/dist/src/helpers/entity/evictionEpoch.d.ts +0 -43
- package/dist/src/helpers/entity/evictionEpoch.d.ts.map +0 -1
- package/dist/src/helpers/entity/index.d.ts +0 -12
- package/dist/src/helpers/entity/index.d.ts.map +0 -1
- package/dist/src/helpers/gateway/gatewayState.d.ts +0 -2
- package/dist/src/helpers/gateway/gatewayState.d.ts.map +0 -1
- package/dist/src/helpers/gateway/resolveSeedGatewayEndpoints.d.ts +0 -2
- package/dist/src/helpers/gateway/resolveSeedGatewayEndpoints.d.ts.map +0 -1
- package/dist/src/helpers/gateway/seedGatewayConfig.d.ts +0 -2
- package/dist/src/helpers/gateway/seedGatewayConfig.d.ts.map +0 -1
- package/dist/src/helpers/getSchemaForItemProperty.d.ts +0 -15
- package/dist/src/helpers/getSchemaForItemProperty.d.ts.map +0 -1
- package/dist/src/helpers/getSegmentedItemProperties.d.ts +0 -10
- package/dist/src/helpers/getSegmentedItemProperties.d.ts.map +0 -1
- package/dist/src/helpers/isSqliteUniqueConstraintError.d.ts +0 -7
- package/dist/src/helpers/isSqliteUniqueConstraintError.d.ts.map +0 -1
- package/dist/src/helpers/propertyValidationRules.d.ts +0 -20
- package/dist/src/helpers/propertyValidationRules.d.ts.map +0 -1
- package/dist/src/helpers/propertyWriteTickets.d.ts +0 -11
- package/dist/src/helpers/propertyWriteTickets.d.ts.map +0 -1
- package/dist/src/helpers/reconcilePropertyDraftRows.d.ts +0 -10
- package/dist/src/helpers/reconcilePropertyDraftRows.d.ts.map +0 -1
- package/dist/src/helpers/waitForEntityIdle.d.ts +0 -21
- package/dist/src/helpers/waitForEntityIdle.d.ts.map +0 -1
- package/dist/src/interfaces/IQueryClient.d.ts +0 -15
- package/dist/src/interfaces/IQueryClient.d.ts.map +0 -1
- package/dist/src/node/helpers/ArweaveClient.d.ts +0 -5
- package/dist/src/node/helpers/ArweaveClient.d.ts.map +0 -1
- package/dist/src/node/helpers/EasClient.d.ts +0 -5
- package/dist/src/node/helpers/EasClient.d.ts.map +0 -1
- package/dist/src/node/helpers/QueryClient.d.ts +0 -5
- package/dist/src/node/helpers/QueryClient.d.ts.map +0 -1
- package/dist/src/services/write/actors/validateEntity.d.ts +0 -6
- package/dist/src/services/write/actors/validateEntity.d.ts.map +0 -1
- package/dist/src/services/write/actors/writeToDatabase.d.ts +0 -14
- package/dist/src/services/write/actors/writeToDatabase.d.ts.map +0 -1
- package/dist/src/services/write/writeProcessMachine.d.ts +0 -56
- package/dist/src/services/write/writeProcessMachine.d.ts.map +0 -1
- package/dist/src/stores/eas.d.ts +0 -2
- package/dist/src/stores/eas.d.ts.map +0 -1
- package/dist/src/types/arweave.d.ts +0 -57
- package/dist/src/types/arweave.d.ts.map +0 -1
- package/dist/src/types/gateway.d.ts +0 -2
- package/dist/src/types/gateway.d.ts.map +0 -1
- package/dist/syncDbWithEas-BMHoou6X.js.map +0 -1
- package/dist/updateSeedRevokedAt-DpfG6ztE.js +0 -31
- package/dist/updateSeedRevokedAt-DpfG6ztE.js.map +0 -1
|
@@ -1,952 +0,0 @@
|
|
|
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
|
-
})[]>;
|
|
29
|
-
declare namespace ClientManager {
|
|
30
|
-
function isInitialized(): any;
|
|
31
|
-
function getService(): import("xstate").Actor<import("xstate").StateMachine<{}, import("xstate").AnyEventObject, {
|
|
32
|
-
[x: string]: import("xstate").ActorRefFromLogic<import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>> | undefined;
|
|
33
|
-
}, {
|
|
34
|
-
src: "platformClassesInit";
|
|
35
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
36
|
-
id: string | undefined;
|
|
37
|
-
} | {
|
|
38
|
-
src: "fileSystemInit";
|
|
39
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
40
|
-
id: string | undefined;
|
|
41
|
-
} | {
|
|
42
|
-
src: "dbInit";
|
|
43
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
44
|
-
id: string | undefined;
|
|
45
|
-
} | {
|
|
46
|
-
src: "saveConfig";
|
|
47
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
48
|
-
id: string | undefined;
|
|
49
|
-
} | {
|
|
50
|
-
src: "addModelsToStore";
|
|
51
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
52
|
-
id: string | undefined;
|
|
53
|
-
} | {
|
|
54
|
-
src: "addModelsToDb";
|
|
55
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
56
|
-
id: string | undefined;
|
|
57
|
-
} | {
|
|
58
|
-
src: "processSchemaFiles";
|
|
59
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
60
|
-
id: string | undefined;
|
|
61
|
-
} | {
|
|
62
|
-
src: "saveAppState";
|
|
63
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
64
|
-
id: string | undefined;
|
|
65
|
-
}, {
|
|
66
|
-
type: "assignInitError";
|
|
67
|
-
params: import("xstate").NonReducibleUnknown;
|
|
68
|
-
}, never, never, {}, string, {}, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, {
|
|
69
|
-
id?: string | undefined | undefined;
|
|
70
|
-
states?: {} | undefined;
|
|
71
|
-
}, import("xstate").MetaObject>>;
|
|
72
|
-
function subscribeService(listener: any): () => void;
|
|
73
|
-
function init(options: any): Promise<void>;
|
|
74
|
-
function setAddresses(addresses: any): Promise<void>;
|
|
75
|
-
function getAddresses(): Promise<{
|
|
76
|
-
owned: any;
|
|
77
|
-
watched: any;
|
|
78
|
-
}>;
|
|
79
|
-
function getOwnedAddresses(): Promise<any>;
|
|
80
|
-
function getWatchedAddresses(): Promise<any>;
|
|
81
|
-
function claimUnpublishedDrafts(publisher: any): Promise<any>;
|
|
82
|
-
function removeLocalCopiesForAddresses(addresses: any): Promise<{
|
|
83
|
-
removedSeedLocalIds: any;
|
|
84
|
-
removedSeedUids: any;
|
|
85
|
-
}>;
|
|
86
|
-
function syncFromEas(options: any): Promise<void>;
|
|
87
|
-
function addModel(modelDef: any): Promise<void>;
|
|
88
|
-
function onReady(callback: any): () => void;
|
|
89
|
-
function stop(): void;
|
|
90
|
-
function unload(): void;
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* Merge multiple EAS sync intents: full sync (no concrete address list) wins;
|
|
94
|
-
* otherwise union addresses (first-seen casing).
|
|
95
|
-
*/
|
|
96
|
-
declare function mergeEasSyncRequestIntents(parts: any): {
|
|
97
|
-
addresses?: undefined;
|
|
98
|
-
} | {
|
|
99
|
-
addresses: any[];
|
|
100
|
-
};
|
|
101
|
-
/** appState key recording which EAS chain the local database holds attestations from. */
|
|
102
|
-
declare const EAS_CHAIN_ID_APP_STATE_KEY: "easChainId";
|
|
103
|
-
/**
|
|
104
|
-
* Register the SDK SQLite/files adapter with `@seedprotocol/query`.
|
|
105
|
-
* Safe to call multiple times; re-registers with a fresh adapter instance.
|
|
106
|
-
* No-op when the app DB is not ready yet (unless `force`).
|
|
107
|
-
*/
|
|
108
|
-
declare function registerSeedQueryLocalSource(options: any): boolean;
|
|
109
|
-
declare function requestEasSyncFromAddressChange(addresses: any): void;
|
|
110
|
-
declare function requestEasSyncFromModelsInit(): void;
|
|
111
|
-
declare const INIT_CONFIG_CONFLICT_MESSAGE: string;
|
|
112
|
-
declare function sendEasSyncClientRequest(correlationId: any, options: any): void;
|
|
113
|
-
/**
|
|
114
|
-
* Turns retries without an explicit `enabled` on or off; `undefined` restores the default.
|
|
115
|
-
* Returns the previous setting, so a test can put it back.
|
|
116
|
-
*/
|
|
117
|
-
declare function setRetriesWhenOnlineEnabled(enabled: any): any;
|
|
118
|
-
declare function startEasSyncActor(): void;
|
|
119
|
-
/** Unregister local query source (tests / client unload). */
|
|
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>;
|
|
128
|
-
/**
|
|
129
|
-
* For callers of createModelsFromJson that write the models with addModelsToDb: pass `promise` as its
|
|
130
|
-
* persistedBy and call `settle` once addModelsToDb has run or failed (in a finally). The new models wait
|
|
131
|
-
* for it, then adopt the rows addModelsToDb wrote; any model it didn't write writes itself.
|
|
132
|
-
*/
|
|
133
|
-
declare function createRowsWrittenSignal(): {
|
|
134
|
-
promise: Promise<any>;
|
|
135
|
-
settle: undefined;
|
|
136
|
-
};
|
|
137
|
-
/**
|
|
138
|
-
* Convert JSON import schema to ModelDefinitions
|
|
139
|
-
* @param importData - The JSON import data
|
|
140
|
-
* @param modelFileIds - Optional map of model names to their file IDs from the JSON file
|
|
141
|
-
* @param propertyFileIds - Optional map of model names to maps of property names to their file IDs from the JSON file
|
|
142
|
-
* @param persistedBy - When the caller writes the models with addModelsToDb: a promise that settles once
|
|
143
|
-
* that has run (see createRowsWrittenSignal). New models then adopt those rows instead of writing them too.
|
|
144
|
-
* @returns ModelDefinitions object with Model classes
|
|
145
|
-
*/
|
|
146
|
-
declare function createModelsFromJson(importData: any, modelFileIds: any, propertyFileIds: any, persistedBy: any): Promise<{}>;
|
|
147
|
-
/**
|
|
148
|
-
* Convert a JSON model's properties to the schema property format Model.create and addModelsToDb take
|
|
149
|
-
* @param modelName - The name of the model (for error messages)
|
|
150
|
-
* @param modelDef - The JSON model definition
|
|
151
|
-
* @param propertyFileIds - Optional map of property names to their file IDs from the JSON file
|
|
152
|
-
*/
|
|
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
|
-
}
|
|
159
|
-
declare var schema: Readonly<{
|
|
160
|
-
__proto__: null;
|
|
161
|
-
getLatestSchemaVersion: typeof getLatestSchemaVersion;
|
|
162
|
-
getSchemaNameFromId: typeof getSchemaNameFromId;
|
|
163
|
-
listCompleteSchemaFiles: typeof listCompleteSchemaFiles;
|
|
164
|
-
listLatestSchemaFiles: typeof listLatestSchemaFiles;
|
|
165
|
-
listSchemaFiles: typeof listSchemaFiles;
|
|
166
|
-
loadAllSchemasFromDb: typeof loadAllSchemasFromDb;
|
|
167
|
-
}>;
|
|
168
|
-
declare var SEEDPROTOCOL_Seed_Protocol_v1: Readonly<{
|
|
169
|
-
__proto__: null;
|
|
170
|
-
$schema: string;
|
|
171
|
-
default: {
|
|
172
|
-
$schema: string;
|
|
173
|
-
version: number;
|
|
174
|
-
id: string;
|
|
175
|
-
metadata: {
|
|
176
|
-
name: string;
|
|
177
|
-
description: string;
|
|
178
|
-
createdAt: string;
|
|
179
|
-
updatedAt: string;
|
|
180
|
-
};
|
|
181
|
-
models: {
|
|
182
|
-
Seed: {
|
|
183
|
-
id: string;
|
|
184
|
-
description: string;
|
|
185
|
-
properties: {
|
|
186
|
-
uid: {
|
|
187
|
-
type: string;
|
|
188
|
-
id: string;
|
|
189
|
-
};
|
|
190
|
-
type: {
|
|
191
|
-
type: string;
|
|
192
|
-
id: string;
|
|
193
|
-
};
|
|
194
|
-
};
|
|
195
|
-
};
|
|
196
|
-
Version: {
|
|
197
|
-
id: string;
|
|
198
|
-
description: string;
|
|
199
|
-
properties: {
|
|
200
|
-
seedUid: {
|
|
201
|
-
type: string;
|
|
202
|
-
id: string;
|
|
203
|
-
};
|
|
204
|
-
note: {
|
|
205
|
-
type: string;
|
|
206
|
-
id: string;
|
|
207
|
-
};
|
|
208
|
-
};
|
|
209
|
-
};
|
|
210
|
-
Metadata: {
|
|
211
|
-
id: string;
|
|
212
|
-
description: string;
|
|
213
|
-
properties: {
|
|
214
|
-
key: {
|
|
215
|
-
type: string;
|
|
216
|
-
id: string;
|
|
217
|
-
};
|
|
218
|
-
value: {
|
|
219
|
-
type: string;
|
|
220
|
-
id: string;
|
|
221
|
-
};
|
|
222
|
-
};
|
|
223
|
-
};
|
|
224
|
-
Image: {
|
|
225
|
-
id: string;
|
|
226
|
-
description: string;
|
|
227
|
-
properties: {
|
|
228
|
-
storageTransactionId: {
|
|
229
|
-
type: string;
|
|
230
|
-
id: string;
|
|
231
|
-
};
|
|
232
|
-
uri: {
|
|
233
|
-
type: string;
|
|
234
|
-
id: string;
|
|
235
|
-
};
|
|
236
|
-
alt: {
|
|
237
|
-
type: string;
|
|
238
|
-
id: string;
|
|
239
|
-
};
|
|
240
|
-
};
|
|
241
|
-
};
|
|
242
|
-
File: {
|
|
243
|
-
id: string;
|
|
244
|
-
description: string;
|
|
245
|
-
properties: {
|
|
246
|
-
storageTransactionId: {
|
|
247
|
-
type: string;
|
|
248
|
-
id: string;
|
|
249
|
-
};
|
|
250
|
-
uri: {
|
|
251
|
-
type: string;
|
|
252
|
-
id: string;
|
|
253
|
-
};
|
|
254
|
-
};
|
|
255
|
-
};
|
|
256
|
-
Html: {
|
|
257
|
-
id: string;
|
|
258
|
-
description: string;
|
|
259
|
-
properties: {
|
|
260
|
-
storageTransactionId: {
|
|
261
|
-
type: string;
|
|
262
|
-
id: string;
|
|
263
|
-
};
|
|
264
|
-
uri: {
|
|
265
|
-
type: string;
|
|
266
|
-
id: string;
|
|
267
|
-
};
|
|
268
|
-
};
|
|
269
|
-
};
|
|
270
|
-
};
|
|
271
|
-
enums: {};
|
|
272
|
-
migrations: {
|
|
273
|
-
version: number;
|
|
274
|
-
timestamp: string;
|
|
275
|
-
description: string;
|
|
276
|
-
changes: string[];
|
|
277
|
-
}[];
|
|
278
|
-
};
|
|
279
|
-
enums: {};
|
|
280
|
-
id: string;
|
|
281
|
-
metadata: {
|
|
282
|
-
name: string;
|
|
283
|
-
description: string;
|
|
284
|
-
createdAt: string;
|
|
285
|
-
updatedAt: string;
|
|
286
|
-
};
|
|
287
|
-
migrations: {
|
|
288
|
-
version: number;
|
|
289
|
-
timestamp: string;
|
|
290
|
-
description: string;
|
|
291
|
-
changes: string[];
|
|
292
|
-
}[];
|
|
293
|
-
models: {
|
|
294
|
-
Seed: {
|
|
295
|
-
id: string;
|
|
296
|
-
description: string;
|
|
297
|
-
properties: {
|
|
298
|
-
uid: {
|
|
299
|
-
type: string;
|
|
300
|
-
id: string;
|
|
301
|
-
};
|
|
302
|
-
type: {
|
|
303
|
-
type: string;
|
|
304
|
-
id: string;
|
|
305
|
-
};
|
|
306
|
-
};
|
|
307
|
-
};
|
|
308
|
-
Version: {
|
|
309
|
-
id: string;
|
|
310
|
-
description: string;
|
|
311
|
-
properties: {
|
|
312
|
-
seedUid: {
|
|
313
|
-
type: string;
|
|
314
|
-
id: string;
|
|
315
|
-
};
|
|
316
|
-
note: {
|
|
317
|
-
type: string;
|
|
318
|
-
id: string;
|
|
319
|
-
};
|
|
320
|
-
};
|
|
321
|
-
};
|
|
322
|
-
Metadata: {
|
|
323
|
-
id: string;
|
|
324
|
-
description: string;
|
|
325
|
-
properties: {
|
|
326
|
-
key: {
|
|
327
|
-
type: string;
|
|
328
|
-
id: string;
|
|
329
|
-
};
|
|
330
|
-
value: {
|
|
331
|
-
type: string;
|
|
332
|
-
id: string;
|
|
333
|
-
};
|
|
334
|
-
};
|
|
335
|
-
};
|
|
336
|
-
Image: {
|
|
337
|
-
id: string;
|
|
338
|
-
description: string;
|
|
339
|
-
properties: {
|
|
340
|
-
storageTransactionId: {
|
|
341
|
-
type: string;
|
|
342
|
-
id: string;
|
|
343
|
-
};
|
|
344
|
-
uri: {
|
|
345
|
-
type: string;
|
|
346
|
-
id: string;
|
|
347
|
-
};
|
|
348
|
-
alt: {
|
|
349
|
-
type: string;
|
|
350
|
-
id: string;
|
|
351
|
-
};
|
|
352
|
-
};
|
|
353
|
-
};
|
|
354
|
-
File: {
|
|
355
|
-
id: string;
|
|
356
|
-
description: string;
|
|
357
|
-
properties: {
|
|
358
|
-
storageTransactionId: {
|
|
359
|
-
type: string;
|
|
360
|
-
id: string;
|
|
361
|
-
};
|
|
362
|
-
uri: {
|
|
363
|
-
type: string;
|
|
364
|
-
id: string;
|
|
365
|
-
};
|
|
366
|
-
};
|
|
367
|
-
};
|
|
368
|
-
Html: {
|
|
369
|
-
id: string;
|
|
370
|
-
description: string;
|
|
371
|
-
properties: {
|
|
372
|
-
storageTransactionId: {
|
|
373
|
-
type: string;
|
|
374
|
-
id: string;
|
|
375
|
-
};
|
|
376
|
-
uri: {
|
|
377
|
-
type: string;
|
|
378
|
-
id: string;
|
|
379
|
-
};
|
|
380
|
-
};
|
|
381
|
-
};
|
|
382
|
-
};
|
|
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
|
-
};
|
|
630
|
-
}>;
|
|
631
|
-
/** Writes a new item's rows on `db` (see CreateItemOp). */
|
|
632
|
-
declare function applyCreateItem(seedLocalId: any, value: any, db: any): Promise<{
|
|
633
|
-
seedLocalId: any;
|
|
634
|
-
versionLocalId: string;
|
|
635
|
-
}>;
|
|
636
|
-
declare function applyDelete(op: any, value: any, db: any): Promise<{
|
|
637
|
-
filePaths: string[];
|
|
638
|
-
}>;
|
|
639
|
-
/**
|
|
640
|
-
* Writes an ItemStorage value on `db`: the edit goes into the property's current local draft, or a
|
|
641
|
-
* new one when there is none or a published row is newer (readers show the newest row). A synced
|
|
642
|
-
* or derived row is published content and is never written to.
|
|
643
|
-
*/
|
|
644
|
-
declare function applyItemStorageValue(seedLocalId: any, propertyName: any, op: any, db: any): Promise<{
|
|
645
|
-
localId: any;
|
|
646
|
-
uid: any;
|
|
647
|
-
schemaUid: any;
|
|
648
|
-
fileName: any;
|
|
649
|
-
localStorageDir: any;
|
|
650
|
-
}>;
|
|
651
|
-
/** Deletes files after the op that removed their rows applied; best-effort. */
|
|
652
|
-
declare function deleteFiles(filePaths: any): Promise<void>;
|
|
653
|
-
/**
|
|
654
|
-
* The appliers for item ops (ADR 0019). Every tab registers them at init: the leader applies ops
|
|
655
|
-
* that other tabs appended.
|
|
656
|
-
*/
|
|
657
|
-
/**
|
|
658
|
-
* Writes a storage value's rows on `db`. The property's row is looked up here, on `db`, rather than
|
|
659
|
-
* taken from the edit: two quick edits of a property that had no row would otherwise both create one.
|
|
660
|
-
*/
|
|
661
|
-
declare function applyStorageValue(seedLocalId: any, propertyName: any, value: any, db: any): Promise<{
|
|
662
|
-
localId: any;
|
|
663
|
-
uid: any;
|
|
664
|
-
schemaUid: any;
|
|
665
|
-
} | null>;
|
|
666
|
-
/** The property's unresolved conflict, if it has one. */
|
|
667
|
-
declare function getPropertyConflict(seedLocalId: any, propertyName: any): Promise<any>;
|
|
668
|
-
/** The item's unresolved conflicts, the newest per property. */
|
|
669
|
-
declare function getItemConflicts(seedLocalId: any): Promise<any[]>;
|
|
670
|
-
/**
|
|
671
|
-
* Get refValueType from a property object with case-insensitive key lookup.
|
|
672
|
-
*/
|
|
673
|
-
declare function getRefValueType(prop: any): string | undefined;
|
|
674
|
-
declare function importJsonSchema(importFilePathOrContents: any, version?: number): Promise<any>;
|
|
675
|
-
/**
|
|
676
|
-
* Sync a canonical schema from a file path or inlined object to the database.
|
|
677
|
-
* A stored schema file with the same id and version but different content is overwritten (with a
|
|
678
|
-
* warning) instead of reused, and models dropped from the schema are unlinked from it.
|
|
679
|
-
* Called automatically at init when config.schema is provided.
|
|
680
|
-
*
|
|
681
|
-
* @param source - File path (string) or complete SchemaFileFormat object
|
|
682
|
-
*/
|
|
683
|
-
declare function syncSchemaFromSource(source: any): Promise<void>;
|
|
684
|
-
/**
|
|
685
|
-
* Transform import JSON format to full schema file format
|
|
686
|
-
* @param importData - The JSON import data
|
|
687
|
-
* @param version - The version number for the schema (defaults to 1)
|
|
688
|
-
* @returns The transformed schema file format
|
|
689
|
-
*/
|
|
690
|
-
declare function transformImportToSchemaFile(importData: any, version?: number): {
|
|
691
|
-
metadata: {
|
|
692
|
-
name: any;
|
|
693
|
-
createdAt: string;
|
|
694
|
-
updatedAt: string;
|
|
695
|
-
};
|
|
696
|
-
models: {};
|
|
697
|
-
enums: {};
|
|
698
|
-
migrations: {
|
|
699
|
-
version: number;
|
|
700
|
-
timestamp: string;
|
|
701
|
-
description: string;
|
|
702
|
-
changes: never[];
|
|
703
|
-
}[];
|
|
704
|
-
nameMatch?: any;
|
|
705
|
-
$schema: string;
|
|
706
|
-
version: number;
|
|
707
|
-
id: string;
|
|
708
|
-
};
|
|
709
|
-
/**
|
|
710
|
-
* Load an existing complete schema file and process its models
|
|
711
|
-
* This is used to load models from already-processed schema files into the store
|
|
712
|
-
* @param schemaFilePath - Path to the complete schema file (must have $schema field)
|
|
713
|
-
* @returns The file path of the schema
|
|
714
|
-
* @throws Error if file cannot be read, parsed, or is not a complete schema
|
|
715
|
-
*/
|
|
716
|
-
declare function loadSchemaFromFile(schemaFilePath: any): Promise<any>;
|
|
717
|
-
/** Marks the property's conflicts resolved. */
|
|
718
|
-
declare function markPropertyConflictsResolved(seedLocalId: any, propertyName: any): Promise<void>;
|
|
719
|
-
declare function getContentHash(data: any): Promise<string>;
|
|
720
|
-
/**
|
|
721
|
-
* Call before writing chain data to the local DB (EAS sync, publish, revoke). Records the
|
|
722
|
-
* current chain on an empty DB; throws when the DB holds data from a different chain.
|
|
723
|
-
*/
|
|
724
|
-
declare function assertLocalDbChain(): Promise<void>;
|
|
725
|
-
/**
|
|
726
|
-
* Gives `publisher` to local drafts that belong to no wallet yet: seeds with no publisher, no real
|
|
727
|
-
* uid and no attestationRaw, and those seeds' versions and property rows that are unsealed too.
|
|
728
|
-
* Versions and property rows go only with their seed, so rows of a seed that already has a
|
|
729
|
-
* publisher are never claimed. Sealed rows (real EAS uid or attestationRaw) are never touched.
|
|
730
|
-
*
|
|
731
|
-
* Pending Item.create ops with no publisher get it too, in the same transaction: the drainer applies
|
|
732
|
-
* an op's value as its claim reads it (ADR 0019), so a create applied before or after this one ends
|
|
733
|
-
* up claimed either way.
|
|
734
|
-
*/
|
|
735
|
-
declare function claimUnpublishedDrafts(publisher: any): Promise<any>;
|
|
736
|
-
/**
|
|
737
|
-
* SDK local QueryDataSource: published Seeds/Versions/metadata from SQLite.
|
|
738
|
-
*
|
|
739
|
-
* Revocation follows the local `revoked_at` columns, not the stored `attestation_raw`: rows with
|
|
740
|
-
* `revoked_at` set are left out (as the remote source leaves out revoked attestations) and returned
|
|
741
|
-
* attestations carry `revoked`/`revocationTime` from those columns.
|
|
742
|
-
*/
|
|
743
|
-
declare function createLocalQueryDataSource(): {
|
|
744
|
-
kind: string;
|
|
745
|
-
getSeedByUid(seedUid: any): Promise<any>;
|
|
746
|
-
listSeedsBySchemaName(schemaName: any, opts: any): Promise<any[]>;
|
|
747
|
-
listSeedsByUidPrefix(schemaName: any, uidPrefix: any, opts: any): Promise<any[]>;
|
|
748
|
-
listSeedsBySchemaNameForMonth(schemaName: any, year: any, month: any): Promise<any[]>;
|
|
749
|
-
getVersionsForSeed(seedUid: any): Promise<any[]>;
|
|
750
|
-
getVersionsForSeeds(seedUids: any, opts: any): Promise<any[]>;
|
|
751
|
-
getPropertiesForVersionUids(versionUids: any): Promise<any[]>;
|
|
752
|
-
getSeedsByUids(uids: any): Promise<any[]>;
|
|
753
|
-
readStorageBody(ref: any): Promise<any>;
|
|
754
|
-
};
|
|
755
|
-
/**
|
|
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
|
|
763
|
-
*/
|
|
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;
|
|
771
|
-
/**
|
|
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.
|
|
774
|
-
*/
|
|
775
|
-
declare function throwItemWriteError(error: any): void;
|
|
776
|
-
declare const easSyncActor: import("xstate").Actor<import("xstate").StateMachine<{}, import("xstate").AnyEventObject, {
|
|
777
|
-
[x: string]: import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<any, import("xstate").NonReducibleUnknown, import("xstate").EventObject>> | undefined;
|
|
778
|
-
}, {
|
|
779
|
-
src: "runEasSync";
|
|
780
|
-
logic: import("xstate").PromiseActorLogic<any, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
781
|
-
id: string | undefined;
|
|
782
|
-
}, never, never, never, "idle" | "running" | "afterRun", string, import("xstate").NonReducibleUnknown, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, {
|
|
783
|
-
id: any;
|
|
784
|
-
states: {
|
|
785
|
-
readonly idle: {};
|
|
786
|
-
readonly running: {};
|
|
787
|
-
readonly afterRun: {};
|
|
788
|
-
};
|
|
789
|
-
}, import("xstate").MetaObject>>;
|
|
790
|
-
declare function getClient(): {
|
|
791
|
-
isInitialized: () => any;
|
|
792
|
-
getService: () => import("xstate").Actor<import("xstate").StateMachine<{}, import("xstate").AnyEventObject, {
|
|
793
|
-
[x: string]: import("xstate").ActorRefFromLogic<import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>> | undefined;
|
|
794
|
-
}, {
|
|
795
|
-
src: "platformClassesInit";
|
|
796
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
797
|
-
id: string | undefined;
|
|
798
|
-
} | {
|
|
799
|
-
src: "fileSystemInit";
|
|
800
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
801
|
-
id: string | undefined;
|
|
802
|
-
} | {
|
|
803
|
-
src: "dbInit";
|
|
804
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
805
|
-
id: string | undefined;
|
|
806
|
-
} | {
|
|
807
|
-
src: "saveConfig";
|
|
808
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
809
|
-
id: string | undefined;
|
|
810
|
-
} | {
|
|
811
|
-
src: "addModelsToStore";
|
|
812
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
813
|
-
id: string | undefined;
|
|
814
|
-
} | {
|
|
815
|
-
src: "addModelsToDb";
|
|
816
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
817
|
-
id: string | undefined;
|
|
818
|
-
} | {
|
|
819
|
-
src: "processSchemaFiles";
|
|
820
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
821
|
-
id: string | undefined;
|
|
822
|
-
} | {
|
|
823
|
-
src: "saveAppState";
|
|
824
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
825
|
-
id: string | undefined;
|
|
826
|
-
}, {
|
|
827
|
-
type: "assignInitError";
|
|
828
|
-
params: import("xstate").NonReducibleUnknown;
|
|
829
|
-
}, never, never, {}, string, {}, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, {
|
|
830
|
-
id?: string | undefined | undefined;
|
|
831
|
-
states?: {} | undefined;
|
|
832
|
-
}, import("xstate").MetaObject>>;
|
|
833
|
-
/**
|
|
834
|
-
* Calls `listener` with the clientManager actor when it changes: `init()` after `stop()`
|
|
835
|
-
* replaces the actor, and `stop()` ends the current one. Subscribe to the actor itself for its
|
|
836
|
-
* state changes. Returns a function that removes the listener.
|
|
837
|
-
*/
|
|
838
|
-
subscribeService: (listener: any) => () => void;
|
|
839
|
-
/**
|
|
840
|
-
* Initialise the SDK. Calls made while an init is running share it. Once initialised, a
|
|
841
|
-
* call with the same config resolves at once and applies any change in `addresses`; a
|
|
842
|
-
* call with a different config throws INIT_CONFIG_CONFLICT_MESSAGE (call stop() first).
|
|
843
|
-
*/
|
|
844
|
-
init: (options: any) => Promise<void>;
|
|
845
|
-
setAddresses: (addresses: any) => Promise<void>;
|
|
846
|
-
getAddresses: () => Promise<{
|
|
847
|
-
owned: any;
|
|
848
|
-
watched: any;
|
|
849
|
-
}>;
|
|
850
|
-
getOwnedAddresses: () => Promise<any>;
|
|
851
|
-
getWatchedAddresses: () => Promise<any>;
|
|
852
|
-
/**
|
|
853
|
-
* Stamp local seeds/versions/metadata that have no publisher and no real uid.
|
|
854
|
-
* Sealed rows (real EAS uid or attestationRaw) are left unchanged.
|
|
855
|
-
* Use after `setAddresses` on connect; `setPublishWallet` does this automatically.
|
|
856
|
-
*/
|
|
857
|
-
claimUnpublishedDrafts: (publisher: any) => Promise<any>;
|
|
858
|
-
/**
|
|
859
|
-
* Hard-delete local on-chain seed copies for the given publisher addresses.
|
|
860
|
-
* Drafts (no uid / attestationRaw) are kept. Chain is untouched; reconnect can rehydrate via syncFromEas.
|
|
861
|
-
*/
|
|
862
|
-
removeLocalCopiesForAddresses: (addresses: any) => Promise<{
|
|
863
|
-
removedSeedLocalIds: any;
|
|
864
|
-
removedSeedUids: any;
|
|
865
|
-
}>;
|
|
866
|
-
/**
|
|
867
|
-
* Syncs item attestations from EAS for the configured models and given addresses.
|
|
868
|
-
* Uses owned + watched addresses from DB when addresses are not provided.
|
|
869
|
-
*/
|
|
870
|
-
syncFromEas: (options: any) => Promise<void>;
|
|
871
|
-
addModel: (modelDef: any) => Promise<void>;
|
|
872
|
-
/**
|
|
873
|
-
* Calls `callback` once the client is initialised, or on the next microtask if it already
|
|
874
|
-
* is. Returns a function that cancels the callback.
|
|
875
|
-
*/
|
|
876
|
-
onReady: (callback: any) => () => void;
|
|
877
|
-
stop: () => void;
|
|
878
|
-
unload: () => void;
|
|
879
|
-
};
|
|
880
|
-
/**
|
|
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.
|
|
883
|
-
*/
|
|
884
|
-
declare function waitForEasReadChain(timeoutMs?: number): Promise<void>;
|
|
885
|
-
/**
|
|
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.
|
|
891
|
-
*/
|
|
892
|
-
declare function getPublishedSeedRecord(seedUid: any, options: any): Promise<import("@seedprotocol/query").GetSeedResult | null>;
|
|
893
|
-
/**
|
|
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
|
|
897
|
-
*/
|
|
898
|
-
declare function getSchemaNameFromId(schemaId: any): string | null;
|
|
899
|
-
declare function isSeedQueryLocalSourceRegistered(): boolean;
|
|
900
|
-
/**
|
|
901
|
-
* Get only the latest version of each schema
|
|
902
|
-
* @returns Array of objects containing name, version, and file path for the latest version of each schema
|
|
903
|
-
*/
|
|
904
|
-
declare function listLatestSchemaFiles(): Promise<any[]>;
|
|
905
|
-
/**
|
|
906
|
-
* List all schema files in the working directory
|
|
907
|
-
* Only returns files that are NOT already complete schema files (i.e., files without $schema field)
|
|
908
|
-
* This allows processing of minimal import files while skipping already-processed schema files
|
|
909
|
-
* @returns Array of objects containing name, version, and file path for each schema
|
|
910
|
-
*/
|
|
911
|
-
declare function listSchemaFiles(): Promise<{
|
|
912
|
-
name: any;
|
|
913
|
-
version: number;
|
|
914
|
-
filePath: any;
|
|
915
|
-
}[]>;
|
|
916
|
-
/**
|
|
917
|
-
* Conflicts between a local edit and a value sync wrote after it (ADR 0019). The local edit wins:
|
|
918
|
-
* a pending edit applies over the synced row as a new draft, and a draft already written stays the
|
|
919
|
-
* newest row. The conflict is recorded on an op row, so the app can show both values and let the
|
|
920
|
-
* user pick.
|
|
921
|
-
*/
|
|
922
|
-
/**
|
|
923
|
-
* The conflict a `set` op meets when it applies: sync wrote an attested row for the property after
|
|
924
|
-
* the edit was made, and its value differs from both the value the edit was made against and the
|
|
925
|
-
* edit's own. A row with the base row's uid (the same attestation synced again) is not a conflict,
|
|
926
|
-
* nor is a published row carrying the base value (a publish of the edit's base). Reads through `db`
|
|
927
|
-
* (the op's transaction).
|
|
928
|
-
*/
|
|
929
|
-
declare function findSetConflict(op: any, value: any, db: any): Promise<{
|
|
930
|
-
seedLocalId: any;
|
|
931
|
-
propertyName: any;
|
|
932
|
-
baseValue: any;
|
|
933
|
-
remoteValue: any;
|
|
934
|
-
localValue: any;
|
|
935
|
-
remoteUid: any;
|
|
936
|
-
opId: any;
|
|
937
|
-
} | null>;
|
|
938
|
-
/**
|
|
939
|
-
* The conflict rule for rows sync just inserted (`synced`) over a local draft already written: the
|
|
940
|
-
* draft stays the property's value. When a synced row is newer than the draft, the draft's time is
|
|
941
|
-
* moved just past it (readers take the newest row). A conflict is recorded, on an `applied` op row
|
|
942
|
-
* of its own, when the synced value differs from both the draft's and the attested value the draft
|
|
943
|
-
* replaced. Properties with a pending value op are left to the drainer, which applies the same rule.
|
|
944
|
-
*/
|
|
945
|
-
declare function keepLocalDraftsOverSyncedRows(synced: any): Promise<void>;
|
|
946
|
-
/**
|
|
947
|
-
* Records `conflict` on the op that met it, and clears the property's earlier conflicts: a newer
|
|
948
|
-
* local edit settles them (it was made with the synced value in view, or overrides it again).
|
|
949
|
-
*/
|
|
950
|
-
declare function recordPropertyEdit(op: any, conflict: any, db: any): Promise<void>;
|
|
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-DqL0q_eu.d.ts.map
|