@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,1115 +0,0 @@
|
|
|
1
|
-
declare function getGetPublisherForNewSeeds(): any;
|
|
2
|
-
/**
|
|
3
|
-
* Latest version row for the seed (by `LATEST_VERSION_ORDER_SQL`) whose uid is a real EAS
|
|
4
|
-
* attestation id.
|
|
5
|
-
* Skips legacy 'NULL' / ZERO_BYTES32 placeholders, non-bytes32 strings, and revoked versions
|
|
6
|
-
* (`revoked_at` set): after a full unpublish the seed has no published version.
|
|
7
|
-
*/
|
|
8
|
-
declare function getLatestPublishedVersionRow(seedLocalId: any): Promise<{
|
|
9
|
-
uid: any;
|
|
10
|
-
localId: any;
|
|
11
|
-
attestationCreatedAt: any;
|
|
12
|
-
} | null>;
|
|
13
|
-
/** Runs `write` once per chunk of `values`, one after another (deletes / updates with an `IN` list). */
|
|
14
|
-
declare function writeInBatches(values: any, write: any, size?: number): Promise<void>;
|
|
15
|
-
/**
|
|
16
|
-
* Thrown by ItemProperty.clear() for a Boolean or Date property: their EAS types have no empty value
|
|
17
|
-
* to attest, so only a retraction can clear one (ADR 0021).
|
|
18
|
-
*/
|
|
19
|
-
declare class ClearNotSupportedError extends Error {
|
|
20
|
-
constructor(propertyName: any, dataType: any);
|
|
21
|
-
propertyName: any;
|
|
22
|
-
dataType: any;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Runs `query` once per chunk of `values` (see {@link chunkValues}), one after another, and
|
|
26
|
-
* concatenates the rows. Use it for `inArray(column, values)` reads whose list can be large.
|
|
27
|
-
*/
|
|
28
|
-
declare function selectInBatches(values: any, query: any, size?: number): Promise<any[]>;
|
|
29
|
-
/**
|
|
30
|
-
* Assemble flat ItemData for Item / liveQuery / draft-head authoring.
|
|
31
|
-
*
|
|
32
|
-
* For **published chain JSON** (Seed → latest attested Version → properties),
|
|
33
|
-
* prefer `getPublishedSeedRecord` from `@seedprotocol/sdk` or
|
|
34
|
-
* `getSeed` / `queryBySchema` from `@seedprotocol/query`. This function remains
|
|
35
|
-
* the correct path for local-head / draft-wins property selection used by Item.
|
|
36
|
-
*/
|
|
37
|
-
declare function getItemData({ modelName, seedLocalId, seedUid, }: {
|
|
38
|
-
modelName: any;
|
|
39
|
-
seedLocalId: any;
|
|
40
|
-
seedUid: any;
|
|
41
|
-
}): Promise<any>;
|
|
42
|
-
/**
|
|
43
|
-
* Wait for an entity's state machine to reach 'idle' state
|
|
44
|
-
* @param entity - Entity instance with getService() method
|
|
45
|
-
* @param options - Configuration options
|
|
46
|
-
* @returns Promise that resolves when entity reaches idle, or rejects on error/timeout
|
|
47
|
-
*/
|
|
48
|
-
declare function waitForEntityIdle(entity: any, options?: {}): Promise<void>;
|
|
49
|
-
/** Splits `values` into chunks of at most `size` (one empty list gives no chunks). */
|
|
50
|
-
declare function chunkValues(values: any, size?: number): any[];
|
|
51
|
-
/**
|
|
52
|
-
* Rows per multi-row INSERT into `table` so the statement binds at most
|
|
53
|
-
* {@link SQLITE_DEFAULT_MAX_VARIABLE_NUMBER} parameters even with every column set.
|
|
54
|
-
*/
|
|
55
|
-
declare function rowsPerInsert(table: any): number;
|
|
56
|
-
declare class Item {
|
|
57
|
-
/** Prefer local id so list rows (local + uid) resolve the same cache entry as early draft loads. */
|
|
58
|
-
static findItemInstanceCacheEntryByProps(props: any): any;
|
|
59
|
-
static findItemInstanceCacheEntryById(id: any): any;
|
|
60
|
-
static collectInstanceCacheKeysForInstance(instance: any): any[];
|
|
61
|
-
static registerItemInInstanceCache(instance: any): void;
|
|
62
|
-
/**
|
|
63
|
-
* Wraps a new instance in its reactive proxy: tracked names read from and write to the actor's
|
|
64
|
-
* context, and the model's property names (`item.title`, or `item.html` for `htmlId`) read and
|
|
65
|
-
* write their ItemProperty's value.
|
|
66
|
-
*/
|
|
67
|
-
static wrapInProxy(instance: any): any;
|
|
68
|
-
/**
|
|
69
|
-
* Sets a tracked context property from the proxy. Setting `seedUid` to a different uid means a
|
|
70
|
-
* new seed attestation (publishing again after unpublish): the revocation belonged to the old
|
|
71
|
-
* one, so `revokedAt` is cleared, and the instance cache's uid alias moves to the new uid.
|
|
72
|
-
*/
|
|
73
|
-
static sendTrackedPropertyUpdate(target: any, prop: any, value: any): void;
|
|
74
|
-
/** Drops one holder's reference. Returns true while other holders still have the instance. */
|
|
75
|
-
static releaseItemInstanceCacheHold(instance: any): boolean;
|
|
76
|
-
/**
|
|
77
|
-
* Idle, and not the shell the item machine can be in when it reaches `idle` before
|
|
78
|
-
* `propertyInstances` is merged (an item with a version but no property instances yet).
|
|
79
|
-
*/
|
|
80
|
-
static isItemSnapshotReadyForRead(snap: any): boolean;
|
|
81
|
-
/**
|
|
82
|
-
* The cached Item for a seedLocalId or seedUid, in any state, without taking a hold. For SDK code
|
|
83
|
-
* that reads or messages the item and doesn't hand it to a caller.
|
|
84
|
-
*/
|
|
85
|
-
static peek(id: any): any;
|
|
86
|
-
/**
|
|
87
|
-
* The cached Item for a seedLocalId or seedUid when it can be read right now: idle and hydrated,
|
|
88
|
-
* so at least what `Item.find()` would wait for. Otherwise undefined. Unlike `getById`, it takes
|
|
89
|
-
* no cache hold, so React hooks can call it during render.
|
|
90
|
-
*/
|
|
91
|
-
static peekReady(id: any): any;
|
|
92
|
-
/**
|
|
93
|
-
* Item machine can reach `idle` before `propertyInstances` is merged (race) or while
|
|
94
|
-
* child ItemProperty actors are still hydrating. useItems / Item.all must not return that shell.
|
|
95
|
-
*/
|
|
96
|
-
static waitForItemInstanceReadyForRead(item: any, readyTimeout: any): Promise<void>;
|
|
97
|
-
static itemCacheEntryLooksUnhydratedAfterIdle(instance: any, props: any): boolean;
|
|
98
|
-
static create(props: any, options: any): Promise<any>;
|
|
99
|
-
/**
|
|
100
|
-
* Stops a just-created item and deletes what create wrote: a `discard` outbox op (ADR 0019),
|
|
101
|
-
* applied after the item's other pending ops, hard-deletes the draft and the storage seeds its
|
|
102
|
-
* rows point at; their files go once it has applied.
|
|
103
|
-
*/
|
|
104
|
-
static discardCreatedItem(item: any, seedLocalId: any): Promise<void>;
|
|
105
|
-
/**
|
|
106
|
-
* Run each File/Image/Html/ItemStorage initial value through its ItemProperty save pipeline (sequentially, to
|
|
107
|
-
* avoid SQLite write contention). Rejects on the first failure, with ItemCreateValidationError when the
|
|
108
|
-
* value breaks its property's rules and ItemCreateError otherwise; Item.create then removes the item.
|
|
109
|
-
*/
|
|
110
|
-
static savePipelineValues(item: any, pipelineValues: any, timeout: any): Promise<void>;
|
|
111
|
-
static waitForPropertyInstance(item: any, propertyName: any, timeout: any): Promise<any>;
|
|
112
|
-
/**
|
|
113
|
-
* Get Item instance by ID from cache
|
|
114
|
-
* The ID can be either seedUid or seedLocalId
|
|
115
|
-
* @param id - seedUid or seedLocalId
|
|
116
|
-
* @returns Cached Item instance or null if not found
|
|
117
|
-
*/
|
|
118
|
-
static getById(id: any): any;
|
|
119
|
-
/**
|
|
120
|
-
* Drop cached Item instances for the given seed local ids / uids without soft-deleting DB rows.
|
|
121
|
-
* Used by local purge (`removeLocalCopiesForAddresses`) before hard-deleting rows.
|
|
122
|
-
*/
|
|
123
|
-
static dropCachedInstancesForSeedIds(ids: any): void;
|
|
124
|
-
/**
|
|
125
|
-
* Create Item instance by ID (queries database if not in cache)
|
|
126
|
-
* The ID can be either seedUid or seedLocalId
|
|
127
|
-
* @param id - seedUid or seedLocalId
|
|
128
|
-
* @param modelName - Optional model name for querying
|
|
129
|
-
* @param idKind - 'localId' when the id was given as a seedLocalId: looked up as one first
|
|
130
|
-
* @returns Item instance or undefined if not found
|
|
131
|
-
*/
|
|
132
|
-
static createById(id: any, modelName: any, idKind: any): Promise<any>;
|
|
133
|
-
static find({ modelName, seedLocalId, seedUid, waitForReady, readyTimeout, }: {
|
|
134
|
-
modelName: any;
|
|
135
|
-
seedLocalId: any;
|
|
136
|
-
seedUid: any;
|
|
137
|
-
waitForReady?: boolean | undefined;
|
|
138
|
-
readyTimeout?: number | undefined;
|
|
139
|
-
}): Promise<any>;
|
|
140
|
-
static all(modelName: any, deleted: any, options: any): Promise<any[]>;
|
|
141
|
-
/**
|
|
142
|
-
* After EAS sync writes metadata for the latest version, merge new property instances and
|
|
143
|
-
* re-run DB hydration on cached Items. Item liveQuery watches seeds/versions, not metadata,
|
|
144
|
-
* and useItems may not invalidate when the seed set is unchanged.
|
|
145
|
-
*/
|
|
146
|
-
static rehydrateCachedItemsFromDbAfterEasSync(): Promise<void>;
|
|
147
|
-
/** Throws ItemCreateValidationError for unknown keys and values that break their property's rules. */
|
|
148
|
-
static assertValidCreateValues(props: any, propertyNames: any, dataTypeByPropertyName: any, skipKeys: any): Promise<void>;
|
|
149
|
-
/**
|
|
150
|
-
* Set `publisher` on loaded Items for these seeds (after claimUnpublishedDrafts stamped
|
|
151
|
-
* their rows). Items that aren't loaded read it from the DB when they load.
|
|
152
|
-
*/
|
|
153
|
-
static setPublisherForCachedSeeds(seedLocalIds: any, publisher: any): void;
|
|
154
|
-
static publish(item: any, options: any): Promise<void>;
|
|
155
|
-
constructor(initialValues: any);
|
|
156
|
-
_propertiesSubject: BehaviorSubject<{}>;
|
|
157
|
-
subscribe: (callback: any) => import("xstate").Subscription;
|
|
158
|
-
getService: () => import("xstate").Actor<import("xstate").StateMachine<{}, import("xstate").AnyEventObject, {
|
|
159
|
-
[x: string]: import("xstate").ActorRefFromLogic<import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>> | undefined;
|
|
160
|
-
}, {
|
|
161
|
-
src: "waitForDb";
|
|
162
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
163
|
-
id: string | undefined;
|
|
164
|
-
} | {
|
|
165
|
-
src: "loadOrCreateItem";
|
|
166
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
167
|
-
id: string | undefined;
|
|
168
|
-
} | {
|
|
169
|
-
src: "runPublish";
|
|
170
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
171
|
-
id: string | undefined;
|
|
172
|
-
}, never, never, never, "error" | "idle" | "loading" | "waitingForDb" | "publishing", string, {}, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, {
|
|
173
|
-
id: any;
|
|
174
|
-
states: {
|
|
175
|
-
readonly idle: {};
|
|
176
|
-
readonly publishing: {};
|
|
177
|
-
readonly waitingForDb: {};
|
|
178
|
-
readonly loading: {};
|
|
179
|
-
readonly error: {};
|
|
180
|
-
};
|
|
181
|
-
}, import("xstate").MetaObject>>;
|
|
182
|
-
/**
|
|
183
|
-
* The item's unresolved conflicts, one per property: local edits that were kept over a value
|
|
184
|
-
* sync wrote while they were pending (ADR 0019). Each property's is also on `property.conflict`.
|
|
185
|
-
*/
|
|
186
|
-
conflicts: () => Promise<any[]>;
|
|
187
|
-
getEditedProperties: () => Promise<any>;
|
|
188
|
-
unpublish: () => Promise<void>;
|
|
189
|
-
/**
|
|
190
|
-
* Upload this item's files to Arweave and write its attestations to EAS.
|
|
191
|
-
*
|
|
192
|
-
* Requires @seedprotocol/publish. Its `initPublish()` (or `<PublishProvider config>`)
|
|
193
|
-
* registers the PublishExecutor this delegates to; without it, publish() throws
|
|
194
|
-
* PUBLISH_NOT_CONFIGURED_MESSAGE. `options` are passed to that package unchanged (its
|
|
195
|
-
* CreatePublishOptions: signers, Arweave tags, `publishMode`, `onPublished`, ...).
|
|
196
|
-
*
|
|
197
|
-
* Resolves when the publish has finished, and rejects with the publish package's error
|
|
198
|
-
* if it failed. Throws OwnershipError if none of the client's addresses own the item.
|
|
199
|
-
*/
|
|
200
|
-
publish: (options: any) => Promise<any>;
|
|
201
|
-
getPublishUploads: (options: any) => Promise<any[]>;
|
|
202
|
-
getPublishPayload: (uploadedTransactions: any, options: any) => Promise<any>;
|
|
203
|
-
persistSeedUid: (publisher: any, attestationCreatedAtMs: any) => Promise<void>;
|
|
204
|
-
_storageTransactionId: any;
|
|
205
|
-
_service: import("xstate").Actor<import("xstate").StateMachine<{}, import("xstate").AnyEventObject, {
|
|
206
|
-
[x: string]: import("xstate").ActorRefFromLogic<import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>> | undefined;
|
|
207
|
-
}, {
|
|
208
|
-
src: "waitForDb";
|
|
209
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
210
|
-
id: string | undefined;
|
|
211
|
-
} | {
|
|
212
|
-
src: "loadOrCreateItem";
|
|
213
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
214
|
-
id: string | undefined;
|
|
215
|
-
} | {
|
|
216
|
-
src: "runPublish";
|
|
217
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
218
|
-
id: string | undefined;
|
|
219
|
-
}, never, never, never, "error" | "idle" | "loading" | "waitingForDb" | "publishing", string, {}, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, {
|
|
220
|
-
id: any;
|
|
221
|
-
states: {
|
|
222
|
-
readonly idle: {};
|
|
223
|
-
readonly publishing: {};
|
|
224
|
-
readonly waitingForDb: {};
|
|
225
|
-
readonly loading: {};
|
|
226
|
-
readonly error: {};
|
|
227
|
-
};
|
|
228
|
-
}, import("xstate").MetaObject>>;
|
|
229
|
-
_subscription: import("xstate").Subscription;
|
|
230
|
-
/**
|
|
231
|
-
* The ItemProperty a model property name reads and writes on the item: by its name, or by its
|
|
232
|
-
* storage name (`html` finds `htmlId` and the other way round). Internal names don't resolve.
|
|
233
|
-
*/
|
|
234
|
-
_findPropertyInstance(propertyName: any): any;
|
|
235
|
-
/** Every name `_findPropertyInstance` resolves: the stored names and their schema names. */
|
|
236
|
-
_propertyInstanceNames(): any[];
|
|
237
|
-
/**
|
|
238
|
-
* Writes an assigned seed uid to the item's seed row, so later loads and getPublishPayload see it.
|
|
239
|
-
* Writes run one after another per item, so the last assignment is the one that stays.
|
|
240
|
-
*/
|
|
241
|
-
_persistSeedUid(seedUid: any): void;
|
|
242
|
-
_createPropertyInstance(props: any): void;
|
|
243
|
-
get serviceContext(): {};
|
|
244
|
-
/**
|
|
245
|
-
* Get snapshot context from the service
|
|
246
|
-
* Used by the reactive proxy to read tracked properties
|
|
247
|
-
*/
|
|
248
|
-
_getSnapshotContext(): {};
|
|
249
|
-
get seedLocalId(): any;
|
|
250
|
-
get seedUid(): any;
|
|
251
|
-
get schemaUid(): any;
|
|
252
|
-
get latestVersionUid(): any;
|
|
253
|
-
get latestVersionLocalId(): any;
|
|
254
|
-
get modelName(): any;
|
|
255
|
-
get publisher(): any;
|
|
256
|
-
get revokedAt(): any;
|
|
257
|
-
get isRevoked(): boolean;
|
|
258
|
-
/**
|
|
259
|
-
* Returns model property names from the Model cache (for use in constructor when
|
|
260
|
-
* property instances are not yet available). Returns [] if modelName is missing
|
|
261
|
-
* or Model is not in cache. Pass schemaName when available so the correct model
|
|
262
|
-
* is resolved (cache is keyed by schemaName:modelName).
|
|
263
|
-
*/
|
|
264
|
-
_getModelPropertyNames(schemaName: any): any[];
|
|
265
|
-
/**
|
|
266
|
-
* Helper method to get model schema keys for filtering properties
|
|
267
|
-
* Since properties are loaded from metadata (which already corresponds to the model),
|
|
268
|
-
* we can infer schema keys from the property instances themselves
|
|
269
|
-
* This makes Item independent from Model
|
|
270
|
-
*/
|
|
271
|
-
_getModelSchemaKeys(): any[];
|
|
272
|
-
_getSchemaKeysFromPropertyInstances(propertyInstances: any): any[];
|
|
273
|
-
/**
|
|
274
|
-
* Helper method to determine if a property key is a model-specific property
|
|
275
|
-
* (as opposed to an internal/common property)
|
|
276
|
-
*
|
|
277
|
-
* Uses the same transformation as _getSchemaKeysFromPropertyInstances so that
|
|
278
|
-
* Map keys (e.g. "authorId", "tagIds") are correctly matched to schema keys
|
|
279
|
-
* (e.g. "author", "tags").
|
|
280
|
-
*/
|
|
281
|
-
_isModelProperty(key: any, modelSchemaKeys: any): any;
|
|
282
|
-
/**
|
|
283
|
-
* Returns only properties that are defined in the Model's schema
|
|
284
|
-
* (excludes internal/common properties)
|
|
285
|
-
*/
|
|
286
|
-
get properties(): any[];
|
|
287
|
-
/**
|
|
288
|
-
* Returns only internal/common properties that are shared across all Items
|
|
289
|
-
* (e.g., seedLocalId, seedUid, createdAt, etc.)
|
|
290
|
-
*/
|
|
291
|
-
get internalProperties(): {
|
|
292
|
-
[k: string]: any;
|
|
293
|
-
};
|
|
294
|
-
/**
|
|
295
|
-
* Returns all properties (both model-specific and internal)
|
|
296
|
-
* Useful for backward compatibility or debugging
|
|
297
|
-
*/
|
|
298
|
-
get allProperties(): {};
|
|
299
|
-
get attestationCreatedAt(): any;
|
|
300
|
-
get versionsCount(): any;
|
|
301
|
-
get lastVersionPublishedAt(): any;
|
|
302
|
-
get createdAt(): any;
|
|
303
|
-
/**
|
|
304
|
-
* Set up liveQuery subscription to watch for item and version changes in the database
|
|
305
|
-
* This enables cross-instance synchronization (e.g., changes in other tabs/windows)
|
|
306
|
-
*/
|
|
307
|
-
_setupLiveQuerySubscription(): void;
|
|
308
|
-
/**
|
|
309
|
-
* Releases this holder's reference. Item.create, Item.find and createById return the same cached
|
|
310
|
-
* instance to every caller, so the instance is stopped only when the last holder unloads it.
|
|
311
|
-
*/
|
|
312
|
-
unload(): void;
|
|
313
|
-
/**
|
|
314
|
-
* Destroy the item: soft delete in DB, remove from caches, clean up subscriptions, stop service.
|
|
315
|
-
*/
|
|
316
|
-
destroy(): Promise<void>;
|
|
317
|
-
}
|
|
318
|
-
declare namespace Item {
|
|
319
|
-
let instanceCache: Map<any, any>;
|
|
320
|
-
let CREATE_METADATA_KEYS: Set<string>;
|
|
321
|
-
}
|
|
322
|
-
declare function getGetAdditionalSyncAddresses(): any;
|
|
323
|
-
/**
|
|
324
|
-
* EAS schema UID of a model's seeds: the in-memory cache, then `model_uids` (written from EAS by
|
|
325
|
-
* startup and sync), then EAS itself. The DB comes before EAS so creating items and saving
|
|
326
|
-
* images, files and Html bodies works offline. A failed EAS request (offline) counts as "no UID":
|
|
327
|
-
* the seed is created without one and publish looks it up again.
|
|
328
|
-
*/
|
|
329
|
-
declare function getEasSchemaUidForModel(modelName: any): Promise<any>;
|
|
330
|
-
/**
|
|
331
|
-
* Parse List property values persisted as strings (JSON array or legacy comma-separated ids).
|
|
332
|
-
*/
|
|
333
|
-
declare function parseListPropertyValueFromStorage(raw: any): any;
|
|
334
|
-
/**
|
|
335
|
-
* Canonical "latest metadata row first" ordering, the one readers use to pick a property's value
|
|
336
|
-
* from its rows across versions:
|
|
337
|
-
*
|
|
338
|
-
* 1. Newest first: `COALESCE(attestation_created_at, created_at)`. A revoked row counts like any
|
|
339
|
-
* other. Sync keeps one attestation per version and property schema (the newest live one, else
|
|
340
|
-
* the newest revoked one, ADR 0006), so a revoked row is the newest only when its whole version
|
|
341
|
-
* has none live: on a live seed that is a retraction, stored with no value, and an earlier
|
|
342
|
-
* version's value must not show through it (ADR 0021); on an unpublished seed every row is
|
|
343
|
-
* revoked and keeps its last value.
|
|
344
|
-
* 2. Tie-break on `local_id`, descending.
|
|
345
|
-
*
|
|
346
|
-
* {@link METADATA_LATEST_FIRST_ORDER_SQL} is the same ordering in SQL. SQL that can't take a
|
|
347
|
-
* fragment (e.g. liveQuery tagged templates, where every interpolation is a bound value) spells it
|
|
348
|
-
* out; keep those in sync.
|
|
349
|
-
*/
|
|
350
|
-
declare const METADATA_LATEST_FIRST_ORDER_SQL: "COALESCE(attestation_created_at, created_at) DESC, local_id DESC";
|
|
351
|
-
/**
|
|
352
|
-
* True when a version row's attestation was revoked (`versions.revoked_at` set). 0 counts as
|
|
353
|
-
* "not revoked", like `seeds.revoked_at`.
|
|
354
|
-
*/
|
|
355
|
-
declare function isVersionRevoked(revokedAt: any): boolean;
|
|
356
|
-
/** How long a deferred op waits before the drainer tries it again. */
|
|
357
|
-
declare const OUTBOX_DEFER_MS: 50;
|
|
358
|
-
/**
|
|
359
|
-
* Whether an actor has been stopped (unload, destroy, or Schema eviction). Async work started by an
|
|
360
|
-
* entity (DB lookups, retry timers) must check this before sending, since a stopped actor ignores
|
|
361
|
-
* events and XState warns about every one of them.
|
|
362
|
-
*/
|
|
363
|
-
declare function isActorStopped(actor: any): boolean;
|
|
364
|
-
/**
|
|
365
|
-
* Default readyTimeout for create/find/all with waitForReady. Loads that touch OPFS and the DB can take
|
|
366
|
-
* several seconds on slow devices and CI runners; a load that is really stuck still errors.
|
|
367
|
-
*/
|
|
368
|
-
declare const DEFAULT_READY_TIMEOUT_MS: 15000;
|
|
369
|
-
/**
|
|
370
|
-
* Creates a reactive Proxy that intercepts property access and assignment
|
|
371
|
-
* to read from and write to an actor service's context.
|
|
372
|
-
*
|
|
373
|
-
* This enables automatic React re-renders when properties change, as the
|
|
374
|
-
* React hooks subscribe to the actor service which gets updated when properties
|
|
375
|
-
* are set via the proxy.
|
|
376
|
-
*
|
|
377
|
-
* @param config Configuration object
|
|
378
|
-
* @returns A proxied instance that behaves like the original but with reactive properties
|
|
379
|
-
*
|
|
380
|
-
* @note TypeScript's Proxy type doesn't automatically preserve method signatures,
|
|
381
|
-
* so we use Proxied<T> to ensure all methods and properties are recognized.
|
|
382
|
-
* The Proxy implementation preserves all methods via Reflect.get, so this is safe.
|
|
383
|
-
*/
|
|
384
|
-
declare function createReactiveProxy(config: any): any;
|
|
385
|
-
/**
|
|
386
|
-
* Common getters and utilities for entity classes
|
|
387
|
-
* These work with any entity that has a getService() method returning an XState actor
|
|
388
|
-
*/
|
|
389
|
-
/**
|
|
390
|
-
* Get the current state value from an entity's service
|
|
391
|
-
*/
|
|
392
|
-
/**
|
|
393
|
-
* Whether two references are the same entity: an instance and its reactive proxy are different
|
|
394
|
-
* objects that share one actor.
|
|
395
|
-
*/
|
|
396
|
-
declare function sameEntity(a: any, b: any): boolean;
|
|
397
|
-
/**
|
|
398
|
-
* Generic find implementation for entities
|
|
399
|
-
*
|
|
400
|
-
* @param config - Find configuration with lookup methods
|
|
401
|
-
* @param params - Find parameters (id, name, or other entity-specific params)
|
|
402
|
-
* @param options - Find options (waitForReady, readyTimeout)
|
|
403
|
-
* @returns Entity instance if found, undefined otherwise
|
|
404
|
-
*/
|
|
405
|
-
declare function findEntity(config: any, params: any, options?: {}): Promise<any>;
|
|
406
|
-
/**
|
|
407
|
-
* Remove the instance from all given caches by key, without refCount (always delete).
|
|
408
|
-
* Works for both entry caches and index caches since the operation is only delete(key).
|
|
409
|
-
*/
|
|
410
|
-
declare function forceRemoveFromCaches(instance: any, config: any): void;
|
|
411
|
-
/**
|
|
412
|
-
* Run the service event sequence and stop the service:
|
|
413
|
-
* destroyStarted -> doDestroy -> (destroyError on failure) -> stop.
|
|
414
|
-
* A doDestroy failure is recorded on the service (destroyError) and rethrown, so destroy()
|
|
415
|
-
* rejects instead of resolving with the rows still in the DB.
|
|
416
|
-
* Event names must match what the entity machines expect.
|
|
417
|
-
*/
|
|
418
|
-
declare function runDestroyLifecycle(instance: any, config: any): Promise<void>;
|
|
419
|
-
/** {@link LATEST_VERSION_ORDER_SQL} for a Drizzle `orderBy`. */
|
|
420
|
-
declare function latestVersionOrder(): import("drizzle-orm").SQL<unknown>;
|
|
421
|
-
declare var ClientManagerState: any;
|
|
422
|
-
declare var MachineIds: any;
|
|
423
|
-
declare const PUBLISH_NOT_CONFIGURED_MESSAGE: "Publishing is not configured. item.publish() needs @seedprotocol/publish: call initPublish() from it, or mount <PublishProvider config={...}>, before publishing.";
|
|
424
|
-
/**
|
|
425
|
-
* Writes a new item (ADR 0019): its seed, first version and a row per property go in one outbox op
|
|
426
|
-
* applied in one transaction, so a failure leaves nothing behind. ItemStorage initial values are
|
|
427
|
-
* staged first and moved into the item's files when the op applies.
|
|
428
|
-
*/
|
|
429
|
-
declare function createNewItem({ modelName, modelFileId, ...propertyData }: {
|
|
430
|
-
[x: string]: any;
|
|
431
|
-
modelName: any;
|
|
432
|
-
modelFileId: any;
|
|
433
|
-
}): Promise<{
|
|
434
|
-
modelName: any;
|
|
435
|
-
seedLocalId: string;
|
|
436
|
-
versionLocalId: any;
|
|
437
|
-
}>;
|
|
438
|
-
/**
|
|
439
|
-
* Appends one op and waits until it settles: its applier's result once applied, or `superseded`
|
|
440
|
-
* when a newer op of its property replaced it. Rejects with OutboxOpFailedError when it fails.
|
|
441
|
-
*/
|
|
442
|
-
declare function appendOutboxOpAndWait(input: any): Promise<{
|
|
443
|
-
superseded: boolean;
|
|
444
|
-
result?: undefined;
|
|
445
|
-
} | {
|
|
446
|
-
superseded: boolean;
|
|
447
|
-
result: any;
|
|
448
|
-
}>;
|
|
449
|
-
/**
|
|
450
|
-
* Metadata rows of a seed numbered per property_name in reader order (`rowNum = 1` is the value to
|
|
451
|
-
* show): live rows before revoked ones, then newest first. See `compareMetadataRowsLatestFirst`.
|
|
452
|
-
*/
|
|
453
|
-
declare function getMetadataLatest({ seedLocalId, seedUid }: {
|
|
454
|
-
seedLocalId: any;
|
|
455
|
-
seedUid: any;
|
|
456
|
-
}): any;
|
|
457
|
-
declare function getPublishExecutor(): any;
|
|
458
|
-
declare function getRevokeExecutor(): any;
|
|
459
|
-
/** @deprecated See UploadExecutor. */
|
|
460
|
-
declare function getUploadExecutor(): any;
|
|
461
|
-
/**
|
|
462
|
-
* Per-seed version aggregates plus the latest version row: the first live version by
|
|
463
|
-
* `LATEST_VERSION_ORDER_SQL`.
|
|
464
|
-
*
|
|
465
|
-
* Revoked versions (`revoked_at` set) are never the latest version and don't count toward
|
|
466
|
-
* `lastVersionPublishedAt`. `versionsCount` and `lastLocalUpdateAt` still cover every version row,
|
|
467
|
-
* so a fully unpublished seed (every version revoked) keeps its row here, with null
|
|
468
|
-
* `latestVersionUid` / `latestVersionLocalId` / `lastVersionPublishedAt`.
|
|
469
|
-
*
|
|
470
|
-
* For `publishedVersionUid` / `publishedVersionLocalId` on list rows, see `getItemsData`
|
|
471
|
-
* (batched resolution aligned with `getLatestPublishedVersionRow`).
|
|
472
|
-
*/
|
|
473
|
-
declare function getVersionData$1(): any;
|
|
474
|
-
/**
|
|
475
|
-
* Local draft that has never been attested: no publisher, no real uid, no attestationRaw.
|
|
476
|
-
*/
|
|
477
|
-
declare function isLocalUnsealedDraft(row: any): boolean;
|
|
478
|
-
/**
|
|
479
|
-
* Shared ownership predicate.
|
|
480
|
-
* - A local unsealed draft (never given a publisher) is owned whatever the owned addresses are:
|
|
481
|
-
* it belongs to no wallet yet, and the next wallet to connect claims it (claimUnpublishedDrafts).
|
|
482
|
-
* - Any other row is owned when its publisher (or attester) is in the owned addresses.
|
|
483
|
-
*/
|
|
484
|
-
declare function isSeedRowOwned(row: any, ownedAddresses: any): boolean;
|
|
485
|
-
/** SQL form of {@link isLocalUnsealedDraft} on `seeds`. */
|
|
486
|
-
declare function localUnsealedDraftSql(): import("drizzle-orm").SQL<unknown> | undefined;
|
|
487
|
-
/**
|
|
488
|
-
* @deprecated Matches `seeds.publisher` only. Use {@link ownedSeedsSql}, which agrees
|
|
489
|
-
* with {@link isSeedRowOwned} (empty owned → local unsealed drafts; attester fallback).
|
|
490
|
-
*/
|
|
491
|
-
declare function ownedPublisherSql(ownedAddresses: any): import("drizzle-orm").SQL<any>;
|
|
492
|
-
/**
|
|
493
|
-
* SQL for `addressFilter: 'owned'`: a row passes exactly when {@link isSeedRowOwned} is true.
|
|
494
|
-
* - Local unsealed drafts always pass.
|
|
495
|
-
* - Otherwise `lower(trim(publisher))` is in the owned set, or, when publisher is blank, the
|
|
496
|
-
* `attestationRaw.attester` ({@link resolvePublisherFromSeedRow}). `json_valid` guards
|
|
497
|
-
* `json_extract`, which throws on malformed JSON.
|
|
498
|
-
*/
|
|
499
|
-
declare function ownedSeedsSql(ownedAddresses: any): import("drizzle-orm").SQL<unknown> | undefined;
|
|
500
|
-
/** The row readers show for each property name (first by {@link compareMetadataRowsLatestFirst}). */
|
|
501
|
-
declare function pickLatestMetadataRowPerProperty(rows: any): any[];
|
|
502
|
-
/** SQL form of {@link isPlaceholderUid}: null, `''`, `'NULL'`, or zero bytes32 (trimmed, any case). */
|
|
503
|
-
declare function placeholderUidSql(column: any): import("drizzle-orm").SQL<unknown> | undefined;
|
|
504
|
-
declare const propertyMachine: import("xstate").StateMachine<{}, import("xstate").AnyEventObject, {
|
|
505
|
-
[x: string]: import("xstate").ActorRefFromLogic<import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>> | undefined;
|
|
506
|
-
}, {
|
|
507
|
-
src: "waitForDb";
|
|
508
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
509
|
-
id: string | undefined;
|
|
510
|
-
} | {
|
|
511
|
-
src: "loadOrCreateProperty";
|
|
512
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
513
|
-
id: string | undefined;
|
|
514
|
-
} | {
|
|
515
|
-
src: "hydrateFromDb";
|
|
516
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
517
|
-
id: string | undefined;
|
|
518
|
-
} | {
|
|
519
|
-
src: "initialize";
|
|
520
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
521
|
-
id: string | undefined;
|
|
522
|
-
} | {
|
|
523
|
-
src: "resolveRelatedValue";
|
|
524
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
525
|
-
id: string | undefined;
|
|
526
|
-
} | {
|
|
527
|
-
src: "analyzeInput";
|
|
528
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
529
|
-
id: string | undefined;
|
|
530
|
-
} | {
|
|
531
|
-
src: "saveImage";
|
|
532
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
533
|
-
id: string | undefined;
|
|
534
|
-
} | {
|
|
535
|
-
src: "saveFile";
|
|
536
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
537
|
-
id: string | undefined;
|
|
538
|
-
} | {
|
|
539
|
-
src: "saveHtml";
|
|
540
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
541
|
-
id: string | undefined;
|
|
542
|
-
} | {
|
|
543
|
-
src: "saveItemStorage";
|
|
544
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
545
|
-
id: string | undefined;
|
|
546
|
-
}, {
|
|
547
|
-
type: "restoreValueAfterSaveError";
|
|
548
|
-
params: import("xstate").NonReducibleUnknown;
|
|
549
|
-
}, {
|
|
550
|
-
type: "propertyMachineIsIdle";
|
|
551
|
-
params: import("xstate").NonReducibleUnknown;
|
|
552
|
-
}, never, "error" | "idle" | "loading" | "waitingForDb" | "hydratingFromDb" | "initializing" | "resolvingRelatedValue" | {
|
|
553
|
-
saving: "analyzingInput" | "doneSaving" | "savingImage" | "savingFile" | "savingHtml" | "savingItemStorage";
|
|
554
|
-
}, string, {}, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, {
|
|
555
|
-
id: "itemProperty";
|
|
556
|
-
states: {
|
|
557
|
-
readonly idle: {};
|
|
558
|
-
readonly waitingForDb: {};
|
|
559
|
-
readonly loading: {};
|
|
560
|
-
readonly error: {};
|
|
561
|
-
readonly hydratingFromDb: {};
|
|
562
|
-
readonly initializing: {};
|
|
563
|
-
readonly resolvingRelatedValue: {};
|
|
564
|
-
readonly saving: {
|
|
565
|
-
states: {
|
|
566
|
-
readonly analyzingInput: {};
|
|
567
|
-
readonly savingImage: {};
|
|
568
|
-
readonly savingFile: {};
|
|
569
|
-
readonly savingHtml: {};
|
|
570
|
-
readonly savingItemStorage: {};
|
|
571
|
-
readonly doneSaving: {};
|
|
572
|
-
};
|
|
573
|
-
};
|
|
574
|
-
};
|
|
575
|
-
}, import("xstate").MetaObject>;
|
|
576
|
-
/**
|
|
577
|
-
* SQL for an address list on `publisher`. Empty list → no rows (`1=0`).
|
|
578
|
-
* Compares `lower(publisher)` so checksummed rows match persisted lowercase addresses.
|
|
579
|
-
* Used for `addressFilter: 'watched'`; `'owned'` uses {@link ownedSeedsSql}.
|
|
580
|
-
*/
|
|
581
|
-
declare function publisherInAddressListSql(column: any, addresses: any): import("drizzle-orm").SQL<any>;
|
|
582
|
-
/** Case-insensitive membership in the persisted owned set. */
|
|
583
|
-
declare function publisherIsInOwnedSet(publisher: any, ownedAddresses: any): boolean;
|
|
584
|
-
declare function setAdditionalSyncAddresses(getter: any): void;
|
|
585
|
-
declare function setGetPublisherForNewSeeds(getter: any): void;
|
|
586
|
-
declare function setPublishExecutor(executor: any): void;
|
|
587
|
-
declare function setRevokeExecutor(executor: any): void;
|
|
588
|
-
/** @deprecated See UploadExecutor. */
|
|
589
|
-
declare function setUploadExecutor(executor: any): void;
|
|
590
|
-
/**
|
|
591
|
-
* Per-instance state for an entity (liveQuery subscriptions and the like), keyed by the entity's
|
|
592
|
-
* actor. An entity's raw instance and its reactive proxy are different objects that share one
|
|
593
|
-
* actor. State set from the constructor (`this` = raw instance) must be found again from methods
|
|
594
|
-
* called on the proxy (`this` = proxy), so a WeakMap keyed by the instance misses there.
|
|
595
|
-
*
|
|
596
|
-
* `getService()` must return the actor before the first `set`.
|
|
597
|
-
*/
|
|
598
|
-
declare class ActorKeyedState {
|
|
599
|
-
states: WeakMap<object, any>;
|
|
600
|
-
get(instance: any): any;
|
|
601
|
-
set(instance: any, state: any): this;
|
|
602
|
-
delete(instance: any): boolean;
|
|
603
|
-
has(instance: any): boolean;
|
|
604
|
-
}
|
|
605
|
-
/**
|
|
606
|
-
* Shared helpers for entity destroy operations.
|
|
607
|
-
* Used by Schema, Model, ModelProperty, Item, and ItemProperty destroy() methods.
|
|
608
|
-
*/
|
|
609
|
-
/**
|
|
610
|
-
* Unsubscribe the entity's liveQueries and any extra subscription (e.g. Item/ItemProperty
|
|
611
|
-
* _subscription), and drop its instance state. Swallows errors so one failure doesn't block the rest.
|
|
612
|
-
*/
|
|
613
|
-
declare function clearDestroySubscriptions(instance: any, config: any): void;
|
|
614
|
-
/**
|
|
615
|
-
* Release one reference to a cached entity instance. When none remain, remove it from the
|
|
616
|
-
* caches, clean up its subscriptions and stop its service
|
|
617
|
-
*
|
|
618
|
-
* @param instance - Entity instance to unload
|
|
619
|
-
* @param config - Unload configuration
|
|
620
|
-
*/
|
|
621
|
-
declare function unloadEntity(instance: any, config: any): void;
|
|
622
|
-
declare var ClientManagerEvents: any;
|
|
623
|
-
/**
|
|
624
|
-
* The publisher a seed's version and property rows take: the seed's own (its `publisher`, else the
|
|
625
|
-
* attester of its stored attestation). Undefined for a draft that belongs to no wallet yet; those
|
|
626
|
-
* rows are then claimed together with their seed (claimUnpublishedDrafts).
|
|
627
|
-
*/
|
|
628
|
-
declare function getSeedPublisher(seedLocalId: any, db?: any): Promise<any>;
|
|
629
|
-
/** Html, Image, File and Relation rows are stored as `<name>Id`; match either spelling. */
|
|
630
|
-
declare function propertyNameVariants(name: any): any[];
|
|
631
|
-
declare function createSeed({ type, seedUid, modelFileId }: {
|
|
632
|
-
type: any;
|
|
633
|
-
seedUid: any;
|
|
634
|
-
modelFileId: any;
|
|
635
|
-
}, options?: {}): Promise<any>;
|
|
636
|
-
declare function createMetadata(metadataValues: any, propertyRecordSchema: any, options: any): Promise<any>;
|
|
637
|
-
declare function updateItemPropertyValue({ localId: localIdParam, propertyName, newValue, seedUid, seedLocalId, modelName, refSeedType, refResolvedValue, refResolvedDisplayValue, versionLocalId, versionUid, schemaUid, localStorageDir, dataType, refValueType, retract, }: {
|
|
638
|
-
localId: any;
|
|
639
|
-
propertyName: any;
|
|
640
|
-
newValue: any;
|
|
641
|
-
seedUid: any;
|
|
642
|
-
seedLocalId: any;
|
|
643
|
-
modelName: any;
|
|
644
|
-
refSeedType: any;
|
|
645
|
-
refResolvedValue: any;
|
|
646
|
-
refResolvedDisplayValue: any;
|
|
647
|
-
versionLocalId: any;
|
|
648
|
-
versionUid: any;
|
|
649
|
-
schemaUid: any;
|
|
650
|
-
localStorageDir: any;
|
|
651
|
-
dataType: any;
|
|
652
|
-
refValueType: any;
|
|
653
|
-
retract: any;
|
|
654
|
-
}, options?: {}): Promise<{
|
|
655
|
-
localId: any;
|
|
656
|
-
uid: any;
|
|
657
|
-
schemaUid: any;
|
|
658
|
-
} | undefined>;
|
|
659
|
-
/** Resolve publisher from seed row: `publisher` column, else `attestationRaw.attester`. */
|
|
660
|
-
declare function resolvePublisherFromSeedRow(row: any): any;
|
|
661
|
-
declare var getPropertyData$1: Readonly<{
|
|
662
|
-
__proto__: null;
|
|
663
|
-
getPropertyData: ({ propertyName, seedLocalId, seedUid, modelName, }: {
|
|
664
|
-
propertyName: any;
|
|
665
|
-
seedLocalId: any;
|
|
666
|
-
seedUid: any;
|
|
667
|
-
modelName: any;
|
|
668
|
-
}) => Promise<any>;
|
|
669
|
-
}>;
|
|
670
|
-
declare var Item$1: Readonly<{
|
|
671
|
-
__proto__: null;
|
|
672
|
-
Item: typeof Item;
|
|
673
|
-
}>;
|
|
674
|
-
/**
|
|
675
|
-
* Resolves once the op is applied, or superseded by a newer op that applied; rejects with
|
|
676
|
-
* OutboxOpFailedError when it, or the op that superseded it, failed.
|
|
677
|
-
*/
|
|
678
|
-
declare function waitForOutboxOp(opId: any): Promise<any>;
|
|
679
|
-
/** Appends one op and tells the leader to drain. Returns the op id. */
|
|
680
|
-
declare function appendOutboxOp(input: any): Promise<string>;
|
|
681
|
-
/** Attempts before a retryable error fails the op. */
|
|
682
|
-
declare const OUTBOX_MAX_ATTEMPTS: 8;
|
|
683
|
-
/** Applied and superseded ops are kept this long, then pruned. */
|
|
684
|
-
declare const OUTBOX_PRUNE_AFTER_MS: number;
|
|
685
|
-
/** Failed ops are kept longer, so a refused write can still be looked into. */
|
|
686
|
-
declare const OUTBOX_PRUNE_FAILED_AFTER_MS: number;
|
|
687
|
-
/** The status of each op, by id; ops not found are left out. */
|
|
688
|
-
declare function getOutboxOps(opIds: any): Promise<any>;
|
|
689
|
-
/** Waits before each retry of an op that failed with a retryable error; the last is reused. */
|
|
690
|
-
declare const OUTBOX_RETRY_DELAYS_MS: number[];
|
|
691
|
-
/**
|
|
692
|
-
* An op that can't apply yet for a reason that will pass without counting as a failure: an applier's
|
|
693
|
-
* `around` found a lock held. The drainer sets the op (and its property's queue) aside for
|
|
694
|
-
* OUTBOX_DEFER_MS and goes on with other ops; its attempts aren't counted.
|
|
695
|
-
*/
|
|
696
|
-
declare class OutboxOpDeferredError extends Error {
|
|
697
|
-
constructor(message: any);
|
|
698
|
-
}
|
|
699
|
-
/** Rejects `waitForOutboxOp` for an op that failed, or that a failed op superseded. */
|
|
700
|
-
declare class OutboxOpFailedError extends Error {
|
|
701
|
-
constructor(opId: any, message: any, errorName?: null);
|
|
702
|
-
opId: any;
|
|
703
|
-
errorName: any;
|
|
704
|
-
code: string;
|
|
705
|
-
}
|
|
706
|
-
/** An op that can never apply (a broken rule, an item the client doesn't own). Not retried. */
|
|
707
|
-
declare class OutboxOpRejectedError extends Error {
|
|
708
|
-
constructor(message: any, options: any);
|
|
709
|
-
}
|
|
710
|
-
/**
|
|
711
|
-
* Applies every pending op that is due, in order. Exported for tests and for code that must see
|
|
712
|
-
* the outbox applied before it continues; normally the leader drains on its own.
|
|
713
|
-
*/
|
|
714
|
-
declare function drainOutbox(): Promise<void>;
|
|
715
|
-
/**
|
|
716
|
-
* The value an item property will have once its pending `set` ops apply, in its stored string form.
|
|
717
|
-
* Undefined when its newest pending value op is not a `set`, or it has none.
|
|
718
|
-
*/
|
|
719
|
-
declare function getPendingSetValue(seedLocalId: any, propertyName: any): Promise<any>;
|
|
720
|
-
/** An op's stored value, decoded. */
|
|
721
|
-
declare function outboxOpValue(op: any): any;
|
|
722
|
-
/** What an applied op's applier returned, decoded. */
|
|
723
|
-
declare function outboxOpResult(op: any): any;
|
|
724
|
-
/**
|
|
725
|
-
* Deletes settled ops older than their retention: applied and superseded ops after
|
|
726
|
-
* OUTBOX_PRUNE_AFTER_MS, failed ones after OUTBOX_PRUNE_FAILED_AFTER_MS. An applied op with an
|
|
727
|
-
* unresolved conflict stays until the conflict is resolved. Pending ops are never pruned. The
|
|
728
|
-
* leader runs it after a drain, at most hourly. Returns how many ops it deleted.
|
|
729
|
-
*/
|
|
730
|
-
declare function pruneOutbox(now?: number): Promise<any>;
|
|
731
|
-
declare class ItemProperty {
|
|
732
|
-
static create(props: any, options: any): any;
|
|
733
|
-
/**
|
|
734
|
-
* Wraps a new instance in its reactive proxy: tracked names read from and write to the actor's
|
|
735
|
-
* context, and assigning `value` also sends it to the actor before the setter runs.
|
|
736
|
-
*/
|
|
737
|
-
static wrapInProxy(instance: any): any;
|
|
738
|
-
/**
|
|
739
|
-
* The cached ItemProperty when it can be read right now (idle, not saving), the state
|
|
740
|
-
* `ItemProperty.find()` waits for. Otherwise undefined. Unlike `find`, it takes no cache hold, so
|
|
741
|
-
* React hooks can call it during render.
|
|
742
|
-
*/
|
|
743
|
-
static peekReady({ propertyName, seedLocalId, seedUid, }: {
|
|
744
|
-
propertyName: any;
|
|
745
|
-
seedLocalId: any;
|
|
746
|
-
seedUid: any;
|
|
747
|
-
}): any;
|
|
748
|
-
/** Takes a hold on the instance it returns: release it with `unload()`. */
|
|
749
|
-
static find({ propertyName, seedLocalId, seedUid, modelName: modelNameOption, waitForReady, readyTimeout, hold, }: {
|
|
750
|
-
propertyName: any;
|
|
751
|
-
seedLocalId: any;
|
|
752
|
-
seedUid: any;
|
|
753
|
-
modelName: any;
|
|
754
|
-
waitForReady?: boolean | undefined;
|
|
755
|
-
readyTimeout?: number | undefined;
|
|
756
|
-
hold: any;
|
|
757
|
-
}): Promise<any>;
|
|
758
|
-
/**
|
|
759
|
-
* Get all ItemProperty instances for an item.
|
|
760
|
-
* Loads property data via getItemProperties, creates instances via create, optionally waits for idle.
|
|
761
|
-
* Takes a hold on each instance, as `create` does.
|
|
762
|
-
*/
|
|
763
|
-
static all(params: any, options: any): Promise<any[]>;
|
|
764
|
-
/**
|
|
765
|
-
* @internal Takes one more hold on a cached, running instance, released with `unload()`. False
|
|
766
|
-
* (and no hold) when the instance isn't cached or was stopped.
|
|
767
|
-
*/
|
|
768
|
-
static retain(instance: any): boolean;
|
|
769
|
-
/**
|
|
770
|
-
* Stops an item's cached properties that nobody holds. Internal lookups cache a property without
|
|
771
|
-
* a hold for the item to take; one that finished after the item stopped (a liveQuery handler's
|
|
772
|
-
* find, say) never got that hold and would otherwise keep running. Called when the item stops.
|
|
773
|
-
*/
|
|
774
|
-
static unloadUnheldForItem(seedIds: any): void;
|
|
775
|
-
static cacheKey(seedLocalIdOrUid: any, propertyName: any): string;
|
|
776
|
-
/**
|
|
777
|
-
* Drops an item's properties from the instance cache, under every key they're cached by. A dropped
|
|
778
|
-
* instance someone still holds keeps running but is detached: it doesn't re-key itself into the
|
|
779
|
-
* cache when its context changes, so the next lookup creates a fresh instance.
|
|
780
|
-
*/
|
|
781
|
-
static clearInstanceCacheForItem(seedLocalIdOrUid: any): void;
|
|
782
|
-
constructor(initialValues: any);
|
|
783
|
-
_isRelation: boolean;
|
|
784
|
-
_isList: boolean;
|
|
785
|
-
find: typeof ItemProperty.find;
|
|
786
|
-
_constructedPropertyName: any;
|
|
787
|
-
_dataType: any;
|
|
788
|
-
_alias: any;
|
|
789
|
-
_subject: BehaviorSubject<any>;
|
|
790
|
-
_service: import("xstate").Actor<import("xstate").StateMachine<{}, import("xstate").AnyEventObject, {
|
|
791
|
-
[x: string]: import("xstate").ActorRefFromLogic<import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>> | undefined;
|
|
792
|
-
}, {
|
|
793
|
-
src: "waitForDb";
|
|
794
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
795
|
-
id: string | undefined;
|
|
796
|
-
} | {
|
|
797
|
-
src: "loadOrCreateProperty";
|
|
798
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
799
|
-
id: string | undefined;
|
|
800
|
-
} | {
|
|
801
|
-
src: "hydrateFromDb";
|
|
802
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
803
|
-
id: string | undefined;
|
|
804
|
-
} | {
|
|
805
|
-
src: "initialize";
|
|
806
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
807
|
-
id: string | undefined;
|
|
808
|
-
} | {
|
|
809
|
-
src: "resolveRelatedValue";
|
|
810
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
811
|
-
id: string | undefined;
|
|
812
|
-
} | {
|
|
813
|
-
src: "analyzeInput";
|
|
814
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
815
|
-
id: string | undefined;
|
|
816
|
-
} | {
|
|
817
|
-
src: "saveImage";
|
|
818
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
819
|
-
id: string | undefined;
|
|
820
|
-
} | {
|
|
821
|
-
src: "saveFile";
|
|
822
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
823
|
-
id: string | undefined;
|
|
824
|
-
} | {
|
|
825
|
-
src: "saveHtml";
|
|
826
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
827
|
-
id: string | undefined;
|
|
828
|
-
} | {
|
|
829
|
-
src: "saveItemStorage";
|
|
830
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
831
|
-
id: string | undefined;
|
|
832
|
-
}, {
|
|
833
|
-
type: "restoreValueAfterSaveError";
|
|
834
|
-
params: import("xstate").NonReducibleUnknown;
|
|
835
|
-
}, {
|
|
836
|
-
type: "propertyMachineIsIdle";
|
|
837
|
-
params: import("xstate").NonReducibleUnknown;
|
|
838
|
-
}, never, "error" | "idle" | "loading" | "waitingForDb" | "hydratingFromDb" | "initializing" | "resolvingRelatedValue" | {
|
|
839
|
-
saving: "analyzingInput" | "doneSaving" | "savingImage" | "savingFile" | "savingHtml" | "savingItemStorage";
|
|
840
|
-
}, string, {}, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, {
|
|
841
|
-
id: "itemProperty";
|
|
842
|
-
states: {
|
|
843
|
-
readonly idle: {};
|
|
844
|
-
readonly waitingForDb: {};
|
|
845
|
-
readonly loading: {};
|
|
846
|
-
readonly error: {};
|
|
847
|
-
readonly hydratingFromDb: {};
|
|
848
|
-
readonly initializing: {};
|
|
849
|
-
readonly resolvingRelatedValue: {};
|
|
850
|
-
readonly saving: {
|
|
851
|
-
states: {
|
|
852
|
-
readonly analyzingInput: {};
|
|
853
|
-
readonly savingImage: {};
|
|
854
|
-
readonly savingFile: {};
|
|
855
|
-
readonly savingHtml: {};
|
|
856
|
-
readonly savingItemStorage: {};
|
|
857
|
-
readonly doneSaving: {};
|
|
858
|
-
};
|
|
859
|
-
};
|
|
860
|
-
};
|
|
861
|
-
}, import("xstate").MetaObject>>;
|
|
862
|
-
_subscription: import("xstate").Subscription;
|
|
863
|
-
_schemaUid: any;
|
|
864
|
-
/**
|
|
865
|
-
* Set up liveQuery subscription to watch for metadata changes in the database
|
|
866
|
-
* This enables cross-instance synchronization (e.g., changes in other tabs/windows)
|
|
867
|
-
*/
|
|
868
|
-
_setupLiveQuerySubscription(): void;
|
|
869
|
-
/**
|
|
870
|
-
* Set up liveQuery subscription to watch for property schema changes in the properties table.
|
|
871
|
-
* When ModelProperty dataType (or other schema fields) changes in the database, ItemProperty
|
|
872
|
-
* receives the update and refreshes its propertyRecordSchema.
|
|
873
|
-
*/
|
|
874
|
-
_setupPropertySchemaLiveQuery(): void;
|
|
875
|
-
getService(): import("xstate").Actor<import("xstate").StateMachine<{}, import("xstate").AnyEventObject, {
|
|
876
|
-
[x: string]: import("xstate").ActorRefFromLogic<import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>> | undefined;
|
|
877
|
-
}, {
|
|
878
|
-
src: "waitForDb";
|
|
879
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
880
|
-
id: string | undefined;
|
|
881
|
-
} | {
|
|
882
|
-
src: "loadOrCreateProperty";
|
|
883
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
884
|
-
id: string | undefined;
|
|
885
|
-
} | {
|
|
886
|
-
src: "hydrateFromDb";
|
|
887
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
888
|
-
id: string | undefined;
|
|
889
|
-
} | {
|
|
890
|
-
src: "initialize";
|
|
891
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
892
|
-
id: string | undefined;
|
|
893
|
-
} | {
|
|
894
|
-
src: "resolveRelatedValue";
|
|
895
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
896
|
-
id: string | undefined;
|
|
897
|
-
} | {
|
|
898
|
-
src: "analyzeInput";
|
|
899
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
900
|
-
id: string | undefined;
|
|
901
|
-
} | {
|
|
902
|
-
src: "saveImage";
|
|
903
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
904
|
-
id: string | undefined;
|
|
905
|
-
} | {
|
|
906
|
-
src: "saveFile";
|
|
907
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
908
|
-
id: string | undefined;
|
|
909
|
-
} | {
|
|
910
|
-
src: "saveHtml";
|
|
911
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
912
|
-
id: string | undefined;
|
|
913
|
-
} | {
|
|
914
|
-
src: "saveItemStorage";
|
|
915
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
916
|
-
id: string | undefined;
|
|
917
|
-
}, {
|
|
918
|
-
type: "restoreValueAfterSaveError";
|
|
919
|
-
params: import("xstate").NonReducibleUnknown;
|
|
920
|
-
}, {
|
|
921
|
-
type: "propertyMachineIsIdle";
|
|
922
|
-
params: import("xstate").NonReducibleUnknown;
|
|
923
|
-
}, never, "error" | "idle" | "loading" | "waitingForDb" | "hydratingFromDb" | "initializing" | "resolvingRelatedValue" | {
|
|
924
|
-
saving: "analyzingInput" | "doneSaving" | "savingImage" | "savingFile" | "savingHtml" | "savingItemStorage";
|
|
925
|
-
}, string, {}, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, {
|
|
926
|
-
id: "itemProperty";
|
|
927
|
-
states: {
|
|
928
|
-
readonly idle: {};
|
|
929
|
-
readonly waitingForDb: {};
|
|
930
|
-
readonly loading: {};
|
|
931
|
-
readonly error: {};
|
|
932
|
-
readonly hydratingFromDb: {};
|
|
933
|
-
readonly initializing: {};
|
|
934
|
-
readonly resolvingRelatedValue: {};
|
|
935
|
-
readonly saving: {
|
|
936
|
-
states: {
|
|
937
|
-
readonly analyzingInput: {};
|
|
938
|
-
readonly savingImage: {};
|
|
939
|
-
readonly savingFile: {};
|
|
940
|
-
readonly savingHtml: {};
|
|
941
|
-
readonly savingItemStorage: {};
|
|
942
|
-
readonly doneSaving: {};
|
|
943
|
-
};
|
|
944
|
-
};
|
|
945
|
-
};
|
|
946
|
-
}, import("xstate").MetaObject>>;
|
|
947
|
-
_getSnapshot(): import("xstate").MachineSnapshot<{}, import("xstate").AnyEventObject, {
|
|
948
|
-
[x: string]: import("xstate").ActorRefFromLogic<import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>> | undefined;
|
|
949
|
-
}, "error" | "idle" | "loading" | "waitingForDb" | "hydratingFromDb" | "initializing" | "resolvingRelatedValue" | {
|
|
950
|
-
saving: "analyzingInput" | "doneSaving" | "savingImage" | "savingFile" | "savingHtml" | "savingItemStorage";
|
|
951
|
-
}, string, import("xstate").NonReducibleUnknown, import("xstate").MetaObject, {
|
|
952
|
-
id: "itemProperty";
|
|
953
|
-
states: {
|
|
954
|
-
readonly idle: {};
|
|
955
|
-
readonly waitingForDb: {};
|
|
956
|
-
readonly loading: {};
|
|
957
|
-
readonly error: {};
|
|
958
|
-
readonly hydratingFromDb: {};
|
|
959
|
-
readonly initializing: {};
|
|
960
|
-
readonly resolvingRelatedValue: {};
|
|
961
|
-
readonly saving: {
|
|
962
|
-
states: {
|
|
963
|
-
readonly analyzingInput: {};
|
|
964
|
-
readonly savingImage: {};
|
|
965
|
-
readonly savingFile: {};
|
|
966
|
-
readonly savingHtml: {};
|
|
967
|
-
readonly savingItemStorage: {};
|
|
968
|
-
readonly doneSaving: {};
|
|
969
|
-
};
|
|
970
|
-
};
|
|
971
|
-
};
|
|
972
|
-
}>;
|
|
973
|
-
_getSnapshotContext(): {};
|
|
974
|
-
get localId(): any;
|
|
975
|
-
get uid(): any;
|
|
976
|
-
get seedLocalId(): any;
|
|
977
|
-
get seedUid(): any;
|
|
978
|
-
get schemaUid(): any;
|
|
979
|
-
get propertyName(): any;
|
|
980
|
-
/** DB / EAS / metadata column name (e.g. authorIdentityIds). Use for storage; prefer `propertyName` for public API. */
|
|
981
|
-
get storagePropertyName(): any;
|
|
982
|
-
get modelName(): any;
|
|
983
|
-
get propertyDef(): any;
|
|
984
|
-
get localStorageDir(): any;
|
|
985
|
-
get refResolvedValue(): any;
|
|
986
|
-
get localStoragePath(): string | undefined;
|
|
987
|
-
get versionLocalId(): any;
|
|
988
|
-
get status(): "error" | "idle" | "loading" | "waitingForDb" | "hydratingFromDb" | "initializing" | "resolvingRelatedValue" | {
|
|
989
|
-
saving: "analyzingInput" | "doneSaving" | "savingImage" | "savingFile" | "savingHtml" | "savingItemStorage";
|
|
990
|
-
};
|
|
991
|
-
/** Validation errors from last failed save (enum, pattern, minLength, maxLength). Cleared when the next save starts. */
|
|
992
|
-
get saveValidationErrors(): any;
|
|
993
|
-
get alias(): any;
|
|
994
|
-
/**
|
|
995
|
-
* The unresolved conflict between this property's last local edit and a value sync wrote while
|
|
996
|
-
* the edit was pending (ADR 0019): the local edit was kept, and `remoteValue` is what sync wrote.
|
|
997
|
-
* Null when there is none. Cleared by the next edit or `resolveConflict`.
|
|
998
|
-
*/
|
|
999
|
-
get conflict(): any;
|
|
1000
|
-
/**
|
|
1001
|
-
* Settles `conflict`. `'local'` keeps the local edit. `'remote'` drops the local draft, so the
|
|
1002
|
-
* synced value shows again (and publish has nothing to send for this property).
|
|
1003
|
-
*/
|
|
1004
|
-
resolveConflict(choice: any): Promise<void>;
|
|
1005
|
-
set value(value: any);
|
|
1006
|
-
get value(): any;
|
|
1007
|
-
/**
|
|
1008
|
-
* Shows `value` at once and saves it; `await property.save()` to wait for the result. Unlike
|
|
1009
|
-
* assigning `property.value`, it saves even when `value` is already in context.
|
|
1010
|
-
*
|
|
1011
|
-
* @param options.before - The values to restore if the save is refused or fails. Defaults to what
|
|
1012
|
-
* showed before the first `showValue` since the last save, else the current context.
|
|
1013
|
-
*/
|
|
1014
|
-
setValue(value: any, options?: {}): void;
|
|
1015
|
-
_unsavedBefore: {
|
|
1016
|
-
propertyValue: any;
|
|
1017
|
-
renderValue: any;
|
|
1018
|
-
refResolvedValue: any;
|
|
1019
|
-
refResolvedDisplayValue: any;
|
|
1020
|
-
localStorageDir: any;
|
|
1021
|
-
storageTransactionId: any;
|
|
1022
|
-
} | undefined;
|
|
1023
|
-
/**
|
|
1024
|
-
* Clears the value and resolves once it is stored, like `save()` (ADR 0021). A refused or failed
|
|
1025
|
-
* clear restores the value. Publish then attests the property's empty value, so its history shows
|
|
1026
|
-
* the removal and reads of earlier Versions keep the old value.
|
|
1027
|
-
*
|
|
1028
|
-
* @param options.retract - Publish revokes the property's attestations instead, so reads of earlier
|
|
1029
|
-
* Versions stop showing the value too. Revocation is permanent.
|
|
1030
|
-
* @throws ClearNotSupportedError for a Boolean or Date property without `retract`: their EAS types
|
|
1031
|
-
* have no empty value.
|
|
1032
|
-
*/
|
|
1033
|
-
clear(options?: {}): Promise<void>;
|
|
1034
|
-
/** An Image, File or Html property, or a Relation to Image: its value is a storage seed. */
|
|
1035
|
-
_holdsStorageSeed(context: any): boolean;
|
|
1036
|
-
/** Shows `value` at once and sends the save; `clear` shows and saves a cleared value instead. */
|
|
1037
|
-
_sendSave(value: any, before: any, clear: any): void;
|
|
1038
|
-
_pendingSchemaSave: Promise<boolean> | undefined;
|
|
1039
|
-
/**
|
|
1040
|
-
* Shows `value` without saving it, for input that saves later (a debounced text field). The next
|
|
1041
|
-
* `setValue` or assignment saves, and if that save is refused or fails, the property goes back to
|
|
1042
|
-
* what showed before the first `showValue`.
|
|
1043
|
-
*/
|
|
1044
|
-
showValue(value: any): void;
|
|
1045
|
-
get published(): boolean;
|
|
1046
|
-
subscribe(callback: any): import("xstate").Subscription;
|
|
1047
|
-
save(): Promise<void>;
|
|
1048
|
-
/**
|
|
1049
|
-
* Every cache key holding this instance: its item's local id and seed uid, and the name it had
|
|
1050
|
-
* before a rename (List of relation). They share one entry.
|
|
1051
|
-
*/
|
|
1052
|
-
_cacheKeys(): any[];
|
|
1053
|
-
unload(): void;
|
|
1054
|
-
/**
|
|
1055
|
-
* Destroy the item property: remove from caches, delete its metadata rows (every version of
|
|
1056
|
-
* this item's value) from the DB, remove it from the parent Item, and stop the service.
|
|
1057
|
-
* Throws OwnershipError if none of the client's addresses own the item.
|
|
1058
|
-
*/
|
|
1059
|
-
destroy(): Promise<void>;
|
|
1060
|
-
_destroyRows(context: any): Promise<void>;
|
|
1061
|
-
}
|
|
1062
|
-
declare namespace ItemProperty {
|
|
1063
|
-
let instanceCache_1: Map<any, any>;
|
|
1064
|
-
export { instanceCache_1 as instanceCache };
|
|
1065
|
-
}
|
|
1066
|
-
/** Registers the applier for one op kind; returns a function that removes it. */
|
|
1067
|
-
declare function registerOutboxApplier(kind: any, applier: any): () => void;
|
|
1068
|
-
/**
|
|
1069
|
-
* Starts draining in this tab once it is the leader, resuming ops left pending (a reload, a closed
|
|
1070
|
-
* leader tab), and listens for other tabs' nudges and settled ops. Safe to call more than once.
|
|
1071
|
-
*/
|
|
1072
|
-
declare function startOutbox(): void;
|
|
1073
|
-
/** Thrown by ItemProperty.save() when the value failed validation (enum, pattern, minLength, maxLength). */
|
|
1074
|
-
declare class ItemPropertySaveValidationError extends Error {
|
|
1075
|
-
constructor(message: any, validationErrors: any);
|
|
1076
|
-
validationErrors: any;
|
|
1077
|
-
}
|
|
1078
|
-
/**
|
|
1079
|
-
* Thrown by write operations (save, destroy, publish, unpublish) on an item none
|
|
1080
|
-
* of the client's addresses own. See isItemOwned for what counts as owned.
|
|
1081
|
-
*/
|
|
1082
|
-
declare class OwnershipError extends Error {
|
|
1083
|
-
constructor(message?: string);
|
|
1084
|
-
}
|
|
1085
|
-
/**
|
|
1086
|
-
* Throws OwnershipError if the item is not owned. Use before write operations
|
|
1087
|
-
* (publish, save, destroy).
|
|
1088
|
-
*/
|
|
1089
|
-
declare function assertItemOwned(item: any): Promise<void>;
|
|
1090
|
-
/**
|
|
1091
|
-
* Resolves once every op pending when it was called has settled (applied, superseded or failed),
|
|
1092
|
-
* so a reader of `metadata` sees every edit made before. Publish waits on this before it reads.
|
|
1093
|
-
*/
|
|
1094
|
-
declare function waitForPendingOutboxOps(): Promise<void>;
|
|
1095
|
-
/**
|
|
1096
|
-
* Checks if the current user owns the item: its publisher is in the persisted owned addresses,
|
|
1097
|
-
* or it's a local unsealed draft (no publisher, no real uid, no attestationRaw). Such a draft
|
|
1098
|
-
* was made with no wallet connected and is editable until `claimUnpublishedDrafts`, which
|
|
1099
|
-
* connecting a wallet calls, gives it that wallet as publisher.
|
|
1100
|
-
*
|
|
1101
|
-
* Does not include `getAdditionalSyncAddresses` (those are extra EAS indexers,
|
|
1102
|
-
* not wallets the user controls).
|
|
1103
|
-
*/
|
|
1104
|
-
declare function isItemOwned(item: any): Promise<boolean>;
|
|
1105
|
-
/** Sort comparator: larger time first; on tie, larger localId (lexicographic) first. */
|
|
1106
|
-
declare function compareMetadataRowsLatestFirst(a: any, b: any): number;
|
|
1107
|
-
/**
|
|
1108
|
-
* A metadata row holds published content when it has a valid EAS attestation uid, or when sync
|
|
1109
|
-
* derived it from one (ItemStorage rows from a storage_transaction_id attestation: no uid of their
|
|
1110
|
-
* own, `derivedFromUid` set). Anything else is a local edit (or a row awaiting its uid backfill).
|
|
1111
|
-
*/
|
|
1112
|
-
declare function isPublishedMetadataRow(row: any): boolean;
|
|
1113
|
-
import { BehaviorSubject } from 'rxjs';
|
|
1114
|
-
export { getGetPublisherForNewSeeds as $, getLatestPublishedVersionRow as A, writeInBatches as B, ClearNotSupportedError as C, selectInBatches as D, getItemData as E, waitForEntityIdle as F, chunkValues as G, rowsPerInsert as H, Item as I, getGetAdditionalSyncAddresses as J, getEasSchemaUidForModel as K, parseListPropertyValueFromStorage as L, METADATA_LATEST_FIRST_ORDER_SQL as M, isVersionRevoked as N, OUTBOX_DEFER_MS as O, isActorStopped as P, DEFAULT_READY_TIMEOUT_MS as Q, createReactiveProxy as R, sameEntity as S, findEntity as T, forceRemoveFromCaches as U, runDestroyLifecycle as V, latestVersionOrder as W, ClientManagerState as X, MachineIds as Y, PUBLISH_NOT_CONFIGURED_MESSAGE as Z, createNewItem as _, appendOutboxOpAndWait as a, getMetadataLatest as a0, getPublishExecutor as a1, getRevokeExecutor as a2, getUploadExecutor as a3, getVersionData$1 as a4, isLocalUnsealedDraft as a5, isSeedRowOwned as a6, localUnsealedDraftSql as a7, ownedPublisherSql as a8, ownedSeedsSql as a9, pickLatestMetadataRowPerProperty as aa, placeholderUidSql as ab, propertyMachine as ac, publisherInAddressListSql as ad, publisherIsInOwnedSet as ae, setAdditionalSyncAddresses as af, setGetPublisherForNewSeeds as ag, setPublishExecutor as ah, setRevokeExecutor as ai, setUploadExecutor as aj, ActorKeyedState as ak, clearDestroySubscriptions as al, unloadEntity as am, ClientManagerEvents as an, getSeedPublisher as ao, propertyNameVariants as ap, createSeed as aq, createMetadata as ar, updateItemPropertyValue as as, resolvePublisherFromSeedRow as at, getPropertyData$1 as au, Item$1 as av, waitForOutboxOp as b, appendOutboxOp as c, OUTBOX_MAX_ATTEMPTS as d, OUTBOX_PRUNE_AFTER_MS as e, OUTBOX_PRUNE_FAILED_AFTER_MS as f, getOutboxOps as g, OUTBOX_RETRY_DELAYS_MS as h, OutboxOpDeferredError as i, OutboxOpFailedError as j, OutboxOpRejectedError as k, drainOutbox as l, getPendingSetValue as m, outboxOpValue as n, outboxOpResult as o, pruneOutbox as p, ItemProperty as q, registerOutboxApplier as r, startOutbox as s, ItemPropertySaveValidationError as t, OwnershipError as u, assertItemOwned as v, waitForPendingOutboxOps as w, isItemOwned as x, compareMetadataRowsLatestFirst as y, isPublishedMetadataRow as z };
|
|
1115
|
-
//# sourceMappingURL=Item-CG5IhPtL.d.ts.map
|