@xyo-network/sdk 8.0.1 → 8.0.2
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/neutral/archivist-abstract.mjs +8 -7
- package/dist/neutral/archivist-abstract.mjs.map +2 -2
- package/dist/neutral/archivist-memory.mjs +4 -3
- package/dist/neutral/archivist-memory.mjs.map +2 -2
- package/dist/neutral/bridge-abstract.mjs +27 -29
- package/dist/neutral/bridge-abstract.mjs.map +2 -2
- package/dist/neutral/bridge-http.mjs +18 -17
- package/dist/neutral/bridge-http.mjs.map +2 -2
- package/dist/neutral/diviner-boundwitness.memory.mjs +1 -1
- package/dist/neutral/diviner-boundwitness.memory.mjs.map +2 -2
- package/dist/neutral/diviner-boundwitness.mjs +1 -1
- package/dist/neutral/diviner-boundwitness.mjs.map +2 -2
- package/dist/neutral/manifest-wrapper.mjs +10 -10
- package/dist/neutral/manifest-wrapper.mjs.map +3 -3
- package/dist/neutral/module-abstract.mjs +16 -26
- package/dist/neutral/module-abstract.mjs.map +2 -2
- package/dist/neutral/module-model.mjs +1 -2
- package/dist/neutral/module-model.mjs.map +2 -2
- package/dist/neutral/module-resolver.mjs +16 -22
- package/dist/neutral/module-resolver.mjs.map +2 -2
- package/dist/neutral/module-wrapper.mjs +2 -8
- package/dist/neutral/module-wrapper.mjs.map +2 -2
- package/dist/neutral/modules/archivist-abstract/payloadAdmission.d.ts.map +1 -1
- package/dist/neutral/modules/archivist-memory/MemoryDriver.d.ts.map +1 -1
- package/dist/neutral/modules/bridge-abstract/AbstractBridgeModuleResolver.d.ts.map +1 -1
- package/dist/neutral/modules/bridge-abstract/AbstractModuleProxy/ModuleProxyResolver.d.ts.map +1 -1
- package/dist/neutral/modules/bridge-http/HttpBridgeModuleResolver.d.ts.map +1 -1
- package/dist/neutral/modules/manifest-wrapper/Wrapper.d.ts.map +1 -1
- package/dist/neutral/modules/manifest-wrapper/WrapperEx.d.ts.map +1 -1
- package/dist/neutral/modules/module-abstract/AbstractModule.d.ts.map +1 -1
- package/dist/neutral/modules/module-abstract/AbstractModuleInstance.d.ts.map +1 -1
- package/dist/neutral/modules/module-abstract/QueryValidator/ModuleConfigQueryValidator.d.ts.map +1 -1
- package/dist/neutral/modules/module-model/CreatableModule/CreatableModuleRegistry.d.ts.map +1 -1
- package/dist/neutral/modules/module-resolver/CompositeModuleResolver.d.ts.map +1 -1
- package/dist/neutral/modules/module-resolver/ResolveHelper/resolveAll.d.ts.map +1 -1
- package/dist/neutral/modules/module-resolver/ResolveHelper/resolvePathToInstance.d.ts.map +1 -1
- package/dist/neutral/modules/module-resolver/SimpleModuleResolver.d.ts.map +1 -1
- package/dist/neutral/modules/module-wrapper/ModuleWrapper.d.ts.map +1 -1
- package/dist/neutral/modules/node-abstract/NodeHelper/attachedPrivateModules.d.ts.map +1 -1
- package/dist/neutral/modules/node-abstract/NodeHelper/attachedPublicModules.d.ts.map +1 -1
- package/dist/neutral/modules/node-view/ViewNode.d.ts.map +1 -1
- package/dist/neutral/modules/sentinel-abstract/AbstractSentinel.d.ts.map +1 -1
- package/dist/neutral/modules/sentinel-memory/MemorySentinel.d.ts.map +1 -1
- package/dist/neutral/node-abstract.mjs +8 -6
- package/dist/neutral/node-abstract.mjs.map +2 -2
- package/dist/neutral/node-view.mjs +8 -7
- package/dist/neutral/node-view.mjs.map +2 -2
- package/dist/neutral/sentinel-abstract.mjs +4 -13
- package/dist/neutral/sentinel-abstract.mjs.map +2 -2
- package/dist/neutral/sentinel-memory.mjs +8 -7
- package/dist/neutral/sentinel-memory.mjs.map +2 -2
- package/dist/node/address-payload-plugin.d.ts +1 -1
- package/dist/node/api-location-diviner.d.ts +1 -1
- package/dist/node/archivist-abstract.d.ts +1 -1
- package/dist/node/archivist-generic.d.ts +1 -1
- package/dist/node/archivist-memory.d.ts +1 -1
- package/dist/node/archivist-model.d.ts +1 -1
- package/dist/node/archivist-view.d.ts +1 -1
- package/dist/node/archivist-wrapper.d.ts +1 -1
- package/dist/node/archivist.d.ts +1 -1
- package/dist/node/boundwitness-loader.d.ts +1 -1
- package/dist/node/bridge-abstract.d.ts +1 -1
- package/dist/node/bridge-http.d.ts +1 -1
- package/dist/node/bridge-model.d.ts +1 -1
- package/dist/node/bridge-wrapper.d.ts +1 -1
- package/dist/node/bridge.d.ts +1 -1
- package/dist/node/diviner-abstract.d.ts +1 -1
- package/dist/node/diviner-boundwitness.abstract.d.ts +1 -1
- package/dist/node/diviner-boundwitness.d.ts +1 -1
- package/dist/node/diviner-boundwitness.memory.d.ts +1 -1
- package/dist/node/diviner-boundwitness.model.d.ts +1 -1
- package/dist/node/diviner-identity.d.ts +1 -1
- package/dist/node/diviner-model.d.ts +1 -1
- package/dist/node/diviner-payload-abstract.d.ts +1 -1
- package/dist/node/diviner-payload-generic.d.ts +1 -1
- package/dist/node/diviner-payload-model.d.ts +1 -1
- package/dist/node/diviner-wrapper.d.ts +1 -1
- package/dist/node/diviner.d.ts +1 -1
- package/dist/node/index.d.ts +11 -11
- package/dist/node/manifest-wrapper.d.ts +1 -1
- package/dist/node/module-abstract.d.ts +1 -1
- package/dist/node/module-event-emitter.d.ts +1 -1
- package/dist/node/module-factory-locator.d.ts +1 -1
- package/dist/node/module-model.d.ts +1 -1
- package/dist/node/module-resolver.d.ts +1 -1
- package/dist/node/module-wrapper.d.ts +1 -1
- package/dist/node/module.d.ts +1 -1
- package/dist/node/modules/archivist/abstract.d.ts +1 -1
- package/dist/node/modules/archivist/model.d.ts +1 -1
- package/dist/node/modules/archivist/wrapper.d.ts +1 -1
- package/dist/node/modules/archivist-memory/MemoryDriver.d.ts +1 -1
- package/dist/node/modules/archivist-memory/MemoryDriver.d.ts.map +1 -1
- package/dist/node/modules/bridge/model.d.ts +1 -1
- package/dist/node/modules/bridge/wrapper.d.ts +1 -1
- package/dist/node/modules/diviner/abstract.d.ts +1 -1
- package/dist/node/modules/diviner/model.d.ts +1 -1
- package/dist/node/modules/diviner/wrapper.d.ts +1 -1
- package/dist/node/modules/module/abstract.d.ts +1 -1
- package/dist/node/modules/module/model.d.ts +1 -1
- package/dist/node/modules/module/resolver.d.ts +1 -1
- package/dist/node/modules/module/wrapper.d.ts +1 -1
- package/dist/node/modules/module-resolver/ResolveHelper/traceModuleIdentifier.d.ts +1 -1
- package/dist/node/modules/node/abstract.d.ts +1 -1
- package/dist/node/modules/node/model.d.ts +1 -1
- package/dist/node/modules/node/wrapper.d.ts +1 -1
- package/dist/node/modules/node-abstract/NodeHelper/attachedPrivateModules.d.ts +2 -2
- package/dist/node/modules/node-abstract/NodeHelper/attachedPrivateModules.d.ts.map +1 -1
- package/dist/node/modules/node-abstract/NodeHelper/attachedPublicModules.d.ts +2 -2
- package/dist/node/modules/node-abstract/NodeHelper/attachedPublicModules.d.ts.map +1 -1
- package/dist/node/modules/node-memory/NodeHelper/attachToExistingNode.d.ts +2 -2
- package/dist/node/modules/node-memory/NodeHelper/attachToNewNode.d.ts +3 -3
- package/dist/node/modules/node-memory/NodeHelper/flatAttachToExistingNode.d.ts +2 -2
- package/dist/node/modules/node-memory/NodeHelper/flatAttachToNewNode.d.ts +3 -3
- package/dist/node/modules/sentinel/abstract.d.ts +1 -1
- package/dist/node/modules/sentinel/model.d.ts +1 -1
- package/dist/node/modules/sentinel/wrapper.d.ts +1 -1
- package/dist/node/modules/witness/abstract.d.ts +1 -1
- package/dist/node/modules/witness/model.d.ts +1 -1
- package/dist/node/modules/witness/wrapper.d.ts +1 -1
- package/dist/node/modules.d.ts +1 -1
- package/dist/node/node-abstract.d.ts +1 -1
- package/dist/node/node-memory.d.ts +1 -1
- package/dist/node/node-model.d.ts +1 -1
- package/dist/node/node-view.d.ts +1 -1
- package/dist/node/node-wrapper.d.ts +1 -1
- package/dist/node/node.d.ts +1 -1
- package/dist/node/payloadset-plugin.d.ts +1 -1
- package/dist/node/sentinel-abstract.d.ts +1 -1
- package/dist/node/sentinel-memory.d.ts +1 -1
- package/dist/node/sentinel-model.d.ts +1 -1
- package/dist/node/sentinel-wrapper.d.ts +1 -1
- package/dist/node/sentinel.d.ts +1 -1
- package/dist/node/witness-abstract.d.ts +1 -1
- package/dist/node/witness-adhoc.d.ts +1 -1
- package/dist/node/witness-model.d.ts +1 -1
- package/dist/node/witness-wrapper.d.ts +1 -1
- package/dist/node/witness.d.ts +1 -1
- package/package.json +8 -8
- package/dist/node/modules/address-payload-plugin/Plugin.d.ts +0 -4
- package/dist/node/modules/address-payload-plugin/Plugin.d.ts.map +0 -1
- package/dist/node/modules/address-payload-plugin/Template.d.ts +0 -3
- package/dist/node/modules/address-payload-plugin/Template.d.ts.map +0 -1
- package/dist/node/modules/address-payload-plugin/index.d.ts +0 -3
- package/dist/node/modules/address-payload-plugin/index.d.ts.map +0 -1
- package/dist/node/modules/api-location-diviner/LocationDiviner/LocationDivinerApi.d.ts +0 -13
- package/dist/node/modules/api-location-diviner/LocationDiviner/LocationDivinerApi.d.ts.map +0 -1
- package/dist/node/modules/api-location-diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.d.ts +0 -5
- package/dist/node/modules/api-location-diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.d.ts.map +0 -1
- package/dist/node/modules/api-location-diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.ts +0 -21
- package/dist/node/modules/api-location-diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.ts.map +0 -1
- package/dist/node/modules/api-location-diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.d.ts +0 -3
- package/dist/node/modules/api-location-diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.d.ts.map +0 -1
- package/dist/node/modules/api-location-diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.ts +0 -21
- package/dist/node/modules/api-location-diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.ts.map +0 -1
- package/dist/node/modules/api-location-diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.d.ts +0 -2
- package/dist/node/modules/api-location-diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.d.ts.map +0 -1
- package/dist/node/modules/api-location-diviner/LocationDiviner/Queries/LocationQueryCreationRequest.d.ts +0 -22
- package/dist/node/modules/api-location-diviner/LocationDiviner/Queries/LocationQueryCreationRequest.d.ts.map +0 -1
- package/dist/node/modules/api-location-diviner/LocationDiviner/Queries/LocationQueryCreationResponse.d.ts +0 -5
- package/dist/node/modules/api-location-diviner/LocationDiviner/Queries/LocationQueryCreationResponse.d.ts.map +0 -1
- package/dist/node/modules/api-location-diviner/LocationDiviner/Queries/LocationQuerySchema.d.ts +0 -7
- package/dist/node/modules/api-location-diviner/LocationDiviner/Queries/LocationQuerySchema.d.ts.map +0 -1
- package/dist/node/modules/api-location-diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.ts +0 -8
- package/dist/node/modules/api-location-diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.ts.map +0 -1
- package/dist/node/modules/api-location-diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.ts +0 -21
- package/dist/node/modules/api-location-diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.ts.map +0 -1
- package/dist/node/modules/api-location-diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.d.ts +0 -3
- package/dist/node/modules/api-location-diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.d.ts.map +0 -1
- package/dist/node/modules/api-location-diviner/LocationDiviner/Queries/index.d.ts +0 -7
- package/dist/node/modules/api-location-diviner/LocationDiviner/Queries/index.d.ts.map +0 -1
- package/dist/node/modules/api-location-diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.ts +0 -20
- package/dist/node/modules/api-location-diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.ts.map +0 -1
- package/dist/node/modules/api-location-diviner/LocationDiviner/Witnesses/LocationWitness.d.ts +0 -28
- package/dist/node/modules/api-location-diviner/LocationDiviner/Witnesses/LocationWitness.d.ts.map +0 -1
- package/dist/node/modules/api-location-diviner/LocationDiviner/Witnesses/index.d.ts +0 -3
- package/dist/node/modules/api-location-diviner/LocationDiviner/Witnesses/index.d.ts.map +0 -1
- package/dist/node/modules/api-location-diviner/LocationDiviner/index.d.ts +0 -5
- package/dist/node/modules/api-location-diviner/LocationDiviner/index.d.ts.map +0 -1
- package/dist/node/modules/api-location-diviner/LocationDiviner/models.d.ts +0 -5
- package/dist/node/modules/api-location-diviner/LocationDiviner/models.d.ts.map +0 -1
- package/dist/node/modules/api-location-diviner/RemoteDivinerConfig.d.ts +0 -18
- package/dist/node/modules/api-location-diviner/RemoteDivinerConfig.d.ts.map +0 -1
- package/dist/node/modules/api-location-diviner/RemoteDivinerError.d.ts +0 -6
- package/dist/node/modules/api-location-diviner/RemoteDivinerError.d.ts.map +0 -1
- package/dist/node/modules/api-location-diviner/index.d.ts +0 -4
- package/dist/node/modules/api-location-diviner/index.d.ts.map +0 -1
- package/dist/node/modules/archivist/index.d.ts +0 -5
- package/dist/node/modules/archivist/index.d.ts.map +0 -1
- package/dist/node/modules/archivist-abstract/AbstractArchivist.d.ts +0 -101
- package/dist/node/modules/archivist-abstract/AbstractArchivist.d.ts.map +0 -1
- package/dist/node/modules/archivist-abstract/StorageClassLabel.d.ts +0 -3
- package/dist/node/modules/archivist-abstract/StorageClassLabel.d.ts.map +0 -1
- package/dist/node/modules/archivist-abstract/index.d.ts +0 -4
- package/dist/node/modules/archivist-abstract/index.d.ts.map +0 -1
- package/dist/node/modules/archivist-abstract/payloadAdmission.d.ts +0 -13
- package/dist/node/modules/archivist-abstract/payloadAdmission.d.ts.map +0 -1
- package/dist/node/modules/archivist-generic/Archivist.d.ts +0 -29
- package/dist/node/modules/archivist-generic/Archivist.d.ts.map +0 -1
- package/dist/node/modules/archivist-generic/Config.d.ts +0 -22
- package/dist/node/modules/archivist-generic/Config.d.ts.map +0 -1
- package/dist/node/modules/archivist-generic/index.d.ts +0 -3
- package/dist/node/modules/archivist-generic/index.d.ts.map +0 -1
- package/dist/node/modules/archivist-memory/Archivist.d.ts +0 -17
- package/dist/node/modules/archivist-memory/Archivist.d.ts.map +0 -1
- package/dist/node/modules/archivist-memory/Config.d.ts +0 -22
- package/dist/node/modules/archivist-memory/Config.d.ts.map +0 -1
- package/dist/node/modules/archivist-memory/index.d.ts +0 -3
- package/dist/node/modules/archivist-memory/index.d.ts.map +0 -1
- package/dist/node/modules/archivist-model/ArchivistDriver.d.ts +0 -12
- package/dist/node/modules/archivist-model/ArchivistDriver.d.ts.map +0 -1
- package/dist/node/modules/archivist-model/ArchivistFunctions.d.ts +0 -20
- package/dist/node/modules/archivist-model/ArchivistFunctions.d.ts.map +0 -1
- package/dist/node/modules/archivist-model/ArchivistSnapshot.d.ts +0 -16
- package/dist/node/modules/archivist-model/ArchivistSnapshot.d.ts.map +0 -1
- package/dist/node/modules/archivist-model/ArchivistStats.d.ts +0 -15
- package/dist/node/modules/archivist-model/ArchivistStats.d.ts.map +0 -1
- package/dist/node/modules/archivist-model/Config.d.ts +0 -50
- package/dist/node/modules/archivist-model/Config.d.ts.map +0 -1
- package/dist/node/modules/archivist-model/EventData.d.ts +0 -5
- package/dist/node/modules/archivist-model/EventData.d.ts.map +0 -1
- package/dist/node/modules/archivist-model/EventModels/Cleared.d.ts +0 -7
- package/dist/node/modules/archivist-model/EventModels/Cleared.d.ts.map +0 -1
- package/dist/node/modules/archivist-model/EventModels/Deleted.d.ts +0 -11
- package/dist/node/modules/archivist-model/EventModels/Deleted.d.ts.map +0 -1
- package/dist/node/modules/archivist-model/EventModels/Inserted.d.ts +0 -12
- package/dist/node/modules/archivist-model/EventModels/Inserted.d.ts.map +0 -1
- package/dist/node/modules/archivist-model/EventModels/index.d.ts +0 -4
- package/dist/node/modules/archivist-model/EventModels/index.d.ts.map +0 -1
- package/dist/node/modules/archivist-model/IndexDescription.d.ts +0 -34
- package/dist/node/modules/archivist-model/IndexDescription.d.ts.map +0 -1
- package/dist/node/modules/archivist-model/Instance.d.ts +0 -30
- package/dist/node/modules/archivist-model/Instance.d.ts.map +0 -1
- package/dist/node/modules/archivist-model/Labels.d.ts +0 -5
- package/dist/node/modules/archivist-model/Labels.d.ts.map +0 -1
- package/dist/node/modules/archivist-model/Module.d.ts +0 -7
- package/dist/node/modules/archivist-model/Module.d.ts.map +0 -1
- package/dist/node/modules/archivist-model/ModuleInstance.d.ts +0 -6
- package/dist/node/modules/archivist-model/ModuleInstance.d.ts.map +0 -1
- package/dist/node/modules/archivist-model/NextOptions.d.ts +0 -11
- package/dist/node/modules/archivist-model/NextOptions.d.ts.map +0 -1
- package/dist/node/modules/archivist-model/PayloadArchivist.d.ts +0 -18
- package/dist/node/modules/archivist-model/PayloadArchivist.d.ts.map +0 -1
- package/dist/node/modules/archivist-model/Queries/All.d.ts +0 -15
- package/dist/node/modules/archivist-model/Queries/All.d.ts.map +0 -1
- package/dist/node/modules/archivist-model/Queries/Clear.d.ts +0 -15
- package/dist/node/modules/archivist-model/Queries/Clear.d.ts.map +0 -1
- package/dist/node/modules/archivist-model/Queries/Commit.d.ts +0 -15
- package/dist/node/modules/archivist-model/Queries/Commit.d.ts.map +0 -1
- package/dist/node/modules/archivist-model/Queries/Delete.d.ts +0 -18
- package/dist/node/modules/archivist-model/Queries/Delete.d.ts.map +0 -1
- package/dist/node/modules/archivist-model/Queries/Get.d.ts +0 -18
- package/dist/node/modules/archivist-model/Queries/Get.d.ts.map +0 -1
- package/dist/node/modules/archivist-model/Queries/Insert.d.ts +0 -15
- package/dist/node/modules/archivist-model/Queries/Insert.d.ts.map +0 -1
- package/dist/node/modules/archivist-model/Queries/Next.d.ts +0 -21
- package/dist/node/modules/archivist-model/Queries/Next.d.ts.map +0 -1
- package/dist/node/modules/archivist-model/Queries/Snapshot.d.ts +0 -15
- package/dist/node/modules/archivist-model/Queries/Snapshot.d.ts.map +0 -1
- package/dist/node/modules/archivist-model/Queries/index.d.ts +0 -20
- package/dist/node/modules/archivist-model/Queries/index.d.ts.map +0 -1
- package/dist/node/modules/archivist-model/RawQueryFunctions.d.ts +0 -14
- package/dist/node/modules/archivist-model/RawQueryFunctions.d.ts.map +0 -1
- package/dist/node/modules/archivist-model/attachable/AttachableInstance.d.ts +0 -13
- package/dist/node/modules/archivist-model/attachable/AttachableInstance.d.ts.map +0 -1
- package/dist/node/modules/archivist-model/attachable/asAttachableInstance.d.ts +0 -2
- package/dist/node/modules/archivist-model/attachable/asAttachableInstance.d.ts.map +0 -1
- package/dist/node/modules/archivist-model/attachable/index.d.ts +0 -4
- package/dist/node/modules/archivist-model/attachable/index.d.ts.map +0 -1
- package/dist/node/modules/archivist-model/attachable/isAttachableInstance.d.ts +0 -5
- package/dist/node/modules/archivist-model/attachable/isAttachableInstance.d.ts.map +0 -1
- package/dist/node/modules/archivist-model/index.d.ts +0 -18
- package/dist/node/modules/archivist-model/index.d.ts.map +0 -1
- package/dist/node/modules/archivist-model/lib/HydratedBoundWitness.d.ts +0 -8
- package/dist/node/modules/archivist-model/lib/HydratedBoundWitness.d.ts.map +0 -1
- package/dist/node/modules/archivist-model/lib/getBoundWitness.d.ts +0 -7
- package/dist/node/modules/archivist-model/lib/getBoundWitness.d.ts.map +0 -1
- package/dist/node/modules/archivist-model/lib/hydrateBoundWitness.d.ts +0 -8
- package/dist/node/modules/archivist-model/lib/hydrateBoundWitness.d.ts.map +0 -1
- package/dist/node/modules/archivist-model/lib/index.d.ts +0 -4
- package/dist/node/modules/archivist-model/lib/index.d.ts.map +0 -1
- package/dist/node/modules/archivist-model/typeChecks.d.ts +0 -12
- package/dist/node/modules/archivist-model/typeChecks.d.ts.map +0 -1
- package/dist/node/modules/archivist-view/ViewArchivist.d.ts +0 -45
- package/dist/node/modules/archivist-view/ViewArchivist.d.ts.map +0 -1
- package/dist/node/modules/archivist-view/index.d.ts +0 -2
- package/dist/node/modules/archivist-view/index.d.ts.map +0 -1
- package/dist/node/modules/archivist-wrapper/ArchivistWrapper.d.ts +0 -27
- package/dist/node/modules/archivist-wrapper/ArchivistWrapper.d.ts.map +0 -1
- package/dist/node/modules/archivist-wrapper/index.d.ts +0 -2
- package/dist/node/modules/archivist-wrapper/index.d.ts.map +0 -1
- package/dist/node/modules/boundwitness-loader/Loader.d.ts +0 -21
- package/dist/node/modules/boundwitness-loader/Loader.d.ts.map +0 -1
- package/dist/node/modules/boundwitness-loader/index.d.ts +0 -2
- package/dist/node/modules/boundwitness-loader/index.d.ts.map +0 -1
- package/dist/node/modules/bridge/index.d.ts +0 -7
- package/dist/node/modules/bridge/index.d.ts.map +0 -1
- package/dist/node/modules/bridge-abstract/AbstractBridge.d.ts +0 -31
- package/dist/node/modules/bridge-abstract/AbstractBridge.d.ts.map +0 -1
- package/dist/node/modules/bridge-abstract/AbstractBridgeModuleResolver.d.ts +0 -25
- package/dist/node/modules/bridge-abstract/AbstractBridgeModuleResolver.d.ts.map +0 -1
- package/dist/node/modules/bridge-abstract/AbstractModuleProxy/AbstractModuleProxy.d.ts +0 -61
- package/dist/node/modules/bridge-abstract/AbstractModuleProxy/AbstractModuleProxy.d.ts.map +0 -1
- package/dist/node/modules/bridge-abstract/AbstractModuleProxy/ModuleProxyResolver.d.ts +0 -39
- package/dist/node/modules/bridge-abstract/AbstractModuleProxy/ModuleProxyResolver.d.ts.map +0 -1
- package/dist/node/modules/bridge-abstract/AbstractModuleProxy/index.d.ts +0 -3
- package/dist/node/modules/bridge-abstract/AbstractModuleProxy/index.d.ts.map +0 -1
- package/dist/node/modules/bridge-abstract/index.d.ts +0 -9
- package/dist/node/modules/bridge-abstract/index.d.ts.map +0 -1
- package/dist/node/modules/bridge-abstract/wrapModuleWithType.d.ts +0 -6
- package/dist/node/modules/bridge-abstract/wrapModuleWithType.d.ts.map +0 -1
- package/dist/node/modules/bridge-http/HttpBridge.d.ts +0 -45
- package/dist/node/modules/bridge-http/HttpBridge.d.ts.map +0 -1
- package/dist/node/modules/bridge-http/HttpBridgeConfig.d.ts +0 -53
- package/dist/node/modules/bridge-http/HttpBridgeConfig.d.ts.map +0 -1
- package/dist/node/modules/bridge-http/HttpBridgeModuleResolver.d.ts +0 -27
- package/dist/node/modules/bridge-http/HttpBridgeModuleResolver.d.ts.map +0 -1
- package/dist/node/modules/bridge-http/ModuleProxy/ModuleProxy.d.ts +0 -26
- package/dist/node/modules/bridge-http/ModuleProxy/ModuleProxy.d.ts.map +0 -1
- package/dist/node/modules/bridge-http/ModuleProxy/index.d.ts +0 -3
- package/dist/node/modules/bridge-http/ModuleProxy/index.d.ts.map +0 -1
- package/dist/node/modules/bridge-http/index.d.ts +0 -5
- package/dist/node/modules/bridge-http/index.d.ts.map +0 -1
- package/dist/node/modules/bridge-model/Config.d.ts +0 -44
- package/dist/node/modules/bridge-model/Config.d.ts.map +0 -1
- package/dist/node/modules/bridge-model/EventData.d.ts +0 -6
- package/dist/node/modules/bridge-model/EventData.d.ts.map +0 -1
- package/dist/node/modules/bridge-model/Events/Exposed.d.ts +0 -11
- package/dist/node/modules/bridge-model/Events/Exposed.d.ts.map +0 -1
- package/dist/node/modules/bridge-model/Events/QueryFulfillFinished.d.ts +0 -15
- package/dist/node/modules/bridge-model/Events/QueryFulfillFinished.d.ts.map +0 -1
- package/dist/node/modules/bridge-model/Events/QueryFulfillStarted.d.ts +0 -13
- package/dist/node/modules/bridge-model/Events/QueryFulfillStarted.d.ts.map +0 -1
- package/dist/node/modules/bridge-model/Events/QuerySendFinished.d.ts +0 -15
- package/dist/node/modules/bridge-model/Events/QuerySendFinished.d.ts.map +0 -1
- package/dist/node/modules/bridge-model/Events/QuerySendStarted.d.ts +0 -13
- package/dist/node/modules/bridge-model/Events/QuerySendStarted.d.ts.map +0 -1
- package/dist/node/modules/bridge-model/Events/Unexposed.d.ts +0 -11
- package/dist/node/modules/bridge-model/Events/Unexposed.d.ts.map +0 -1
- package/dist/node/modules/bridge-model/Events/index.d.ts +0 -7
- package/dist/node/modules/bridge-model/Events/index.d.ts.map +0 -1
- package/dist/node/modules/bridge-model/Instance.d.ts +0 -12
- package/dist/node/modules/bridge-model/Instance.d.ts.map +0 -1
- package/dist/node/modules/bridge-model/Module.d.ts +0 -7
- package/dist/node/modules/bridge-model/Module.d.ts.map +0 -1
- package/dist/node/modules/bridge-model/Params.d.ts +0 -7
- package/dist/node/modules/bridge-model/Params.d.ts.map +0 -1
- package/dist/node/modules/bridge-model/Queries/Connect.d.ts +0 -26
- package/dist/node/modules/bridge-model/Queries/Connect.d.ts.map +0 -1
- package/dist/node/modules/bridge-model/Queries/Disconnect.d.ts +0 -26
- package/dist/node/modules/bridge-model/Queries/Disconnect.d.ts.map +0 -1
- package/dist/node/modules/bridge-model/Queries/Expose.d.ts +0 -49
- package/dist/node/modules/bridge-model/Queries/Expose.d.ts.map +0 -1
- package/dist/node/modules/bridge-model/Queries/Unexpose.d.ts +0 -26
- package/dist/node/modules/bridge-model/Queries/Unexpose.d.ts.map +0 -1
- package/dist/node/modules/bridge-model/Queries/index.d.ts +0 -14
- package/dist/node/modules/bridge-model/Queries/index.d.ts.map +0 -1
- package/dist/node/modules/bridge-model/QueryFunctions.d.ts +0 -12
- package/dist/node/modules/bridge-model/QueryFunctions.d.ts.map +0 -1
- package/dist/node/modules/bridge-model/RawQueryFunctions.d.ts +0 -11
- package/dist/node/modules/bridge-model/RawQueryFunctions.d.ts.map +0 -1
- package/dist/node/modules/bridge-model/attachable/AttachableInstance.d.ts +0 -16
- package/dist/node/modules/bridge-model/attachable/AttachableInstance.d.ts.map +0 -1
- package/dist/node/modules/bridge-model/attachable/asAttachableInstance.d.ts +0 -3
- package/dist/node/modules/bridge-model/attachable/asAttachableInstance.d.ts.map +0 -1
- package/dist/node/modules/bridge-model/attachable/index.d.ts +0 -4
- package/dist/node/modules/bridge-model/attachable/index.d.ts.map +0 -1
- package/dist/node/modules/bridge-model/attachable/isAttachableInstance.d.ts +0 -7
- package/dist/node/modules/bridge-model/attachable/isAttachableInstance.d.ts.map +0 -1
- package/dist/node/modules/bridge-model/index.d.ts +0 -13
- package/dist/node/modules/bridge-model/index.d.ts.map +0 -1
- package/dist/node/modules/bridge-model/typeChecks.d.ts +0 -21
- package/dist/node/modules/bridge-model/typeChecks.d.ts.map +0 -1
- package/dist/node/modules/bridge-wrapper/BridgeWrapper.d.ts +0 -13
- package/dist/node/modules/bridge-wrapper/BridgeWrapper.d.ts.map +0 -1
- package/dist/node/modules/bridge-wrapper/index.d.ts +0 -3
- package/dist/node/modules/bridge-wrapper/index.d.ts.map +0 -1
- package/dist/node/modules/diviner/index.d.ts +0 -4
- package/dist/node/modules/diviner/index.d.ts.map +0 -1
- package/dist/node/modules/diviner-abstract/AbstractDiviner.d.ts +0 -22
- package/dist/node/modules/diviner-abstract/AbstractDiviner.d.ts.map +0 -1
- package/dist/node/modules/diviner-abstract/index.d.ts +0 -2
- package/dist/node/modules/diviner-abstract/index.d.ts.map +0 -1
- package/dist/node/modules/diviner-boundwitness/BoundWitnessDiviner.d.ts +0 -10
- package/dist/node/modules/diviner-boundwitness/BoundWitnessDiviner.d.ts.map +0 -1
- package/dist/node/modules/diviner-boundwitness/Config.d.ts +0 -20
- package/dist/node/modules/diviner-boundwitness/Config.d.ts.map +0 -1
- package/dist/node/modules/diviner-boundwitness/MemoryBoundWitnessDiviner.d.ts +0 -52
- package/dist/node/modules/diviner-boundwitness/MemoryBoundWitnessDiviner.d.ts.map +0 -1
- package/dist/node/modules/diviner-boundwitness/Params.d.ts +0 -5
- package/dist/node/modules/diviner-boundwitness/Params.d.ts.map +0 -1
- package/dist/node/modules/diviner-boundwitness/Predicate.d.ts +0 -9
- package/dist/node/modules/diviner-boundwitness/Predicate.d.ts.map +0 -1
- package/dist/node/modules/diviner-boundwitness/Query.d.ts +0 -16
- package/dist/node/modules/diviner-boundwitness/Query.d.ts.map +0 -1
- package/dist/node/modules/diviner-boundwitness/Schema.d.ts +0 -5
- package/dist/node/modules/diviner-boundwitness/Schema.d.ts.map +0 -1
- package/dist/node/modules/diviner-boundwitness/abstract.d.ts +0 -2
- package/dist/node/modules/diviner-boundwitness/abstract.d.ts.map +0 -1
- package/dist/node/modules/diviner-boundwitness/applyBoundWitnessDivinerQueryPayload.d.ts +0 -4
- package/dist/node/modules/diviner-boundwitness/applyBoundWitnessDivinerQueryPayload.d.ts.map +0 -1
- package/dist/node/modules/diviner-boundwitness/index.d.ts +0 -4
- package/dist/node/modules/diviner-boundwitness/index.d.ts.map +0 -1
- package/dist/node/modules/diviner-boundwitness/memory.d.ts +0 -3
- package/dist/node/modules/diviner-boundwitness/memory.d.ts.map +0 -1
- package/dist/node/modules/diviner-boundwitness/model.d.ts +0 -6
- package/dist/node/modules/diviner-boundwitness/model.d.ts.map +0 -1
- package/dist/node/modules/diviner-identity/IdentityDiviner.d.ts +0 -13
- package/dist/node/modules/diviner-identity/IdentityDiviner.d.ts.map +0 -1
- package/dist/node/modules/diviner-identity/index.d.ts +0 -2
- package/dist/node/modules/diviner-identity/index.d.ts.map +0 -1
- package/dist/node/modules/diviner-model/Config.d.ts +0 -27
- package/dist/node/modules/diviner-model/Config.d.ts.map +0 -1
- package/dist/node/modules/diviner-model/DivinerQueryFunctions.d.ts +0 -9
- package/dist/node/modules/diviner-model/DivinerQueryFunctions.d.ts.map +0 -1
- package/dist/node/modules/diviner-model/EventData.d.ts +0 -5
- package/dist/node/modules/diviner-model/EventData.d.ts.map +0 -1
- package/dist/node/modules/diviner-model/EventsModels/DivineEnd.d.ts +0 -12
- package/dist/node/modules/diviner-model/EventsModels/DivineEnd.d.ts.map +0 -1
- package/dist/node/modules/diviner-model/EventsModels/DivineStart.d.ts +0 -10
- package/dist/node/modules/diviner-model/EventsModels/DivineStart.d.ts.map +0 -1
- package/dist/node/modules/diviner-model/EventsModels/index.d.ts +0 -3
- package/dist/node/modules/diviner-model/EventsModels/index.d.ts.map +0 -1
- package/dist/node/modules/diviner-model/Instance.d.ts +0 -9
- package/dist/node/modules/diviner-model/Instance.d.ts.map +0 -1
- package/dist/node/modules/diviner-model/Module.d.ts +0 -6
- package/dist/node/modules/diviner-model/Module.d.ts.map +0 -1
- package/dist/node/modules/diviner-model/Params.d.ts +0 -5
- package/dist/node/modules/diviner-model/Params.d.ts.map +0 -1
- package/dist/node/modules/diviner-model/Payload.d.ts +0 -6
- package/dist/node/modules/diviner-model/Payload.d.ts.map +0 -1
- package/dist/node/modules/diviner-model/Queries/Divine.d.ts +0 -15
- package/dist/node/modules/diviner-model/Queries/Divine.d.ts.map +0 -1
- package/dist/node/modules/diviner-model/Queries/index.d.ts +0 -6
- package/dist/node/modules/diviner-model/Queries/index.d.ts.map +0 -1
- package/dist/node/modules/diviner-model/SearchableStorage.d.ts +0 -19
- package/dist/node/modules/diviner-model/SearchableStorage.d.ts.map +0 -1
- package/dist/node/modules/diviner-model/attachable/AttachableInstance.d.ts +0 -13
- package/dist/node/modules/diviner-model/attachable/AttachableInstance.d.ts.map +0 -1
- package/dist/node/modules/diviner-model/attachable/asAttachableInstance.d.ts +0 -2
- package/dist/node/modules/diviner-model/attachable/asAttachableInstance.d.ts.map +0 -1
- package/dist/node/modules/diviner-model/attachable/index.d.ts +0 -4
- package/dist/node/modules/diviner-model/attachable/index.d.ts.map +0 -1
- package/dist/node/modules/diviner-model/attachable/isAttachableInstance.d.ts +0 -5
- package/dist/node/modules/diviner-model/attachable/isAttachableInstance.d.ts.map +0 -1
- package/dist/node/modules/diviner-model/index.d.ts +0 -13
- package/dist/node/modules/diviner-model/index.d.ts.map +0 -1
- package/dist/node/modules/diviner-model/typeChecks.d.ts +0 -12
- package/dist/node/modules/diviner-model/typeChecks.d.ts.map +0 -1
- package/dist/node/modules/diviner-payload-abstract/Diviner.d.ts +0 -9
- package/dist/node/modules/diviner-payload-abstract/Diviner.d.ts.map +0 -1
- package/dist/node/modules/diviner-payload-abstract/index.d.ts +0 -2
- package/dist/node/modules/diviner-payload-abstract/index.d.ts.map +0 -1
- package/dist/node/modules/diviner-payload-generic/Diviner.d.ts +0 -48
- package/dist/node/modules/diviner-payload-generic/Diviner.d.ts.map +0 -1
- package/dist/node/modules/diviner-payload-generic/index.d.ts +0 -2
- package/dist/node/modules/diviner-payload-generic/index.d.ts.map +0 -1
- package/dist/node/modules/diviner-payload-model/Config.d.ts +0 -24
- package/dist/node/modules/diviner-payload-model/Config.d.ts.map +0 -1
- package/dist/node/modules/diviner-payload-model/Order.d.ts +0 -2
- package/dist/node/modules/diviner-payload-model/Order.d.ts.map +0 -1
- package/dist/node/modules/diviner-payload-model/Params.d.ts +0 -5
- package/dist/node/modules/diviner-payload-model/Params.d.ts.map +0 -1
- package/dist/node/modules/diviner-payload-model/Predicate.d.ts +0 -10
- package/dist/node/modules/diviner-payload-model/Predicate.d.ts.map +0 -1
- package/dist/node/modules/diviner-payload-model/Query.d.ts +0 -25
- package/dist/node/modules/diviner-payload-model/Query.d.ts.map +0 -1
- package/dist/node/modules/diviner-payload-model/Schema.d.ts +0 -5
- package/dist/node/modules/diviner-payload-model/Schema.d.ts.map +0 -1
- package/dist/node/modules/diviner-payload-model/SortDirection.d.ts +0 -3
- package/dist/node/modules/diviner-payload-model/SortDirection.d.ts.map +0 -1
- package/dist/node/modules/diviner-payload-model/index.d.ts +0 -8
- package/dist/node/modules/diviner-payload-model/index.d.ts.map +0 -1
- package/dist/node/modules/diviner-wrapper/DivinerWrapper.d.ts +0 -13
- package/dist/node/modules/diviner-wrapper/DivinerWrapper.d.ts.map +0 -1
- package/dist/node/modules/diviner-wrapper/index.d.ts +0 -2
- package/dist/node/modules/diviner-wrapper/index.d.ts.map +0 -1
- package/dist/node/modules/manifest-wrapper/Wrapper.d.ts +0 -26
- package/dist/node/modules/manifest-wrapper/Wrapper.d.ts.map +0 -1
- package/dist/node/modules/manifest-wrapper/WrapperEx.d.ts +0 -32
- package/dist/node/modules/manifest-wrapper/WrapperEx.d.ts.map +0 -1
- package/dist/node/modules/manifest-wrapper/index.d.ts +0 -3
- package/dist/node/modules/manifest-wrapper/index.d.ts.map +0 -1
- package/dist/node/modules/module/index.d.ts +0 -7
- package/dist/node/modules/module/index.d.ts.map +0 -1
- package/dist/node/modules/module-abstract/AbstractModule.d.ts +0 -119
- package/dist/node/modules/module-abstract/AbstractModule.d.ts.map +0 -1
- package/dist/node/modules/module-abstract/AbstractModuleInstance.d.ts +0 -48
- package/dist/node/modules/module-abstract/AbstractModuleInstance.d.ts.map +0 -1
- package/dist/node/modules/module-abstract/Error.d.ts +0 -13
- package/dist/node/modules/module-abstract/Error.d.ts.map +0 -1
- package/dist/node/modules/module-abstract/LoggerModuleStatusReporter.d.ts +0 -9
- package/dist/node/modules/module-abstract/LoggerModuleStatusReporter.d.ts.map +0 -1
- package/dist/node/modules/module-abstract/QueryValidator/ModuleConfigQueryValidator.d.ts +0 -16
- package/dist/node/modules/module-abstract/QueryValidator/ModuleConfigQueryValidator.d.ts.map +0 -1
- package/dist/node/modules/module-abstract/QueryValidator/QueryValidator.d.ts +0 -7
- package/dist/node/modules/module-abstract/QueryValidator/QueryValidator.d.ts.map +0 -1
- package/dist/node/modules/module-abstract/QueryValidator/SupportedQueryValidator.d.ts +0 -10
- package/dist/node/modules/module-abstract/QueryValidator/SupportedQueryValidator.d.ts.map +0 -1
- package/dist/node/modules/module-abstract/QueryValidator/index.d.ts +0 -4
- package/dist/node/modules/module-abstract/QueryValidator/index.d.ts.map +0 -1
- package/dist/node/modules/module-abstract/index.d.ts +0 -6
- package/dist/node/modules/module-abstract/index.d.ts.map +0 -1
- package/dist/node/modules/module-event-emitter/ModuleBaseEmitter.d.ts +0 -5
- package/dist/node/modules/module-event-emitter/ModuleBaseEmitter.d.ts.map +0 -1
- package/dist/node/modules/module-event-emitter/index.d.ts +0 -2
- package/dist/node/modules/module-event-emitter/index.d.ts.map +0 -1
- package/dist/node/modules/module-factory-locator/ModuleFactoryLocator.d.ts +0 -44
- package/dist/node/modules/module-factory-locator/ModuleFactoryLocator.d.ts.map +0 -1
- package/dist/node/modules/module-factory-locator/index.d.ts +0 -3
- package/dist/node/modules/module-factory-locator/index.d.ts.map +0 -1
- package/dist/node/modules/module-factory-locator/standardCreatableFactories.d.ts +0 -4
- package/dist/node/modules/module-factory-locator/standardCreatableFactories.d.ts.map +0 -1
- package/dist/node/modules/module-model/Config/Archiving.d.ts +0 -11
- package/dist/node/modules/module-model/Config/Archiving.d.ts.map +0 -1
- package/dist/node/modules/module-model/Config/Config.d.ts +0 -28
- package/dist/node/modules/module-model/Config/Config.d.ts.map +0 -1
- package/dist/node/modules/module-model/Config/Fields.d.ts +0 -24
- package/dist/node/modules/module-model/Config/Fields.d.ts.map +0 -1
- package/dist/node/modules/module-model/Config/Reentrancy.d.ts +0 -9
- package/dist/node/modules/module-model/Config/Reentrancy.d.ts.map +0 -1
- package/dist/node/modules/module-model/Config/Security.d.ts +0 -10
- package/dist/node/modules/module-model/Config/Security.d.ts.map +0 -1
- package/dist/node/modules/module-model/Config/index.d.ts +0 -6
- package/dist/node/modules/module-model/Config/index.d.ts.map +0 -1
- package/dist/node/modules/module-model/CreatableModule/CreatableModule.d.ts +0 -27
- package/dist/node/modules/module-model/CreatableModule/CreatableModule.d.ts.map +0 -1
- package/dist/node/modules/module-model/CreatableModule/CreatableModuleRegistry.d.ts +0 -12
- package/dist/node/modules/module-model/CreatableModule/CreatableModuleRegistry.d.ts.map +0 -1
- package/dist/node/modules/module-model/CreatableModule/LabeledCreatableModule.d.ts +0 -14
- package/dist/node/modules/module-model/CreatableModule/LabeledCreatableModule.d.ts.map +0 -1
- package/dist/node/modules/module-model/CreatableModule/LabeledCreatableModuleFactory.d.ts +0 -12
- package/dist/node/modules/module-model/CreatableModule/LabeledCreatableModuleFactory.d.ts.map +0 -1
- package/dist/node/modules/module-model/CreatableModule/ModuleFactory.d.ts +0 -17
- package/dist/node/modules/module-model/CreatableModule/ModuleFactory.d.ts.map +0 -1
- package/dist/node/modules/module-model/CreatableModule/index.d.ts +0 -6
- package/dist/node/modules/module-model/CreatableModule/index.d.ts.map +0 -1
- package/dist/node/modules/module-model/DetailsError.d.ts +0 -6
- package/dist/node/modules/module-model/DetailsError.d.ts.map +0 -1
- package/dist/node/modules/module-model/EventsModels/ModuleBusy.d.ts +0 -9
- package/dist/node/modules/module-model/EventsModels/ModuleBusy.d.ts.map +0 -1
- package/dist/node/modules/module-model/EventsModels/ModuleError.d.ts +0 -9
- package/dist/node/modules/module-model/EventsModels/ModuleError.d.ts.map +0 -1
- package/dist/node/modules/module-model/EventsModels/ModuleEventArgs.d.ts +0 -6
- package/dist/node/modules/module-model/EventsModels/ModuleEventArgs.d.ts.map +0 -1
- package/dist/node/modules/module-model/EventsModels/ModuleEventData.d.ts +0 -6
- package/dist/node/modules/module-model/EventsModels/ModuleEventData.d.ts.map +0 -1
- package/dist/node/modules/module-model/EventsModels/ModuleQueried.d.ts +0 -13
- package/dist/node/modules/module-model/EventsModels/ModuleQueried.d.ts.map +0 -1
- package/dist/node/modules/module-model/EventsModels/index.d.ts +0 -6
- package/dist/node/modules/module-model/EventsModels/index.d.ts.map +0 -1
- package/dist/node/modules/module-model/Job/Job.d.ts +0 -12
- package/dist/node/modules/module-model/Job/Job.d.ts.map +0 -1
- package/dist/node/modules/module-model/Job/JobProvider.d.ts +0 -5
- package/dist/node/modules/module-model/Job/JobProvider.d.ts.map +0 -1
- package/dist/node/modules/module-model/Job/JobQueue.d.ts +0 -13
- package/dist/node/modules/module-model/Job/JobQueue.d.ts.map +0 -1
- package/dist/node/modules/module-model/Job/Task.d.ts +0 -2
- package/dist/node/modules/module-model/Job/Task.d.ts.map +0 -1
- package/dist/node/modules/module-model/Job/index.d.ts +0 -4
- package/dist/node/modules/module-model/Job/index.d.ts.map +0 -1
- package/dist/node/modules/module-model/Labels/Labels.d.ts +0 -24
- package/dist/node/modules/module-model/Labels/Labels.d.ts.map +0 -1
- package/dist/node/modules/module-model/Labels/index.d.ts +0 -3
- package/dist/node/modules/module-model/Labels/index.d.ts.map +0 -1
- package/dist/node/modules/module-model/Labels/standard/View.d.ts +0 -6
- package/dist/node/modules/module-model/Labels/standard/View.d.ts.map +0 -1
- package/dist/node/modules/module-model/Labels/standard/index.d.ts +0 -2
- package/dist/node/modules/module-model/Labels/standard/index.d.ts.map +0 -1
- package/dist/node/modules/module-model/ModuleDescription.d.ts +0 -9
- package/dist/node/modules/module-model/ModuleDescription.d.ts.map +0 -1
- package/dist/node/modules/module-model/ModuleFactoryLocatorInstance.d.ts +0 -37
- package/dist/node/modules/module-model/ModuleFactoryLocatorInstance.d.ts.map +0 -1
- package/dist/node/modules/module-model/ModuleIdentifier.d.ts +0 -43
- package/dist/node/modules/module-model/ModuleIdentifier.d.ts.map +0 -1
- package/dist/node/modules/module-model/ModuleIdentifierTransformer.d.ts +0 -7
- package/dist/node/modules/module-model/ModuleIdentifierTransformer.d.ts.map +0 -1
- package/dist/node/modules/module-model/ModuleQueryHandlerResult.d.ts +0 -3
- package/dist/node/modules/module-model/ModuleQueryHandlerResult.d.ts.map +0 -1
- package/dist/node/modules/module-model/ModuleQueryResult.d.ts +0 -7
- package/dist/node/modules/module-model/ModuleQueryResult.d.ts.map +0 -1
- package/dist/node/modules/module-model/ModuleStatusReporter.d.ts +0 -4
- package/dist/node/modules/module-model/ModuleStatusReporter.d.ts.map +0 -1
- package/dist/node/modules/module-model/Payload/Address.d.ts +0 -48
- package/dist/node/modules/module-model/Payload/Address.d.ts.map +0 -1
- package/dist/node/modules/module-model/Payload/AddressPreviousHash.d.ts +0 -17
- package/dist/node/modules/module-model/Payload/AddressPreviousHash.d.ts.map +0 -1
- package/dist/node/modules/module-model/Payload/Description.d.ts +0 -15
- package/dist/node/modules/module-model/Payload/Description.d.ts.map +0 -1
- package/dist/node/modules/module-model/Payload/ModuleState.d.ts +0 -23
- package/dist/node/modules/module-model/Payload/ModuleState.d.ts.map +0 -1
- package/dist/node/modules/module-model/Payload/index.d.ts +0 -5
- package/dist/node/modules/module-model/Payload/index.d.ts.map +0 -1
- package/dist/node/modules/module-model/Queries/Manifest.d.ts +0 -17
- package/dist/node/modules/module-model/Queries/Manifest.d.ts.map +0 -1
- package/dist/node/modules/module-model/Queries/ModuleAddress/Query.d.ts +0 -15
- package/dist/node/modules/module-model/Queries/ModuleAddress/Query.d.ts.map +0 -1
- package/dist/node/modules/module-model/Queries/ModuleAddress/index.d.ts +0 -2
- package/dist/node/modules/module-model/Queries/ModuleAddress/index.d.ts.map +0 -1
- package/dist/node/modules/module-model/Queries/State.d.ts +0 -15
- package/dist/node/modules/module-model/Queries/State.d.ts.map +0 -1
- package/dist/node/modules/module-model/Queries/Subscribe.d.ts +0 -23
- package/dist/node/modules/module-model/Queries/Subscribe.d.ts.map +0 -1
- package/dist/node/modules/module-model/Queries/index.d.ts +0 -10
- package/dist/node/modules/module-model/Queries/index.d.ts.map +0 -1
- package/dist/node/modules/module-model/QueryableModule/IsQueryableModuleFactory.d.ts +0 -12
- package/dist/node/modules/module-model/QueryableModule/IsQueryableModuleFactory.d.ts.map +0 -1
- package/dist/node/modules/module-model/QueryableModule/QueryableModule.d.ts +0 -10
- package/dist/node/modules/module-model/QueryableModule/QueryableModule.d.ts.map +0 -1
- package/dist/node/modules/module-model/QueryableModule/QueryableModuleFields.d.ts +0 -22
- package/dist/node/modules/module-model/QueryableModule/QueryableModuleFields.d.ts.map +0 -1
- package/dist/node/modules/module-model/QueryableModule/QueryableModuleFunctions.d.ts +0 -15
- package/dist/node/modules/module-model/QueryableModule/QueryableModuleFunctions.d.ts.map +0 -1
- package/dist/node/modules/module-model/QueryableModule/QueryableModuleParams.d.ts +0 -19
- package/dist/node/modules/module-model/QueryableModule/QueryableModuleParams.d.ts.map +0 -1
- package/dist/node/modules/module-model/QueryableModule/asQueryableModule.d.ts +0 -9
- package/dist/node/modules/module-model/QueryableModule/asQueryableModule.d.ts.map +0 -1
- package/dist/node/modules/module-model/QueryableModule/asQueryableModuleObject.d.ts +0 -9
- package/dist/node/modules/module-model/QueryableModule/asQueryableModuleObject.d.ts.map +0 -1
- package/dist/node/modules/module-model/QueryableModule/index.d.ts +0 -10
- package/dist/node/modules/module-model/QueryableModule/index.d.ts.map +0 -1
- package/dist/node/modules/module-model/QueryableModule/isQueryableModule.d.ts +0 -10
- package/dist/node/modules/module-model/QueryableModule/isQueryableModule.d.ts.map +0 -1
- package/dist/node/modules/module-model/QueryableModule/isQueryableModuleObject.d.ts +0 -9
- package/dist/node/modules/module-model/QueryableModule/isQueryableModuleObject.d.ts.map +0 -1
- package/dist/node/modules/module-model/cache.d.ts +0 -6
- package/dist/node/modules/module-model/cache.d.ts.map +0 -1
- package/dist/node/modules/module-model/index.d.ts +0 -21
- package/dist/node/modules/module-model/index.d.ts.map +0 -1
- package/dist/node/modules/module-model/instance/Instance.d.ts +0 -38
- package/dist/node/modules/module-model/instance/Instance.d.ts.map +0 -1
- package/dist/node/modules/module-model/instance/ModuleFilter.d.ts +0 -14
- package/dist/node/modules/module-model/instance/ModuleFilter.d.ts.map +0 -1
- package/dist/node/modules/module-model/instance/ModuleInstanceParams.d.ts +0 -10
- package/dist/node/modules/module-model/instance/ModuleInstanceParams.d.ts.map +0 -1
- package/dist/node/modules/module-model/instance/ModuleRepository.d.ts +0 -10
- package/dist/node/modules/module-model/instance/ModuleRepository.d.ts.map +0 -1
- package/dist/node/modules/module-model/instance/ModuleResolver.d.ts +0 -18
- package/dist/node/modules/module-model/instance/ModuleResolver.d.ts.map +0 -1
- package/dist/node/modules/module-model/instance/ObjectFilter.d.ts +0 -30
- package/dist/node/modules/module-model/instance/ObjectFilter.d.ts.map +0 -1
- package/dist/node/modules/module-model/instance/ObjectResolver.d.ts +0 -27
- package/dist/node/modules/module-model/instance/ObjectResolver.d.ts.map +0 -1
- package/dist/node/modules/module-model/instance/asModuleInstance.d.ts +0 -7
- package/dist/node/modules/module-model/instance/asModuleInstance.d.ts.map +0 -1
- package/dist/node/modules/module-model/instance/attachable/AttachableInstance.d.ts +0 -16
- package/dist/node/modules/module-model/instance/attachable/AttachableInstance.d.ts.map +0 -1
- package/dist/node/modules/module-model/instance/attachable/asAttachableInstance.d.ts +0 -4
- package/dist/node/modules/module-model/instance/attachable/asAttachableInstance.d.ts.map +0 -1
- package/dist/node/modules/module-model/instance/attachable/index.d.ts +0 -4
- package/dist/node/modules/module-model/instance/attachable/index.d.ts.map +0 -1
- package/dist/node/modules/module-model/instance/attachable/isAttachableInstance.d.ts +0 -5
- package/dist/node/modules/module-model/instance/attachable/isAttachableInstance.d.ts.map +0 -1
- package/dist/node/modules/module-model/instance/index.d.ts +0 -11
- package/dist/node/modules/module-model/instance/index.d.ts.map +0 -1
- package/dist/node/modules/module-model/instance/isModuleInstance.d.ts +0 -5
- package/dist/node/modules/module-model/instance/isModuleInstance.d.ts.map +0 -1
- package/dist/node/modules/module-model/lib/duplicateModules.d.ts +0 -12
- package/dist/node/modules/module-model/lib/duplicateModules.d.ts.map +0 -1
- package/dist/node/modules/module-model/lib/index.d.ts +0 -3
- package/dist/node/modules/module-model/lib/index.d.ts.map +0 -1
- package/dist/node/modules/module-model/lib/serializable.d.ts +0 -2
- package/dist/node/modules/module-model/lib/serializable.d.ts.map +0 -1
- package/dist/node/modules/module-model/withModule.d.ts +0 -6
- package/dist/node/modules/module-model/withModule.d.ts.map +0 -1
- package/dist/node/modules/module-resolver/AbstractModuleResolver.d.ts +0 -24
- package/dist/node/modules/module-resolver/AbstractModuleResolver.d.ts.map +0 -1
- package/dist/node/modules/module-resolver/CompositeModuleResolver.d.ts +0 -35
- package/dist/node/modules/module-resolver/CompositeModuleResolver.d.ts.map +0 -1
- package/dist/node/modules/module-resolver/NameRegistrarTransformer.d.ts +0 -10
- package/dist/node/modules/module-resolver/NameRegistrarTransformer.d.ts.map +0 -1
- package/dist/node/modules/module-resolver/ResolveHelper/ResolveHelper.d.ts +0 -27
- package/dist/node/modules/module-resolver/ResolveHelper/ResolveHelper.d.ts.map +0 -1
- package/dist/node/modules/module-resolver/ResolveHelper/ResolveHelperStatic.d.ts +0 -7
- package/dist/node/modules/module-resolver/ResolveHelper/ResolveHelperStatic.d.ts.map +0 -1
- package/dist/node/modules/module-resolver/ResolveHelper/index.d.ts +0 -10
- package/dist/node/modules/module-resolver/ResolveHelper/index.d.ts.map +0 -1
- package/dist/node/modules/module-resolver/ResolveHelper/model.d.ts +0 -2
- package/dist/node/modules/module-resolver/ResolveHelper/model.d.ts.map +0 -1
- package/dist/node/modules/module-resolver/ResolveHelper/resolveAddressToInstance.d.ts +0 -9
- package/dist/node/modules/module-resolver/ResolveHelper/resolveAddressToInstance.d.ts.map +0 -1
- package/dist/node/modules/module-resolver/ResolveHelper/resolveAll.d.ts +0 -6
- package/dist/node/modules/module-resolver/ResolveHelper/resolveAll.d.ts.map +0 -1
- package/dist/node/modules/module-resolver/ResolveHelper/resolveLocalNameToAddress.d.ts +0 -8
- package/dist/node/modules/module-resolver/ResolveHelper/resolveLocalNameToAddress.d.ts.map +0 -1
- package/dist/node/modules/module-resolver/ResolveHelper/resolveLocalNameToInstance.d.ts +0 -7
- package/dist/node/modules/module-resolver/ResolveHelper/resolveLocalNameToInstance.d.ts.map +0 -1
- package/dist/node/modules/module-resolver/ResolveHelper/resolvePathToAddress.d.ts +0 -4
- package/dist/node/modules/module-resolver/ResolveHelper/resolvePathToAddress.d.ts.map +0 -1
- package/dist/node/modules/module-resolver/ResolveHelper/resolvePathToInstance.d.ts +0 -3
- package/dist/node/modules/module-resolver/ResolveHelper/resolvePathToInstance.d.ts.map +0 -1
- package/dist/node/modules/module-resolver/ResolveHelper/transformModuleIdentifier.d.ts +0 -3
- package/dist/node/modules/module-resolver/ResolveHelper/transformModuleIdentifier.d.ts.map +0 -1
- package/dist/node/modules/module-resolver/ResolverEventEmitter.d.ts +0 -10
- package/dist/node/modules/module-resolver/ResolverEventEmitter.d.ts.map +0 -1
- package/dist/node/modules/module-resolver/SimpleModuleResolver.d.ts +0 -27
- package/dist/node/modules/module-resolver/SimpleModuleResolver.d.ts.map +0 -1
- package/dist/node/modules/module-resolver/index.d.ts +0 -7
- package/dist/node/modules/module-resolver/index.d.ts.map +0 -1
- package/dist/node/modules/module-wrapper/ModuleWrapper.d.ts +0 -104
- package/dist/node/modules/module-wrapper/ModuleWrapper.d.ts.map +0 -1
- package/dist/node/modules/module-wrapper/index.d.ts +0 -3
- package/dist/node/modules/module-wrapper/index.d.ts.map +0 -1
- package/dist/node/modules/module-wrapper/models.d.ts +0 -9
- package/dist/node/modules/module-wrapper/models.d.ts.map +0 -1
- package/dist/node/modules/modules/index.d.ts +0 -14
- package/dist/node/modules/modules/index.d.ts.map +0 -1
- package/dist/node/modules/node/index.d.ts +0 -5
- package/dist/node/modules/node/index.d.ts.map +0 -1
- package/dist/node/modules/node-abstract/AbstractNode.d.ts +0 -36
- package/dist/node/modules/node-abstract/AbstractNode.d.ts.map +0 -1
- package/dist/node/modules/node-abstract/NodeHelper/index.d.ts +0 -7
- package/dist/node/modules/node-abstract/NodeHelper/index.d.ts.map +0 -1
- package/dist/node/modules/node-abstract/index.d.ts +0 -3
- package/dist/node/modules/node-abstract/index.d.ts.map +0 -1
- package/dist/node/modules/node-memory/MemoryNode.d.ts +0 -47
- package/dist/node/modules/node-memory/MemoryNode.d.ts.map +0 -1
- package/dist/node/modules/node-memory/NodeHelper/index.d.ts +0 -14
- package/dist/node/modules/node-memory/NodeHelper/index.d.ts.map +0 -1
- package/dist/node/modules/node-memory/index.d.ts +0 -3
- package/dist/node/modules/node-memory/index.d.ts.map +0 -1
- package/dist/node/modules/node-model/ChildCertification.d.ts +0 -19
- package/dist/node/modules/node-model/ChildCertification.d.ts.map +0 -1
- package/dist/node/modules/node-model/Config.d.ts +0 -21
- package/dist/node/modules/node-model/Config.d.ts.map +0 -1
- package/dist/node/modules/node-model/EventsModels/ModuleAttached.d.ts +0 -7
- package/dist/node/modules/node-model/EventsModels/ModuleAttached.d.ts.map +0 -1
- package/dist/node/modules/node-model/EventsModels/ModuleDetached.d.ts +0 -7
- package/dist/node/modules/node-model/EventsModels/ModuleDetached.d.ts.map +0 -1
- package/dist/node/modules/node-model/EventsModels/ModuleRegistered.d.ts +0 -7
- package/dist/node/modules/node-model/EventsModels/ModuleRegistered.d.ts.map +0 -1
- package/dist/node/modules/node-model/EventsModels/ModuleUnregistered.d.ts +0 -7
- package/dist/node/modules/node-model/EventsModels/ModuleUnregistered.d.ts.map +0 -1
- package/dist/node/modules/node-model/EventsModels/index.d.ts +0 -5
- package/dist/node/modules/node-model/EventsModels/index.d.ts.map +0 -1
- package/dist/node/modules/node-model/Node.d.ts +0 -8
- package/dist/node/modules/node-model/Node.d.ts.map +0 -1
- package/dist/node/modules/node-model/Params.d.ts +0 -7
- package/dist/node/modules/node-model/Params.d.ts.map +0 -1
- package/dist/node/modules/node-model/Queries/Attach.d.ts +0 -19
- package/dist/node/modules/node-model/Queries/Attach.d.ts.map +0 -1
- package/dist/node/modules/node-model/Queries/Attached.d.ts +0 -15
- package/dist/node/modules/node-model/Queries/Attached.d.ts.map +0 -1
- package/dist/node/modules/node-model/Queries/Certify.d.ts +0 -18
- package/dist/node/modules/node-model/Queries/Certify.d.ts.map +0 -1
- package/dist/node/modules/node-model/Queries/Detach.d.ts +0 -18
- package/dist/node/modules/node-model/Queries/Detach.d.ts.map +0 -1
- package/dist/node/modules/node-model/Queries/Registered.d.ts +0 -15
- package/dist/node/modules/node-model/Queries/Registered.d.ts.map +0 -1
- package/dist/node/modules/node-model/Queries/index.d.ts +0 -14
- package/dist/node/modules/node-model/Queries/index.d.ts.map +0 -1
- package/dist/node/modules/node-model/attachable/AttachableInstance.d.ts +0 -12
- package/dist/node/modules/node-model/attachable/AttachableInstance.d.ts.map +0 -1
- package/dist/node/modules/node-model/attachable/asAttachableInstance.d.ts +0 -2
- package/dist/node/modules/node-model/attachable/asAttachableInstance.d.ts.map +0 -1
- package/dist/node/modules/node-model/attachable/index.d.ts +0 -4
- package/dist/node/modules/node-model/attachable/index.d.ts.map +0 -1
- package/dist/node/modules/node-model/attachable/isAttachableInstance.d.ts +0 -5
- package/dist/node/modules/node-model/attachable/isAttachableInstance.d.ts.map +0 -1
- package/dist/node/modules/node-model/index.d.ts +0 -10
- package/dist/node/modules/node-model/index.d.ts.map +0 -1
- package/dist/node/modules/node-model/instance.d.ts +0 -25
- package/dist/node/modules/node-model/instance.d.ts.map +0 -1
- package/dist/node/modules/node-model/typeChecks.d.ts +0 -12
- package/dist/node/modules/node-model/typeChecks.d.ts.map +0 -1
- package/dist/node/modules/node-view/ViewNode.d.ts +0 -56
- package/dist/node/modules/node-view/ViewNode.d.ts.map +0 -1
- package/dist/node/modules/node-view/index.d.ts +0 -2
- package/dist/node/modules/node-view/index.d.ts.map +0 -1
- package/dist/node/modules/node-wrapper/NodeWrapper.d.ts +0 -25
- package/dist/node/modules/node-wrapper/NodeWrapper.d.ts.map +0 -1
- package/dist/node/modules/node-wrapper/index.d.ts +0 -2
- package/dist/node/modules/node-wrapper/index.d.ts.map +0 -1
- package/dist/node/modules/payloadset-plugin/Plugin.d.ts +0 -27
- package/dist/node/modules/payloadset-plugin/Plugin.d.ts.map +0 -1
- package/dist/node/modules/payloadset-plugin/Resolver.d.ts +0 -24
- package/dist/node/modules/payloadset-plugin/Resolver.d.ts.map +0 -1
- package/dist/node/modules/payloadset-plugin/createPlugin.d.ts +0 -8
- package/dist/node/modules/payloadset-plugin/createPlugin.d.ts.map +0 -1
- package/dist/node/modules/payloadset-plugin/index.d.ts +0 -4
- package/dist/node/modules/payloadset-plugin/index.d.ts.map +0 -1
- package/dist/node/modules/sentinel/index.d.ts +0 -5
- package/dist/node/modules/sentinel/index.d.ts.map +0 -1
- package/dist/node/modules/sentinel-abstract/AbstractSentinel.d.ts +0 -21
- package/dist/node/modules/sentinel-abstract/AbstractSentinel.d.ts.map +0 -1
- package/dist/node/modules/sentinel-abstract/index.d.ts +0 -2
- package/dist/node/modules/sentinel-abstract/index.d.ts.map +0 -1
- package/dist/node/modules/sentinel-memory/MemorySentinel.d.ts +0 -17
- package/dist/node/modules/sentinel-memory/MemorySentinel.d.ts.map +0 -1
- package/dist/node/modules/sentinel-memory/SentinelIntervalAutomationWrapper.d.ts +0 -21
- package/dist/node/modules/sentinel-memory/SentinelIntervalAutomationWrapper.d.ts.map +0 -1
- package/dist/node/modules/sentinel-memory/SentinelRunner.d.ts +0 -30
- package/dist/node/modules/sentinel-memory/SentinelRunner.d.ts.map +0 -1
- package/dist/node/modules/sentinel-memory/index.d.ts +0 -4
- package/dist/node/modules/sentinel-memory/index.d.ts.map +0 -1
- package/dist/node/modules/sentinel-model/Automation.d.ts +0 -48
- package/dist/node/modules/sentinel-model/Automation.d.ts.map +0 -1
- package/dist/node/modules/sentinel-model/Config.d.ts +0 -32
- package/dist/node/modules/sentinel-model/Config.d.ts.map +0 -1
- package/dist/node/modules/sentinel-model/EventData.d.ts +0 -5
- package/dist/node/modules/sentinel-model/EventData.d.ts.map +0 -1
- package/dist/node/modules/sentinel-model/EventsModels/JobEnd.d.ts +0 -11
- package/dist/node/modules/sentinel-model/EventsModels/JobEnd.d.ts.map +0 -1
- package/dist/node/modules/sentinel-model/EventsModels/JobStart.d.ts +0 -10
- package/dist/node/modules/sentinel-model/EventsModels/JobStart.d.ts.map +0 -1
- package/dist/node/modules/sentinel-model/EventsModels/ReportEnd.d.ts +0 -12
- package/dist/node/modules/sentinel-model/EventsModels/ReportEnd.d.ts.map +0 -1
- package/dist/node/modules/sentinel-model/EventsModels/ReportStart.d.ts +0 -10
- package/dist/node/modules/sentinel-model/EventsModels/ReportStart.d.ts.map +0 -1
- package/dist/node/modules/sentinel-model/EventsModels/TaskEnd.d.ts +0 -13
- package/dist/node/modules/sentinel-model/EventsModels/TaskEnd.d.ts.map +0 -1
- package/dist/node/modules/sentinel-model/EventsModels/TaskStart.d.ts +0 -12
- package/dist/node/modules/sentinel-model/EventsModels/TaskStart.d.ts.map +0 -1
- package/dist/node/modules/sentinel-model/EventsModels/index.d.ts +0 -7
- package/dist/node/modules/sentinel-model/EventsModels/index.d.ts.map +0 -1
- package/dist/node/modules/sentinel-model/Instance.d.ts +0 -10
- package/dist/node/modules/sentinel-model/Instance.d.ts.map +0 -1
- package/dist/node/modules/sentinel-model/Job.d.ts +0 -5
- package/dist/node/modules/sentinel-model/Job.d.ts.map +0 -1
- package/dist/node/modules/sentinel-model/Module.d.ts +0 -8
- package/dist/node/modules/sentinel-model/Module.d.ts.map +0 -1
- package/dist/node/modules/sentinel-model/Params.d.ts +0 -5
- package/dist/node/modules/sentinel-model/Params.d.ts.map +0 -1
- package/dist/node/modules/sentinel-model/Queries/Report.d.ts +0 -15
- package/dist/node/modules/sentinel-model/Queries/Report.d.ts.map +0 -1
- package/dist/node/modules/sentinel-model/Queries/index.d.ts +0 -6
- package/dist/node/modules/sentinel-model/Queries/index.d.ts.map +0 -1
- package/dist/node/modules/sentinel-model/ResolvedTask.d.ts +0 -14
- package/dist/node/modules/sentinel-model/ResolvedTask.d.ts.map +0 -1
- package/dist/node/modules/sentinel-model/Sentinel.d.ts +0 -8
- package/dist/node/modules/sentinel-model/Sentinel.d.ts.map +0 -1
- package/dist/node/modules/sentinel-model/Task.d.ts +0 -15
- package/dist/node/modules/sentinel-model/Task.d.ts.map +0 -1
- package/dist/node/modules/sentinel-model/attachable/AttachableInstance.d.ts +0 -13
- package/dist/node/modules/sentinel-model/attachable/AttachableInstance.d.ts.map +0 -1
- package/dist/node/modules/sentinel-model/attachable/asAttachableInstance.d.ts +0 -2
- package/dist/node/modules/sentinel-model/attachable/asAttachableInstance.d.ts.map +0 -1
- package/dist/node/modules/sentinel-model/attachable/index.d.ts +0 -4
- package/dist/node/modules/sentinel-model/attachable/index.d.ts.map +0 -1
- package/dist/node/modules/sentinel-model/attachable/isAttachableInstance.d.ts +0 -5
- package/dist/node/modules/sentinel-model/attachable/isAttachableInstance.d.ts.map +0 -1
- package/dist/node/modules/sentinel-model/index.d.ts +0 -15
- package/dist/node/modules/sentinel-model/index.d.ts.map +0 -1
- package/dist/node/modules/sentinel-model/typeChecks.d.ts +0 -11
- package/dist/node/modules/sentinel-model/typeChecks.d.ts.map +0 -1
- package/dist/node/modules/sentinel-wrapper/Wrapper.d.ts +0 -17
- package/dist/node/modules/sentinel-wrapper/Wrapper.d.ts.map +0 -1
- package/dist/node/modules/sentinel-wrapper/index.d.ts +0 -2
- package/dist/node/modules/sentinel-wrapper/index.d.ts.map +0 -1
- package/dist/node/modules/witness/index.d.ts +0 -4
- package/dist/node/modules/witness/index.d.ts.map +0 -1
- package/dist/node/modules/witness-abstract/AbstractWitness.d.ts +0 -21
- package/dist/node/modules/witness-abstract/AbstractWitness.d.ts.map +0 -1
- package/dist/node/modules/witness-abstract/index.d.ts +0 -2
- package/dist/node/modules/witness-abstract/index.d.ts.map +0 -1
- package/dist/node/modules/witness-adhoc/Witness.d.ts +0 -28
- package/dist/node/modules/witness-adhoc/Witness.d.ts.map +0 -1
- package/dist/node/modules/witness-adhoc/index.d.ts +0 -2
- package/dist/node/modules/witness-adhoc/index.d.ts.map +0 -1
- package/dist/node/modules/witness-model/Config.d.ts +0 -21
- package/dist/node/modules/witness-model/Config.d.ts.map +0 -1
- package/dist/node/modules/witness-model/CustomInstance.d.ts +0 -9
- package/dist/node/modules/witness-model/CustomInstance.d.ts.map +0 -1
- package/dist/node/modules/witness-model/CustomModule.d.ts +0 -7
- package/dist/node/modules/witness-model/CustomModule.d.ts.map +0 -1
- package/dist/node/modules/witness-model/EventData.d.ts +0 -5
- package/dist/node/modules/witness-model/EventData.d.ts.map +0 -1
- package/dist/node/modules/witness-model/EventsModels/ObserveEnd.d.ts +0 -12
- package/dist/node/modules/witness-model/EventsModels/ObserveEnd.d.ts.map +0 -1
- package/dist/node/modules/witness-model/EventsModels/ObserveStart.d.ts +0 -10
- package/dist/node/modules/witness-model/EventsModels/ObserveStart.d.ts.map +0 -1
- package/dist/node/modules/witness-model/EventsModels/index.d.ts +0 -3
- package/dist/node/modules/witness-model/EventsModels/index.d.ts.map +0 -1
- package/dist/node/modules/witness-model/Instance.d.ts +0 -9
- package/dist/node/modules/witness-model/Instance.d.ts.map +0 -1
- package/dist/node/modules/witness-model/Module.d.ts +0 -6
- package/dist/node/modules/witness-model/Module.d.ts.map +0 -1
- package/dist/node/modules/witness-model/Params.d.ts +0 -5
- package/dist/node/modules/witness-model/Params.d.ts.map +0 -1
- package/dist/node/modules/witness-model/Queries/Observe.d.ts +0 -17
- package/dist/node/modules/witness-model/Queries/Observe.d.ts.map +0 -1
- package/dist/node/modules/witness-model/Queries/index.d.ts +0 -6
- package/dist/node/modules/witness-model/Queries/index.d.ts.map +0 -1
- package/dist/node/modules/witness-model/QueryFunctions.d.ts +0 -8
- package/dist/node/modules/witness-model/QueryFunctions.d.ts.map +0 -1
- package/dist/node/modules/witness-model/attachable/AttachableInstance.d.ts +0 -13
- package/dist/node/modules/witness-model/attachable/AttachableInstance.d.ts.map +0 -1
- package/dist/node/modules/witness-model/attachable/asAttachableInstance.d.ts +0 -2
- package/dist/node/modules/witness-model/attachable/asAttachableInstance.d.ts.map +0 -1
- package/dist/node/modules/witness-model/attachable/index.d.ts +0 -4
- package/dist/node/modules/witness-model/attachable/index.d.ts.map +0 -1
- package/dist/node/modules/witness-model/attachable/isAttachableInstance.d.ts +0 -5
- package/dist/node/modules/witness-model/attachable/isAttachableInstance.d.ts.map +0 -1
- package/dist/node/modules/witness-model/index.d.ts +0 -13
- package/dist/node/modules/witness-model/index.d.ts.map +0 -1
- package/dist/node/modules/witness-model/typeChecks.d.ts +0 -12
- package/dist/node/modules/witness-model/typeChecks.d.ts.map +0 -1
- package/dist/node/modules/witness-wrapper/WitnessWrapper.d.ts +0 -13
- package/dist/node/modules/witness-wrapper/WitnessWrapper.d.ts.map +0 -1
- package/dist/node/modules/witness-wrapper/index.d.ts +0 -2
- package/dist/node/modules/witness-wrapper/index.d.ts.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/modules/diviner-boundwitness/BoundWitnessDiviner.ts", "../../src/modules/diviner-boundwitness/Config.ts", "../../src/modules/diviner-boundwitness/Schema.ts", "../../src/modules/diviner-boundwitness/applyBoundWitnessDivinerQueryPayload.ts", "../../src/modules/diviner-boundwitness/MemoryBoundWitnessDiviner.ts", "../../src/modules/diviner-boundwitness/Query.ts"],
|
|
4
|
-
"sourcesContent": ["import type { BoundWitness, Schema } from '@xyo-network/sdk-protocol'\n\nimport { AbstractDiviner } from '#diviner-abstract'\nimport type { DivinerInstance, DivinerModuleEventData } from '#diviner-model'\n\nimport { BoundWitnessDivinerConfigSchema } from './Config.ts'\nimport type { BoundWitnessDivinerParams } from './Params.ts'\nimport type { BoundWitnessDivinerQueryPayload } from './Query.ts'\n\nexport abstract class BoundWitnessDiviner<\n TParams extends BoundWitnessDivinerParams = BoundWitnessDivinerParams,\n TIn extends BoundWitnessDivinerQueryPayload = BoundWitnessDivinerQueryPayload,\n TOut extends BoundWitness = BoundWitness,\n TEventData extends DivinerModuleEventData<DivinerInstance<TParams, TIn, TOut>, TIn, TOut> = DivinerModuleEventData<\n DivinerInstance<TParams, TIn, TOut>,\n TIn,\n TOut\n >,\n> extends AbstractDiviner<TParams, TIn, TOut, TEventData> {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, BoundWitnessDivinerConfigSchema]\n static override readonly defaultConfigSchema: Schema = BoundWitnessDivinerConfigSchema\n}\n", "import {\n zodAsFactory, zodIsFactory, zodToFactory,\n} from '@ariestools/sdk'\nimport { asSchema, type Payload } from '@xyo-network/sdk-protocol'\nimport * as z from 'zod/mini'\n\nimport type { DivinerConfig } from '#diviner-model'\nimport { DivinerConfigZod } from '#diviner-model'\n\nimport { BoundWitnessDivinerSchema } from './Schema.ts'\n\nexport const BoundWitnessDivinerConfigSchema: string & {\n readonly __schema: true\n} = asSchema(`${BoundWitnessDivinerSchema}.config`, true)\nexport type BoundWitnessDivinerConfigSchema = typeof BoundWitnessDivinerConfigSchema\n\nexport const BoundWitnessDivinerConfigZod: z.ZodMiniObject<\n Omit<(typeof DivinerConfigZod)['shape'], 'schema'> & {\n schema: z.ZodMiniLiteral<BoundWitnessDivinerConfigSchema>\n },\n z.core.$strip\n> = z.extend(DivinerConfigZod, { schema: z.literal(BoundWitnessDivinerConfigSchema) })\n\nexport type BoundWitnessDivinerConfigBase = z.infer<typeof BoundWitnessDivinerConfigZod>\n\nexport const isBoundWitnessDivinerConfig: ReturnType<typeof zodIsFactory<BoundWitnessDivinerConfigBase>> = zodIsFactory(BoundWitnessDivinerConfigZod)\nexport const asBoundWitnessDivinerConfig: ReturnType<typeof zodAsFactory<BoundWitnessDivinerConfigBase>> = zodAsFactory(BoundWitnessDivinerConfigZod, 'asBoundWitnessDivinerConfig')\nexport const toBoundWitnessDivinerConfig: ReturnType<typeof zodToFactory<BoundWitnessDivinerConfigBase>> = zodToFactory(BoundWitnessDivinerConfigZod, 'toBoundWitnessDivinerConfig')\n\nexport type BoundWitnessDivinerConfig<T extends Payload = Payload> = DivinerConfig<\n T & {\n schema: BoundWitnessDivinerConfigSchema\n }\n>\n", "import { asSchema } from '@xyo-network/sdk-protocol'\n\nexport const BoundWitnessDivinerSchema: 'network.xyo.diviner.boundwitness' & {\n readonly __schema: true\n} = asSchema('network.xyo.diviner.boundwitness', true)\nexport type BoundWitnessDivinerSchema = typeof BoundWitnessDivinerSchema\n", "import {\n assertEx, containsAll,\n exists, hexFromHexString,\n} from '@ariestools/sdk'\nimport type {\n BoundWitness, Payload, WithStorageMeta,\n} from '@xyo-network/sdk-protocol'\nimport {\n isBoundWitness, PayloadBuilder, SequenceConstants,\n} from '@xyo-network/sdk-protocol'\n\nimport type { BoundWitnessDivinerQueryPayload } from './Query.ts'\n\n// eslint-disable-next-line complexity\nexport const applyBoundWitnessDivinerQueryPayload = (filter?: BoundWitnessDivinerQueryPayload, payloads: WithStorageMeta<Payload>[] = []): BoundWitness[] => {\n if (!filter) return []\n const {\n addresses, cursor, destination, limit, order = 'desc', payload_hashes, payload_schemas, sourceQuery,\n } = filter\n\n const sortedPayloads = PayloadBuilder.sortByStorageMeta(payloads, order === 'desc' ? -1 : 1)\n const parsedCursor = cursor ?? ((order === 'desc') ? SequenceConstants.maxLocalSequence : SequenceConstants.minLocalSequence)\n const parsedOffset = (order === 'desc')\n ? sortedPayloads.findIndex(bw => bw._sequence < parsedCursor)\n : sortedPayloads.findIndex(bw => bw._sequence > parsedCursor)\n if (parsedOffset === -1) return []\n const payloadSubset = sortedPayloads.slice(parsedOffset)\n\n let bws = payloadSubset.filter(isBoundWitness)\n const allAddresses = addresses?.map(address => hexFromHexString(address)).filter(exists)\n if (allAddresses !== undefined && allAddresses.length > 0) bws = bws.filter(bw => containsAll<string>(bw.addresses, allAddresses))\n if (payload_hashes !== undefined && payload_hashes.length > 0) bws = bws.filter(bw => containsAll(bw.payload_hashes, payload_hashes))\n if (payload_schemas !== undefined && payload_schemas.length > 0) bws = bws.filter(bw => containsAll(bw.payload_schemas, payload_schemas))\n if (sourceQuery !== undefined && sourceQuery !== '') bws = bws.filter(bw => bw?.$sourceQuery === sourceQuery)\n // If there's a destination filter of the right kind\n if (destination && Array.isArray(destination) && destination?.length > 0) {\n const targetFilter = assertEx(destination, () => 'Missing destination')\n // Find all BWs that satisfy the destination constraint\n bws = bws.filter((bw) => {\n const targetDestinationField = (bw as { $destination?: string | string[] })?.$destination\n // If the destination field is an array and contains at least one element\n return targetDestinationField !== undefined && Array.isArray(targetDestinationField) && targetDestinationField.length > 0\n // Check that the targetDestinationField contains all the elements in the targetFilter\n ? containsAll(targetFilter, targetDestinationField ?? [])\n // Otherwise, filter it out\n : false\n })\n }\n const parsedLimit = limit ?? bws.length\n return bws.slice(0, parsedLimit)\n}\n", "import { assertEx } from '@ariestools/sdk'\nimport { type BoundWitness, isBoundWitness } from '@xyo-network/sdk-protocol'\nimport { isStorageMeta } from '@xyo-network/sdk-protocol'\n\nimport { applyBoundWitnessDivinerQueryPayload } from './applyBoundWitnessDivinerQueryPayload.ts'\nimport { BoundWitnessDiviner } from './BoundWitnessDiviner.ts'\nimport type { BoundWitnessDivinerParams } from './Params.ts'\nimport { type BoundWitnessDivinerQueryPayload, isBoundWitnessDivinerQueryPayload } from './Query.ts'\n\nexport interface EqualityComparisonOperators {\n /**\n * 'Not Equal To' comparison operator.\n * Compares the field with the specified string value,\n * selecting records where the field value does not match the provided string.\n * Example: field != 'value'\n */\n '!=': string\n\n /**\n * 'Less Than' comparison operator.\n * Compares the field with the specified string value,\n * selecting records where the field value is lexicographically less than the provided string.\n * Example: field < 'value'\n */\n '<': string\n\n /**\n * 'Less Than or Equal To' comparison operator.\n * Compares the field with the specified string value,\n * selecting records where the field value is lexicographically less than or equal to the provided string.\n * Example: field <= 'value'\n */\n '<=': string\n\n /**\n * 'Equal To' comparison operator.\n * Compares the field with the specified string value,\n * selecting records where the field value matches the provided string exactly.\n * Example: field = 'value'\n */\n '=': string\n\n /**\n * 'Greater Than' comparison operator.\n * Compares the field with the specified string value,\n * selecting records where the field value is lexicographically greater than the provided string.\n * Example: field > 'value'\n */\n '>': string\n\n /**\n * 'Greater Than or Equal To' comparison operator.\n * Compares the field with the specified string value,\n * selecting records where the field value is lexicographically greater than or equal to the provided string.\n * Example: field >= 'value'\n */\n '>=': string\n}\n\nexport class MemoryBoundWitnessDiviner<\n TParams extends BoundWitnessDivinerParams = BoundWitnessDivinerParams,\n TIn extends BoundWitnessDivinerQueryPayload = BoundWitnessDivinerQueryPayload,\n TOut extends BoundWitness = BoundWitness,\n> extends BoundWitnessDiviner<TParams, TIn, TOut> {\n protected override async divineHandler(payloads?: TIn[]): Promise<TOut[]> {\n const filter = assertEx(payloads?.filter(isBoundWitnessDivinerQueryPayload)?.pop(), () => 'Missing query payload')\n const archivist = assertEx(await this.archivistInstance(), () => 'Unable to resolve archivist')\n const bws = ((await archivist?.next({ limit: 10_000 })) ?? []).filter(x => isBoundWitness(x) && isStorageMeta(x))\n return applyBoundWitnessDivinerQueryPayload(filter, bws) as TOut[]\n }\n}\n", "import {\n zodAsFactory, zodIsFactory, zodToFactory,\n} from '@ariestools/sdk'\nimport {\n asSchema, PayloadZodOfSchema, QueryFieldsZod,\n} from '@xyo-network/sdk-protocol'\nimport * as z from 'zod/mini'\n\nimport type { BoundWitnessDivinerPredicate } from './Predicate.ts'\nimport { BoundWitnessDivinerSchema } from './Schema.ts'\n\nexport const BoundWitnessDivinerQuerySchema: string & {\n readonly __schema: true\n} = asSchema(`${BoundWitnessDivinerSchema}.query`, true)\nexport type BoundWitnessDivinerQuerySchema = typeof BoundWitnessDivinerQuerySchema\n\nexport const BoundWitnessDivinerQueryPayloadZod: z.ZodMiniIntersection<\n z.ZodMiniObject<\n & { schema: z.ZodMiniLiteral<BoundWitnessDivinerQuerySchema> }\n & (typeof QueryFieldsZod)['shape'],\n z.core.$strip\n >,\n z.ZodMiniCustom<BoundWitnessDivinerPredicate, BoundWitnessDivinerPredicate>\n> = z.intersection(\n z.extend(PayloadZodOfSchema(BoundWitnessDivinerQuerySchema), { ...QueryFieldsZod.shape }),\n z.custom<BoundWitnessDivinerPredicate>(),\n)\n\nexport type BoundWitnessDivinerQueryPayload = z.infer<typeof BoundWitnessDivinerQueryPayloadZod>\n\nexport const isBoundWitnessDivinerQueryPayload: ReturnType<typeof zodIsFactory<BoundWitnessDivinerQueryPayload>> = zodIsFactory(BoundWitnessDivinerQueryPayloadZod)\nexport const asBoundWitnessDivinerQueryPayload: ReturnType<typeof zodAsFactory<BoundWitnessDivinerQueryPayload>> = zodAsFactory(BoundWitnessDivinerQueryPayloadZod, 'asBoundWitnessDivinerQueryPayload')\nexport const toBoundWitnessDivinerQueryPayload: ReturnType<typeof zodToFactory<BoundWitnessDivinerQueryPayload>> = zodToFactory(BoundWitnessDivinerQueryPayloadZod, 'toBoundWitnessDivinerQueryPayload')\n"],
|
|
5
|
-
"mappings": ";AAEA,SAAS,uBAAuB;;;ACFhC;AAAA,EACE;AAAA,EAAc;AAAA,EAAc;AAAA,OACvB;AACP,SAAS,YAAAA,iBAA8B;AACvC,YAAY,OAAO;AAGnB,SAAS,wBAAwB;;;ACPjC,SAAS,gBAAgB;AAElB,IAAM,4BAET,SAAS,oCAAoC,IAAI;;;ADO9C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AAM,YAAoB,GAAG,WAAW,YAAY,CAAC;AACjI,MAAI,mBAAmB,UAAa,eAAe,SAAS,EAAG,OAAM,IAAI,OAAO,QAAM,YAAY,GAAG,gBAAgB,cAAc,CAAC;AACpI,MAAI,oBAAoB,UAAa,gBAAgB,SAAS,EAAG,OAAM,IAAI,OAAO,QAAM,YAAY,GAAG,iBAAiB,eAAe,CAAC;AACxI,MAAI,gBAAgB,UAAa,gBAAgB,GAAI,OAAM,IAAI,OAAO,QAAM,IAAI,iBAAiB,WAAW;AAE5G,MAAI,eAAe,MAAM,QAAQ,WAAW,KAAK,aAAa,SAAS,GAAG;AACxE,UAAM,eAAe,SAAS,aAAa,MAAM,qBAAqB;AAEtE,UAAM,IAAI,OAAO,CAAC,OAAO;AACvB,YAAM,yBAA0B,IAA6C;
|
|
4
|
+
"sourcesContent": ["import type { BoundWitness, Schema } from '@xyo-network/sdk-protocol'\n\nimport { AbstractDiviner } from '#diviner-abstract'\nimport type { DivinerInstance, DivinerModuleEventData } from '#diviner-model'\n\nimport { BoundWitnessDivinerConfigSchema } from './Config.ts'\nimport type { BoundWitnessDivinerParams } from './Params.ts'\nimport type { BoundWitnessDivinerQueryPayload } from './Query.ts'\n\nexport abstract class BoundWitnessDiviner<\n TParams extends BoundWitnessDivinerParams = BoundWitnessDivinerParams,\n TIn extends BoundWitnessDivinerQueryPayload = BoundWitnessDivinerQueryPayload,\n TOut extends BoundWitness = BoundWitness,\n TEventData extends DivinerModuleEventData<DivinerInstance<TParams, TIn, TOut>, TIn, TOut> = DivinerModuleEventData<\n DivinerInstance<TParams, TIn, TOut>,\n TIn,\n TOut\n >,\n> extends AbstractDiviner<TParams, TIn, TOut, TEventData> {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, BoundWitnessDivinerConfigSchema]\n static override readonly defaultConfigSchema: Schema = BoundWitnessDivinerConfigSchema\n}\n", "import {\n zodAsFactory, zodIsFactory, zodToFactory,\n} from '@ariestools/sdk'\nimport { asSchema, type Payload } from '@xyo-network/sdk-protocol'\nimport * as z from 'zod/mini'\n\nimport type { DivinerConfig } from '#diviner-model'\nimport { DivinerConfigZod } from '#diviner-model'\n\nimport { BoundWitnessDivinerSchema } from './Schema.ts'\n\nexport const BoundWitnessDivinerConfigSchema: string & {\n readonly __schema: true\n} = asSchema(`${BoundWitnessDivinerSchema}.config`, true)\nexport type BoundWitnessDivinerConfigSchema = typeof BoundWitnessDivinerConfigSchema\n\nexport const BoundWitnessDivinerConfigZod: z.ZodMiniObject<\n Omit<(typeof DivinerConfigZod)['shape'], 'schema'> & {\n schema: z.ZodMiniLiteral<BoundWitnessDivinerConfigSchema>\n },\n z.core.$strip\n> = z.extend(DivinerConfigZod, { schema: z.literal(BoundWitnessDivinerConfigSchema) })\n\nexport type BoundWitnessDivinerConfigBase = z.infer<typeof BoundWitnessDivinerConfigZod>\n\nexport const isBoundWitnessDivinerConfig: ReturnType<typeof zodIsFactory<BoundWitnessDivinerConfigBase>> = zodIsFactory(BoundWitnessDivinerConfigZod)\nexport const asBoundWitnessDivinerConfig: ReturnType<typeof zodAsFactory<BoundWitnessDivinerConfigBase>> = zodAsFactory(BoundWitnessDivinerConfigZod, 'asBoundWitnessDivinerConfig')\nexport const toBoundWitnessDivinerConfig: ReturnType<typeof zodToFactory<BoundWitnessDivinerConfigBase>> = zodToFactory(BoundWitnessDivinerConfigZod, 'toBoundWitnessDivinerConfig')\n\nexport type BoundWitnessDivinerConfig<T extends Payload = Payload> = DivinerConfig<\n T & {\n schema: BoundWitnessDivinerConfigSchema\n }\n>\n", "import { asSchema } from '@xyo-network/sdk-protocol'\n\nexport const BoundWitnessDivinerSchema: 'network.xyo.diviner.boundwitness' & {\n readonly __schema: true\n} = asSchema('network.xyo.diviner.boundwitness', true)\nexport type BoundWitnessDivinerSchema = typeof BoundWitnessDivinerSchema\n", "import {\n assertEx, containsAll,\n exists, hexFromHexString,\n} from '@ariestools/sdk'\nimport type {\n BoundWitness, Payload, WithStorageMeta,\n} from '@xyo-network/sdk-protocol'\nimport {\n isBoundWitness, PayloadBuilder, SequenceConstants,\n} from '@xyo-network/sdk-protocol'\n\nimport type { BoundWitnessDivinerQueryPayload } from './Query.ts'\n\n// eslint-disable-next-line complexity\nexport const applyBoundWitnessDivinerQueryPayload = (filter?: BoundWitnessDivinerQueryPayload, payloads: WithStorageMeta<Payload>[] = []): BoundWitness[] => {\n if (!filter) return []\n const {\n addresses, cursor, destination, limit, order = 'desc', payload_hashes, payload_schemas, sourceQuery,\n } = filter\n\n const sortedPayloads = PayloadBuilder.sortByStorageMeta(payloads, order === 'desc' ? -1 : 1)\n const parsedCursor = cursor ?? ((order === 'desc') ? SequenceConstants.maxLocalSequence : SequenceConstants.minLocalSequence)\n const parsedOffset = (order === 'desc')\n ? sortedPayloads.findIndex(bw => bw._sequence < parsedCursor)\n : sortedPayloads.findIndex(bw => bw._sequence > parsedCursor)\n if (parsedOffset === -1) return []\n const payloadSubset = sortedPayloads.slice(parsedOffset)\n\n let bws = payloadSubset.filter(isBoundWitness)\n const allAddresses = addresses?.map(address => hexFromHexString(address)).filter(exists)\n if (allAddresses !== undefined && allAddresses.length > 0) bws = bws.filter(bw => containsAll<string>(bw.addresses, allAddresses))\n if (payload_hashes !== undefined && payload_hashes.length > 0) bws = bws.filter(bw => containsAll(bw.payload_hashes, payload_hashes))\n if (payload_schemas !== undefined && payload_schemas.length > 0) bws = bws.filter(bw => containsAll(bw.payload_schemas, payload_schemas))\n if (sourceQuery !== undefined && sourceQuery !== '') bws = bws.filter(bw => bw?.$sourceQuery === sourceQuery)\n // If there's a destination filter of the right kind\n if (destination && Array.isArray(destination) && destination?.length > 0) {\n const targetFilter = assertEx(destination, () => 'Missing destination')\n // Find all BWs that satisfy the destination constraint\n bws = bws.filter((bw) => {\n const targetDestinationField = (bw as { $destination?: string | string[] })?.$destination\n // If the destination field is an array and contains at least one element\n // If the destination field is an array with at least one element, keep bound witnesses that contain the filter.\n return targetDestinationField !== undefined\n && Array.isArray(targetDestinationField)\n && targetDestinationField.length > 0\n && containsAll(targetFilter, targetDestinationField ?? [])\n })\n }\n const parsedLimit = limit ?? bws.length\n return bws.slice(0, parsedLimit)\n}\n", "import { assertEx } from '@ariestools/sdk'\nimport { type BoundWitness, isBoundWitness } from '@xyo-network/sdk-protocol'\nimport { isStorageMeta } from '@xyo-network/sdk-protocol'\n\nimport { applyBoundWitnessDivinerQueryPayload } from './applyBoundWitnessDivinerQueryPayload.ts'\nimport { BoundWitnessDiviner } from './BoundWitnessDiviner.ts'\nimport type { BoundWitnessDivinerParams } from './Params.ts'\nimport { type BoundWitnessDivinerQueryPayload, isBoundWitnessDivinerQueryPayload } from './Query.ts'\n\nexport interface EqualityComparisonOperators {\n /**\n * 'Not Equal To' comparison operator.\n * Compares the field with the specified string value,\n * selecting records where the field value does not match the provided string.\n * Example: field != 'value'\n */\n '!=': string\n\n /**\n * 'Less Than' comparison operator.\n * Compares the field with the specified string value,\n * selecting records where the field value is lexicographically less than the provided string.\n * Example: field < 'value'\n */\n '<': string\n\n /**\n * 'Less Than or Equal To' comparison operator.\n * Compares the field with the specified string value,\n * selecting records where the field value is lexicographically less than or equal to the provided string.\n * Example: field <= 'value'\n */\n '<=': string\n\n /**\n * 'Equal To' comparison operator.\n * Compares the field with the specified string value,\n * selecting records where the field value matches the provided string exactly.\n * Example: field = 'value'\n */\n '=': string\n\n /**\n * 'Greater Than' comparison operator.\n * Compares the field with the specified string value,\n * selecting records where the field value is lexicographically greater than the provided string.\n * Example: field > 'value'\n */\n '>': string\n\n /**\n * 'Greater Than or Equal To' comparison operator.\n * Compares the field with the specified string value,\n * selecting records where the field value is lexicographically greater than or equal to the provided string.\n * Example: field >= 'value'\n */\n '>=': string\n}\n\nexport class MemoryBoundWitnessDiviner<\n TParams extends BoundWitnessDivinerParams = BoundWitnessDivinerParams,\n TIn extends BoundWitnessDivinerQueryPayload = BoundWitnessDivinerQueryPayload,\n TOut extends BoundWitness = BoundWitness,\n> extends BoundWitnessDiviner<TParams, TIn, TOut> {\n protected override async divineHandler(payloads?: TIn[]): Promise<TOut[]> {\n const filter = assertEx(payloads?.filter(isBoundWitnessDivinerQueryPayload)?.pop(), () => 'Missing query payload')\n const archivist = assertEx(await this.archivistInstance(), () => 'Unable to resolve archivist')\n const bws = ((await archivist?.next({ limit: 10_000 })) ?? []).filter(x => isBoundWitness(x) && isStorageMeta(x))\n return applyBoundWitnessDivinerQueryPayload(filter, bws) as TOut[]\n }\n}\n", "import {\n zodAsFactory, zodIsFactory, zodToFactory,\n} from '@ariestools/sdk'\nimport {\n asSchema, PayloadZodOfSchema, QueryFieldsZod,\n} from '@xyo-network/sdk-protocol'\nimport * as z from 'zod/mini'\n\nimport type { BoundWitnessDivinerPredicate } from './Predicate.ts'\nimport { BoundWitnessDivinerSchema } from './Schema.ts'\n\nexport const BoundWitnessDivinerQuerySchema: string & {\n readonly __schema: true\n} = asSchema(`${BoundWitnessDivinerSchema}.query`, true)\nexport type BoundWitnessDivinerQuerySchema = typeof BoundWitnessDivinerQuerySchema\n\nexport const BoundWitnessDivinerQueryPayloadZod: z.ZodMiniIntersection<\n z.ZodMiniObject<\n & { schema: z.ZodMiniLiteral<BoundWitnessDivinerQuerySchema> }\n & (typeof QueryFieldsZod)['shape'],\n z.core.$strip\n >,\n z.ZodMiniCustom<BoundWitnessDivinerPredicate, BoundWitnessDivinerPredicate>\n> = z.intersection(\n z.extend(PayloadZodOfSchema(BoundWitnessDivinerQuerySchema), { ...QueryFieldsZod.shape }),\n z.custom<BoundWitnessDivinerPredicate>(),\n)\n\nexport type BoundWitnessDivinerQueryPayload = z.infer<typeof BoundWitnessDivinerQueryPayloadZod>\n\nexport const isBoundWitnessDivinerQueryPayload: ReturnType<typeof zodIsFactory<BoundWitnessDivinerQueryPayload>> = zodIsFactory(BoundWitnessDivinerQueryPayloadZod)\nexport const asBoundWitnessDivinerQueryPayload: ReturnType<typeof zodAsFactory<BoundWitnessDivinerQueryPayload>> = zodAsFactory(BoundWitnessDivinerQueryPayloadZod, 'asBoundWitnessDivinerQueryPayload')\nexport const toBoundWitnessDivinerQueryPayload: ReturnType<typeof zodToFactory<BoundWitnessDivinerQueryPayload>> = zodToFactory(BoundWitnessDivinerQueryPayloadZod, 'toBoundWitnessDivinerQueryPayload')\n"],
|
|
5
|
+
"mappings": ";AAEA,SAAS,uBAAuB;;;ACFhC;AAAA,EACE;AAAA,EAAc;AAAA,EAAc;AAAA,OACvB;AACP,SAAS,YAAAA,iBAA8B;AACvC,YAAY,OAAO;AAGnB,SAAS,wBAAwB;;;ACPjC,SAAS,gBAAgB;AAElB,IAAM,4BAET,SAAS,oCAAoC,IAAI;;;ADO9C,IAAM,kCAETC,UAAS,GAAG,yBAAyB,WAAW,IAAI;AAGjD,IAAM,+BAKP,SAAO,kBAAkB,EAAE,QAAU,UAAQ,+BAA+B,EAAE,CAAC;AAI9E,IAAM,8BAA8F,aAAa,4BAA4B;AAC7I,IAAM,8BAA8F,aAAa,8BAA8B,6BAA6B;AAC5K,IAAM,8BAA8F,aAAa,8BAA8B,6BAA6B;;;ADlB5K,IAAe,sBAAf,cASG,gBAAgD;AAAA,EACxD,OAAyB,gBAA0B,CAAC,GAAG,MAAM,eAAe,+BAA+B;AAAA,EAC3G,OAAyB,sBAA8B;AACzD;;;AGrBA;AAAA,EACE;AAAA,EAAU;AAAA,EACV;AAAA,EAAQ;AAAA,OACH;AAIP;AAAA,EACE;AAAA,EAAgB;AAAA,EAAgB;AAAA,OAC3B;AAKA,IAAM,uCAAuC,CAAC,QAA0C,WAAuC,CAAC,MAAsB;AAC3J,MAAI,CAAC,OAAQ,QAAO,CAAC;AACrB,QAAM;AAAA,IACJ;AAAA,IAAW;AAAA,IAAQ;AAAA,IAAa;AAAA,IAAO,QAAQ;AAAA,IAAQ;AAAA,IAAgB;AAAA,IAAiB;AAAA,EAC1F,IAAI;AAEJ,QAAM,iBAAiB,eAAe,kBAAkB,UAAU,UAAU,SAAS,KAAK,CAAC;AAC3F,QAAM,eAAe,WAAY,UAAU,SAAU,kBA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A,EAAc,gBAAAC;AAAA,OACvB;AACP;AAAA,EACE,YAAAC;AAAA,EAAU;AAAA,EAAoB;AAAA,OACzB;AACP,YAAYC,QAAO;AAKZ,IAAM,iCAETC,UAAS,GAAG,yBAAyB,UAAU,IAAI;AAGhD,IAAM,qCAOP;AAAA,EACF,UAAO,mBAAmB,8BAA8B,GAAG,EAAE,GAAG,eAAe,MAAM,CAAC;AAAA,EACtF,UAAqC;AACzC;AAIO,IAAM,oCAAsGC,cAAa,kCAAkC;AAC3J,IAAM,oCAAsGC,cAAa,oCAAoC,mCAAmC;AAChM,IAAM,oCAAsGC,cAAa,oCAAoC,mCAAmC;;;AD2BhM,IAAM,4BAAN,cAIG,oBAAwC;AAAA,EAChD,MAAyB,cAAc,UAAmC;AACxE,UAAM,SAASC,UAAS,UAAU,OAAO,iCAAiC,GAAG,IAAI,GAAG,MAAM,uBAAuB;AACjH,UAAM,YAAYA,UAAS,MAAM,KAAK,kBAAkB,GAAG,MAAM,6BAA6B;AAC9F,UAAM,OAAQ,MAAM,WAAW,KAAK,EAAE,OAAO,IAAO,CAAC,KAAM,CAAC,GAAG,OAAO,OAAKC,gBAAe,CAAC,KAAK,cAAc,CAAC,CAAC;AAChH,WAAO,qCAAqC,QAAQ,GAAG;AAAA,EACzD;AACF;",
|
|
6
6
|
"names": ["asSchema", "asSchema", "assertEx", "isBoundWitness", "zodAsFactory", "zodIsFactory", "zodToFactory", "asSchema", "z", "asSchema", "zodIsFactory", "zodAsFactory", "zodToFactory", "assertEx", "isBoundWitness"]
|
|
7
7
|
}
|
|
@@ -25,13 +25,13 @@ var ManifestWrapper = class extends PayloadWrapper {
|
|
|
25
25
|
}
|
|
26
26
|
async loadModule(wallet, node, manifest, external = true) {
|
|
27
27
|
this.logger?.log("loadModule", manifest.config.name);
|
|
28
|
-
const collision = async (
|
|
29
|
-
const externalConflict =
|
|
30
|
-
return externalConflict || await
|
|
28
|
+
const collision = async (name) => {
|
|
29
|
+
const externalConflict = external && await node.resolve(name, { direction: external ? "all" : "down" }) !== void 0;
|
|
30
|
+
return externalConflict || await node.resolve(name, { direction: "down" }) !== void 0;
|
|
31
31
|
};
|
|
32
32
|
assertEx(isModuleName(manifest.config.name), () => `Invalid Module Name: ${manifest.config.name}`);
|
|
33
|
-
assertEx(!await collision(
|
|
34
|
-
if (!await collision(
|
|
33
|
+
assertEx(!await collision(manifest.config.name), () => `Node name collision [${manifest.config.name}]`);
|
|
34
|
+
if (!await collision(manifest.config.name)) {
|
|
35
35
|
if (node.registeredModules().some((mod) => isDefined(mod.config.name) && mod.config.name === manifest.config.name)) {
|
|
36
36
|
assertEx(await node.attach(manifest.config.name, external), () => `Failed to attach module [${manifest.config.name}]`);
|
|
37
37
|
} else {
|
|
@@ -156,13 +156,13 @@ var ManifestWrapperEx = class extends PayloadWrapper2 {
|
|
|
156
156
|
return this.params.wallet;
|
|
157
157
|
}
|
|
158
158
|
async loadModule(wallet, node, manifest, external = true) {
|
|
159
|
-
const collision = async (
|
|
160
|
-
const externalConflict =
|
|
161
|
-
return externalConflict || await
|
|
159
|
+
const collision = async (name) => {
|
|
160
|
+
const externalConflict = external && await node.resolve(name, { direction: external ? "all" : "down" }) !== void 0;
|
|
161
|
+
return externalConflict || await node.resolve(name, { direction: "down" }) !== void 0;
|
|
162
162
|
};
|
|
163
163
|
assertEx2(isModuleName2(manifest.config.name), () => `Invalid Module Name: ${manifest.config.name}`);
|
|
164
|
-
assertEx2(!await collision(
|
|
165
|
-
if (!await collision(
|
|
164
|
+
assertEx2(!await collision(manifest.config.name), () => `Node name collision [${manifest.config.name}]`);
|
|
165
|
+
if (!await collision(manifest.config.name)) {
|
|
166
166
|
if (node.registeredModules().some((mod) => isString2(mod.config.name) && mod.config.name === manifest.config.name)) {
|
|
167
167
|
assertEx2(await node.attach(manifest.config.name, external), () => `Failed to attach module [${manifest.config.name}]`);
|
|
168
168
|
} else {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/modules/manifest-wrapper/Wrapper.ts", "../../src/modules/manifest-wrapper/WrapperEx.ts"],
|
|
4
|
-
"sourcesContent": ["import type { CreatableName, Logger } from '@ariestools/sdk'\nimport {\n assertEx, isDefined, isString,\n} from '@ariestools/sdk'\nimport type {\n ModuleManifest, NodeManifest, PackageManifestPayload, WalletInstance,\n WithAnySchema,\n} from '@xyo-network/sdk-protocol'\nimport { HDWallet, PayloadWrapper } from '@xyo-network/sdk-protocol'\n\nimport type {\n ModuleFactoryLocatorInstance,\n ModuleIdentifierTransformer, ModuleInstance, QueryableModuleParams,\n} from '#module-model'\nimport { isModuleName } from '#module-model'\nimport { MemoryNode } from '#node-memory'\nimport type { NodeInstance } from '#node-model'\n\n/** Provides functionality that can be performed on a PackageManifest */\nexport class ManifestWrapper<TManifest extends WithAnySchema<PackageManifestPayload> | void = void> extends PayloadWrapper<\n TManifest extends WithAnySchema<PackageManifestPayload> ? TManifest : WithAnySchema<PackageManifestPayload>\n> {\n protected readonly locator: ModuleFactoryLocatorInstance\n protected readonly logger: Logger | undefined\n protected readonly moduleIdentifierTransformers: ModuleIdentifierTransformer[] | undefined\n protected readonly privateChildren: ModuleManifest[]\n protected readonly publicChildren: ModuleManifest[]\n protected readonly wallet: WalletInstance\n\n constructor(\n payload: TManifest extends WithAnySchema<PackageManifestPayload> ? TManifest : WithAnySchema<PackageManifestPayload>,\n wallet: WalletInstance,\n locator: ModuleFactoryLocatorInstance,\n publicChildren: ModuleManifest[] = [],\n privateChildren: ModuleManifest[] = [],\n moduleIdentifierTransformers?: ModuleIdentifierTransformer[],\n logger?: Logger,\n ) {\n super(payload)\n this.wallet = wallet\n this.locator = locator\n this.publicChildren = publicChildren\n this.privateChildren = privateChildren\n this.moduleIdentifierTransformers = moduleIdentifierTransformers\n this.logger = logger\n }\n\n async loadModule(wallet: WalletInstance, node: MemoryNode, manifest: ModuleManifest, external = true): Promise<void> {\n this.logger?.log('loadModule', manifest.config.name)\n const collision = async (node: NodeInstance, name: string, external: boolean) => {\n const externalConflict = external ? (await node.resolve(name, { direction: external ? 'all' : 'down' })) !== undefined : false\n return externalConflict || (await node.resolve(name, { direction: 'down' })) !== undefined\n }\n\n assertEx(isModuleName(manifest.config.name), () => `Invalid Module Name: ${manifest.config.name}`)\n assertEx(!(await collision(node, manifest.config.name, external)), () => `Node name collision [${manifest.config.name}]`)\n\n if (!(await collision(node, manifest.config.name, external))) {\n // is it already registered?\n if (node.registeredModules().some(mod => isDefined(mod.config.name) && mod.config.name === manifest.config.name)) {\n assertEx(await node.attach(manifest.config.name, external), () => `Failed to attach module [${manifest.config.name}]`)\n } else {\n if ((manifest as NodeManifest).modules) {\n const childNode = await this.loadNodeFromManifest(wallet, manifest, manifest.config.accountPath, false)\n await node.register(childNode)\n await node.attach(childNode.address, external)\n } else {\n const registeredModule = await this.registerModule(wallet, node, manifest)\n assertEx(\n await node.attach(registeredModule.address, external),\n () => `No module with config schema [${manifest.config.name}] registered`,\n )\n }\n }\n }\n }\n\n // These are top level, so they can use this.wallet as their\n async loadNodeFromIndex(index: number): Promise<MemoryNode> {\n const manifest = assertEx(this.nodeManifest(index), () => 'Failed to find Node Manifest')\n return await this.loadNodeFromManifest(this.wallet, manifest, manifest.config.accountPath ?? `${index}'`)\n }\n\n async loadNodeFromManifest(wallet: WalletInstance, manifest: NodeManifest, path?: string, loadConfigChildren = false): Promise<MemoryNode> {\n this.logger?.log('loadNodeFromManifest', manifest.config.name)\n const derivedWallet = isString(path) ? await wallet.derivePath(path) : await HDWallet.random()\n const node = await MemoryNode.create({\n account: derivedWallet, config: manifest.config, name: manifest.config.name as CreatableName,\n })\n // Load Private Modules\n const privateModules\n = manifest.modules?.private?.map(async (moduleManifest) => {\n if (typeof moduleManifest === 'object') {\n await this.loadModule(derivedWallet, node, moduleManifest, false)\n }\n }) ?? []\n // Load Public Modules\n const publicModules\n = manifest.modules?.public?.map(async (moduleManifest) => {\n if (typeof moduleManifest === 'object') {\n await this.loadModule(derivedWallet, node, moduleManifest, true)\n }\n }) ?? []\n await Promise.all([...privateModules, ...publicModules])\n\n if (loadConfigChildren) {\n await Promise.all(\n this.privateChildren.map(async (moduleManifest) => {\n if (typeof moduleManifest === 'object') {\n await this.loadModule(derivedWallet, node, moduleManifest, false)\n }\n }),\n )\n\n await Promise.all(\n this.publicChildren.map(async (moduleManifest) => {\n if (typeof moduleManifest === 'object') {\n await this.loadModule(derivedWallet, node, moduleManifest, true)\n }\n }),\n )\n }\n\n return node\n }\n\n /**\n * Load the nodes that are defined in the wrapped manifest and optionally attach them to a node\n */\n async loadNodes(node?: MemoryNode): Promise<MemoryNode[]> {\n return await Promise.all(\n this.payload.nodes?.map(async (nodeManifest, index) => {\n const subNode = await this.loadNodeFromManifest(this.wallet, nodeManifest as NodeManifest, nodeManifest.config.accountPath ?? `${index}'`, index === 0)\n await node?.register(subNode)\n return subNode\n }),\n )\n }\n\n nodeManifest(index: number): NodeManifest | undefined {\n return this.payload.nodes?.[index] as NodeManifest | undefined\n }\n\n /** Register a module on a node based on a manifest */\n private async registerModule(wallet: WalletInstance, node: MemoryNode, manifest: ModuleManifest): Promise<ModuleInstance> {\n const creatableModule = this.locator.locate(manifest.config.schema, manifest.config.labels)\n const path = manifest.config.accountPath\n const account = isString(path) ? await wallet.derivePath(path) : 'random'\n const params: QueryableModuleParams = {\n name: manifest.config.name as CreatableName,\n account,\n config: assertEx(manifest.config, () => 'Missing config'),\n }\n if (this.moduleIdentifierTransformers) {\n params.moduleIdentifierTransformers = this.moduleIdentifierTransformers\n }\n const mod = await creatableModule.create(params)\n await node.register(mod)\n return mod\n }\n}\n", "import type { CreatableName } from '@ariestools/sdk'\nimport {\n assertEx, isArray, isString,\n} from '@ariestools/sdk'\nimport type {\n ModuleManifest, NodeManifest, PackageManifestPayload, WalletInstance,\n WithAnySchema,\n} from '@xyo-network/sdk-protocol'\nimport { HDWallet, PayloadWrapper } from '@xyo-network/sdk-protocol'\n\nimport type {\n ModuleFactoryLocatorInstance,\n ModuleIdentifierTransformer, ModuleInstance, QueryableModuleParams,\n} from '#module-model'\nimport { isModuleName } from '#module-model'\nimport { MemoryNode } from '#node-memory'\nimport type { NodeInstance } from '#node-model'\n\nexport interface ManifestWrapperExParams {\n locator: ModuleFactoryLocatorInstance\n moduleIdentifierTransformers?: ModuleIdentifierTransformer[]\n privateChildren?: ModuleManifest[]\n publicChildren?: ModuleManifest[]\n wallet: WalletInstance\n}\n\n/** Provides functionality that can be performed on a PackageManifest */\nexport class ManifestWrapperEx<\n TManifest extends WithAnySchema<PackageManifestPayload> | void,\n TParams extends ManifestWrapperExParams = ManifestWrapperExParams,\n> extends PayloadWrapper<TManifest extends WithAnySchema<PackageManifestPayload> ? TManifest : WithAnySchema<PackageManifestPayload>> {\n protected params: TParams\n constructor(\n payload: TManifest extends WithAnySchema<PackageManifestPayload> ? TManifest : WithAnySchema<PackageManifestPayload>,\n params: TParams,\n ) {\n super(payload)\n this.params = params\n }\n\n get locator(): ModuleFactoryLocatorInstance {\n return this.params.locator\n }\n\n get moduleIdentifierTransformers(): ModuleIdentifierTransformer[] {\n return this.params.moduleIdentifierTransformers ?? []\n }\n\n get privateChildren(): ModuleManifest[] {\n return this.params.privateChildren ?? []\n }\n\n get publicChildren(): ModuleManifest[] {\n return this.params.publicChildren ?? []\n }\n\n get wallet(): WalletInstance {\n return this.params.wallet\n }\n\n async loadModule(wallet: WalletInstance, node: MemoryNode, manifest: ModuleManifest, external = true): Promise<void> {\n const collision = async (node: NodeInstance, name: string, external: boolean) => {\n const externalConflict = external ? (await node.resolve(name, { direction: external ? 'all' : 'down' })) !== undefined : false\n return externalConflict || (await node.resolve(name, { direction: 'down' })) !== undefined\n }\n\n assertEx(isModuleName(manifest.config.name), () => `Invalid Module Name: ${manifest.config.name}`)\n assertEx(!(await collision(node, manifest.config.name, external)), () => `Node name collision [${manifest.config.name}]`)\n\n if (!(await collision(node, manifest.config.name, external))) {\n // is it already registered?\n if (node.registeredModules().some(mod => isString(mod.config.name) && mod.config.name === manifest.config.name)) {\n assertEx(await node.attach(manifest.config.name, external), () => `Failed to attach module [${manifest.config.name}]`)\n } else {\n const registeredModule = await this.registerModule(wallet, node, manifest)\n assertEx(\n await node.attach(registeredModule.address, external),\n () => `No module with config schema [${manifest.config.name}] registered`,\n )\n }\n }\n }\n\n // These are top level, so they can use this.wallet as their\n async loadNodeFromIndex(index: number): Promise<MemoryNode> {\n const manifest = assertEx(this.nodeManifest(index), () => 'Failed to find Node Manifest')\n return await this.loadNodeFromManifest(this.wallet, manifest, manifest.config.accountPath ?? `${index}'`)\n }\n\n async loadNodeFromManifest(wallet: WalletInstance, manifest: NodeManifest, path?: string): Promise<MemoryNode> {\n const derivedWallet = isString(path) ? await wallet.derivePath(path) : await HDWallet.random()\n const node = await MemoryNode.create({ account: derivedWallet, config: manifest.config })\n // Load Private Modules\n const privateModules\n = manifest.modules?.private?.map(async (moduleManifest) => {\n if (typeof moduleManifest === 'object') {\n await this.loadModule(derivedWallet, node, moduleManifest, false)\n }\n }) ?? []\n // Load Public Modules\n const publicModules\n = manifest.modules?.public?.map(async (moduleManifest) => {\n if (typeof moduleManifest === 'object') {\n await this.loadModule(derivedWallet, node, moduleManifest, true)\n }\n }) ?? []\n await Promise.all([...privateModules, ...publicModules])\n\n await Promise.all(\n this.privateChildren.map(async (moduleManifest) => {\n if (typeof moduleManifest === 'object') {\n await this.loadModule(derivedWallet, node, moduleManifest, false)\n }\n }),\n )\n\n await Promise.all(\n this.publicChildren.map(async (moduleManifest) => {\n if (typeof moduleManifest === 'object') {\n await this.loadModule(derivedWallet, node, moduleManifest, true)\n }\n }),\n )\n\n return node\n }\n\n /**\n * Load the nodes that are defined in the wrapped manifest and optionally attach them to a node\n */\n async loadNodes(node?: MemoryNode): Promise<MemoryNode[]> {\n return await Promise.all(\n this.payload.nodes?.map(async (nodeManifest, index) => {\n const subNode = await this.loadNodeFromManifest(this.wallet, nodeManifest as NodeManifest, nodeManifest.config.accountPath ?? `${index}'`)\n await node?.register(subNode)\n return subNode\n }),\n )\n }\n\n nodeManifest(index: number): NodeManifest | undefined {\n return this.payload.nodes?.[index] as NodeManifest | undefined\n }\n\n /** Register a module on a node based on a manifest */\n private async registerModule(wallet: WalletInstance, node: MemoryNode, manifest: ModuleManifest): Promise<ModuleInstance> {\n const creatableModule = this.locator.locate(manifest.config.schema, manifest.config.labels)\n const path = manifest.config.accountPath\n const account = isString(path) ? await wallet.derivePath(path) : 'random'\n const params: QueryableModuleParams = {\n name: manifest.config.name as CreatableName,\n account,\n config: assertEx(manifest.config, () => 'Missing config'),\n }\n if (isArray(this.moduleIdentifierTransformers)) {\n params.moduleIdentifierTransformers = this.moduleIdentifierTransformers\n }\n const mod = await creatableModule.create(params)\n await node.register(mod)\n return mod\n }\n}\n"],
|
|
5
|
-
"mappings": ";AACA;AAAA,EACE;AAAA,EAAU;AAAA,EAAW;AAAA,OAChB;AAKP,SAAS,UAAU,sBAAsB;AAMzC,SAAS,oBAAoB;AAC7B,SAAS,kBAAkB;
|
|
6
|
-
"names": ["
|
|
4
|
+
"sourcesContent": ["import type { CreatableName, Logger } from '@ariestools/sdk'\nimport {\n assertEx, isDefined, isString,\n} from '@ariestools/sdk'\nimport type {\n ModuleManifest, NodeManifest, PackageManifestPayload, WalletInstance,\n WithAnySchema,\n} from '@xyo-network/sdk-protocol'\nimport { HDWallet, PayloadWrapper } from '@xyo-network/sdk-protocol'\n\nimport type {\n ModuleFactoryLocatorInstance,\n ModuleIdentifierTransformer, ModuleInstance, QueryableModuleParams,\n} from '#module-model'\nimport { isModuleName } from '#module-model'\nimport { MemoryNode } from '#node-memory'\n\n/** Provides functionality that can be performed on a PackageManifest */\nexport class ManifestWrapper<TManifest extends WithAnySchema<PackageManifestPayload> | void = void> extends PayloadWrapper<\n TManifest extends WithAnySchema<PackageManifestPayload> ? TManifest : WithAnySchema<PackageManifestPayload>\n> {\n protected readonly locator: ModuleFactoryLocatorInstance\n protected readonly logger: Logger | undefined\n protected readonly moduleIdentifierTransformers: ModuleIdentifierTransformer[] | undefined\n protected readonly privateChildren: ModuleManifest[]\n protected readonly publicChildren: ModuleManifest[]\n protected readonly wallet: WalletInstance\n\n constructor(\n payload: TManifest extends WithAnySchema<PackageManifestPayload> ? TManifest : WithAnySchema<PackageManifestPayload>,\n wallet: WalletInstance,\n locator: ModuleFactoryLocatorInstance,\n publicChildren: ModuleManifest[] = [],\n privateChildren: ModuleManifest[] = [],\n moduleIdentifierTransformers?: ModuleIdentifierTransformer[],\n logger?: Logger,\n ) {\n super(payload)\n this.wallet = wallet\n this.locator = locator\n this.publicChildren = publicChildren\n this.privateChildren = privateChildren\n this.moduleIdentifierTransformers = moduleIdentifierTransformers\n this.logger = logger\n }\n\n async loadModule(wallet: WalletInstance, node: MemoryNode, manifest: ModuleManifest, external = true): Promise<void> {\n this.logger?.log('loadModule', manifest.config.name)\n const collision = async (name: string) => {\n const externalConflict = external && (await node.resolve(name, { direction: external ? 'all' : 'down' })) !== undefined\n return externalConflict || (await node.resolve(name, { direction: 'down' })) !== undefined\n }\n\n assertEx(isModuleName(manifest.config.name), () => `Invalid Module Name: ${manifest.config.name}`)\n assertEx(!(await collision(manifest.config.name)), () => `Node name collision [${manifest.config.name}]`)\n\n if (!(await collision(manifest.config.name))) {\n // is it already registered?\n if (node.registeredModules().some(mod => isDefined(mod.config.name) && mod.config.name === manifest.config.name)) {\n assertEx(await node.attach(manifest.config.name, external), () => `Failed to attach module [${manifest.config.name}]`)\n } else {\n if ((manifest as NodeManifest).modules) {\n const childNode = await this.loadNodeFromManifest(wallet, manifest, manifest.config.accountPath, false)\n await node.register(childNode)\n await node.attach(childNode.address, external)\n } else {\n const registeredModule = await this.registerModule(wallet, node, manifest)\n assertEx(\n await node.attach(registeredModule.address, external),\n () => `No module with config schema [${manifest.config.name}] registered`,\n )\n }\n }\n }\n }\n\n // These are top level, so they can use this.wallet as their\n async loadNodeFromIndex(index: number): Promise<MemoryNode> {\n const manifest = assertEx(this.nodeManifest(index), () => 'Failed to find Node Manifest')\n return await this.loadNodeFromManifest(this.wallet, manifest, manifest.config.accountPath ?? `${index}'`)\n }\n\n async loadNodeFromManifest(wallet: WalletInstance, manifest: NodeManifest, path?: string, loadConfigChildren = false): Promise<MemoryNode> {\n this.logger?.log('loadNodeFromManifest', manifest.config.name)\n const derivedWallet = isString(path) ? await wallet.derivePath(path) : await HDWallet.random()\n const node = await MemoryNode.create({\n account: derivedWallet, config: manifest.config, name: manifest.config.name as CreatableName,\n })\n // Load Private Modules\n const privateModules\n = manifest.modules?.private?.map(async (moduleManifest) => {\n if (typeof moduleManifest === 'object') {\n await this.loadModule(derivedWallet, node, moduleManifest, false)\n }\n }) ?? []\n // Load Public Modules\n const publicModules\n = manifest.modules?.public?.map(async (moduleManifest) => {\n if (typeof moduleManifest === 'object') {\n await this.loadModule(derivedWallet, node, moduleManifest, true)\n }\n }) ?? []\n await Promise.all([...privateModules, ...publicModules])\n\n if (loadConfigChildren) {\n await Promise.all(\n this.privateChildren.map(async (moduleManifest) => {\n if (typeof moduleManifest === 'object') {\n await this.loadModule(derivedWallet, node, moduleManifest, false)\n }\n }),\n )\n\n await Promise.all(\n this.publicChildren.map(async (moduleManifest) => {\n if (typeof moduleManifest === 'object') {\n await this.loadModule(derivedWallet, node, moduleManifest, true)\n }\n }),\n )\n }\n\n return node\n }\n\n /**\n * Load the nodes that are defined in the wrapped manifest and optionally attach them to a node\n */\n async loadNodes(node?: MemoryNode): Promise<MemoryNode[]> {\n return await Promise.all(\n this.payload.nodes?.map(async (nodeManifest, index) => {\n const subNode = await this.loadNodeFromManifest(this.wallet, nodeManifest as NodeManifest, nodeManifest.config.accountPath ?? `${index}'`, index === 0)\n await node?.register(subNode)\n return subNode\n }),\n )\n }\n\n nodeManifest(index: number): NodeManifest | undefined {\n return this.payload.nodes?.[index] as NodeManifest | undefined\n }\n\n /** Register a module on a node based on a manifest */\n private async registerModule(wallet: WalletInstance, node: MemoryNode, manifest: ModuleManifest): Promise<ModuleInstance> {\n const creatableModule = this.locator.locate(manifest.config.schema, manifest.config.labels)\n const path = manifest.config.accountPath\n const account = isString(path) ? await wallet.derivePath(path) : 'random'\n const params: QueryableModuleParams = {\n name: manifest.config.name as CreatableName,\n account,\n config: assertEx(manifest.config, () => 'Missing config'),\n }\n if (this.moduleIdentifierTransformers) {\n params.moduleIdentifierTransformers = this.moduleIdentifierTransformers\n }\n const mod = await creatableModule.create(params)\n await node.register(mod)\n return mod\n }\n}\n", "import type { CreatableName } from '@ariestools/sdk'\nimport {\n assertEx, isArray, isString,\n} from '@ariestools/sdk'\nimport type {\n ModuleManifest, NodeManifest, PackageManifestPayload, WalletInstance,\n WithAnySchema,\n} from '@xyo-network/sdk-protocol'\nimport { HDWallet, PayloadWrapper } from '@xyo-network/sdk-protocol'\n\nimport type {\n ModuleFactoryLocatorInstance,\n ModuleIdentifierTransformer, ModuleInstance, QueryableModuleParams,\n} from '#module-model'\nimport { isModuleName } from '#module-model'\nimport { MemoryNode } from '#node-memory'\n\nexport interface ManifestWrapperExParams {\n locator: ModuleFactoryLocatorInstance\n moduleIdentifierTransformers?: ModuleIdentifierTransformer[]\n privateChildren?: ModuleManifest[]\n publicChildren?: ModuleManifest[]\n wallet: WalletInstance\n}\n\n/** Provides functionality that can be performed on a PackageManifest */\nexport class ManifestWrapperEx<\n TManifest extends WithAnySchema<PackageManifestPayload> | void,\n TParams extends ManifestWrapperExParams = ManifestWrapperExParams,\n> extends PayloadWrapper<TManifest extends WithAnySchema<PackageManifestPayload> ? TManifest : WithAnySchema<PackageManifestPayload>> {\n protected params: TParams\n constructor(\n payload: TManifest extends WithAnySchema<PackageManifestPayload> ? TManifest : WithAnySchema<PackageManifestPayload>,\n params: TParams,\n ) {\n super(payload)\n this.params = params\n }\n\n get locator(): ModuleFactoryLocatorInstance {\n return this.params.locator\n }\n\n get moduleIdentifierTransformers(): ModuleIdentifierTransformer[] {\n return this.params.moduleIdentifierTransformers ?? []\n }\n\n get privateChildren(): ModuleManifest[] {\n return this.params.privateChildren ?? []\n }\n\n get publicChildren(): ModuleManifest[] {\n return this.params.publicChildren ?? []\n }\n\n get wallet(): WalletInstance {\n return this.params.wallet\n }\n\n async loadModule(wallet: WalletInstance, node: MemoryNode, manifest: ModuleManifest, external = true): Promise<void> {\n const collision = async (name: string) => {\n const externalConflict = external && (await node.resolve(name, { direction: external ? 'all' : 'down' })) !== undefined\n return externalConflict || (await node.resolve(name, { direction: 'down' })) !== undefined\n }\n\n assertEx(isModuleName(manifest.config.name), () => `Invalid Module Name: ${manifest.config.name}`)\n assertEx(!(await collision(manifest.config.name)), () => `Node name collision [${manifest.config.name}]`)\n\n if (!(await collision(manifest.config.name))) {\n // is it already registered?\n if (node.registeredModules().some(mod => isString(mod.config.name) && mod.config.name === manifest.config.name)) {\n assertEx(await node.attach(manifest.config.name, external), () => `Failed to attach module [${manifest.config.name}]`)\n } else {\n const registeredModule = await this.registerModule(wallet, node, manifest)\n assertEx(\n await node.attach(registeredModule.address, external),\n () => `No module with config schema [${manifest.config.name}] registered`,\n )\n }\n }\n }\n\n // These are top level, so they can use this.wallet as their\n async loadNodeFromIndex(index: number): Promise<MemoryNode> {\n const manifest = assertEx(this.nodeManifest(index), () => 'Failed to find Node Manifest')\n return await this.loadNodeFromManifest(this.wallet, manifest, manifest.config.accountPath ?? `${index}'`)\n }\n\n async loadNodeFromManifest(wallet: WalletInstance, manifest: NodeManifest, path?: string): Promise<MemoryNode> {\n const derivedWallet = isString(path) ? await wallet.derivePath(path) : await HDWallet.random()\n const node = await MemoryNode.create({ account: derivedWallet, config: manifest.config })\n // Load Private Modules\n const privateModules\n = manifest.modules?.private?.map(async (moduleManifest) => {\n if (typeof moduleManifest === 'object') {\n await this.loadModule(derivedWallet, node, moduleManifest, false)\n }\n }) ?? []\n // Load Public Modules\n const publicModules\n = manifest.modules?.public?.map(async (moduleManifest) => {\n if (typeof moduleManifest === 'object') {\n await this.loadModule(derivedWallet, node, moduleManifest, true)\n }\n }) ?? []\n await Promise.all([...privateModules, ...publicModules])\n\n await Promise.all(\n this.privateChildren.map(async (moduleManifest) => {\n if (typeof moduleManifest === 'object') {\n await this.loadModule(derivedWallet, node, moduleManifest, false)\n }\n }),\n )\n\n await Promise.all(\n this.publicChildren.map(async (moduleManifest) => {\n if (typeof moduleManifest === 'object') {\n await this.loadModule(derivedWallet, node, moduleManifest, true)\n }\n }),\n )\n\n return node\n }\n\n /**\n * Load the nodes that are defined in the wrapped manifest and optionally attach them to a node\n */\n async loadNodes(node?: MemoryNode): Promise<MemoryNode[]> {\n return await Promise.all(\n this.payload.nodes?.map(async (nodeManifest, index) => {\n const subNode = await this.loadNodeFromManifest(this.wallet, nodeManifest as NodeManifest, nodeManifest.config.accountPath ?? `${index}'`)\n await node?.register(subNode)\n return subNode\n }),\n )\n }\n\n nodeManifest(index: number): NodeManifest | undefined {\n return this.payload.nodes?.[index] as NodeManifest | undefined\n }\n\n /** Register a module on a node based on a manifest */\n private async registerModule(wallet: WalletInstance, node: MemoryNode, manifest: ModuleManifest): Promise<ModuleInstance> {\n const creatableModule = this.locator.locate(manifest.config.schema, manifest.config.labels)\n const path = manifest.config.accountPath\n const account = isString(path) ? await wallet.derivePath(path) : 'random'\n const params: QueryableModuleParams = {\n name: manifest.config.name as CreatableName,\n account,\n config: assertEx(manifest.config, () => 'Missing config'),\n }\n if (isArray(this.moduleIdentifierTransformers)) {\n params.moduleIdentifierTransformers = this.moduleIdentifierTransformers\n }\n const mod = await creatableModule.create(params)\n await node.register(mod)\n return mod\n }\n}\n"],
|
|
5
|
+
"mappings": ";AACA;AAAA,EACE;AAAA,EAAU;AAAA,EAAW;AAAA,OAChB;AAKP,SAAS,UAAU,sBAAsB;AAMzC,SAAS,oBAAoB;AAC7B,SAAS,kBAAkB;AAGpB,IAAM,kBAAN,cAAqG,eAE1G;AAAA,EACmB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAEnB,YACE,SACA,QACA,SACA,iBAAmC,CAAC,GACpC,kBAAoC,C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gB,OAAO,MAAM;AAC/C,UAAM,KAAK,SAAS,GAAG;AACvB,WAAO;AAAA,EACT;AACF;",
|
|
6
|
+
"names": ["assertEx", "isString", "HDWallet", "PayloadWrapper", "isModuleName", "MemoryNode"]
|
|
7
7
|
}
|
|
@@ -167,8 +167,7 @@ var ModuleConfigQueryValidator = class {
|
|
|
167
167
|
return addresses.every((address) => this.allowed?.[schema]?.includes(address));
|
|
168
168
|
};
|
|
169
169
|
queryDisallowed = (schema, addresses) => {
|
|
170
|
-
|
|
171
|
-
return addresses.some((address) => this.disallowed?.[schema]?.includes(address));
|
|
170
|
+
return this.hasDisallowedRules && addresses.some((address) => this.disallowed?.[schema]?.includes(address));
|
|
172
171
|
};
|
|
173
172
|
};
|
|
174
173
|
var toAddressesString = (addresses) => {
|
|
@@ -369,7 +368,7 @@ var AbstractModule = class _AbstractModule extends AbstractCreatable {
|
|
|
369
368
|
}
|
|
370
369
|
return false;
|
|
371
370
|
}
|
|
372
|
-
const supported = Array.isArray(this.config.allowedQueries)
|
|
371
|
+
const supported = !Array.isArray(this.config.allowedQueries) || this.config.allowedQueries.includes(query);
|
|
373
372
|
if (assert !== false) {
|
|
374
373
|
assertEx2(supported, () => `Query not supported [${isString2(assert) ? assert : query}] on [${this.modName}, ${this.address}] (config)`);
|
|
375
374
|
}
|
|
@@ -424,10 +423,7 @@ var AbstractModule = class _AbstractModule extends AbstractCreatable {
|
|
|
424
423
|
}, { timeBudgetLimit: 200 });
|
|
425
424
|
}
|
|
426
425
|
async queryable(query, payloads, queryConfig) {
|
|
427
|
-
if (this.dead)
|
|
428
|
-
return false;
|
|
429
|
-
}
|
|
430
|
-
if (!this.started("warn")) return false;
|
|
426
|
+
if (this.dead || !this.started("warn")) return false;
|
|
431
427
|
const queryConfigValidator = queryConfig ? new ModuleConfigQueryValidator(Object.assign({}, this.config, queryConfig)) : void 0;
|
|
432
428
|
const configValidator = queryConfigValidator?.queryable ?? this.moduleConfigQueryValidator;
|
|
433
429
|
const validators = [this.supportedQueryValidator, configValidator];
|
|
@@ -557,10 +553,7 @@ var AbstractModule = class _AbstractModule extends AbstractCreatable {
|
|
|
557
553
|
}
|
|
558
554
|
isAllowedArchivingQuery(schema) {
|
|
559
555
|
const queries = this.archiving?.queries;
|
|
560
|
-
|
|
561
|
-
return queries.includes(schema);
|
|
562
|
-
}
|
|
563
|
-
return true;
|
|
556
|
+
return !queries || queries.includes(schema);
|
|
564
557
|
}
|
|
565
558
|
manifestHandler(_maxDepth = 1, _ignoreAddresses = []) {
|
|
566
559
|
throw new Error("Not supported");
|
|
@@ -638,7 +631,7 @@ var AbstractModule = class _AbstractModule extends AbstractCreatable {
|
|
|
638
631
|
valid = this.validateConfig(item, [...parents, key]) && valid;
|
|
639
632
|
}
|
|
640
633
|
} else if (isSerializable(value)) {
|
|
641
|
-
valid = value === null
|
|
634
|
+
valid = value === null || this.validateConfig(value, [...parents, key]) && valid;
|
|
642
635
|
} else {
|
|
643
636
|
this.logger?.warn(`Fields that are not serializable to JSON are not allowed in config [${parents?.join(".")}.${key}]`);
|
|
644
637
|
valid = false;
|
|
@@ -669,12 +662,9 @@ import {
|
|
|
669
662
|
import { asNodeInstance } from "#node-model";
|
|
670
663
|
function filterIdentity(mod, identityFunc) {
|
|
671
664
|
if (Array.isArray(mod)) {
|
|
672
|
-
|
|
673
|
-
return mod.map((m) => identityFunc(m)).filter(exists2);
|
|
674
|
-
}
|
|
675
|
-
return mod;
|
|
665
|
+
return identityFunc ? mod.map((m) => identityFunc(m)).filter(exists2) : mod;
|
|
676
666
|
}
|
|
677
|
-
return (mod ? identityFunc
|
|
667
|
+
return (mod ? !identityFunc || identityFunc(mod) : false) ? mod : void 0;
|
|
678
668
|
}
|
|
679
669
|
var AbstractModuleInstance = class _AbstractModuleInstance extends AbstractModule {
|
|
680
670
|
// switches between old and new resolution system
|
|
@@ -738,10 +728,11 @@ var AbstractModuleInstance = class _AbstractModuleInstance extends AbstractModul
|
|
|
738
728
|
async createHandler() {
|
|
739
729
|
await super.createHandler();
|
|
740
730
|
const shouldAddToResolvers = this.params.addToResolvers ?? true;
|
|
741
|
-
if (shouldAddToResolvers) {
|
|
742
|
-
|
|
743
|
-
this.downResolver.add(this);
|
|
731
|
+
if (!shouldAddToResolvers) {
|
|
732
|
+
return;
|
|
744
733
|
}
|
|
734
|
+
this.upResolver.add(this);
|
|
735
|
+
this.downResolver.add(this);
|
|
745
736
|
}
|
|
746
737
|
manifest(maxDepth) {
|
|
747
738
|
this._checkDead();
|
|
@@ -778,10 +769,7 @@ var AbstractModuleInstance = class _AbstractModuleInstance extends AbstractModul
|
|
|
778
769
|
if (direction === "down") {
|
|
779
770
|
return filterIdentity(await resolveAllDown(this, maxDepth) ?? [], options.identity);
|
|
780
771
|
}
|
|
781
|
-
|
|
782
|
-
return filterIdentity(await resolveAllUp(this, maxDepth) ?? [], options.identity);
|
|
783
|
-
}
|
|
784
|
-
return filterIdentity(await resolveAll(this, maxDepth) ?? [], options.identity);
|
|
772
|
+
return filterIdentity(direction === "up" ? await resolveAllUp(this, maxDepth) ?? [] : await resolveAll(this, maxDepth) ?? [], options.identity);
|
|
785
773
|
}
|
|
786
774
|
if (typeof id === "string") {
|
|
787
775
|
return filterIdentity(await resolvePathToInstance(this, id, true), options.identity);
|
|
@@ -798,9 +786,11 @@ var AbstractModuleInstance = class _AbstractModuleInstance extends AbstractModul
|
|
|
798
786
|
upResolver: this.upResolver
|
|
799
787
|
};
|
|
800
788
|
if (id === "*") {
|
|
801
|
-
|
|
789
|
+
const modules = await ResolveHelper.resolve(config, "*", options) ?? [];
|
|
790
|
+
return filterIdentity(modules, options.identity);
|
|
802
791
|
}
|
|
803
|
-
|
|
792
|
+
const resolved = await ResolveHelper.resolve(config, id, options);
|
|
793
|
+
return filterIdentity(resolved, options.identity);
|
|
804
794
|
}
|
|
805
795
|
resolveIdentifier(id, options) {
|
|
806
796
|
const { direction = "all" } = options ?? {};
|