@xyo-network/node-model 2.87.0 → 2.87.1

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.
@@ -1,14 +1,342 @@
1
1
  import { NodeInstance, NodeModule } from './Node';
2
- export declare const isNodeInstance: import("@xyo-network/object").TypeCheck<NodeInstance>;
3
- export declare const isNodeModule: import("@xyo-network/module-model").ModuleTypeCheck<NodeModule>;
2
+ export declare const isNodeInstance: import("@xyo-network/object").TypeCheck<NodeInstance<import("@xyo-network/object").BaseParamsFields & {
3
+ account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
4
+ config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
5
+ readonly archivist?: string | undefined;
6
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
7
+ readonly name?: string | undefined;
8
+ readonly paging?: Record<string, {
9
+ size?: number | undefined;
10
+ }> | undefined;
11
+ schema: "network.xyo.node.config";
12
+ readonly security?: {
13
+ readonly allowAnonymous?: boolean | undefined;
14
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
15
+ readonly disallowed?: Record<string, string[]> | undefined;
16
+ } | undefined;
17
+ readonly sign?: boolean | undefined;
18
+ readonly storeQueries?: boolean | undefined;
19
+ readonly timestamp?: boolean | undefined;
20
+ } & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/payload-model").SchemaFields & object & {
21
+ readonly archivist?: string | undefined;
22
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
23
+ readonly name?: string | undefined;
24
+ readonly paging?: Record<string, {
25
+ size?: number | undefined;
26
+ }> | undefined;
27
+ schema: "network.xyo.node.config";
28
+ readonly security?: {
29
+ readonly allowAnonymous?: boolean | undefined;
30
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
31
+ readonly disallowed?: Record<string, string[]> | undefined;
32
+ } | undefined;
33
+ readonly sign?: boolean | undefined;
34
+ readonly storeQueries?: boolean | undefined;
35
+ readonly timestamp?: boolean | undefined;
36
+ } & {
37
+ archivist?: string | undefined;
38
+ schema: "network.xyo.node.config";
39
+ }, "schema"> & {
40
+ schema: string;
41
+ };
42
+ ephemeralQueryAccountEnabled?: boolean | undefined;
43
+ }, import("./Node").NodeModuleEventData>>;
44
+ export declare const isNodeModule: import("@xyo-network/module-model").ModuleTypeCheck<NodeModule<import("@xyo-network/object").BaseParamsFields & {
45
+ account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
46
+ config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
47
+ readonly archivist?: string | undefined;
48
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
49
+ readonly name?: string | undefined;
50
+ readonly paging?: Record<string, {
51
+ size?: number | undefined;
52
+ }> | undefined;
53
+ schema: "network.xyo.node.config";
54
+ readonly security?: {
55
+ readonly allowAnonymous?: boolean | undefined;
56
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
57
+ readonly disallowed?: Record<string, string[]> | undefined;
58
+ } | undefined;
59
+ readonly sign?: boolean | undefined;
60
+ readonly storeQueries?: boolean | undefined;
61
+ readonly timestamp?: boolean | undefined;
62
+ } & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/payload-model").SchemaFields & object & {
63
+ readonly archivist?: string | undefined;
64
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
65
+ readonly name?: string | undefined;
66
+ readonly paging?: Record<string, {
67
+ size?: number | undefined;
68
+ }> | undefined;
69
+ schema: "network.xyo.node.config";
70
+ readonly security?: {
71
+ readonly allowAnonymous?: boolean | undefined;
72
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
73
+ readonly disallowed?: Record<string, string[]> | undefined;
74
+ } | undefined;
75
+ readonly sign?: boolean | undefined;
76
+ readonly storeQueries?: boolean | undefined;
77
+ readonly timestamp?: boolean | undefined;
78
+ } & {
79
+ archivist?: string | undefined;
80
+ schema: "network.xyo.node.config";
81
+ }, "schema"> & {
82
+ schema: string;
83
+ };
84
+ ephemeralQueryAccountEnabled?: boolean | undefined;
85
+ }, import("./Node").NodeModuleEventData>>;
4
86
  export declare const asNodeModule: {
5
- <TType extends NodeModule>(value: unknown, config?: import("@xyo-network/object").TypeCheckConfig | undefined): TType | undefined;
6
- <TType_1 extends NodeModule>(value: unknown, assert: string | (() => string), config?: import("@xyo-network/object").TypeCheckConfig | undefined): TType_1;
87
+ <TType extends NodeModule<import("@xyo-network/object").BaseParamsFields & {
88
+ account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
89
+ config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
90
+ readonly archivist?: string | undefined;
91
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
92
+ readonly name?: string | undefined;
93
+ readonly paging?: Record<string, {
94
+ size?: number | undefined;
95
+ }> | undefined;
96
+ schema: "network.xyo.node.config";
97
+ readonly security?: {
98
+ readonly allowAnonymous?: boolean | undefined;
99
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
100
+ readonly disallowed?: Record<string, string[]> | undefined;
101
+ } | undefined;
102
+ readonly sign?: boolean | undefined;
103
+ readonly storeQueries?: boolean | undefined;
104
+ readonly timestamp?: boolean | undefined;
105
+ } & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/payload-model").SchemaFields & object & {
106
+ readonly archivist?: string | undefined;
107
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
108
+ readonly name?: string | undefined;
109
+ readonly paging?: Record<string, {
110
+ size?: number | undefined;
111
+ }> | undefined;
112
+ schema: "network.xyo.node.config";
113
+ readonly security?: {
114
+ readonly allowAnonymous?: boolean | undefined;
115
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
116
+ readonly disallowed?: Record<string, string[]> | undefined;
117
+ } | undefined;
118
+ readonly sign?: boolean | undefined;
119
+ readonly storeQueries?: boolean | undefined;
120
+ readonly timestamp?: boolean | undefined;
121
+ } & {
122
+ archivist?: string | undefined;
123
+ schema: "network.xyo.node.config";
124
+ }, "schema"> & {
125
+ schema: string;
126
+ };
127
+ ephemeralQueryAccountEnabled?: boolean | undefined;
128
+ }, import("./Node").NodeModuleEventData>>(value: unknown, config?: import("@xyo-network/object").TypeCheckConfig | undefined): TType | undefined;
129
+ <TType_1 extends NodeModule<import("@xyo-network/object").BaseParamsFields & {
130
+ account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
131
+ config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
132
+ readonly archivist?: string | undefined;
133
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
134
+ readonly name?: string | undefined;
135
+ readonly paging?: Record<string, {
136
+ size?: number | undefined;
137
+ }> | undefined;
138
+ schema: "network.xyo.node.config";
139
+ readonly security?: {
140
+ readonly allowAnonymous?: boolean | undefined;
141
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
142
+ readonly disallowed?: Record<string, string[]> | undefined;
143
+ } | undefined;
144
+ readonly sign?: boolean | undefined;
145
+ readonly storeQueries?: boolean | undefined;
146
+ readonly timestamp?: boolean | undefined;
147
+ } & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/payload-model").SchemaFields & object & {
148
+ readonly archivist?: string | undefined;
149
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
150
+ readonly name?: string | undefined;
151
+ readonly paging?: Record<string, {
152
+ size?: number | undefined;
153
+ }> | undefined;
154
+ schema: "network.xyo.node.config";
155
+ readonly security?: {
156
+ readonly allowAnonymous?: boolean | undefined;
157
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
158
+ readonly disallowed?: Record<string, string[]> | undefined;
159
+ } | undefined;
160
+ readonly sign?: boolean | undefined;
161
+ readonly storeQueries?: boolean | undefined;
162
+ readonly timestamp?: boolean | undefined;
163
+ } & {
164
+ archivist?: string | undefined;
165
+ schema: "network.xyo.node.config";
166
+ }, "schema"> & {
167
+ schema: string;
168
+ };
169
+ ephemeralQueryAccountEnabled?: boolean | undefined;
170
+ }, import("./Node").NodeModuleEventData>>(value: unknown, assert: string | (() => string), config?: import("@xyo-network/object").TypeCheckConfig | undefined): TType_1;
7
171
  };
8
172
  export declare const asNodeInstance: {
9
- <TType extends NodeInstance>(value: unknown, config?: import("@xyo-network/object").TypeCheckConfig | undefined): TType | undefined;
10
- <TType_1 extends NodeInstance>(value: unknown, assert: string | (() => string), config?: import("@xyo-network/object").TypeCheckConfig | undefined): TType_1;
173
+ <TType extends NodeInstance<import("@xyo-network/object").BaseParamsFields & {
174
+ account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
175
+ config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
176
+ readonly archivist?: string | undefined;
177
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
178
+ readonly name?: string | undefined;
179
+ readonly paging?: Record<string, {
180
+ size?: number | undefined;
181
+ }> | undefined;
182
+ schema: "network.xyo.node.config";
183
+ readonly security?: {
184
+ readonly allowAnonymous?: boolean | undefined;
185
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
186
+ readonly disallowed?: Record<string, string[]> | undefined;
187
+ } | undefined;
188
+ readonly sign?: boolean | undefined;
189
+ readonly storeQueries?: boolean | undefined;
190
+ readonly timestamp?: boolean | undefined;
191
+ } & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/payload-model").SchemaFields & object & {
192
+ readonly archivist?: string | undefined;
193
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
194
+ readonly name?: string | undefined;
195
+ readonly paging?: Record<string, {
196
+ size?: number | undefined;
197
+ }> | undefined;
198
+ schema: "network.xyo.node.config";
199
+ readonly security?: {
200
+ readonly allowAnonymous?: boolean | undefined;
201
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
202
+ readonly disallowed?: Record<string, string[]> | undefined;
203
+ } | undefined;
204
+ readonly sign?: boolean | undefined;
205
+ readonly storeQueries?: boolean | undefined;
206
+ readonly timestamp?: boolean | undefined;
207
+ } & {
208
+ archivist?: string | undefined;
209
+ schema: "network.xyo.node.config";
210
+ }, "schema"> & {
211
+ schema: string;
212
+ };
213
+ ephemeralQueryAccountEnabled?: boolean | undefined;
214
+ }, import("./Node").NodeModuleEventData>>(value: unknown, config?: import("@xyo-network/object").TypeCheckConfig | undefined): TType | undefined;
215
+ <TType_1 extends NodeInstance<import("@xyo-network/object").BaseParamsFields & {
216
+ account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
217
+ config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
218
+ readonly archivist?: string | undefined;
219
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
220
+ readonly name?: string | undefined;
221
+ readonly paging?: Record<string, {
222
+ size?: number | undefined;
223
+ }> | undefined;
224
+ schema: "network.xyo.node.config";
225
+ readonly security?: {
226
+ readonly allowAnonymous?: boolean | undefined;
227
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
228
+ readonly disallowed?: Record<string, string[]> | undefined;
229
+ } | undefined;
230
+ readonly sign?: boolean | undefined;
231
+ readonly storeQueries?: boolean | undefined;
232
+ readonly timestamp?: boolean | undefined;
233
+ } & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/payload-model").SchemaFields & object & {
234
+ readonly archivist?: string | undefined;
235
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
236
+ readonly name?: string | undefined;
237
+ readonly paging?: Record<string, {
238
+ size?: number | undefined;
239
+ }> | undefined;
240
+ schema: "network.xyo.node.config";
241
+ readonly security?: {
242
+ readonly allowAnonymous?: boolean | undefined;
243
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
244
+ readonly disallowed?: Record<string, string[]> | undefined;
245
+ } | undefined;
246
+ readonly sign?: boolean | undefined;
247
+ readonly storeQueries?: boolean | undefined;
248
+ readonly timestamp?: boolean | undefined;
249
+ } & {
250
+ archivist?: string | undefined;
251
+ schema: "network.xyo.node.config";
252
+ }, "schema"> & {
253
+ schema: string;
254
+ };
255
+ ephemeralQueryAccountEnabled?: boolean | undefined;
256
+ }, import("./Node").NodeModuleEventData>>(value: unknown, assert: string | (() => string), config?: import("@xyo-network/object").TypeCheckConfig | undefined): TType_1;
11
257
  };
12
- export declare const withNodeModule: <R>(module: any, closure: (module: NodeModule) => R) => R | undefined;
13
- export declare const withNodeInstance: <R>(module: any, closure: (module: NodeInstance) => R) => R | undefined;
258
+ export declare const withNodeModule: <R>(module: any, closure: (module: NodeModule<import("@xyo-network/object").BaseParamsFields & {
259
+ account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
260
+ config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
261
+ readonly archivist?: string | undefined;
262
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
263
+ readonly name?: string | undefined;
264
+ readonly paging?: Record<string, {
265
+ size?: number | undefined;
266
+ }> | undefined;
267
+ schema: "network.xyo.node.config";
268
+ readonly security?: {
269
+ readonly allowAnonymous?: boolean | undefined;
270
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
271
+ readonly disallowed?: Record<string, string[]> | undefined;
272
+ } | undefined;
273
+ readonly sign?: boolean | undefined;
274
+ readonly storeQueries?: boolean | undefined;
275
+ readonly timestamp?: boolean | undefined;
276
+ } & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/payload-model").SchemaFields & object & {
277
+ readonly archivist?: string | undefined;
278
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
279
+ readonly name?: string | undefined;
280
+ readonly paging?: Record<string, {
281
+ size?: number | undefined;
282
+ }> | undefined;
283
+ schema: "network.xyo.node.config";
284
+ readonly security?: {
285
+ readonly allowAnonymous?: boolean | undefined;
286
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
287
+ readonly disallowed?: Record<string, string[]> | undefined;
288
+ } | undefined;
289
+ readonly sign?: boolean | undefined;
290
+ readonly storeQueries?: boolean | undefined;
291
+ readonly timestamp?: boolean | undefined;
292
+ } & {
293
+ archivist?: string | undefined;
294
+ schema: "network.xyo.node.config";
295
+ }, "schema"> & {
296
+ schema: string;
297
+ };
298
+ ephemeralQueryAccountEnabled?: boolean | undefined;
299
+ }, import("./Node").NodeModuleEventData>) => R) => R | undefined;
300
+ export declare const withNodeInstance: <R>(module: any, closure: (module: NodeInstance<import("@xyo-network/object").BaseParamsFields & {
301
+ account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
302
+ config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
303
+ readonly archivist?: string | undefined;
304
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
305
+ readonly name?: string | undefined;
306
+ readonly paging?: Record<string, {
307
+ size?: number | undefined;
308
+ }> | undefined;
309
+ schema: "network.xyo.node.config";
310
+ readonly security?: {
311
+ readonly allowAnonymous?: boolean | undefined;
312
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
313
+ readonly disallowed?: Record<string, string[]> | undefined;
314
+ } | undefined;
315
+ readonly sign?: boolean | undefined;
316
+ readonly storeQueries?: boolean | undefined;
317
+ readonly timestamp?: boolean | undefined;
318
+ } & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/payload-model").SchemaFields & object & {
319
+ readonly archivist?: string | undefined;
320
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
321
+ readonly name?: string | undefined;
322
+ readonly paging?: Record<string, {
323
+ size?: number | undefined;
324
+ }> | undefined;
325
+ schema: "network.xyo.node.config";
326
+ readonly security?: {
327
+ readonly allowAnonymous?: boolean | undefined;
328
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
329
+ readonly disallowed?: Record<string, string[]> | undefined;
330
+ } | undefined;
331
+ readonly sign?: boolean | undefined;
332
+ readonly storeQueries?: boolean | undefined;
333
+ readonly timestamp?: boolean | undefined;
334
+ } & {
335
+ archivist?: string | undefined;
336
+ schema: "network.xyo.node.config";
337
+ }, "schema"> & {
338
+ schema: string;
339
+ };
340
+ ephemeralQueryAccountEnabled?: boolean | undefined;
341
+ }, import("./Node").NodeModuleEventData>) => R) => R | undefined;
14
342
  //# sourceMappingURL=typeChecks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"typeChecks.d.ts","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAKjD,eAAO,MAAM,cAAc,uDAQ1B,CAAA;AAID,eAAO,MAAM,YAAY,iEAA2H,CAAA;AAEpJ,eAAO,MAAM,YAAY;;;CAAuC,CAAA;AAChE,eAAO,MAAM,cAAc;;;CAAyC,CAAA;AACpE,eAAO,MAAM,cAAc,uEAAmC,CAAA;AAC9D,eAAO,MAAM,gBAAgB,yEAAqC,CAAA"}
1
+ {"version":3,"file":"typeChecks.d.ts","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAKjD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yCAQ1B,CAAA;AAID,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yCAA2H,CAAA;AAEpJ,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAuC,CAAA;AAChE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAyC,CAAA;AACpE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gEAAmC,CAAA;AAC9D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gEAAqC,CAAA"}
package/package.json CHANGED
@@ -11,15 +11,15 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "@xylabs/promise": "^2.13.23",
14
- "@xyo-network/manifest-model": "~2.87.0",
15
- "@xyo-network/module-events": "~2.87.0",
16
- "@xyo-network/module-model": "~2.87.0",
17
- "@xyo-network/object": "~2.87.0",
18
- "@xyo-network/payload-model": "~2.87.0"
14
+ "@xyo-network/manifest-model": "~2.87.1",
15
+ "@xyo-network/module-events": "~2.87.1",
16
+ "@xyo-network/module-model": "~2.87.1",
17
+ "@xyo-network/object": "~2.87.1",
18
+ "@xyo-network/payload-model": "~2.87.1"
19
19
  },
20
20
  "devDependencies": {
21
- "@xylabs/ts-scripts-yarn3": "^3.2.33",
22
- "@xylabs/tsconfig": "^3.2.33",
21
+ "@xylabs/ts-scripts-yarn3": "^3.2.41",
22
+ "@xylabs/tsconfig": "^3.2.41",
23
23
  "typescript": "^5.3.3"
24
24
  },
25
25
  "description": "Primary SDK for using XYO Protocol 2.0",
@@ -61,6 +61,6 @@
61
61
  "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
62
62
  },
63
63
  "sideEffects": false,
64
- "version": "2.87.0",
64
+ "version": "2.87.1",
65
65
  "type": "module"
66
66
  }
package/src/Node.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { Promisable } from '@xylabs/promise'
2
- import { ModuleManifestPayload } from '@xyo-network/manifest-model'
3
2
  import { Module, ModuleEventData, ModuleInstance } from '@xyo-network/module-model'
4
3
 
5
4
  import { ModuleAttachedEventData, ModuleDetachedEventData, ModuleRegisteredEventData, ModuleUnregisteredEventData } from './EventsModels'
@@ -9,7 +8,6 @@ export interface NodeQueryFunctions {
9
8
  attach(nameOrAddress: string, external?: boolean): Promisable<string | undefined>
10
9
  attached(): Promisable<string[]>
11
10
  detach(nameOrAddress: string): Promisable<string | undefined>
12
- manifest(maxDepth?: number): Promise<ModuleManifestPayload>
13
11
  registered(): Promisable<string[]>
14
12
  }
15
13
 
@@ -20,17 +18,13 @@ export interface NodeModuleEventData
20
18
  ModuleUnregisteredEventData,
21
19
  ModuleEventData {}
22
20
 
23
- export type NodeModule<TParams extends NodeParams = NodeParams, TEventData extends NodeModuleEventData = NodeModuleEventData> = Module<
24
- TParams,
25
- TEventData
26
- >
21
+ export interface NodeModule<TParams extends NodeParams = NodeParams, TEventData extends NodeModuleEventData = NodeModuleEventData>
22
+ extends Module<TParams, TEventData> {}
27
23
 
28
- export type NodeInstance<TParams extends NodeParams = NodeParams, TEventData extends NodeModuleEventData = NodeModuleEventData> = NodeModule<
29
- TParams,
30
- TEventData
31
- > &
32
- NodeQueryFunctions &
33
- ModuleInstance & {
34
- register: (mod: ModuleInstance) => Promisable<void>
35
- registeredModules(): Promisable<ModuleInstance[]>
36
- }
24
+ export interface NodeInstance<TParams extends NodeParams = NodeParams, TEventData extends NodeModuleEventData = NodeModuleEventData>
25
+ extends NodeModule<TParams, TEventData>,
26
+ NodeQueryFunctions,
27
+ ModuleInstance<TParams, TEventData> {
28
+ register: (mod: ModuleInstance) => Promisable<void>
29
+ registeredModules(): Promisable<ModuleInstance[]>
30
+ }