@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,515 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Error thrown when a conflict is detected between actor context and database
|
|
3
|
-
*/
|
|
4
|
-
declare class ConflictError extends Error {
|
|
5
|
-
constructor(message: any, conflict: any);
|
|
6
|
-
conflict: any;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Thrown by Item.create when values don't fit the model: unknown keys, wrong types, or values
|
|
10
|
-
* that break the property's validation rules. Nothing is left written: most values are checked
|
|
11
|
-
* before anything is written, and File/Image/Html/ItemStorage values, checked as they're saved,
|
|
12
|
-
* have their draft removed.
|
|
13
|
-
*/
|
|
14
|
-
declare class ItemCreateValidationError extends Error {
|
|
15
|
-
constructor(modelName: any, problems: any);
|
|
16
|
-
modelName: any;
|
|
17
|
-
problems: any;
|
|
18
|
-
}
|
|
19
|
-
declare class Model {
|
|
20
|
-
static trackPendingWrite(modelFileId: any, schemaId: any): void;
|
|
21
|
-
static getPendingModelIds(schemaId: any): any[];
|
|
22
|
-
/**
|
|
23
|
-
* Resolves once the model is idle and any properties passed to Model.create exist.
|
|
24
|
-
* Rejects if it errors, times out, or its properties can't be created.
|
|
25
|
-
*/
|
|
26
|
-
static waitUntilReady(instance: any, timeout: any): Promise<any>;
|
|
27
|
-
/**
|
|
28
|
-
* Gives an idle, valid model the row someone else wrote for its id, the way its own write would
|
|
29
|
-
* (writeSuccess with the row's id, which goes on to create its properties from their rows).
|
|
30
|
-
* Returns false when there is no such row, so the model writes it.
|
|
31
|
-
*/
|
|
32
|
-
static adoptPersistedRow(instance: any): Promise<boolean>;
|
|
33
|
-
/**
|
|
34
|
-
* True when a name-cached instance belongs to a different model than the requested modelFileId.
|
|
35
|
-
* A schema re-imported under the same name can give its models new ids while the previous
|
|
36
|
-
* instances are still cached by name; Model.create must not hand those back for the new id.
|
|
37
|
-
*/
|
|
38
|
-
static isOtherModelId(cachedId: any, requestedId: any): boolean;
|
|
39
|
-
/**
|
|
40
|
-
* Find a unique model name by checking for duplicates (case-insensitive) in the cache
|
|
41
|
-
* If duplicates are found, appends an incrementing number to make it unique
|
|
42
|
-
*
|
|
43
|
-
* @param modelName - The desired model name
|
|
44
|
-
* @param schemaName - The schema name
|
|
45
|
-
* @param skipAllChecks - If true, skip all duplicate checks and return original name (used when creating schema models to preserve original names)
|
|
46
|
-
* @returns A unique model name
|
|
47
|
-
*/
|
|
48
|
-
static findUniqueModelName(modelName: any, schemaName: any, skipAllChecks?: boolean): any;
|
|
49
|
-
static create(modelName: any, schemaNameOrSchema: any, options: any): any;
|
|
50
|
-
/**
|
|
51
|
-
* Get Model instance by modelFileId (O(1) lookup). Takes a hold on the instance; release it with
|
|
52
|
-
* `unload()`.
|
|
53
|
-
*/
|
|
54
|
-
static getById(modelFileId: any): any;
|
|
55
|
-
/**
|
|
56
|
-
* @internal For a Schema loading its models: true when this load should take the schema's hold
|
|
57
|
-
* on the model (pass no `hold` option), false when the schema already holds it (pass
|
|
58
|
-
* `hold: false`). After a true, call `dropSchemaHold` if the load returns no model.
|
|
59
|
-
*/
|
|
60
|
-
static takeSchemaHold(modelFileId: any): boolean;
|
|
61
|
-
/** @internal The load `takeSchemaHold` approved found no model: there is no hold to release. */
|
|
62
|
-
static dropSchemaHold(modelFileId: any): void;
|
|
63
|
-
/** @internal A Schema's last unload: releases its hold on each of its models. */
|
|
64
|
-
static releaseSchemaHolds(schemaName: any): void;
|
|
65
|
-
/**
|
|
66
|
-
* The cached Model with this modelFileId, without taking a hold. For SDK code that reads the
|
|
67
|
-
* model and doesn't hand it to a caller; callers that keep it use `getById`, `find` or `create`.
|
|
68
|
-
*/
|
|
69
|
-
static peek(modelFileId: any): any;
|
|
70
|
-
/**
|
|
71
|
-
* Get Model instance by name (O(1) lookup via name→ID mapping). Takes a hold on the instance;
|
|
72
|
-
* release it with `unload()`.
|
|
73
|
-
*
|
|
74
|
-
* @param modelName - The name of the model
|
|
75
|
-
* @param schemaName - The schema name (optional, will query DB if not provided)
|
|
76
|
-
* @returns The Model instance if found, undefined otherwise
|
|
77
|
-
*/
|
|
78
|
-
static getByName(modelName: any, schemaName: any): any;
|
|
79
|
-
/**
|
|
80
|
-
* `getByName` without taking a hold. Without `schemaName` it searches every cached schema and
|
|
81
|
-
* throws AmbiguousModelError when models from several schemas share the name; callers that know
|
|
82
|
-
* the schema or model id should use Model.resolve() instead.
|
|
83
|
-
*/
|
|
84
|
-
static peekByName(modelName: any, schemaName: any): any;
|
|
85
|
-
/**
|
|
86
|
-
* The one cached Model whose name matches (no hold taken), or AmbiguousModelError if models from
|
|
87
|
-
* several schemas do.
|
|
88
|
-
*/
|
|
89
|
-
static _getUniqueCachedModel(label: any, matches: any): any;
|
|
90
|
-
/**
|
|
91
|
-
* Resolve a cached Model from the most specific scope available: modelFileId (Model.id), then
|
|
92
|
-
* schemaName + modelName, then modelName alone. Takes no hold.
|
|
93
|
-
*/
|
|
94
|
-
static resolve(modelName: any, scope?: {}): any;
|
|
95
|
-
/**
|
|
96
|
-
* Find Model by modelType (an EAS model name, as seeds.type stores it). Matched as ADR 0008
|
|
97
|
-
* matches EAS names: `new_model` finds "New model", and `htmlpage` (an older SDK's name) finds
|
|
98
|
-
* "HTMLPage", unless HTMLPage's nameMatch (ADR 0009) is `exact`. Only the tightest matching tier
|
|
99
|
-
* counts; matches in several schemas are ambiguous. Takes no hold.
|
|
100
|
-
*/
|
|
101
|
-
static findByModelType(modelType: any): any;
|
|
102
|
-
/**
|
|
103
|
-
* Get all Model instances for a schema from cache only (synchronous). Takes no holds.
|
|
104
|
-
* Includes models created at runtime via Model.create() that may not yet be in schema context.
|
|
105
|
-
*/
|
|
106
|
-
static getCachedInstancesForSchema(schemaName: any): any[];
|
|
107
|
-
/**
|
|
108
|
-
* Async Model.resolve(): exact cache hit by modelFileId or schemaName+modelName, else the DB row for
|
|
109
|
-
* that scope (instantiating the Model), and only then the name-only fallback. Takes no hold.
|
|
110
|
-
*/
|
|
111
|
-
static resolveAsync(modelName: any, scope?: {}): Promise<any>;
|
|
112
|
-
/**
|
|
113
|
-
* Get Model instance by name, querying database if not in cache
|
|
114
|
-
* This is an async version that can query the database when schemaName is not provided
|
|
115
|
-
*
|
|
116
|
-
* @param modelName - The name of the model
|
|
117
|
-
* @param schemaName - Optional schema name (will query DB if not provided)
|
|
118
|
-
* @returns The Model instance if found, undefined otherwise. Takes a hold unless `hold: false`.
|
|
119
|
-
*/
|
|
120
|
-
static getByNameAsync(modelName: any, schemaName: any, options: any): Promise<any>;
|
|
121
|
-
/**
|
|
122
|
-
* Create or get Model instance by modelFileId
|
|
123
|
-
* Checks cache first, then database if not found
|
|
124
|
-
*
|
|
125
|
-
* @param modelFileId - The model file ID to look up
|
|
126
|
-
* @returns The Model instance if found, undefined otherwise
|
|
127
|
-
*/
|
|
128
|
-
static createById(modelFileId: any, options: any): Promise<any>;
|
|
129
|
-
/**
|
|
130
|
-
* Find Model instance by modelFileId, modelName/schemaName, or both
|
|
131
|
-
* Waits for the model to be fully loaded (idle state) by default
|
|
132
|
-
* @param options - Find options including lookup parameters and wait configuration
|
|
133
|
-
* @returns Model instance if found, undefined otherwise
|
|
134
|
-
*/
|
|
135
|
-
static find({ modelFileId, modelName, schemaName, waitForReady, readyTimeout, }: {
|
|
136
|
-
modelFileId: any;
|
|
137
|
-
modelName: any;
|
|
138
|
-
schemaName: any;
|
|
139
|
-
waitForReady?: boolean | undefined;
|
|
140
|
-
readyTimeout?: number | undefined;
|
|
141
|
-
}): Promise<any>;
|
|
142
|
-
/**
|
|
143
|
-
* Get all Model instances for a schema by schemaFileId or schemaName
|
|
144
|
-
* Queries database for all models with the given schemaId/schemaName and returns Model instances
|
|
145
|
-
*
|
|
146
|
-
* @param schemaIdentifier - The schema file ID or schema name to get models for
|
|
147
|
-
* @returns Array of Model instances for the schema
|
|
148
|
-
*/
|
|
149
|
-
static createBySchemaId(schemaIdentifier: any): Promise<any[]>;
|
|
150
|
-
/**
|
|
151
|
-
* Get all Model instances, optionally filtered by schema.
|
|
152
|
-
* When DB is available, loads from DB via getModelsData; otherwise returns from cache.
|
|
153
|
-
* With waitForReady, waits for each model to be ready (idle, with any properties from Model.create
|
|
154
|
-
* created) and leaves out models that error or time out. Takes no holds: a caller that keeps a
|
|
155
|
-
* model uses `Model.find` or `Model.create`.
|
|
156
|
-
*/
|
|
157
|
-
static all(schemaName: any, options: any): Promise<any[]>;
|
|
158
|
-
/**
|
|
159
|
-
* Update name index when model name changes
|
|
160
|
-
*/
|
|
161
|
-
static updateNameIndex(oldName: any, newName: any, schemaName: any, modelFileId: any): void;
|
|
162
|
-
/**
|
|
163
|
-
* Force-evict every cached Model belonging to a schema, ignoring refCounts, and stop their services.
|
|
164
|
-
* Used by Schema.destroy(): once the DB rows are gone, cached instances would keep a dangling _dbId
|
|
165
|
-
* and be handed back by Model.create/Model.all after the schema is re-imported.
|
|
166
|
-
* @returns names of the evicted models (so callers can evict their ModelProperty instances)
|
|
167
|
-
*/
|
|
168
|
-
static evictForSchema(schemaName: any): any[];
|
|
169
|
-
/**
|
|
170
|
-
* Refresh the property ids of every cached Model whose DB row is `dbId`. Called when a property
|
|
171
|
-
* write for that model finishes: until then `properties` includes it as a pending write, and in Node
|
|
172
|
-
* (no reactive liveQuery) nothing else adds it to `_liveQueryPropertyIds`.
|
|
173
|
-
*/
|
|
174
|
-
static refreshPropertiesForDbId(dbId: any): Promise<void>;
|
|
175
|
-
constructor(modelName: any, schemaName: any, id: any, initialContext: any, idFromSchema: any);
|
|
176
|
-
_service: import("xstate").Actor<import("xstate").StateMachine<{}, import("xstate").AnyEventObject, {
|
|
177
|
-
[x: string]: import("xstate").ActorRefFromLogic<import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject> | import("xstate").StateMachine<{}, import("xstate").AnyEventObject, {
|
|
178
|
-
[x: string]: import("xstate").ActorRefFromLogic<import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject> | import("xstate").PromiseActorLogic<any, import("xstate").NonReducibleUnknown, import("xstate").EventObject>> | undefined;
|
|
179
|
-
}, {
|
|
180
|
-
src: "validateEntity";
|
|
181
|
-
logic: import("xstate").PromiseActorLogic<any, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
182
|
-
id: string | undefined;
|
|
183
|
-
} | {
|
|
184
|
-
src: "writeToDatabase";
|
|
185
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
186
|
-
id: string | undefined;
|
|
187
|
-
}, never, never, never, "error" | "idle" | "validating" | "writing" | "success", string, {}, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, {
|
|
188
|
-
id: "writeProcess";
|
|
189
|
-
states: {
|
|
190
|
-
readonly idle: {};
|
|
191
|
-
readonly validating: {};
|
|
192
|
-
readonly writing: {};
|
|
193
|
-
readonly success: {};
|
|
194
|
-
readonly error: {};
|
|
195
|
-
};
|
|
196
|
-
}, import("xstate").MetaObject>> | undefined;
|
|
197
|
-
}, {
|
|
198
|
-
src: "loadOrCreateModel";
|
|
199
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
200
|
-
id: string | undefined;
|
|
201
|
-
} | {
|
|
202
|
-
src: "validateModel";
|
|
203
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
204
|
-
id: string | undefined;
|
|
205
|
-
} | {
|
|
206
|
-
src: "createModelProperties";
|
|
207
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
208
|
-
id: string | undefined;
|
|
209
|
-
} | {
|
|
210
|
-
src: "writeProcessMachine";
|
|
211
|
-
logic: import("xstate").StateMachine<{}, import("xstate").AnyEventObject, {
|
|
212
|
-
[x: string]: import("xstate").ActorRefFromLogic<import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject> | import("xstate").PromiseActorLogic<any, import("xstate").NonReducibleUnknown, import("xstate").EventObject>> | undefined;
|
|
213
|
-
}, {
|
|
214
|
-
src: "validateEntity";
|
|
215
|
-
logic: import("xstate").PromiseActorLogic<any, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
216
|
-
id: string | undefined;
|
|
217
|
-
} | {
|
|
218
|
-
src: "writeToDatabase";
|
|
219
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
220
|
-
id: string | undefined;
|
|
221
|
-
}, never, never, never, "error" | "idle" | "validating" | "writing" | "success", string, {}, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, {
|
|
222
|
-
id: "writeProcess";
|
|
223
|
-
states: {
|
|
224
|
-
readonly idle: {};
|
|
225
|
-
readonly validating: {};
|
|
226
|
-
readonly writing: {};
|
|
227
|
-
readonly success: {};
|
|
228
|
-
readonly error: {};
|
|
229
|
-
};
|
|
230
|
-
}, import("xstate").MetaObject>;
|
|
231
|
-
id: string | undefined;
|
|
232
|
-
}, never, never, never, {}, string, {}, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, {
|
|
233
|
-
id?: string | undefined | undefined;
|
|
234
|
-
states?: {} | undefined;
|
|
235
|
-
}, import("xstate").MetaObject>>;
|
|
236
|
-
getService(): import("xstate").Actor<import("xstate").StateMachine<{}, import("xstate").AnyEventObject, {
|
|
237
|
-
[x: string]: import("xstate").ActorRefFromLogic<import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject> | import("xstate").StateMachine<{}, import("xstate").AnyEventObject, {
|
|
238
|
-
[x: string]: import("xstate").ActorRefFromLogic<import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject> | import("xstate").PromiseActorLogic<any, import("xstate").NonReducibleUnknown, import("xstate").EventObject>> | undefined;
|
|
239
|
-
}, {
|
|
240
|
-
src: "validateEntity";
|
|
241
|
-
logic: import("xstate").PromiseActorLogic<any, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
242
|
-
id: string | undefined;
|
|
243
|
-
} | {
|
|
244
|
-
src: "writeToDatabase";
|
|
245
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
246
|
-
id: string | undefined;
|
|
247
|
-
}, never, never, never, "error" | "idle" | "validating" | "writing" | "success", string, {}, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, {
|
|
248
|
-
id: "writeProcess";
|
|
249
|
-
states: {
|
|
250
|
-
readonly idle: {};
|
|
251
|
-
readonly validating: {};
|
|
252
|
-
readonly writing: {};
|
|
253
|
-
readonly success: {};
|
|
254
|
-
readonly error: {};
|
|
255
|
-
};
|
|
256
|
-
}, import("xstate").MetaObject>> | undefined;
|
|
257
|
-
}, {
|
|
258
|
-
src: "loadOrCreateModel";
|
|
259
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
260
|
-
id: string | undefined;
|
|
261
|
-
} | {
|
|
262
|
-
src: "validateModel";
|
|
263
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
264
|
-
id: string | undefined;
|
|
265
|
-
} | {
|
|
266
|
-
src: "createModelProperties";
|
|
267
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
268
|
-
id: string | undefined;
|
|
269
|
-
} | {
|
|
270
|
-
src: "writeProcessMachine";
|
|
271
|
-
logic: import("xstate").StateMachine<{}, import("xstate").AnyEventObject, {
|
|
272
|
-
[x: string]: import("xstate").ActorRefFromLogic<import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject> | import("xstate").PromiseActorLogic<any, import("xstate").NonReducibleUnknown, import("xstate").EventObject>> | undefined;
|
|
273
|
-
}, {
|
|
274
|
-
src: "validateEntity";
|
|
275
|
-
logic: import("xstate").PromiseActorLogic<any, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
276
|
-
id: string | undefined;
|
|
277
|
-
} | {
|
|
278
|
-
src: "writeToDatabase";
|
|
279
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
280
|
-
id: string | undefined;
|
|
281
|
-
}, never, never, never, "error" | "idle" | "validating" | "writing" | "success", string, {}, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, {
|
|
282
|
-
id: "writeProcess";
|
|
283
|
-
states: {
|
|
284
|
-
readonly idle: {};
|
|
285
|
-
readonly validating: {};
|
|
286
|
-
readonly writing: {};
|
|
287
|
-
readonly success: {};
|
|
288
|
-
readonly error: {};
|
|
289
|
-
};
|
|
290
|
-
}, import("xstate").MetaObject>;
|
|
291
|
-
id: string | undefined;
|
|
292
|
-
}, never, never, never, {}, string, {}, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, {
|
|
293
|
-
id?: string | undefined | undefined;
|
|
294
|
-
states?: {} | undefined;
|
|
295
|
-
}, import("xstate").MetaObject>>;
|
|
296
|
-
_getSnapshot(): import("xstate").MachineSnapshot<{}, import("xstate").AnyEventObject, {
|
|
297
|
-
[x: string]: import("xstate").ActorRefFromLogic<import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject> | import("xstate").StateMachine<{}, import("xstate").AnyEventObject, {
|
|
298
|
-
[x: string]: import("xstate").ActorRefFromLogic<import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject> | import("xstate").PromiseActorLogic<any, import("xstate").NonReducibleUnknown, import("xstate").EventObject>> | undefined;
|
|
299
|
-
}, {
|
|
300
|
-
src: "validateEntity";
|
|
301
|
-
logic: import("xstate").PromiseActorLogic<any, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
302
|
-
id: string | undefined;
|
|
303
|
-
} | {
|
|
304
|
-
src: "writeToDatabase";
|
|
305
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
306
|
-
id: string | undefined;
|
|
307
|
-
}, never, never, never, "error" | "idle" | "validating" | "writing" | "success", string, {}, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, {
|
|
308
|
-
id: "writeProcess";
|
|
309
|
-
states: {
|
|
310
|
-
readonly idle: {};
|
|
311
|
-
readonly validating: {};
|
|
312
|
-
readonly writing: {};
|
|
313
|
-
readonly success: {};
|
|
314
|
-
readonly error: {};
|
|
315
|
-
};
|
|
316
|
-
}, import("xstate").MetaObject>> | undefined;
|
|
317
|
-
}, {}, string, import("xstate").NonReducibleUnknown, import("xstate").MetaObject, {
|
|
318
|
-
id?: string | undefined | undefined;
|
|
319
|
-
states?: {} | undefined;
|
|
320
|
-
}>;
|
|
321
|
-
_getSnapshotContext(): {};
|
|
322
|
-
/**
|
|
323
|
-
* Check for conflicts between actor context and database
|
|
324
|
-
* @returns ConflictResult indicating if a conflict exists
|
|
325
|
-
*/
|
|
326
|
-
_checkForConflicts(): Promise<{
|
|
327
|
-
hasConflict: boolean;
|
|
328
|
-
}>;
|
|
329
|
-
/**
|
|
330
|
-
* Saves model name changes to the database immediately (draft save)
|
|
331
|
-
* This is called when modelName is changed to persist the change immediately
|
|
332
|
-
* @param oldName - The old model name (if name changed)
|
|
333
|
-
* @param newName - The new model name
|
|
334
|
-
*/
|
|
335
|
-
_saveDraftToDb(oldName: any, newName: any): Promise<void>;
|
|
336
|
-
get status(): {};
|
|
337
|
-
/** The error from the last draft save a rename started, or undefined once a later one succeeds. */
|
|
338
|
-
get lastSaveError(): any;
|
|
339
|
-
get validationErrors(): any;
|
|
340
|
-
get isValid(): boolean;
|
|
341
|
-
get isEdited(): any;
|
|
342
|
-
get id(): any;
|
|
343
|
-
get name(): any;
|
|
344
|
-
/**
|
|
345
|
-
* Returns ModelProperty instances for this model
|
|
346
|
-
* This is a computed property that reads from the service context
|
|
347
|
-
* Note: This is NOT reactive - use useModelProperties() hook for reactivity
|
|
348
|
-
*/
|
|
349
|
-
get properties(): any[];
|
|
350
|
-
/**
|
|
351
|
-
* Validate the model
|
|
352
|
-
* @returns Validation result
|
|
353
|
-
*/
|
|
354
|
-
validate(): Promise<any>;
|
|
355
|
-
/**
|
|
356
|
-
* Create a new item instance from this model
|
|
357
|
-
* Automatically injects the model name, so you don't need to pass it explicitly.
|
|
358
|
-
*
|
|
359
|
-
* @example
|
|
360
|
-
* const Post = Model.create('Post', schema)
|
|
361
|
-
* const post = await Post.create({ title: 'My Post', content: '...' })
|
|
362
|
-
*
|
|
363
|
-
* @param values - Item property values (modelName is automatically injected)
|
|
364
|
-
* @returns The created item instance
|
|
365
|
-
*/
|
|
366
|
-
create(values: any): Promise<any>;
|
|
367
|
-
/**
|
|
368
|
-
* Reload model from database
|
|
369
|
-
* This refreshes the actor context with the latest data from the database
|
|
370
|
-
*/
|
|
371
|
-
reload(): Promise<any>;
|
|
372
|
-
/**
|
|
373
|
-
* Unload the model instance and clean up resources
|
|
374
|
-
*/
|
|
375
|
-
unload(): void;
|
|
376
|
-
/**
|
|
377
|
-
* Destroy the model instance completely: remove from caches, delete from database,
|
|
378
|
-
* update Schema context, stop service. Uses shared destroy helpers.
|
|
379
|
-
*/
|
|
380
|
-
destroy(): Promise<void>;
|
|
381
|
-
/**
|
|
382
|
-
* Set up liveQuery subscription to watch for property changes in the database
|
|
383
|
-
* This enables cross-instance synchronization (e.g., changes in other tabs/windows)
|
|
384
|
-
*/
|
|
385
|
-
_setupLiveQuerySubscription(): void;
|
|
386
|
-
/**
|
|
387
|
-
* Refresh property IDs from database (useful in Node.js where liveQuery isn't available)
|
|
388
|
-
*/
|
|
389
|
-
_refreshPropertiesFromDb(): Promise<void>;
|
|
390
|
-
/**
|
|
391
|
-
* Public method to refresh properties from database
|
|
392
|
-
*/
|
|
393
|
-
refreshProperties(): Promise<void>;
|
|
394
|
-
}
|
|
395
|
-
declare namespace Model {
|
|
396
|
-
let instanceCacheById: Map<any, any>;
|
|
397
|
-
let instanceCacheByName: Map<any, any>;
|
|
398
|
-
let instanceCache: Map<any, any>;
|
|
399
|
-
let pendingWrites: Map<any, any>;
|
|
400
|
-
let savingModels: Set<any>;
|
|
401
|
-
let cachedClientInitialized: any;
|
|
402
|
-
let clientCheckTime: number;
|
|
403
|
-
let CLIENT_CHECK_CACHE_MS: number;
|
|
404
|
-
let schemaHeldModelIds: Set<any>;
|
|
405
|
-
}
|
|
406
|
-
declare const TModelSchema: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TObject<{
|
|
407
|
-
id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
408
|
-
_dbId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
409
|
-
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
410
|
-
dataType: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"Text">, import("@sinclair/typebox").TLiteral<"Number">, import("@sinclair/typebox").TLiteral<"List">, import("@sinclair/typebox").TLiteral<"Relation">, import("@sinclair/typebox").TLiteral<"Image">, import("@sinclair/typebox").TLiteral<"Json">, import("@sinclair/typebox").TLiteral<"File">, import("@sinclair/typebox").TLiteral<"Boolean">, import("@sinclair/typebox").TLiteral<"Date">, import("@sinclair/typebox").TLiteral<"Html">]>;
|
|
411
|
-
ref: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
412
|
-
modelId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TString]>>;
|
|
413
|
-
modelName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
414
|
-
refModelId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
415
|
-
refModelName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
416
|
-
refValueType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"Text">, import("@sinclair/typebox").TLiteral<"Number">, import("@sinclair/typebox").TLiteral<"List">, import("@sinclair/typebox").TLiteral<"Relation">, import("@sinclair/typebox").TLiteral<"Image">, import("@sinclair/typebox").TLiteral<"Json">, import("@sinclair/typebox").TLiteral<"File">, import("@sinclair/typebox").TLiteral<"Boolean">, import("@sinclair/typebox").TLiteral<"Date">, import("@sinclair/typebox").TLiteral<"Html">]>>;
|
|
417
|
-
storageType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"ItemStorage">, import("@sinclair/typebox").TLiteral<"PropertyStorage">]>>;
|
|
418
|
-
localStorageDir: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
419
|
-
filenameSuffix: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
420
|
-
validation: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
421
|
-
pattern: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
422
|
-
minLength: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
423
|
-
maxLength: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
424
|
-
enum: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TAny>>;
|
|
425
|
-
custom: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
426
|
-
}>>;
|
|
427
|
-
required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
428
|
-
htmlEmbeddedDataUriPolicy: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"materialize">, import("@sinclair/typebox").TLiteral<"preserve">]>>;
|
|
429
|
-
}>>;
|
|
430
|
-
/** Thrown by Item.create when no model with that name exists (in the given schema, if any). */
|
|
431
|
-
declare class UnknownModelError extends Error {
|
|
432
|
-
constructor(modelName: any, schemaName: any);
|
|
433
|
-
modelName: any;
|
|
434
|
-
schemaName: any;
|
|
435
|
-
}
|
|
436
|
-
declare const TModelValues: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TAny>;
|
|
437
|
-
/**
|
|
438
|
-
* True when any schema was evicted after `since` or is being destroyed (cheap check before looking up
|
|
439
|
-
* which schemas apply).
|
|
440
|
-
*/
|
|
441
|
-
declare function anyEvictionSince(since: any): boolean;
|
|
442
|
-
declare function currentEvictionEpoch(): number;
|
|
443
|
-
/**
|
|
444
|
-
* Thrown by Item.create when a File/Image/Html/ItemStorage value couldn't be saved for a reason
|
|
445
|
-
* other than its rules (those throw ItemCreateValidationError). The draft is removed, as for
|
|
446
|
-
* ItemCreateValidationError. `cause` holds the save's own error, e.g. an OwnershipError.
|
|
447
|
-
*/
|
|
448
|
-
declare class ItemCreateError extends Error {
|
|
449
|
-
constructor(message: any, details: any);
|
|
450
|
-
code: any;
|
|
451
|
-
modelName: any;
|
|
452
|
-
property: any;
|
|
453
|
-
seedLocalId: any;
|
|
454
|
-
}
|
|
455
|
-
/**
|
|
456
|
-
* Set up liveQuery subscription for an entity
|
|
457
|
-
* This enables cross-instance synchronization (e.g., changes in other tabs/windows)
|
|
458
|
-
*
|
|
459
|
-
* @param instance - Entity instance
|
|
460
|
-
* @param config - LiveQuery configuration
|
|
461
|
-
*/
|
|
462
|
-
declare function setupEntityLiveQuery(instance: any, config: any): void;
|
|
463
|
-
declare function finishSchemaDestroy(schemaName: any): void;
|
|
464
|
-
declare function getDraftSaveError(service: any): any;
|
|
465
|
-
declare var writeToDatabase$1: Readonly<{
|
|
466
|
-
__proto__: null;
|
|
467
|
-
waitForInFlightWrites: (timeoutMs?: number) => Promise<void>;
|
|
468
|
-
writeToDatabase: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
469
|
-
}>;
|
|
470
|
-
declare var Model$1: Readonly<{
|
|
471
|
-
__proto__: null;
|
|
472
|
-
Model: typeof Model;
|
|
473
|
-
}>;
|
|
474
|
-
declare var errors: Readonly<{
|
|
475
|
-
__proto__: null;
|
|
476
|
-
ItemCreateError: typeof ItemCreateError;
|
|
477
|
-
ItemCreateValidationError: typeof ItemCreateValidationError;
|
|
478
|
-
UnknownModelError: typeof UnknownModelError;
|
|
479
|
-
}>;
|
|
480
|
-
/**
|
|
481
|
-
* Called by Schema.destroy before it evicts the schema's models; `finishSchemaDestroy` once its rows
|
|
482
|
-
* are gone. The schema's actor stays live until then, and work it starts meanwhile (its live query
|
|
483
|
-
* reading a model row the drained write just landed) captures an epoch after the eviction, so the
|
|
484
|
-
* epoch alone can't tell it to stay away.
|
|
485
|
-
*/
|
|
486
|
-
declare function recordSchemaDestroy(schemaName: any): void;
|
|
487
|
-
/**
|
|
488
|
-
* True when the schema is being destroyed, or its instances were evicted after `since` (an epoch
|
|
489
|
-
* from currentEvictionEpoch).
|
|
490
|
-
*/
|
|
491
|
-
declare function schemaEvictedSince(schemaName: any, since: any): boolean;
|
|
492
|
-
/** Run a background draft save, recording its failure (or clearing an earlier one on success). */
|
|
493
|
-
declare function trackDraftSave(service: any, save: any, label: any): void;
|
|
494
|
-
declare const writeProcessMachine: import("xstate").StateMachine<{}, import("xstate").AnyEventObject, {
|
|
495
|
-
[x: string]: import("xstate").ActorRefFromLogic<import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject> | import("xstate").PromiseActorLogic<any, import("xstate").NonReducibleUnknown, import("xstate").EventObject>> | undefined;
|
|
496
|
-
}, {
|
|
497
|
-
src: "validateEntity";
|
|
498
|
-
logic: import("xstate").PromiseActorLogic<any, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
499
|
-
id: string | undefined;
|
|
500
|
-
} | {
|
|
501
|
-
src: "writeToDatabase";
|
|
502
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
|
|
503
|
-
id: string | undefined;
|
|
504
|
-
}, never, never, never, "error" | "idle" | "validating" | "writing" | "success", string, {}, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, {
|
|
505
|
-
id: "writeProcess";
|
|
506
|
-
states: {
|
|
507
|
-
readonly idle: {};
|
|
508
|
-
readonly validating: {};
|
|
509
|
-
readonly writing: {};
|
|
510
|
-
readonly success: {};
|
|
511
|
-
readonly error: {};
|
|
512
|
-
};
|
|
513
|
-
}, import("xstate").MetaObject>;
|
|
514
|
-
export { ConflictError as C, ItemCreateValidationError as I, Model as M, TModelSchema as T, UnknownModelError as U, TModelValues as a, anyEvictionSince as b, currentEvictionEpoch as c, ItemCreateError as d, setupEntityLiveQuery as e, finishSchemaDestroy as f, getDraftSaveError as g, writeToDatabase$1 as h, Model$1 as i, errors as j, recordSchemaDestroy as r, schemaEvictedSince as s, trackDraftSave as t, writeProcessMachine as w };
|
|
515
|
-
//# sourceMappingURL=errors-CS3nDpUU.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errors-CS3nDpUU.d.ts","sourceRoot":"","sources":["../errors-CS3nDpUU.js"],"names":[],"mappings":"AAgqDA;;GAEG;AACH;IACI,yCAKC;IAFG,cAAwB;CAG/B;AAysED;;;;;GAKG;AACH;IACI,2CAMC;IAHG,eAA0B;IAC1B,cAAwB;CAG/B;AA/8DD;IACI,gEAOC;IACD,gDAIC;IAsCD;;;OAGG;IACH,iEAuBC;IACD;;;;OAIG;IACH,0DAkBC;IACD;;;;OAIG;IACH,gEAEC;IACD;;;;;;;;OAQG;IACH,0FA4DC;IACD,0EAgiBC;IACD;;;OAGG;IACH,sCAMC;IACD;;;;OAIG;IACH,iDAKC;IACD,gGAAgG;IAChG,8CAEC;IACD,iFAAiF;IACjF,iDAYC;IACD;;;OAGG;IACH,mCAEC;IACD;;;;;;;OAOG;IACH,uDAGC;IACD;;;;OAIG;IACH,wDAMC;IACD;;;OAGG;IACH,4DAcC;IACD;;;OAGG;IACH,gDAcC;IACD;;;;;OAKG;IACH,4CAQC;IACD;;;OAGG;IACH,2DAyBC;IACD;;;OAGG;IACH,8DA6CC;IACD;;;;;;;OAOG;IACH,mFA6DC;IACD;;;;;;OAMG;IACH,gEA6DC;IACD;;;;;OAKG;IACH;;;;;;qBAoBC;IACD;;;;;;OAMG;IACH,+DA4DC;IACD;;;;;;OAMG;IACH,0DA8FC;IACD;;OAEG;IACH,4FAeC;IAkTD;;;;;OAKG;IACH,8CAyCC;IAqSD;;;;OAIG;IACH,0DAkBC;IAl5DD,8FAmCC;IAzBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAEE;IA0uCN;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAEC;IACD;;;;;;;;;;;;;;;;;;;;;;;;OAEC;IACD,0BAEC;IACD;;;OAGG;IACH;;OA8BC;IACD;;;;;OAKG;IACH,0DAgGC;IACD,iBAEC;IACD,mGAAmG;IACnG,yBAEC;IACD,4BAEC;IACD,uBAGC;IACD,oBAcC;IACD,cAEC;IACD,gBAEC;IACD;;;;OAIG;IACH,wBA8BC;IACD;;;OAGG;IACH,yBA8BC;IACD;;;;;;;;;;OAUG;IACH,kCAWC;IACD;;;OAGG;IACH,uBAwBC;IAiDD;;OAEG;IACH,eA4BC;IACD;;;OAGG;IACH,yBAwEC;IACD;;;OAGG;IACH,oCAsGC;IACD;;OAEG;IACH,0CAkEC;IACD;;OAEG;IACH,mCAEC;CAyBJ;;;;;;;;;;;;AA6BD;;;;;;;;;;;;;;;;;;;;;;;IAA2D;AAiC3D,+FAA+F;AAC/F;IACI,6CAMC;IAHG,eAA0B;IAC1B,gBAA4B;CAGnC;AA3CD,uIAA4D;AA9hG5D;;;GAGG;AACH,uDAEC;AA3ED,gDAEC;AAmnGD;;;;GAIG;AACH;IACI,wCAQC;IALG,UAAwB;IACxB,eAAkC;IAClC,cAAgC;IAChC,iBAAsC;CAG7C;AAruED;;;;;;GAMG;AACH,wEA4JC;AAhjCD,4DAQC;AA4lCD,sDAEC;AA5yBD;;;;GAIG;AA6wFH;;;GAGG;AAgDH;;;;;GAKG;AA7oGH;;;;;GAKG;AACH,4DAGC;AAUD;;;GAGG;AACH,0EAQC;AAklCD,kGAAkG;AAClG,2EAQC;AA/yBD;;;;;;;;;;;;;;;;;;;gCAqLG"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export { eventEmitter as e };
|
|
2
|
-
declare const eventEmitter: SeedEventEmitter;
|
|
3
|
-
declare class SeedEventEmitter {
|
|
4
|
-
listeners: Map<any, any>;
|
|
5
|
-
on(event: any, listener: any): this;
|
|
6
|
-
addListener(event: any, listener: any): this;
|
|
7
|
-
once(event: any, listener: any): this;
|
|
8
|
-
off(event: any, listener: any): this;
|
|
9
|
-
removeListener(event: any, listener: any): this;
|
|
10
|
-
removeAllListeners(event: any): this;
|
|
11
|
-
/**
|
|
12
|
-
* Calls every listener. A listener that throws is logged and skipped: the others still
|
|
13
|
-
* run, and the error never reaches the SDK code that emitted the event (which may be
|
|
14
|
-
* midway through a save).
|
|
15
|
-
*/
|
|
16
|
-
emit(event: any, ...args: any[]): boolean;
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=eventBus-7vxTCc3a.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"eventBus-7vxTCc3a.d.ts","sourceRoot":"","sources":["../eventBus-7vxTCc3a.js"],"names":[],"mappings":";AA4DA,6CAA4C;AA5D5C;IAEQ,yBAA0B;IAE9B,oCAKC;IACD,6CAEC;IACD,sCAMC;IACD,qCAQC;IACD,gDAEC;IACD,qCAOC;IACD;;;;OAIG;IACH,0CAaC;CACJ"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export { findSeedRowsByUid as f };
|
|
2
|
-
/**
|
|
3
|
-
* The local seed row for each seed attestation uid. A uid recorded on a seed's versions
|
|
4
|
-
* (`versions.seed_uid`) belongs to that seed: its current uid, or an old one from before it was
|
|
5
|
-
* unpublished and published again (the seed row then holds the new uid, the old version rows keep
|
|
6
|
-
* the old one). A uid no version records resolves by `seeds.uid`. Uids with no local seed are left
|
|
7
|
-
* out of the map.
|
|
8
|
-
*
|
|
9
|
-
* Going through versions first also resolves a republished seed's old uid to the item when an
|
|
10
|
-
* older sync left a second, version-less seed row with that uid (migration 0024 removes those).
|
|
11
|
-
*/
|
|
12
|
-
declare function findSeedRowsByUid(uids: any): Promise<Map<any, any>>;
|
|
13
|
-
//# sourceMappingURL=findSeedRowsByUid-CuQmK7An.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"findSeedRowsByUid-CuQmK7An.d.ts","sourceRoot":"","sources":["../findSeedRowsByUid-CuQmK7An.js"],"names":[],"mappings":";AAIA;;;;;;;;;GASG;AACH,sEA6BC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getItem-Uha3_H0t.d.ts","sourceRoot":"","sources":["../getItem-Uha3_H0t.js"],"names":[],"mappings":"AAqBA;;;;iBAoBC"}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/** Error thrown when publish validation fails. Includes all validation errors for user to fix. */
|
|
2
|
-
declare class PublishValidationFailedError extends Error {
|
|
3
|
-
constructor(message: any, validationErrors: any);
|
|
4
|
-
validationErrors: any;
|
|
5
|
-
}
|
|
6
|
-
/** Validation error code for a relation, list member or image/file ref to an unpublished seed. */
|
|
7
|
-
declare const RELATED_ITEM_UNPUBLISHED_CODE: "related_item_unpublished";
|
|
8
|
-
/**
|
|
9
|
-
* Thrown before anything is uploaded or attested when the item references items whose seed was
|
|
10
|
-
* unpublished: the parent would attest a revoked seed uid. Republish those items (which gives
|
|
11
|
-
* them a new seed uid) or remove the references, then publish again.
|
|
12
|
-
* See docs/ATTESTATION_REVOCATION.md ("Republishing").
|
|
13
|
-
*
|
|
14
|
-
* A PublishValidationFailedError, so validateItemForPublish and the publish package's checking
|
|
15
|
-
* step report it as validation errors (code `related_item_unpublished`, one per reference).
|
|
16
|
-
*/
|
|
17
|
-
declare class RelatedItemUnpublishedError extends PublishValidationFailedError {
|
|
18
|
-
constructor(unpublishedRelatedItems: any, otherValidationErrors?: any[]);
|
|
19
|
-
unpublishedRelatedItems: any;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* The seed's retracted properties that still have attestations to revoke (ADR 0021), with the
|
|
23
|
-
* attestations publish revokes for each.
|
|
24
|
-
*/
|
|
25
|
-
declare function getPendingRetractions(params: any): Promise<{
|
|
26
|
-
propertyName: any;
|
|
27
|
-
attestations: any;
|
|
28
|
-
}[]>;
|
|
29
|
-
declare var getPublishPayload$1: Readonly<{
|
|
30
|
-
__proto__: null;
|
|
31
|
-
PublishValidationFailedError: typeof PublishValidationFailedError;
|
|
32
|
-
getPublishPayload: (item: any, uploadedTransactions: any, options: any) => Promise<any>;
|
|
33
|
-
resolvePublishPayloadValues: (multiPayload: any, resolvedUids: any) => Promise<any>;
|
|
34
|
-
validateItemForPublish: (item: any, uploadedTransactions: any[] | undefined, options: any) => Promise<{
|
|
35
|
-
isValid: boolean;
|
|
36
|
-
errors: any;
|
|
37
|
-
}>;
|
|
38
|
-
}>;
|
|
39
|
-
/**
|
|
40
|
-
* What publishing a property with an empty value does (ADR 0021). Undefined when there is nothing
|
|
41
|
-
* to publish: the newest row holds a value, or the property has no live attestation (never
|
|
42
|
-
* published, or already retracted). Rows of every name the property is stored under count.
|
|
43
|
-
*/
|
|
44
|
-
declare function getPropertyClear(params: any): Promise<{
|
|
45
|
-
retract: boolean;
|
|
46
|
-
live: any;
|
|
47
|
-
retractScope: any;
|
|
48
|
-
} | undefined>;
|
|
49
|
-
/**
|
|
50
|
-
* Resolves relation/image property values (seedLocalId) to attestation uids after dependent seeds are published.
|
|
51
|
-
* Call after each payload is published, passing the returned attestation uid for that seed's localId.
|
|
52
|
-
* Returns an updated multiPayload with re-encoded attestations where resolution was applied.
|
|
53
|
-
*/
|
|
54
|
-
declare function resolvePublishPayloadValues(multiPayload: any, resolvedUids: any): Promise<any>;
|
|
55
|
-
/**
|
|
56
|
-
* Validates an item for publishing without performing Arweave or EAS work.
|
|
57
|
-
* Use in the checking step to fail fast before creating transactions.
|
|
58
|
-
* Pass empty array for uploadedTransactions when validating before Arweave upload.
|
|
59
|
-
*/
|
|
60
|
-
declare function validateItemForPublish(item: any, uploadedTransactions: any[] | undefined, options: any): Promise<{
|
|
61
|
-
isValid: boolean;
|
|
62
|
-
errors: any;
|
|
63
|
-
}>;
|
|
64
|
-
export { PublishValidationFailedError as P, RELATED_ITEM_UNPUBLISHED_CODE as R, RelatedItemUnpublishedError as a, getPendingRetractions as b, getPublishPayload$1 as c, getPropertyClear as g, resolvePublishPayloadValues as r, validateItemForPublish as v };
|
|
65
|
-
//# sourceMappingURL=getPublishPayload-pbin4lk8.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getPublishPayload-pbin4lk8.d.ts","sourceRoot":"","sources":["../getPublishPayload-pbin4lk8.js"],"names":[],"mappings":"AAmIA,kGAAkG;AAClG;IACI,iDAIC;IAFG,sBAAwC;CAG/C;AACD,kGAAkG;AAClG,6CAAsC,0BAA0B,CAAC;AAEjE;;;;;;;;GAQG;AACH;IACI,yEAgBC;IADG,6BAAsD;CAE7D;AAjHD;;;GAGG;AACH;;;KAuBC;AA2mDD;;;;;;;;;GAMG;AAzrDH;;;;GAIG;AACH;;;;eA6BC;AAoiDD;;;;GAIG;AACH,iGAsGC;AAjRD;;;;GAIG;AACH;;;GAWC"}
|