@xyo-network/sdk 8.0.0 → 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.
Files changed (900) hide show
  1. package/dist/neutral/archivist-abstract.mjs +8 -7
  2. package/dist/neutral/archivist-abstract.mjs.map +2 -2
  3. package/dist/neutral/archivist-memory.mjs +4 -3
  4. package/dist/neutral/archivist-memory.mjs.map +2 -2
  5. package/dist/neutral/bridge-abstract.mjs +27 -29
  6. package/dist/neutral/bridge-abstract.mjs.map +2 -2
  7. package/dist/neutral/bridge-http.mjs +18 -17
  8. package/dist/neutral/bridge-http.mjs.map +2 -2
  9. package/dist/neutral/diviner-boundwitness.memory.mjs +1 -1
  10. package/dist/neutral/diviner-boundwitness.memory.mjs.map +2 -2
  11. package/dist/neutral/diviner-boundwitness.mjs +1 -1
  12. package/dist/neutral/diviner-boundwitness.mjs.map +2 -2
  13. package/dist/neutral/manifest-wrapper.mjs +10 -10
  14. package/dist/neutral/manifest-wrapper.mjs.map +3 -3
  15. package/dist/neutral/module-abstract.mjs +16 -26
  16. package/dist/neutral/module-abstract.mjs.map +2 -2
  17. package/dist/neutral/module-model.mjs +1 -2
  18. package/dist/neutral/module-model.mjs.map +2 -2
  19. package/dist/neutral/module-resolver.mjs +16 -22
  20. package/dist/neutral/module-resolver.mjs.map +2 -2
  21. package/dist/neutral/module-wrapper.mjs +2 -8
  22. package/dist/neutral/module-wrapper.mjs.map +2 -2
  23. package/dist/neutral/modules/archivist-abstract/payloadAdmission.d.ts.map +1 -1
  24. package/dist/neutral/modules/archivist-memory/MemoryDriver.d.ts.map +1 -1
  25. package/dist/neutral/modules/bridge-abstract/AbstractBridgeModuleResolver.d.ts.map +1 -1
  26. package/dist/neutral/modules/bridge-abstract/AbstractModuleProxy/ModuleProxyResolver.d.ts.map +1 -1
  27. package/dist/neutral/modules/bridge-http/HttpBridgeModuleResolver.d.ts.map +1 -1
  28. package/dist/neutral/modules/manifest-wrapper/Wrapper.d.ts.map +1 -1
  29. package/dist/neutral/modules/manifest-wrapper/WrapperEx.d.ts.map +1 -1
  30. package/dist/neutral/modules/module-abstract/AbstractModule.d.ts.map +1 -1
  31. package/dist/neutral/modules/module-abstract/AbstractModuleInstance.d.ts.map +1 -1
  32. package/dist/neutral/modules/module-abstract/QueryValidator/ModuleConfigQueryValidator.d.ts.map +1 -1
  33. package/dist/neutral/modules/module-model/CreatableModule/CreatableModuleRegistry.d.ts.map +1 -1
  34. package/dist/neutral/modules/module-resolver/CompositeModuleResolver.d.ts.map +1 -1
  35. package/dist/neutral/modules/module-resolver/ResolveHelper/resolveAll.d.ts.map +1 -1
  36. package/dist/neutral/modules/module-resolver/ResolveHelper/resolvePathToInstance.d.ts.map +1 -1
  37. package/dist/neutral/modules/module-resolver/SimpleModuleResolver.d.ts.map +1 -1
  38. package/dist/neutral/modules/module-wrapper/ModuleWrapper.d.ts.map +1 -1
  39. package/dist/neutral/modules/node-abstract/NodeHelper/attachedPrivateModules.d.ts.map +1 -1
  40. package/dist/neutral/modules/node-abstract/NodeHelper/attachedPublicModules.d.ts.map +1 -1
  41. package/dist/neutral/modules/node-view/ViewNode.d.ts.map +1 -1
  42. package/dist/neutral/modules/sentinel-abstract/AbstractSentinel.d.ts.map +1 -1
  43. package/dist/neutral/modules/sentinel-memory/MemorySentinel.d.ts.map +1 -1
  44. package/dist/neutral/node-abstract.mjs +8 -6
  45. package/dist/neutral/node-abstract.mjs.map +2 -2
  46. package/dist/neutral/node-view.mjs +8 -7
  47. package/dist/neutral/node-view.mjs.map +2 -2
  48. package/dist/neutral/sentinel-abstract.mjs +4 -13
  49. package/dist/neutral/sentinel-abstract.mjs.map +2 -2
  50. package/dist/neutral/sentinel-memory.mjs +8 -7
  51. package/dist/neutral/sentinel-memory.mjs.map +2 -2
  52. package/dist/node/address-payload-plugin.d.ts +1 -1
  53. package/dist/node/api-location-diviner.d.ts +1 -1
  54. package/dist/node/archivist-abstract.d.ts +1 -1
  55. package/dist/node/archivist-generic.d.ts +1 -1
  56. package/dist/node/archivist-memory.d.ts +1 -1
  57. package/dist/node/archivist-model.d.ts +1 -1
  58. package/dist/node/archivist-view.d.ts +1 -1
  59. package/dist/node/archivist-wrapper.d.ts +1 -1
  60. package/dist/node/archivist.d.ts +1 -1
  61. package/dist/node/boundwitness-loader.d.ts +1 -1
  62. package/dist/node/bridge-abstract.d.ts +1 -1
  63. package/dist/node/bridge-http.d.ts +1 -1
  64. package/dist/node/bridge-model.d.ts +1 -1
  65. package/dist/node/bridge-wrapper.d.ts +1 -1
  66. package/dist/node/bridge.d.ts +1 -1
  67. package/dist/node/diviner-abstract.d.ts +1 -1
  68. package/dist/node/diviner-boundwitness.abstract.d.ts +1 -1
  69. package/dist/node/diviner-boundwitness.d.ts +1 -1
  70. package/dist/node/diviner-boundwitness.memory.d.ts +1 -1
  71. package/dist/node/diviner-boundwitness.model.d.ts +1 -1
  72. package/dist/node/diviner-identity.d.ts +1 -1
  73. package/dist/node/diviner-model.d.ts +1 -1
  74. package/dist/node/diviner-payload-abstract.d.ts +1 -1
  75. package/dist/node/diviner-payload-generic.d.ts +1 -1
  76. package/dist/node/diviner-payload-model.d.ts +1 -1
  77. package/dist/node/diviner-wrapper.d.ts +1 -1
  78. package/dist/node/diviner.d.ts +1 -1
  79. package/dist/node/index.d.ts +11 -11
  80. package/dist/node/manifest-wrapper.d.ts +1 -1
  81. package/dist/node/module-abstract.d.ts +1 -1
  82. package/dist/node/module-event-emitter.d.ts +1 -1
  83. package/dist/node/module-factory-locator.d.ts +1 -1
  84. package/dist/node/module-model.d.ts +1 -1
  85. package/dist/node/module-resolver.d.ts +1 -1
  86. package/dist/node/module-wrapper.d.ts +1 -1
  87. package/dist/node/module.d.ts +1 -1
  88. package/dist/node/modules/archivist/abstract.d.ts +1 -1
  89. package/dist/node/modules/archivist/model.d.ts +1 -1
  90. package/dist/node/modules/archivist/wrapper.d.ts +1 -1
  91. package/dist/node/modules/archivist-memory/MemoryDriver.d.ts +1 -1
  92. package/dist/node/modules/archivist-memory/MemoryDriver.d.ts.map +1 -1
  93. package/dist/node/modules/bridge/model.d.ts +1 -1
  94. package/dist/node/modules/bridge/wrapper.d.ts +1 -1
  95. package/dist/node/modules/diviner/abstract.d.ts +1 -1
  96. package/dist/node/modules/diviner/model.d.ts +1 -1
  97. package/dist/node/modules/diviner/wrapper.d.ts +1 -1
  98. package/dist/node/modules/module/abstract.d.ts +1 -1
  99. package/dist/node/modules/module/model.d.ts +1 -1
  100. package/dist/node/modules/module/resolver.d.ts +1 -1
  101. package/dist/node/modules/module/wrapper.d.ts +1 -1
  102. package/dist/node/modules/module-resolver/ResolveHelper/traceModuleIdentifier.d.ts +1 -1
  103. package/dist/node/modules/node/abstract.d.ts +1 -1
  104. package/dist/node/modules/node/model.d.ts +1 -1
  105. package/dist/node/modules/node/wrapper.d.ts +1 -1
  106. package/dist/node/modules/node-abstract/NodeHelper/attachedPrivateModules.d.ts +2 -2
  107. package/dist/node/modules/node-abstract/NodeHelper/attachedPrivateModules.d.ts.map +1 -1
  108. package/dist/node/modules/node-abstract/NodeHelper/attachedPublicModules.d.ts +2 -2
  109. package/dist/node/modules/node-abstract/NodeHelper/attachedPublicModules.d.ts.map +1 -1
  110. package/dist/node/modules/node-memory/NodeHelper/attachToExistingNode.d.ts +2 -2
  111. package/dist/node/modules/node-memory/NodeHelper/attachToNewNode.d.ts +3 -3
  112. package/dist/node/modules/node-memory/NodeHelper/flatAttachToExistingNode.d.ts +2 -2
  113. package/dist/node/modules/node-memory/NodeHelper/flatAttachToNewNode.d.ts +3 -3
  114. package/dist/node/modules/sentinel/abstract.d.ts +1 -1
  115. package/dist/node/modules/sentinel/model.d.ts +1 -1
  116. package/dist/node/modules/sentinel/wrapper.d.ts +1 -1
  117. package/dist/node/modules/witness/abstract.d.ts +1 -1
  118. package/dist/node/modules/witness/model.d.ts +1 -1
  119. package/dist/node/modules/witness/wrapper.d.ts +1 -1
  120. package/dist/node/modules.d.ts +1 -1
  121. package/dist/node/node-abstract.d.ts +1 -1
  122. package/dist/node/node-memory.d.ts +1 -1
  123. package/dist/node/node-model.d.ts +1 -1
  124. package/dist/node/node-view.d.ts +1 -1
  125. package/dist/node/node-wrapper.d.ts +1 -1
  126. package/dist/node/node.d.ts +1 -1
  127. package/dist/node/payloadset-plugin.d.ts +1 -1
  128. package/dist/node/sentinel-abstract.d.ts +1 -1
  129. package/dist/node/sentinel-memory.d.ts +1 -1
  130. package/dist/node/sentinel-model.d.ts +1 -1
  131. package/dist/node/sentinel-wrapper.d.ts +1 -1
  132. package/dist/node/sentinel.d.ts +1 -1
  133. package/dist/node/witness-abstract.d.ts +1 -1
  134. package/dist/node/witness-adhoc.d.ts +1 -1
  135. package/dist/node/witness-model.d.ts +1 -1
  136. package/dist/node/witness-wrapper.d.ts +1 -1
  137. package/dist/node/witness.d.ts +1 -1
  138. package/package.json +10 -10
  139. package/dist/node/modules/address-payload-plugin/Plugin.d.ts +0 -4
  140. package/dist/node/modules/address-payload-plugin/Plugin.d.ts.map +0 -1
  141. package/dist/node/modules/address-payload-plugin/Template.d.ts +0 -3
  142. package/dist/node/modules/address-payload-plugin/Template.d.ts.map +0 -1
  143. package/dist/node/modules/address-payload-plugin/index.d.ts +0 -3
  144. package/dist/node/modules/address-payload-plugin/index.d.ts.map +0 -1
  145. package/dist/node/modules/api-location-diviner/LocationDiviner/LocationDivinerApi.d.ts +0 -13
  146. package/dist/node/modules/api-location-diviner/LocationDiviner/LocationDivinerApi.d.ts.map +0 -1
  147. package/dist/node/modules/api-location-diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.d.ts +0 -5
  148. package/dist/node/modules/api-location-diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapPointProperties.d.ts.map +0 -1
  149. package/dist/node/modules/api-location-diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.ts +0 -21
  150. package/dist/node/modules/api-location-diviner/LocationDiviner/Queries/LocationHeatmapQuery/LocationHeatmapQuery.d.ts.map +0 -1
  151. package/dist/node/modules/api-location-diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.d.ts +0 -3
  152. package/dist/node/modules/api-location-diviner/LocationDiviner/Queries/LocationHeatmapQuery/index.d.ts.map +0 -1
  153. package/dist/node/modules/api-location-diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.ts +0 -21
  154. package/dist/node/modules/api-location-diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/LocationQuadkeyHeatmapQuery.d.ts.map +0 -1
  155. package/dist/node/modules/api-location-diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.d.ts +0 -2
  156. package/dist/node/modules/api-location-diviner/LocationDiviner/Queries/LocationQuadkeyHeatmapQuery/index.d.ts.map +0 -1
  157. package/dist/node/modules/api-location-diviner/LocationDiviner/Queries/LocationQueryCreationRequest.d.ts +0 -22
  158. package/dist/node/modules/api-location-diviner/LocationDiviner/Queries/LocationQueryCreationRequest.d.ts.map +0 -1
  159. package/dist/node/modules/api-location-diviner/LocationDiviner/Queries/LocationQueryCreationResponse.d.ts +0 -5
  160. package/dist/node/modules/api-location-diviner/LocationDiviner/Queries/LocationQueryCreationResponse.d.ts.map +0 -1
  161. package/dist/node/modules/api-location-diviner/LocationDiviner/Queries/LocationQuerySchema.d.ts +0 -7
  162. package/dist/node/modules/api-location-diviner/LocationDiviner/Queries/LocationQuerySchema.d.ts.map +0 -1
  163. package/dist/node/modules/api-location-diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.ts +0 -8
  164. package/dist/node/modules/api-location-diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangePointProperties.d.ts.map +0 -1
  165. package/dist/node/modules/api-location-diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.ts +0 -21
  166. package/dist/node/modules/api-location-diviner/LocationDiviner/Queries/LocationTimeRangeQuery/LocationTimeRangeQuery.d.ts.map +0 -1
  167. package/dist/node/modules/api-location-diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.d.ts +0 -3
  168. package/dist/node/modules/api-location-diviner/LocationDiviner/Queries/LocationTimeRangeQuery/index.d.ts.map +0 -1
  169. package/dist/node/modules/api-location-diviner/LocationDiviner/Queries/index.d.ts +0 -7
  170. package/dist/node/modules/api-location-diviner/LocationDiviner/Queries/index.d.ts.map +0 -1
  171. package/dist/node/modules/api-location-diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.ts +0 -20
  172. package/dist/node/modules/api-location-diviner/LocationDiviner/Witnesses/CurrentLocationWitness.d.ts.map +0 -1
  173. package/dist/node/modules/api-location-diviner/LocationDiviner/Witnesses/LocationWitness.d.ts +0 -28
  174. package/dist/node/modules/api-location-diviner/LocationDiviner/Witnesses/LocationWitness.d.ts.map +0 -1
  175. package/dist/node/modules/api-location-diviner/LocationDiviner/Witnesses/index.d.ts +0 -3
  176. package/dist/node/modules/api-location-diviner/LocationDiviner/Witnesses/index.d.ts.map +0 -1
  177. package/dist/node/modules/api-location-diviner/LocationDiviner/index.d.ts +0 -5
  178. package/dist/node/modules/api-location-diviner/LocationDiviner/index.d.ts.map +0 -1
  179. package/dist/node/modules/api-location-diviner/LocationDiviner/models.d.ts +0 -5
  180. package/dist/node/modules/api-location-diviner/LocationDiviner/models.d.ts.map +0 -1
  181. package/dist/node/modules/api-location-diviner/RemoteDivinerConfig.d.ts +0 -18
  182. package/dist/node/modules/api-location-diviner/RemoteDivinerConfig.d.ts.map +0 -1
  183. package/dist/node/modules/api-location-diviner/RemoteDivinerError.d.ts +0 -6
  184. package/dist/node/modules/api-location-diviner/RemoteDivinerError.d.ts.map +0 -1
  185. package/dist/node/modules/api-location-diviner/index.d.ts +0 -4
  186. package/dist/node/modules/api-location-diviner/index.d.ts.map +0 -1
  187. package/dist/node/modules/archivist/index.d.ts +0 -5
  188. package/dist/node/modules/archivist/index.d.ts.map +0 -1
  189. package/dist/node/modules/archivist-abstract/AbstractArchivist.d.ts +0 -101
  190. package/dist/node/modules/archivist-abstract/AbstractArchivist.d.ts.map +0 -1
  191. package/dist/node/modules/archivist-abstract/StorageClassLabel.d.ts +0 -3
  192. package/dist/node/modules/archivist-abstract/StorageClassLabel.d.ts.map +0 -1
  193. package/dist/node/modules/archivist-abstract/index.d.ts +0 -4
  194. package/dist/node/modules/archivist-abstract/index.d.ts.map +0 -1
  195. package/dist/node/modules/archivist-abstract/payloadAdmission.d.ts +0 -13
  196. package/dist/node/modules/archivist-abstract/payloadAdmission.d.ts.map +0 -1
  197. package/dist/node/modules/archivist-generic/Archivist.d.ts +0 -29
  198. package/dist/node/modules/archivist-generic/Archivist.d.ts.map +0 -1
  199. package/dist/node/modules/archivist-generic/Config.d.ts +0 -22
  200. package/dist/node/modules/archivist-generic/Config.d.ts.map +0 -1
  201. package/dist/node/modules/archivist-generic/index.d.ts +0 -3
  202. package/dist/node/modules/archivist-generic/index.d.ts.map +0 -1
  203. package/dist/node/modules/archivist-memory/Archivist.d.ts +0 -17
  204. package/dist/node/modules/archivist-memory/Archivist.d.ts.map +0 -1
  205. package/dist/node/modules/archivist-memory/Config.d.ts +0 -22
  206. package/dist/node/modules/archivist-memory/Config.d.ts.map +0 -1
  207. package/dist/node/modules/archivist-memory/index.d.ts +0 -3
  208. package/dist/node/modules/archivist-memory/index.d.ts.map +0 -1
  209. package/dist/node/modules/archivist-model/ArchivistDriver.d.ts +0 -12
  210. package/dist/node/modules/archivist-model/ArchivistDriver.d.ts.map +0 -1
  211. package/dist/node/modules/archivist-model/ArchivistFunctions.d.ts +0 -20
  212. package/dist/node/modules/archivist-model/ArchivistFunctions.d.ts.map +0 -1
  213. package/dist/node/modules/archivist-model/ArchivistSnapshot.d.ts +0 -16
  214. package/dist/node/modules/archivist-model/ArchivistSnapshot.d.ts.map +0 -1
  215. package/dist/node/modules/archivist-model/ArchivistStats.d.ts +0 -15
  216. package/dist/node/modules/archivist-model/ArchivistStats.d.ts.map +0 -1
  217. package/dist/node/modules/archivist-model/Config.d.ts +0 -50
  218. package/dist/node/modules/archivist-model/Config.d.ts.map +0 -1
  219. package/dist/node/modules/archivist-model/EventData.d.ts +0 -5
  220. package/dist/node/modules/archivist-model/EventData.d.ts.map +0 -1
  221. package/dist/node/modules/archivist-model/EventModels/Cleared.d.ts +0 -7
  222. package/dist/node/modules/archivist-model/EventModels/Cleared.d.ts.map +0 -1
  223. package/dist/node/modules/archivist-model/EventModels/Deleted.d.ts +0 -11
  224. package/dist/node/modules/archivist-model/EventModels/Deleted.d.ts.map +0 -1
  225. package/dist/node/modules/archivist-model/EventModels/Inserted.d.ts +0 -12
  226. package/dist/node/modules/archivist-model/EventModels/Inserted.d.ts.map +0 -1
  227. package/dist/node/modules/archivist-model/EventModels/index.d.ts +0 -4
  228. package/dist/node/modules/archivist-model/EventModels/index.d.ts.map +0 -1
  229. package/dist/node/modules/archivist-model/IndexDescription.d.ts +0 -34
  230. package/dist/node/modules/archivist-model/IndexDescription.d.ts.map +0 -1
  231. package/dist/node/modules/archivist-model/Instance.d.ts +0 -30
  232. package/dist/node/modules/archivist-model/Instance.d.ts.map +0 -1
  233. package/dist/node/modules/archivist-model/Labels.d.ts +0 -5
  234. package/dist/node/modules/archivist-model/Labels.d.ts.map +0 -1
  235. package/dist/node/modules/archivist-model/Module.d.ts +0 -7
  236. package/dist/node/modules/archivist-model/Module.d.ts.map +0 -1
  237. package/dist/node/modules/archivist-model/ModuleInstance.d.ts +0 -6
  238. package/dist/node/modules/archivist-model/ModuleInstance.d.ts.map +0 -1
  239. package/dist/node/modules/archivist-model/NextOptions.d.ts +0 -11
  240. package/dist/node/modules/archivist-model/NextOptions.d.ts.map +0 -1
  241. package/dist/node/modules/archivist-model/PayloadArchivist.d.ts +0 -18
  242. package/dist/node/modules/archivist-model/PayloadArchivist.d.ts.map +0 -1
  243. package/dist/node/modules/archivist-model/Queries/All.d.ts +0 -15
  244. package/dist/node/modules/archivist-model/Queries/All.d.ts.map +0 -1
  245. package/dist/node/modules/archivist-model/Queries/Clear.d.ts +0 -15
  246. package/dist/node/modules/archivist-model/Queries/Clear.d.ts.map +0 -1
  247. package/dist/node/modules/archivist-model/Queries/Commit.d.ts +0 -15
  248. package/dist/node/modules/archivist-model/Queries/Commit.d.ts.map +0 -1
  249. package/dist/node/modules/archivist-model/Queries/Delete.d.ts +0 -18
  250. package/dist/node/modules/archivist-model/Queries/Delete.d.ts.map +0 -1
  251. package/dist/node/modules/archivist-model/Queries/Get.d.ts +0 -18
  252. package/dist/node/modules/archivist-model/Queries/Get.d.ts.map +0 -1
  253. package/dist/node/modules/archivist-model/Queries/Insert.d.ts +0 -15
  254. package/dist/node/modules/archivist-model/Queries/Insert.d.ts.map +0 -1
  255. package/dist/node/modules/archivist-model/Queries/Next.d.ts +0 -21
  256. package/dist/node/modules/archivist-model/Queries/Next.d.ts.map +0 -1
  257. package/dist/node/modules/archivist-model/Queries/Snapshot.d.ts +0 -15
  258. package/dist/node/modules/archivist-model/Queries/Snapshot.d.ts.map +0 -1
  259. package/dist/node/modules/archivist-model/Queries/index.d.ts +0 -20
  260. package/dist/node/modules/archivist-model/Queries/index.d.ts.map +0 -1
  261. package/dist/node/modules/archivist-model/RawQueryFunctions.d.ts +0 -14
  262. package/dist/node/modules/archivist-model/RawQueryFunctions.d.ts.map +0 -1
  263. package/dist/node/modules/archivist-model/attachable/AttachableInstance.d.ts +0 -13
  264. package/dist/node/modules/archivist-model/attachable/AttachableInstance.d.ts.map +0 -1
  265. package/dist/node/modules/archivist-model/attachable/asAttachableInstance.d.ts +0 -2
  266. package/dist/node/modules/archivist-model/attachable/asAttachableInstance.d.ts.map +0 -1
  267. package/dist/node/modules/archivist-model/attachable/index.d.ts +0 -4
  268. package/dist/node/modules/archivist-model/attachable/index.d.ts.map +0 -1
  269. package/dist/node/modules/archivist-model/attachable/isAttachableInstance.d.ts +0 -5
  270. package/dist/node/modules/archivist-model/attachable/isAttachableInstance.d.ts.map +0 -1
  271. package/dist/node/modules/archivist-model/index.d.ts +0 -18
  272. package/dist/node/modules/archivist-model/index.d.ts.map +0 -1
  273. package/dist/node/modules/archivist-model/lib/HydratedBoundWitness.d.ts +0 -8
  274. package/dist/node/modules/archivist-model/lib/HydratedBoundWitness.d.ts.map +0 -1
  275. package/dist/node/modules/archivist-model/lib/getBoundWitness.d.ts +0 -7
  276. package/dist/node/modules/archivist-model/lib/getBoundWitness.d.ts.map +0 -1
  277. package/dist/node/modules/archivist-model/lib/hydrateBoundWitness.d.ts +0 -8
  278. package/dist/node/modules/archivist-model/lib/hydrateBoundWitness.d.ts.map +0 -1
  279. package/dist/node/modules/archivist-model/lib/index.d.ts +0 -4
  280. package/dist/node/modules/archivist-model/lib/index.d.ts.map +0 -1
  281. package/dist/node/modules/archivist-model/typeChecks.d.ts +0 -12
  282. package/dist/node/modules/archivist-model/typeChecks.d.ts.map +0 -1
  283. package/dist/node/modules/archivist-view/ViewArchivist.d.ts +0 -45
  284. package/dist/node/modules/archivist-view/ViewArchivist.d.ts.map +0 -1
  285. package/dist/node/modules/archivist-view/index.d.ts +0 -2
  286. package/dist/node/modules/archivist-view/index.d.ts.map +0 -1
  287. package/dist/node/modules/archivist-wrapper/ArchivistWrapper.d.ts +0 -27
  288. package/dist/node/modules/archivist-wrapper/ArchivistWrapper.d.ts.map +0 -1
  289. package/dist/node/modules/archivist-wrapper/index.d.ts +0 -2
  290. package/dist/node/modules/archivist-wrapper/index.d.ts.map +0 -1
  291. package/dist/node/modules/boundwitness-loader/Loader.d.ts +0 -21
  292. package/dist/node/modules/boundwitness-loader/Loader.d.ts.map +0 -1
  293. package/dist/node/modules/boundwitness-loader/index.d.ts +0 -2
  294. package/dist/node/modules/boundwitness-loader/index.d.ts.map +0 -1
  295. package/dist/node/modules/bridge/index.d.ts +0 -7
  296. package/dist/node/modules/bridge/index.d.ts.map +0 -1
  297. package/dist/node/modules/bridge-abstract/AbstractBridge.d.ts +0 -31
  298. package/dist/node/modules/bridge-abstract/AbstractBridge.d.ts.map +0 -1
  299. package/dist/node/modules/bridge-abstract/AbstractBridgeModuleResolver.d.ts +0 -25
  300. package/dist/node/modules/bridge-abstract/AbstractBridgeModuleResolver.d.ts.map +0 -1
  301. package/dist/node/modules/bridge-abstract/AbstractModuleProxy/AbstractModuleProxy.d.ts +0 -61
  302. package/dist/node/modules/bridge-abstract/AbstractModuleProxy/AbstractModuleProxy.d.ts.map +0 -1
  303. package/dist/node/modules/bridge-abstract/AbstractModuleProxy/ModuleProxyResolver.d.ts +0 -39
  304. package/dist/node/modules/bridge-abstract/AbstractModuleProxy/ModuleProxyResolver.d.ts.map +0 -1
  305. package/dist/node/modules/bridge-abstract/AbstractModuleProxy/index.d.ts +0 -3
  306. package/dist/node/modules/bridge-abstract/AbstractModuleProxy/index.d.ts.map +0 -1
  307. package/dist/node/modules/bridge-abstract/index.d.ts +0 -9
  308. package/dist/node/modules/bridge-abstract/index.d.ts.map +0 -1
  309. package/dist/node/modules/bridge-abstract/wrapModuleWithType.d.ts +0 -6
  310. package/dist/node/modules/bridge-abstract/wrapModuleWithType.d.ts.map +0 -1
  311. package/dist/node/modules/bridge-http/HttpBridge.d.ts +0 -45
  312. package/dist/node/modules/bridge-http/HttpBridge.d.ts.map +0 -1
  313. package/dist/node/modules/bridge-http/HttpBridgeConfig.d.ts +0 -53
  314. package/dist/node/modules/bridge-http/HttpBridgeConfig.d.ts.map +0 -1
  315. package/dist/node/modules/bridge-http/HttpBridgeModuleResolver.d.ts +0 -27
  316. package/dist/node/modules/bridge-http/HttpBridgeModuleResolver.d.ts.map +0 -1
  317. package/dist/node/modules/bridge-http/ModuleProxy/ModuleProxy.d.ts +0 -26
  318. package/dist/node/modules/bridge-http/ModuleProxy/ModuleProxy.d.ts.map +0 -1
  319. package/dist/node/modules/bridge-http/ModuleProxy/index.d.ts +0 -3
  320. package/dist/node/modules/bridge-http/ModuleProxy/index.d.ts.map +0 -1
  321. package/dist/node/modules/bridge-http/index.d.ts +0 -5
  322. package/dist/node/modules/bridge-http/index.d.ts.map +0 -1
  323. package/dist/node/modules/bridge-model/Config.d.ts +0 -44
  324. package/dist/node/modules/bridge-model/Config.d.ts.map +0 -1
  325. package/dist/node/modules/bridge-model/EventData.d.ts +0 -6
  326. package/dist/node/modules/bridge-model/EventData.d.ts.map +0 -1
  327. package/dist/node/modules/bridge-model/Events/Exposed.d.ts +0 -11
  328. package/dist/node/modules/bridge-model/Events/Exposed.d.ts.map +0 -1
  329. package/dist/node/modules/bridge-model/Events/QueryFulfillFinished.d.ts +0 -15
  330. package/dist/node/modules/bridge-model/Events/QueryFulfillFinished.d.ts.map +0 -1
  331. package/dist/node/modules/bridge-model/Events/QueryFulfillStarted.d.ts +0 -13
  332. package/dist/node/modules/bridge-model/Events/QueryFulfillStarted.d.ts.map +0 -1
  333. package/dist/node/modules/bridge-model/Events/QuerySendFinished.d.ts +0 -15
  334. package/dist/node/modules/bridge-model/Events/QuerySendFinished.d.ts.map +0 -1
  335. package/dist/node/modules/bridge-model/Events/QuerySendStarted.d.ts +0 -13
  336. package/dist/node/modules/bridge-model/Events/QuerySendStarted.d.ts.map +0 -1
  337. package/dist/node/modules/bridge-model/Events/Unexposed.d.ts +0 -11
  338. package/dist/node/modules/bridge-model/Events/Unexposed.d.ts.map +0 -1
  339. package/dist/node/modules/bridge-model/Events/index.d.ts +0 -7
  340. package/dist/node/modules/bridge-model/Events/index.d.ts.map +0 -1
  341. package/dist/node/modules/bridge-model/Instance.d.ts +0 -12
  342. package/dist/node/modules/bridge-model/Instance.d.ts.map +0 -1
  343. package/dist/node/modules/bridge-model/Module.d.ts +0 -7
  344. package/dist/node/modules/bridge-model/Module.d.ts.map +0 -1
  345. package/dist/node/modules/bridge-model/Params.d.ts +0 -7
  346. package/dist/node/modules/bridge-model/Params.d.ts.map +0 -1
  347. package/dist/node/modules/bridge-model/Queries/Connect.d.ts +0 -26
  348. package/dist/node/modules/bridge-model/Queries/Connect.d.ts.map +0 -1
  349. package/dist/node/modules/bridge-model/Queries/Disconnect.d.ts +0 -26
  350. package/dist/node/modules/bridge-model/Queries/Disconnect.d.ts.map +0 -1
  351. package/dist/node/modules/bridge-model/Queries/Expose.d.ts +0 -49
  352. package/dist/node/modules/bridge-model/Queries/Expose.d.ts.map +0 -1
  353. package/dist/node/modules/bridge-model/Queries/Unexpose.d.ts +0 -26
  354. package/dist/node/modules/bridge-model/Queries/Unexpose.d.ts.map +0 -1
  355. package/dist/node/modules/bridge-model/Queries/index.d.ts +0 -14
  356. package/dist/node/modules/bridge-model/Queries/index.d.ts.map +0 -1
  357. package/dist/node/modules/bridge-model/QueryFunctions.d.ts +0 -12
  358. package/dist/node/modules/bridge-model/QueryFunctions.d.ts.map +0 -1
  359. package/dist/node/modules/bridge-model/RawQueryFunctions.d.ts +0 -11
  360. package/dist/node/modules/bridge-model/RawQueryFunctions.d.ts.map +0 -1
  361. package/dist/node/modules/bridge-model/attachable/AttachableInstance.d.ts +0 -16
  362. package/dist/node/modules/bridge-model/attachable/AttachableInstance.d.ts.map +0 -1
  363. package/dist/node/modules/bridge-model/attachable/asAttachableInstance.d.ts +0 -3
  364. package/dist/node/modules/bridge-model/attachable/asAttachableInstance.d.ts.map +0 -1
  365. package/dist/node/modules/bridge-model/attachable/index.d.ts +0 -4
  366. package/dist/node/modules/bridge-model/attachable/index.d.ts.map +0 -1
  367. package/dist/node/modules/bridge-model/attachable/isAttachableInstance.d.ts +0 -7
  368. package/dist/node/modules/bridge-model/attachable/isAttachableInstance.d.ts.map +0 -1
  369. package/dist/node/modules/bridge-model/index.d.ts +0 -13
  370. package/dist/node/modules/bridge-model/index.d.ts.map +0 -1
  371. package/dist/node/modules/bridge-model/typeChecks.d.ts +0 -21
  372. package/dist/node/modules/bridge-model/typeChecks.d.ts.map +0 -1
  373. package/dist/node/modules/bridge-wrapper/BridgeWrapper.d.ts +0 -13
  374. package/dist/node/modules/bridge-wrapper/BridgeWrapper.d.ts.map +0 -1
  375. package/dist/node/modules/bridge-wrapper/index.d.ts +0 -3
  376. package/dist/node/modules/bridge-wrapper/index.d.ts.map +0 -1
  377. package/dist/node/modules/diviner/index.d.ts +0 -4
  378. package/dist/node/modules/diviner/index.d.ts.map +0 -1
  379. package/dist/node/modules/diviner-abstract/AbstractDiviner.d.ts +0 -22
  380. package/dist/node/modules/diviner-abstract/AbstractDiviner.d.ts.map +0 -1
  381. package/dist/node/modules/diviner-abstract/index.d.ts +0 -2
  382. package/dist/node/modules/diviner-abstract/index.d.ts.map +0 -1
  383. package/dist/node/modules/diviner-boundwitness/BoundWitnessDiviner.d.ts +0 -10
  384. package/dist/node/modules/diviner-boundwitness/BoundWitnessDiviner.d.ts.map +0 -1
  385. package/dist/node/modules/diviner-boundwitness/Config.d.ts +0 -20
  386. package/dist/node/modules/diviner-boundwitness/Config.d.ts.map +0 -1
  387. package/dist/node/modules/diviner-boundwitness/MemoryBoundWitnessDiviner.d.ts +0 -52
  388. package/dist/node/modules/diviner-boundwitness/MemoryBoundWitnessDiviner.d.ts.map +0 -1
  389. package/dist/node/modules/diviner-boundwitness/Params.d.ts +0 -5
  390. package/dist/node/modules/diviner-boundwitness/Params.d.ts.map +0 -1
  391. package/dist/node/modules/diviner-boundwitness/Predicate.d.ts +0 -9
  392. package/dist/node/modules/diviner-boundwitness/Predicate.d.ts.map +0 -1
  393. package/dist/node/modules/diviner-boundwitness/Query.d.ts +0 -16
  394. package/dist/node/modules/diviner-boundwitness/Query.d.ts.map +0 -1
  395. package/dist/node/modules/diviner-boundwitness/Schema.d.ts +0 -5
  396. package/dist/node/modules/diviner-boundwitness/Schema.d.ts.map +0 -1
  397. package/dist/node/modules/diviner-boundwitness/abstract.d.ts +0 -2
  398. package/dist/node/modules/diviner-boundwitness/abstract.d.ts.map +0 -1
  399. package/dist/node/modules/diviner-boundwitness/applyBoundWitnessDivinerQueryPayload.d.ts +0 -4
  400. package/dist/node/modules/diviner-boundwitness/applyBoundWitnessDivinerQueryPayload.d.ts.map +0 -1
  401. package/dist/node/modules/diviner-boundwitness/index.d.ts +0 -4
  402. package/dist/node/modules/diviner-boundwitness/index.d.ts.map +0 -1
  403. package/dist/node/modules/diviner-boundwitness/memory.d.ts +0 -3
  404. package/dist/node/modules/diviner-boundwitness/memory.d.ts.map +0 -1
  405. package/dist/node/modules/diviner-boundwitness/model.d.ts +0 -6
  406. package/dist/node/modules/diviner-boundwitness/model.d.ts.map +0 -1
  407. package/dist/node/modules/diviner-identity/IdentityDiviner.d.ts +0 -13
  408. package/dist/node/modules/diviner-identity/IdentityDiviner.d.ts.map +0 -1
  409. package/dist/node/modules/diviner-identity/index.d.ts +0 -2
  410. package/dist/node/modules/diviner-identity/index.d.ts.map +0 -1
  411. package/dist/node/modules/diviner-model/Config.d.ts +0 -27
  412. package/dist/node/modules/diviner-model/Config.d.ts.map +0 -1
  413. package/dist/node/modules/diviner-model/DivinerQueryFunctions.d.ts +0 -9
  414. package/dist/node/modules/diviner-model/DivinerQueryFunctions.d.ts.map +0 -1
  415. package/dist/node/modules/diviner-model/EventData.d.ts +0 -5
  416. package/dist/node/modules/diviner-model/EventData.d.ts.map +0 -1
  417. package/dist/node/modules/diviner-model/EventsModels/DivineEnd.d.ts +0 -12
  418. package/dist/node/modules/diviner-model/EventsModels/DivineEnd.d.ts.map +0 -1
  419. package/dist/node/modules/diviner-model/EventsModels/DivineStart.d.ts +0 -10
  420. package/dist/node/modules/diviner-model/EventsModels/DivineStart.d.ts.map +0 -1
  421. package/dist/node/modules/diviner-model/EventsModels/index.d.ts +0 -3
  422. package/dist/node/modules/diviner-model/EventsModels/index.d.ts.map +0 -1
  423. package/dist/node/modules/diviner-model/Instance.d.ts +0 -9
  424. package/dist/node/modules/diviner-model/Instance.d.ts.map +0 -1
  425. package/dist/node/modules/diviner-model/Module.d.ts +0 -6
  426. package/dist/node/modules/diviner-model/Module.d.ts.map +0 -1
  427. package/dist/node/modules/diviner-model/Params.d.ts +0 -5
  428. package/dist/node/modules/diviner-model/Params.d.ts.map +0 -1
  429. package/dist/node/modules/diviner-model/Payload.d.ts +0 -6
  430. package/dist/node/modules/diviner-model/Payload.d.ts.map +0 -1
  431. package/dist/node/modules/diviner-model/Queries/Divine.d.ts +0 -15
  432. package/dist/node/modules/diviner-model/Queries/Divine.d.ts.map +0 -1
  433. package/dist/node/modules/diviner-model/Queries/index.d.ts +0 -6
  434. package/dist/node/modules/diviner-model/Queries/index.d.ts.map +0 -1
  435. package/dist/node/modules/diviner-model/SearchableStorage.d.ts +0 -19
  436. package/dist/node/modules/diviner-model/SearchableStorage.d.ts.map +0 -1
  437. package/dist/node/modules/diviner-model/attachable/AttachableInstance.d.ts +0 -13
  438. package/dist/node/modules/diviner-model/attachable/AttachableInstance.d.ts.map +0 -1
  439. package/dist/node/modules/diviner-model/attachable/asAttachableInstance.d.ts +0 -2
  440. package/dist/node/modules/diviner-model/attachable/asAttachableInstance.d.ts.map +0 -1
  441. package/dist/node/modules/diviner-model/attachable/index.d.ts +0 -4
  442. package/dist/node/modules/diviner-model/attachable/index.d.ts.map +0 -1
  443. package/dist/node/modules/diviner-model/attachable/isAttachableInstance.d.ts +0 -5
  444. package/dist/node/modules/diviner-model/attachable/isAttachableInstance.d.ts.map +0 -1
  445. package/dist/node/modules/diviner-model/index.d.ts +0 -13
  446. package/dist/node/modules/diviner-model/index.d.ts.map +0 -1
  447. package/dist/node/modules/diviner-model/typeChecks.d.ts +0 -12
  448. package/dist/node/modules/diviner-model/typeChecks.d.ts.map +0 -1
  449. package/dist/node/modules/diviner-payload-abstract/Diviner.d.ts +0 -9
  450. package/dist/node/modules/diviner-payload-abstract/Diviner.d.ts.map +0 -1
  451. package/dist/node/modules/diviner-payload-abstract/index.d.ts +0 -2
  452. package/dist/node/modules/diviner-payload-abstract/index.d.ts.map +0 -1
  453. package/dist/node/modules/diviner-payload-generic/Diviner.d.ts +0 -48
  454. package/dist/node/modules/diviner-payload-generic/Diviner.d.ts.map +0 -1
  455. package/dist/node/modules/diviner-payload-generic/index.d.ts +0 -2
  456. package/dist/node/modules/diviner-payload-generic/index.d.ts.map +0 -1
  457. package/dist/node/modules/diviner-payload-model/Config.d.ts +0 -24
  458. package/dist/node/modules/diviner-payload-model/Config.d.ts.map +0 -1
  459. package/dist/node/modules/diviner-payload-model/Order.d.ts +0 -2
  460. package/dist/node/modules/diviner-payload-model/Order.d.ts.map +0 -1
  461. package/dist/node/modules/diviner-payload-model/Params.d.ts +0 -5
  462. package/dist/node/modules/diviner-payload-model/Params.d.ts.map +0 -1
  463. package/dist/node/modules/diviner-payload-model/Predicate.d.ts +0 -10
  464. package/dist/node/modules/diviner-payload-model/Predicate.d.ts.map +0 -1
  465. package/dist/node/modules/diviner-payload-model/Query.d.ts +0 -25
  466. package/dist/node/modules/diviner-payload-model/Query.d.ts.map +0 -1
  467. package/dist/node/modules/diviner-payload-model/Schema.d.ts +0 -5
  468. package/dist/node/modules/diviner-payload-model/Schema.d.ts.map +0 -1
  469. package/dist/node/modules/diviner-payload-model/SortDirection.d.ts +0 -3
  470. package/dist/node/modules/diviner-payload-model/SortDirection.d.ts.map +0 -1
  471. package/dist/node/modules/diviner-payload-model/index.d.ts +0 -8
  472. package/dist/node/modules/diviner-payload-model/index.d.ts.map +0 -1
  473. package/dist/node/modules/diviner-wrapper/DivinerWrapper.d.ts +0 -13
  474. package/dist/node/modules/diviner-wrapper/DivinerWrapper.d.ts.map +0 -1
  475. package/dist/node/modules/diviner-wrapper/index.d.ts +0 -2
  476. package/dist/node/modules/diviner-wrapper/index.d.ts.map +0 -1
  477. package/dist/node/modules/manifest-wrapper/Wrapper.d.ts +0 -26
  478. package/dist/node/modules/manifest-wrapper/Wrapper.d.ts.map +0 -1
  479. package/dist/node/modules/manifest-wrapper/WrapperEx.d.ts +0 -32
  480. package/dist/node/modules/manifest-wrapper/WrapperEx.d.ts.map +0 -1
  481. package/dist/node/modules/manifest-wrapper/index.d.ts +0 -3
  482. package/dist/node/modules/manifest-wrapper/index.d.ts.map +0 -1
  483. package/dist/node/modules/module/index.d.ts +0 -7
  484. package/dist/node/modules/module/index.d.ts.map +0 -1
  485. package/dist/node/modules/module-abstract/AbstractModule.d.ts +0 -119
  486. package/dist/node/modules/module-abstract/AbstractModule.d.ts.map +0 -1
  487. package/dist/node/modules/module-abstract/AbstractModuleInstance.d.ts +0 -48
  488. package/dist/node/modules/module-abstract/AbstractModuleInstance.d.ts.map +0 -1
  489. package/dist/node/modules/module-abstract/Error.d.ts +0 -13
  490. package/dist/node/modules/module-abstract/Error.d.ts.map +0 -1
  491. package/dist/node/modules/module-abstract/LoggerModuleStatusReporter.d.ts +0 -9
  492. package/dist/node/modules/module-abstract/LoggerModuleStatusReporter.d.ts.map +0 -1
  493. package/dist/node/modules/module-abstract/QueryValidator/ModuleConfigQueryValidator.d.ts +0 -16
  494. package/dist/node/modules/module-abstract/QueryValidator/ModuleConfigQueryValidator.d.ts.map +0 -1
  495. package/dist/node/modules/module-abstract/QueryValidator/QueryValidator.d.ts +0 -7
  496. package/dist/node/modules/module-abstract/QueryValidator/QueryValidator.d.ts.map +0 -1
  497. package/dist/node/modules/module-abstract/QueryValidator/SupportedQueryValidator.d.ts +0 -10
  498. package/dist/node/modules/module-abstract/QueryValidator/SupportedQueryValidator.d.ts.map +0 -1
  499. package/dist/node/modules/module-abstract/QueryValidator/index.d.ts +0 -4
  500. package/dist/node/modules/module-abstract/QueryValidator/index.d.ts.map +0 -1
  501. package/dist/node/modules/module-abstract/index.d.ts +0 -6
  502. package/dist/node/modules/module-abstract/index.d.ts.map +0 -1
  503. package/dist/node/modules/module-event-emitter/ModuleBaseEmitter.d.ts +0 -5
  504. package/dist/node/modules/module-event-emitter/ModuleBaseEmitter.d.ts.map +0 -1
  505. package/dist/node/modules/module-event-emitter/index.d.ts +0 -2
  506. package/dist/node/modules/module-event-emitter/index.d.ts.map +0 -1
  507. package/dist/node/modules/module-factory-locator/ModuleFactoryLocator.d.ts +0 -44
  508. package/dist/node/modules/module-factory-locator/ModuleFactoryLocator.d.ts.map +0 -1
  509. package/dist/node/modules/module-factory-locator/index.d.ts +0 -3
  510. package/dist/node/modules/module-factory-locator/index.d.ts.map +0 -1
  511. package/dist/node/modules/module-factory-locator/standardCreatableFactories.d.ts +0 -4
  512. package/dist/node/modules/module-factory-locator/standardCreatableFactories.d.ts.map +0 -1
  513. package/dist/node/modules/module-model/Config/Archiving.d.ts +0 -11
  514. package/dist/node/modules/module-model/Config/Archiving.d.ts.map +0 -1
  515. package/dist/node/modules/module-model/Config/Config.d.ts +0 -28
  516. package/dist/node/modules/module-model/Config/Config.d.ts.map +0 -1
  517. package/dist/node/modules/module-model/Config/Fields.d.ts +0 -24
  518. package/dist/node/modules/module-model/Config/Fields.d.ts.map +0 -1
  519. package/dist/node/modules/module-model/Config/Reentrancy.d.ts +0 -9
  520. package/dist/node/modules/module-model/Config/Reentrancy.d.ts.map +0 -1
  521. package/dist/node/modules/module-model/Config/Security.d.ts +0 -10
  522. package/dist/node/modules/module-model/Config/Security.d.ts.map +0 -1
  523. package/dist/node/modules/module-model/Config/index.d.ts +0 -6
  524. package/dist/node/modules/module-model/Config/index.d.ts.map +0 -1
  525. package/dist/node/modules/module-model/CreatableModule/CreatableModule.d.ts +0 -27
  526. package/dist/node/modules/module-model/CreatableModule/CreatableModule.d.ts.map +0 -1
  527. package/dist/node/modules/module-model/CreatableModule/CreatableModuleRegistry.d.ts +0 -12
  528. package/dist/node/modules/module-model/CreatableModule/CreatableModuleRegistry.d.ts.map +0 -1
  529. package/dist/node/modules/module-model/CreatableModule/LabeledCreatableModule.d.ts +0 -14
  530. package/dist/node/modules/module-model/CreatableModule/LabeledCreatableModule.d.ts.map +0 -1
  531. package/dist/node/modules/module-model/CreatableModule/LabeledCreatableModuleFactory.d.ts +0 -12
  532. package/dist/node/modules/module-model/CreatableModule/LabeledCreatableModuleFactory.d.ts.map +0 -1
  533. package/dist/node/modules/module-model/CreatableModule/ModuleFactory.d.ts +0 -17
  534. package/dist/node/modules/module-model/CreatableModule/ModuleFactory.d.ts.map +0 -1
  535. package/dist/node/modules/module-model/CreatableModule/index.d.ts +0 -6
  536. package/dist/node/modules/module-model/CreatableModule/index.d.ts.map +0 -1
  537. package/dist/node/modules/module-model/DetailsError.d.ts +0 -6
  538. package/dist/node/modules/module-model/DetailsError.d.ts.map +0 -1
  539. package/dist/node/modules/module-model/EventsModels/ModuleBusy.d.ts +0 -9
  540. package/dist/node/modules/module-model/EventsModels/ModuleBusy.d.ts.map +0 -1
  541. package/dist/node/modules/module-model/EventsModels/ModuleError.d.ts +0 -9
  542. package/dist/node/modules/module-model/EventsModels/ModuleError.d.ts.map +0 -1
  543. package/dist/node/modules/module-model/EventsModels/ModuleEventArgs.d.ts +0 -6
  544. package/dist/node/modules/module-model/EventsModels/ModuleEventArgs.d.ts.map +0 -1
  545. package/dist/node/modules/module-model/EventsModels/ModuleEventData.d.ts +0 -6
  546. package/dist/node/modules/module-model/EventsModels/ModuleEventData.d.ts.map +0 -1
  547. package/dist/node/modules/module-model/EventsModels/ModuleQueried.d.ts +0 -13
  548. package/dist/node/modules/module-model/EventsModels/ModuleQueried.d.ts.map +0 -1
  549. package/dist/node/modules/module-model/EventsModels/index.d.ts +0 -6
  550. package/dist/node/modules/module-model/EventsModels/index.d.ts.map +0 -1
  551. package/dist/node/modules/module-model/Job/Job.d.ts +0 -12
  552. package/dist/node/modules/module-model/Job/Job.d.ts.map +0 -1
  553. package/dist/node/modules/module-model/Job/JobProvider.d.ts +0 -5
  554. package/dist/node/modules/module-model/Job/JobProvider.d.ts.map +0 -1
  555. package/dist/node/modules/module-model/Job/JobQueue.d.ts +0 -13
  556. package/dist/node/modules/module-model/Job/JobQueue.d.ts.map +0 -1
  557. package/dist/node/modules/module-model/Job/Task.d.ts +0 -2
  558. package/dist/node/modules/module-model/Job/Task.d.ts.map +0 -1
  559. package/dist/node/modules/module-model/Job/index.d.ts +0 -4
  560. package/dist/node/modules/module-model/Job/index.d.ts.map +0 -1
  561. package/dist/node/modules/module-model/Labels/Labels.d.ts +0 -24
  562. package/dist/node/modules/module-model/Labels/Labels.d.ts.map +0 -1
  563. package/dist/node/modules/module-model/Labels/index.d.ts +0 -3
  564. package/dist/node/modules/module-model/Labels/index.d.ts.map +0 -1
  565. package/dist/node/modules/module-model/Labels/standard/View.d.ts +0 -6
  566. package/dist/node/modules/module-model/Labels/standard/View.d.ts.map +0 -1
  567. package/dist/node/modules/module-model/Labels/standard/index.d.ts +0 -2
  568. package/dist/node/modules/module-model/Labels/standard/index.d.ts.map +0 -1
  569. package/dist/node/modules/module-model/ModuleDescription.d.ts +0 -9
  570. package/dist/node/modules/module-model/ModuleDescription.d.ts.map +0 -1
  571. package/dist/node/modules/module-model/ModuleFactoryLocatorInstance.d.ts +0 -37
  572. package/dist/node/modules/module-model/ModuleFactoryLocatorInstance.d.ts.map +0 -1
  573. package/dist/node/modules/module-model/ModuleIdentifier.d.ts +0 -43
  574. package/dist/node/modules/module-model/ModuleIdentifier.d.ts.map +0 -1
  575. package/dist/node/modules/module-model/ModuleIdentifierTransformer.d.ts +0 -7
  576. package/dist/node/modules/module-model/ModuleIdentifierTransformer.d.ts.map +0 -1
  577. package/dist/node/modules/module-model/ModuleQueryHandlerResult.d.ts +0 -3
  578. package/dist/node/modules/module-model/ModuleQueryHandlerResult.d.ts.map +0 -1
  579. package/dist/node/modules/module-model/ModuleQueryResult.d.ts +0 -7
  580. package/dist/node/modules/module-model/ModuleQueryResult.d.ts.map +0 -1
  581. package/dist/node/modules/module-model/ModuleStatusReporter.d.ts +0 -4
  582. package/dist/node/modules/module-model/ModuleStatusReporter.d.ts.map +0 -1
  583. package/dist/node/modules/module-model/Payload/Address.d.ts +0 -48
  584. package/dist/node/modules/module-model/Payload/Address.d.ts.map +0 -1
  585. package/dist/node/modules/module-model/Payload/AddressPreviousHash.d.ts +0 -17
  586. package/dist/node/modules/module-model/Payload/AddressPreviousHash.d.ts.map +0 -1
  587. package/dist/node/modules/module-model/Payload/Description.d.ts +0 -15
  588. package/dist/node/modules/module-model/Payload/Description.d.ts.map +0 -1
  589. package/dist/node/modules/module-model/Payload/ModuleState.d.ts +0 -23
  590. package/dist/node/modules/module-model/Payload/ModuleState.d.ts.map +0 -1
  591. package/dist/node/modules/module-model/Payload/index.d.ts +0 -5
  592. package/dist/node/modules/module-model/Payload/index.d.ts.map +0 -1
  593. package/dist/node/modules/module-model/Queries/Manifest.d.ts +0 -17
  594. package/dist/node/modules/module-model/Queries/Manifest.d.ts.map +0 -1
  595. package/dist/node/modules/module-model/Queries/ModuleAddress/Query.d.ts +0 -15
  596. package/dist/node/modules/module-model/Queries/ModuleAddress/Query.d.ts.map +0 -1
  597. package/dist/node/modules/module-model/Queries/ModuleAddress/index.d.ts +0 -2
  598. package/dist/node/modules/module-model/Queries/ModuleAddress/index.d.ts.map +0 -1
  599. package/dist/node/modules/module-model/Queries/State.d.ts +0 -15
  600. package/dist/node/modules/module-model/Queries/State.d.ts.map +0 -1
  601. package/dist/node/modules/module-model/Queries/Subscribe.d.ts +0 -23
  602. package/dist/node/modules/module-model/Queries/Subscribe.d.ts.map +0 -1
  603. package/dist/node/modules/module-model/Queries/index.d.ts +0 -10
  604. package/dist/node/modules/module-model/Queries/index.d.ts.map +0 -1
  605. package/dist/node/modules/module-model/QueryableModule/IsQueryableModuleFactory.d.ts +0 -12
  606. package/dist/node/modules/module-model/QueryableModule/IsQueryableModuleFactory.d.ts.map +0 -1
  607. package/dist/node/modules/module-model/QueryableModule/QueryableModule.d.ts +0 -10
  608. package/dist/node/modules/module-model/QueryableModule/QueryableModule.d.ts.map +0 -1
  609. package/dist/node/modules/module-model/QueryableModule/QueryableModuleFields.d.ts +0 -22
  610. package/dist/node/modules/module-model/QueryableModule/QueryableModuleFields.d.ts.map +0 -1
  611. package/dist/node/modules/module-model/QueryableModule/QueryableModuleFunctions.d.ts +0 -15
  612. package/dist/node/modules/module-model/QueryableModule/QueryableModuleFunctions.d.ts.map +0 -1
  613. package/dist/node/modules/module-model/QueryableModule/QueryableModuleParams.d.ts +0 -19
  614. package/dist/node/modules/module-model/QueryableModule/QueryableModuleParams.d.ts.map +0 -1
  615. package/dist/node/modules/module-model/QueryableModule/asQueryableModule.d.ts +0 -9
  616. package/dist/node/modules/module-model/QueryableModule/asQueryableModule.d.ts.map +0 -1
  617. package/dist/node/modules/module-model/QueryableModule/asQueryableModuleObject.d.ts +0 -9
  618. package/dist/node/modules/module-model/QueryableModule/asQueryableModuleObject.d.ts.map +0 -1
  619. package/dist/node/modules/module-model/QueryableModule/index.d.ts +0 -10
  620. package/dist/node/modules/module-model/QueryableModule/index.d.ts.map +0 -1
  621. package/dist/node/modules/module-model/QueryableModule/isQueryableModule.d.ts +0 -10
  622. package/dist/node/modules/module-model/QueryableModule/isQueryableModule.d.ts.map +0 -1
  623. package/dist/node/modules/module-model/QueryableModule/isQueryableModuleObject.d.ts +0 -9
  624. package/dist/node/modules/module-model/QueryableModule/isQueryableModuleObject.d.ts.map +0 -1
  625. package/dist/node/modules/module-model/cache.d.ts +0 -6
  626. package/dist/node/modules/module-model/cache.d.ts.map +0 -1
  627. package/dist/node/modules/module-model/index.d.ts +0 -21
  628. package/dist/node/modules/module-model/index.d.ts.map +0 -1
  629. package/dist/node/modules/module-model/instance/Instance.d.ts +0 -38
  630. package/dist/node/modules/module-model/instance/Instance.d.ts.map +0 -1
  631. package/dist/node/modules/module-model/instance/ModuleFilter.d.ts +0 -14
  632. package/dist/node/modules/module-model/instance/ModuleFilter.d.ts.map +0 -1
  633. package/dist/node/modules/module-model/instance/ModuleInstanceParams.d.ts +0 -10
  634. package/dist/node/modules/module-model/instance/ModuleInstanceParams.d.ts.map +0 -1
  635. package/dist/node/modules/module-model/instance/ModuleRepository.d.ts +0 -10
  636. package/dist/node/modules/module-model/instance/ModuleRepository.d.ts.map +0 -1
  637. package/dist/node/modules/module-model/instance/ModuleResolver.d.ts +0 -18
  638. package/dist/node/modules/module-model/instance/ModuleResolver.d.ts.map +0 -1
  639. package/dist/node/modules/module-model/instance/ObjectFilter.d.ts +0 -30
  640. package/dist/node/modules/module-model/instance/ObjectFilter.d.ts.map +0 -1
  641. package/dist/node/modules/module-model/instance/ObjectResolver.d.ts +0 -27
  642. package/dist/node/modules/module-model/instance/ObjectResolver.d.ts.map +0 -1
  643. package/dist/node/modules/module-model/instance/asModuleInstance.d.ts +0 -7
  644. package/dist/node/modules/module-model/instance/asModuleInstance.d.ts.map +0 -1
  645. package/dist/node/modules/module-model/instance/attachable/AttachableInstance.d.ts +0 -16
  646. package/dist/node/modules/module-model/instance/attachable/AttachableInstance.d.ts.map +0 -1
  647. package/dist/node/modules/module-model/instance/attachable/asAttachableInstance.d.ts +0 -4
  648. package/dist/node/modules/module-model/instance/attachable/asAttachableInstance.d.ts.map +0 -1
  649. package/dist/node/modules/module-model/instance/attachable/index.d.ts +0 -4
  650. package/dist/node/modules/module-model/instance/attachable/index.d.ts.map +0 -1
  651. package/dist/node/modules/module-model/instance/attachable/isAttachableInstance.d.ts +0 -5
  652. package/dist/node/modules/module-model/instance/attachable/isAttachableInstance.d.ts.map +0 -1
  653. package/dist/node/modules/module-model/instance/index.d.ts +0 -11
  654. package/dist/node/modules/module-model/instance/index.d.ts.map +0 -1
  655. package/dist/node/modules/module-model/instance/isModuleInstance.d.ts +0 -5
  656. package/dist/node/modules/module-model/instance/isModuleInstance.d.ts.map +0 -1
  657. package/dist/node/modules/module-model/lib/duplicateModules.d.ts +0 -12
  658. package/dist/node/modules/module-model/lib/duplicateModules.d.ts.map +0 -1
  659. package/dist/node/modules/module-model/lib/index.d.ts +0 -3
  660. package/dist/node/modules/module-model/lib/index.d.ts.map +0 -1
  661. package/dist/node/modules/module-model/lib/serializable.d.ts +0 -2
  662. package/dist/node/modules/module-model/lib/serializable.d.ts.map +0 -1
  663. package/dist/node/modules/module-model/withModule.d.ts +0 -6
  664. package/dist/node/modules/module-model/withModule.d.ts.map +0 -1
  665. package/dist/node/modules/module-resolver/AbstractModuleResolver.d.ts +0 -24
  666. package/dist/node/modules/module-resolver/AbstractModuleResolver.d.ts.map +0 -1
  667. package/dist/node/modules/module-resolver/CompositeModuleResolver.d.ts +0 -35
  668. package/dist/node/modules/module-resolver/CompositeModuleResolver.d.ts.map +0 -1
  669. package/dist/node/modules/module-resolver/NameRegistrarTransformer.d.ts +0 -10
  670. package/dist/node/modules/module-resolver/NameRegistrarTransformer.d.ts.map +0 -1
  671. package/dist/node/modules/module-resolver/ResolveHelper/ResolveHelper.d.ts +0 -27
  672. package/dist/node/modules/module-resolver/ResolveHelper/ResolveHelper.d.ts.map +0 -1
  673. package/dist/node/modules/module-resolver/ResolveHelper/ResolveHelperStatic.d.ts +0 -7
  674. package/dist/node/modules/module-resolver/ResolveHelper/ResolveHelperStatic.d.ts.map +0 -1
  675. package/dist/node/modules/module-resolver/ResolveHelper/index.d.ts +0 -10
  676. package/dist/node/modules/module-resolver/ResolveHelper/index.d.ts.map +0 -1
  677. package/dist/node/modules/module-resolver/ResolveHelper/model.d.ts +0 -2
  678. package/dist/node/modules/module-resolver/ResolveHelper/model.d.ts.map +0 -1
  679. package/dist/node/modules/module-resolver/ResolveHelper/resolveAddressToInstance.d.ts +0 -9
  680. package/dist/node/modules/module-resolver/ResolveHelper/resolveAddressToInstance.d.ts.map +0 -1
  681. package/dist/node/modules/module-resolver/ResolveHelper/resolveAll.d.ts +0 -6
  682. package/dist/node/modules/module-resolver/ResolveHelper/resolveAll.d.ts.map +0 -1
  683. package/dist/node/modules/module-resolver/ResolveHelper/resolveLocalNameToAddress.d.ts +0 -8
  684. package/dist/node/modules/module-resolver/ResolveHelper/resolveLocalNameToAddress.d.ts.map +0 -1
  685. package/dist/node/modules/module-resolver/ResolveHelper/resolveLocalNameToInstance.d.ts +0 -7
  686. package/dist/node/modules/module-resolver/ResolveHelper/resolveLocalNameToInstance.d.ts.map +0 -1
  687. package/dist/node/modules/module-resolver/ResolveHelper/resolvePathToAddress.d.ts +0 -4
  688. package/dist/node/modules/module-resolver/ResolveHelper/resolvePathToAddress.d.ts.map +0 -1
  689. package/dist/node/modules/module-resolver/ResolveHelper/resolvePathToInstance.d.ts +0 -3
  690. package/dist/node/modules/module-resolver/ResolveHelper/resolvePathToInstance.d.ts.map +0 -1
  691. package/dist/node/modules/module-resolver/ResolveHelper/transformModuleIdentifier.d.ts +0 -3
  692. package/dist/node/modules/module-resolver/ResolveHelper/transformModuleIdentifier.d.ts.map +0 -1
  693. package/dist/node/modules/module-resolver/ResolverEventEmitter.d.ts +0 -10
  694. package/dist/node/modules/module-resolver/ResolverEventEmitter.d.ts.map +0 -1
  695. package/dist/node/modules/module-resolver/SimpleModuleResolver.d.ts +0 -27
  696. package/dist/node/modules/module-resolver/SimpleModuleResolver.d.ts.map +0 -1
  697. package/dist/node/modules/module-resolver/index.d.ts +0 -7
  698. package/dist/node/modules/module-resolver/index.d.ts.map +0 -1
  699. package/dist/node/modules/module-wrapper/ModuleWrapper.d.ts +0 -104
  700. package/dist/node/modules/module-wrapper/ModuleWrapper.d.ts.map +0 -1
  701. package/dist/node/modules/module-wrapper/index.d.ts +0 -3
  702. package/dist/node/modules/module-wrapper/index.d.ts.map +0 -1
  703. package/dist/node/modules/module-wrapper/models.d.ts +0 -9
  704. package/dist/node/modules/module-wrapper/models.d.ts.map +0 -1
  705. package/dist/node/modules/modules/index.d.ts +0 -14
  706. package/dist/node/modules/modules/index.d.ts.map +0 -1
  707. package/dist/node/modules/node/index.d.ts +0 -5
  708. package/dist/node/modules/node/index.d.ts.map +0 -1
  709. package/dist/node/modules/node-abstract/AbstractNode.d.ts +0 -36
  710. package/dist/node/modules/node-abstract/AbstractNode.d.ts.map +0 -1
  711. package/dist/node/modules/node-abstract/NodeHelper/index.d.ts +0 -7
  712. package/dist/node/modules/node-abstract/NodeHelper/index.d.ts.map +0 -1
  713. package/dist/node/modules/node-abstract/index.d.ts +0 -3
  714. package/dist/node/modules/node-abstract/index.d.ts.map +0 -1
  715. package/dist/node/modules/node-memory/MemoryNode.d.ts +0 -47
  716. package/dist/node/modules/node-memory/MemoryNode.d.ts.map +0 -1
  717. package/dist/node/modules/node-memory/NodeHelper/index.d.ts +0 -14
  718. package/dist/node/modules/node-memory/NodeHelper/index.d.ts.map +0 -1
  719. package/dist/node/modules/node-memory/index.d.ts +0 -3
  720. package/dist/node/modules/node-memory/index.d.ts.map +0 -1
  721. package/dist/node/modules/node-model/ChildCertification.d.ts +0 -19
  722. package/dist/node/modules/node-model/ChildCertification.d.ts.map +0 -1
  723. package/dist/node/modules/node-model/Config.d.ts +0 -21
  724. package/dist/node/modules/node-model/Config.d.ts.map +0 -1
  725. package/dist/node/modules/node-model/EventsModels/ModuleAttached.d.ts +0 -7
  726. package/dist/node/modules/node-model/EventsModels/ModuleAttached.d.ts.map +0 -1
  727. package/dist/node/modules/node-model/EventsModels/ModuleDetached.d.ts +0 -7
  728. package/dist/node/modules/node-model/EventsModels/ModuleDetached.d.ts.map +0 -1
  729. package/dist/node/modules/node-model/EventsModels/ModuleRegistered.d.ts +0 -7
  730. package/dist/node/modules/node-model/EventsModels/ModuleRegistered.d.ts.map +0 -1
  731. package/dist/node/modules/node-model/EventsModels/ModuleUnregistered.d.ts +0 -7
  732. package/dist/node/modules/node-model/EventsModels/ModuleUnregistered.d.ts.map +0 -1
  733. package/dist/node/modules/node-model/EventsModels/index.d.ts +0 -5
  734. package/dist/node/modules/node-model/EventsModels/index.d.ts.map +0 -1
  735. package/dist/node/modules/node-model/Node.d.ts +0 -8
  736. package/dist/node/modules/node-model/Node.d.ts.map +0 -1
  737. package/dist/node/modules/node-model/Params.d.ts +0 -7
  738. package/dist/node/modules/node-model/Params.d.ts.map +0 -1
  739. package/dist/node/modules/node-model/Queries/Attach.d.ts +0 -19
  740. package/dist/node/modules/node-model/Queries/Attach.d.ts.map +0 -1
  741. package/dist/node/modules/node-model/Queries/Attached.d.ts +0 -15
  742. package/dist/node/modules/node-model/Queries/Attached.d.ts.map +0 -1
  743. package/dist/node/modules/node-model/Queries/Certify.d.ts +0 -18
  744. package/dist/node/modules/node-model/Queries/Certify.d.ts.map +0 -1
  745. package/dist/node/modules/node-model/Queries/Detach.d.ts +0 -18
  746. package/dist/node/modules/node-model/Queries/Detach.d.ts.map +0 -1
  747. package/dist/node/modules/node-model/Queries/Registered.d.ts +0 -15
  748. package/dist/node/modules/node-model/Queries/Registered.d.ts.map +0 -1
  749. package/dist/node/modules/node-model/Queries/index.d.ts +0 -14
  750. package/dist/node/modules/node-model/Queries/index.d.ts.map +0 -1
  751. package/dist/node/modules/node-model/attachable/AttachableInstance.d.ts +0 -12
  752. package/dist/node/modules/node-model/attachable/AttachableInstance.d.ts.map +0 -1
  753. package/dist/node/modules/node-model/attachable/asAttachableInstance.d.ts +0 -2
  754. package/dist/node/modules/node-model/attachable/asAttachableInstance.d.ts.map +0 -1
  755. package/dist/node/modules/node-model/attachable/index.d.ts +0 -4
  756. package/dist/node/modules/node-model/attachable/index.d.ts.map +0 -1
  757. package/dist/node/modules/node-model/attachable/isAttachableInstance.d.ts +0 -5
  758. package/dist/node/modules/node-model/attachable/isAttachableInstance.d.ts.map +0 -1
  759. package/dist/node/modules/node-model/index.d.ts +0 -10
  760. package/dist/node/modules/node-model/index.d.ts.map +0 -1
  761. package/dist/node/modules/node-model/instance.d.ts +0 -25
  762. package/dist/node/modules/node-model/instance.d.ts.map +0 -1
  763. package/dist/node/modules/node-model/typeChecks.d.ts +0 -12
  764. package/dist/node/modules/node-model/typeChecks.d.ts.map +0 -1
  765. package/dist/node/modules/node-view/ViewNode.d.ts +0 -56
  766. package/dist/node/modules/node-view/ViewNode.d.ts.map +0 -1
  767. package/dist/node/modules/node-view/index.d.ts +0 -2
  768. package/dist/node/modules/node-view/index.d.ts.map +0 -1
  769. package/dist/node/modules/node-wrapper/NodeWrapper.d.ts +0 -25
  770. package/dist/node/modules/node-wrapper/NodeWrapper.d.ts.map +0 -1
  771. package/dist/node/modules/node-wrapper/index.d.ts +0 -2
  772. package/dist/node/modules/node-wrapper/index.d.ts.map +0 -1
  773. package/dist/node/modules/payloadset-plugin/Plugin.d.ts +0 -27
  774. package/dist/node/modules/payloadset-plugin/Plugin.d.ts.map +0 -1
  775. package/dist/node/modules/payloadset-plugin/Resolver.d.ts +0 -24
  776. package/dist/node/modules/payloadset-plugin/Resolver.d.ts.map +0 -1
  777. package/dist/node/modules/payloadset-plugin/createPlugin.d.ts +0 -8
  778. package/dist/node/modules/payloadset-plugin/createPlugin.d.ts.map +0 -1
  779. package/dist/node/modules/payloadset-plugin/index.d.ts +0 -4
  780. package/dist/node/modules/payloadset-plugin/index.d.ts.map +0 -1
  781. package/dist/node/modules/sentinel/index.d.ts +0 -5
  782. package/dist/node/modules/sentinel/index.d.ts.map +0 -1
  783. package/dist/node/modules/sentinel-abstract/AbstractSentinel.d.ts +0 -21
  784. package/dist/node/modules/sentinel-abstract/AbstractSentinel.d.ts.map +0 -1
  785. package/dist/node/modules/sentinel-abstract/index.d.ts +0 -2
  786. package/dist/node/modules/sentinel-abstract/index.d.ts.map +0 -1
  787. package/dist/node/modules/sentinel-memory/MemorySentinel.d.ts +0 -17
  788. package/dist/node/modules/sentinel-memory/MemorySentinel.d.ts.map +0 -1
  789. package/dist/node/modules/sentinel-memory/SentinelIntervalAutomationWrapper.d.ts +0 -21
  790. package/dist/node/modules/sentinel-memory/SentinelIntervalAutomationWrapper.d.ts.map +0 -1
  791. package/dist/node/modules/sentinel-memory/SentinelRunner.d.ts +0 -30
  792. package/dist/node/modules/sentinel-memory/SentinelRunner.d.ts.map +0 -1
  793. package/dist/node/modules/sentinel-memory/index.d.ts +0 -4
  794. package/dist/node/modules/sentinel-memory/index.d.ts.map +0 -1
  795. package/dist/node/modules/sentinel-model/Automation.d.ts +0 -48
  796. package/dist/node/modules/sentinel-model/Automation.d.ts.map +0 -1
  797. package/dist/node/modules/sentinel-model/Config.d.ts +0 -32
  798. package/dist/node/modules/sentinel-model/Config.d.ts.map +0 -1
  799. package/dist/node/modules/sentinel-model/EventData.d.ts +0 -5
  800. package/dist/node/modules/sentinel-model/EventData.d.ts.map +0 -1
  801. package/dist/node/modules/sentinel-model/EventsModels/JobEnd.d.ts +0 -11
  802. package/dist/node/modules/sentinel-model/EventsModels/JobEnd.d.ts.map +0 -1
  803. package/dist/node/modules/sentinel-model/EventsModels/JobStart.d.ts +0 -10
  804. package/dist/node/modules/sentinel-model/EventsModels/JobStart.d.ts.map +0 -1
  805. package/dist/node/modules/sentinel-model/EventsModels/ReportEnd.d.ts +0 -12
  806. package/dist/node/modules/sentinel-model/EventsModels/ReportEnd.d.ts.map +0 -1
  807. package/dist/node/modules/sentinel-model/EventsModels/ReportStart.d.ts +0 -10
  808. package/dist/node/modules/sentinel-model/EventsModels/ReportStart.d.ts.map +0 -1
  809. package/dist/node/modules/sentinel-model/EventsModels/TaskEnd.d.ts +0 -13
  810. package/dist/node/modules/sentinel-model/EventsModels/TaskEnd.d.ts.map +0 -1
  811. package/dist/node/modules/sentinel-model/EventsModels/TaskStart.d.ts +0 -12
  812. package/dist/node/modules/sentinel-model/EventsModels/TaskStart.d.ts.map +0 -1
  813. package/dist/node/modules/sentinel-model/EventsModels/index.d.ts +0 -7
  814. package/dist/node/modules/sentinel-model/EventsModels/index.d.ts.map +0 -1
  815. package/dist/node/modules/sentinel-model/Instance.d.ts +0 -10
  816. package/dist/node/modules/sentinel-model/Instance.d.ts.map +0 -1
  817. package/dist/node/modules/sentinel-model/Job.d.ts +0 -5
  818. package/dist/node/modules/sentinel-model/Job.d.ts.map +0 -1
  819. package/dist/node/modules/sentinel-model/Module.d.ts +0 -8
  820. package/dist/node/modules/sentinel-model/Module.d.ts.map +0 -1
  821. package/dist/node/modules/sentinel-model/Params.d.ts +0 -5
  822. package/dist/node/modules/sentinel-model/Params.d.ts.map +0 -1
  823. package/dist/node/modules/sentinel-model/Queries/Report.d.ts +0 -15
  824. package/dist/node/modules/sentinel-model/Queries/Report.d.ts.map +0 -1
  825. package/dist/node/modules/sentinel-model/Queries/index.d.ts +0 -6
  826. package/dist/node/modules/sentinel-model/Queries/index.d.ts.map +0 -1
  827. package/dist/node/modules/sentinel-model/ResolvedTask.d.ts +0 -14
  828. package/dist/node/modules/sentinel-model/ResolvedTask.d.ts.map +0 -1
  829. package/dist/node/modules/sentinel-model/Sentinel.d.ts +0 -8
  830. package/dist/node/modules/sentinel-model/Sentinel.d.ts.map +0 -1
  831. package/dist/node/modules/sentinel-model/Task.d.ts +0 -15
  832. package/dist/node/modules/sentinel-model/Task.d.ts.map +0 -1
  833. package/dist/node/modules/sentinel-model/attachable/AttachableInstance.d.ts +0 -13
  834. package/dist/node/modules/sentinel-model/attachable/AttachableInstance.d.ts.map +0 -1
  835. package/dist/node/modules/sentinel-model/attachable/asAttachableInstance.d.ts +0 -2
  836. package/dist/node/modules/sentinel-model/attachable/asAttachableInstance.d.ts.map +0 -1
  837. package/dist/node/modules/sentinel-model/attachable/index.d.ts +0 -4
  838. package/dist/node/modules/sentinel-model/attachable/index.d.ts.map +0 -1
  839. package/dist/node/modules/sentinel-model/attachable/isAttachableInstance.d.ts +0 -5
  840. package/dist/node/modules/sentinel-model/attachable/isAttachableInstance.d.ts.map +0 -1
  841. package/dist/node/modules/sentinel-model/index.d.ts +0 -15
  842. package/dist/node/modules/sentinel-model/index.d.ts.map +0 -1
  843. package/dist/node/modules/sentinel-model/typeChecks.d.ts +0 -11
  844. package/dist/node/modules/sentinel-model/typeChecks.d.ts.map +0 -1
  845. package/dist/node/modules/sentinel-wrapper/Wrapper.d.ts +0 -17
  846. package/dist/node/modules/sentinel-wrapper/Wrapper.d.ts.map +0 -1
  847. package/dist/node/modules/sentinel-wrapper/index.d.ts +0 -2
  848. package/dist/node/modules/sentinel-wrapper/index.d.ts.map +0 -1
  849. package/dist/node/modules/witness/index.d.ts +0 -4
  850. package/dist/node/modules/witness/index.d.ts.map +0 -1
  851. package/dist/node/modules/witness-abstract/AbstractWitness.d.ts +0 -21
  852. package/dist/node/modules/witness-abstract/AbstractWitness.d.ts.map +0 -1
  853. package/dist/node/modules/witness-abstract/index.d.ts +0 -2
  854. package/dist/node/modules/witness-abstract/index.d.ts.map +0 -1
  855. package/dist/node/modules/witness-adhoc/Witness.d.ts +0 -28
  856. package/dist/node/modules/witness-adhoc/Witness.d.ts.map +0 -1
  857. package/dist/node/modules/witness-adhoc/index.d.ts +0 -2
  858. package/dist/node/modules/witness-adhoc/index.d.ts.map +0 -1
  859. package/dist/node/modules/witness-model/Config.d.ts +0 -21
  860. package/dist/node/modules/witness-model/Config.d.ts.map +0 -1
  861. package/dist/node/modules/witness-model/CustomInstance.d.ts +0 -9
  862. package/dist/node/modules/witness-model/CustomInstance.d.ts.map +0 -1
  863. package/dist/node/modules/witness-model/CustomModule.d.ts +0 -7
  864. package/dist/node/modules/witness-model/CustomModule.d.ts.map +0 -1
  865. package/dist/node/modules/witness-model/EventData.d.ts +0 -5
  866. package/dist/node/modules/witness-model/EventData.d.ts.map +0 -1
  867. package/dist/node/modules/witness-model/EventsModels/ObserveEnd.d.ts +0 -12
  868. package/dist/node/modules/witness-model/EventsModels/ObserveEnd.d.ts.map +0 -1
  869. package/dist/node/modules/witness-model/EventsModels/ObserveStart.d.ts +0 -10
  870. package/dist/node/modules/witness-model/EventsModels/ObserveStart.d.ts.map +0 -1
  871. package/dist/node/modules/witness-model/EventsModels/index.d.ts +0 -3
  872. package/dist/node/modules/witness-model/EventsModels/index.d.ts.map +0 -1
  873. package/dist/node/modules/witness-model/Instance.d.ts +0 -9
  874. package/dist/node/modules/witness-model/Instance.d.ts.map +0 -1
  875. package/dist/node/modules/witness-model/Module.d.ts +0 -6
  876. package/dist/node/modules/witness-model/Module.d.ts.map +0 -1
  877. package/dist/node/modules/witness-model/Params.d.ts +0 -5
  878. package/dist/node/modules/witness-model/Params.d.ts.map +0 -1
  879. package/dist/node/modules/witness-model/Queries/Observe.d.ts +0 -17
  880. package/dist/node/modules/witness-model/Queries/Observe.d.ts.map +0 -1
  881. package/dist/node/modules/witness-model/Queries/index.d.ts +0 -6
  882. package/dist/node/modules/witness-model/Queries/index.d.ts.map +0 -1
  883. package/dist/node/modules/witness-model/QueryFunctions.d.ts +0 -8
  884. package/dist/node/modules/witness-model/QueryFunctions.d.ts.map +0 -1
  885. package/dist/node/modules/witness-model/attachable/AttachableInstance.d.ts +0 -13
  886. package/dist/node/modules/witness-model/attachable/AttachableInstance.d.ts.map +0 -1
  887. package/dist/node/modules/witness-model/attachable/asAttachableInstance.d.ts +0 -2
  888. package/dist/node/modules/witness-model/attachable/asAttachableInstance.d.ts.map +0 -1
  889. package/dist/node/modules/witness-model/attachable/index.d.ts +0 -4
  890. package/dist/node/modules/witness-model/attachable/index.d.ts.map +0 -1
  891. package/dist/node/modules/witness-model/attachable/isAttachableInstance.d.ts +0 -5
  892. package/dist/node/modules/witness-model/attachable/isAttachableInstance.d.ts.map +0 -1
  893. package/dist/node/modules/witness-model/index.d.ts +0 -13
  894. package/dist/node/modules/witness-model/index.d.ts.map +0 -1
  895. package/dist/node/modules/witness-model/typeChecks.d.ts +0 -12
  896. package/dist/node/modules/witness-model/typeChecks.d.ts.map +0 -1
  897. package/dist/node/modules/witness-wrapper/WitnessWrapper.d.ts +0 -13
  898. package/dist/node/modules/witness-wrapper/WitnessWrapper.d.ts.map +0 -1
  899. package/dist/node/modules/witness-wrapper/index.d.ts +0 -2
  900. 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,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,M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gBAAe,CAAC,KAAK,cAAc,CAAC,CAAC;AAChH,WAAO,qCAAqC,QAAQ,GAAG;AAAA,EACzD;AACF;",
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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N,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 (node2, name, external2) => {
29
- const externalConflict = external2 ? await node2.resolve(name, { direction: external2 ? "all" : "down" }) !== void 0 : false;
30
- return externalConflict || await node2.resolve(name, { direction: "down" }) !== void 0;
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(node, manifest.config.name, external), () => `Node name collision [${manifest.config.name}]`);
34
- if (!await collision(node, manifest.config.name, external)) {
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 (node2, name, external2) => {
160
- const externalConflict = external2 ? await node2.resolve(name, { direction: external2 ? "all" : "down" }) !== void 0 : false;
161
- return externalConflict || await node2.resolve(name, { direction: "down" }) !== void 0;
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(node, manifest.config.name, external), () => `Node name collision [${manifest.config.name}]`);
165
- if (!await collision(node, manifest.config.name, external)) {
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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,eAAe,QAAwB,MAAkB,UAAmD;AACxH,UAAM,kBAAkB,KAAK,QAAQ,OAAO,SAAS,OAAO,QAAQ,SAAS,OAAO,MAAM;AAC1F,UAAM,OAAO,SAAS,OAAO;AAC7B,UAAM,UAAUJ,UAAS,IAAI,IAAI,MAAM,OAAO,WAAW,IAAI,IAAI;AACjE,UAAM,SAAgC;AAAA,MACpC,MAAM,SAAS,OAAO;AAAA,MACtB;AAAA,MACA,QAAQD,UAAS,SAAS,QAAQ,MAAM,gBAAgB;AAAA,IAC1D;AACA,QAAI,QAAQ,KAAK,4BAA4B,GAAG;AAC9C,aAAO,+BAA+B,KAAK;AAAA,IAC7C;AACA,UAAM,MAAM,MAAM,gBAAgB,OAAO,MAAM;AAC/C,UAAM,KAAK,SAAS,GAAG;AACvB,WAAO;AAAA,EACT;AACF;",
6
- "names": ["node", "external", "assertEx", "isString", "HDWallet", "PayloadWrapper", "isModuleName", "MemoryNode", "node", "external"]
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,CAAC,GACrC,8BACA,QACA;AACA,UAAM,OAAO;AACb,SAAK,SAAS;AACd,S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AA,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
- if (!this.hasDisallowedRules) return false;
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) ? this.config.allowedQueries.includes(query) : true;
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
- if (queries) {
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 ? true : this.validateConfig(value, [...parents, key]) && valid;
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
- if (identityFunc) {
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 ? identityFunc(mod) : true : false) ? mod : void 0;
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
- this.upResolver.add(this);
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
- if (direction === "up") {
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
- return filterIdentity(await ResolveHelper.resolve(config, "*", options) ?? [], options.identity);
789
+ const modules = await ResolveHelper.resolve(config, "*", options) ?? [];
790
+ return filterIdentity(modules, options.identity);
802
791
  }
803
- return filterIdentity(await ResolveHelper.resolve(config, id, options), options.identity);
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 ?? {};