@xyo-network/node-model 2.87.0 → 2.87.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/Node.d.cts +4 -5
- package/dist/browser/Node.d.cts.map +1 -1
- package/dist/browser/Node.d.mts +4 -5
- package/dist/browser/Node.d.mts.map +1 -1
- package/dist/browser/Node.d.ts +4 -5
- package/dist/browser/Node.d.ts.map +1 -1
- package/dist/browser/typeChecks.d.cts +336 -8
- package/dist/browser/typeChecks.d.cts.map +1 -1
- package/dist/browser/typeChecks.d.mts +336 -8
- package/dist/browser/typeChecks.d.mts.map +1 -1
- package/dist/browser/typeChecks.d.ts +336 -8
- package/dist/browser/typeChecks.d.ts.map +1 -1
- package/dist/node/Node.d.cts +4 -5
- package/dist/node/Node.d.cts.map +1 -1
- package/dist/node/Node.d.mts +4 -5
- package/dist/node/Node.d.mts.map +1 -1
- package/dist/node/Node.d.ts +4 -5
- package/dist/node/Node.d.ts.map +1 -1
- package/dist/node/typeChecks.d.cts +336 -8
- package/dist/node/typeChecks.d.cts.map +1 -1
- package/dist/node/typeChecks.d.mts +336 -8
- package/dist/node/typeChecks.d.mts.map +1 -1
- package/dist/node/typeChecks.d.ts +336 -8
- package/dist/node/typeChecks.d.ts.map +1 -1
- package/package.json +8 -8
- package/src/Node.ts +9 -15
package/dist/browser/Node.d.cts
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
|
import { ModuleAttachedEventData, ModuleDetachedEventData, ModuleRegisteredEventData, ModuleUnregisteredEventData } from './EventsModels';
|
|
5
4
|
import { NodeParams } from './Params';
|
|
@@ -7,14 +6,14 @@ export interface NodeQueryFunctions {
|
|
|
7
6
|
attach(nameOrAddress: string, external?: boolean): Promisable<string | undefined>;
|
|
8
7
|
attached(): Promisable<string[]>;
|
|
9
8
|
detach(nameOrAddress: string): Promisable<string | undefined>;
|
|
10
|
-
manifest(maxDepth?: number): Promise<ModuleManifestPayload>;
|
|
11
9
|
registered(): Promisable<string[]>;
|
|
12
10
|
}
|
|
13
11
|
export interface NodeModuleEventData extends ModuleAttachedEventData, ModuleDetachedEventData, ModuleRegisteredEventData, ModuleUnregisteredEventData, ModuleEventData {
|
|
14
12
|
}
|
|
15
|
-
export
|
|
16
|
-
|
|
13
|
+
export interface NodeModule<TParams extends NodeParams = NodeParams, TEventData extends NodeModuleEventData = NodeModuleEventData> extends Module<TParams, TEventData> {
|
|
14
|
+
}
|
|
15
|
+
export interface NodeInstance<TParams extends NodeParams = NodeParams, TEventData extends NodeModuleEventData = NodeModuleEventData> extends NodeModule<TParams, TEventData>, NodeQueryFunctions, ModuleInstance<TParams, TEventData> {
|
|
17
16
|
register: (mod: ModuleInstance) => Promisable<void>;
|
|
18
17
|
registeredModules(): Promisable<ModuleInstance[]>;
|
|
19
|
-
}
|
|
18
|
+
}
|
|
20
19
|
//# sourceMappingURL=Node.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Node.d.ts","sourceRoot":"","sources":["../../src/Node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Node.d.ts","sourceRoot":"","sources":["../../src/Node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAEnF,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,yBAAyB,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAA;AACzI,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAErC,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,aAAa,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;IACjF,QAAQ,IAAI,UAAU,CAAC,MAAM,EAAE,CAAC,CAAA;IAChC,MAAM,CAAC,aAAa,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;IAC7D,UAAU,IAAI,UAAU,CAAC,MAAM,EAAE,CAAC,CAAA;CACnC;AAED,MAAM,WAAW,mBACf,SAAQ,uBAAuB,EAC7B,uBAAuB,EACvB,yBAAyB,EACzB,2BAA2B,EAC3B,eAAe;CAAG;AAEtB,MAAM,WAAW,UAAU,CAAC,OAAO,SAAS,UAAU,GAAG,UAAU,EAAE,UAAU,SAAS,mBAAmB,GAAG,mBAAmB,CAC/H,SAAQ,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC;CAAG;AAExC,MAAM,WAAW,YAAY,CAAC,OAAO,SAAS,UAAU,GAAG,UAAU,EAAE,UAAU,SAAS,mBAAmB,GAAG,mBAAmB,CACjI,SAAQ,UAAU,CAAC,OAAO,EAAE,UAAU,CAAC,EACrC,kBAAkB,EAClB,cAAc,CAAC,OAAO,EAAE,UAAU,CAAC;IACrC,QAAQ,EAAE,CAAC,GAAG,EAAE,cAAc,KAAK,UAAU,CAAC,IAAI,CAAC,CAAA;IACnD,iBAAiB,IAAI,UAAU,CAAC,cAAc,EAAE,CAAC,CAAA;CAClD"}
|
package/dist/browser/Node.d.mts
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
|
import { ModuleAttachedEventData, ModuleDetachedEventData, ModuleRegisteredEventData, ModuleUnregisteredEventData } from './EventsModels';
|
|
5
4
|
import { NodeParams } from './Params';
|
|
@@ -7,14 +6,14 @@ export interface NodeQueryFunctions {
|
|
|
7
6
|
attach(nameOrAddress: string, external?: boolean): Promisable<string | undefined>;
|
|
8
7
|
attached(): Promisable<string[]>;
|
|
9
8
|
detach(nameOrAddress: string): Promisable<string | undefined>;
|
|
10
|
-
manifest(maxDepth?: number): Promise<ModuleManifestPayload>;
|
|
11
9
|
registered(): Promisable<string[]>;
|
|
12
10
|
}
|
|
13
11
|
export interface NodeModuleEventData extends ModuleAttachedEventData, ModuleDetachedEventData, ModuleRegisteredEventData, ModuleUnregisteredEventData, ModuleEventData {
|
|
14
12
|
}
|
|
15
|
-
export
|
|
16
|
-
|
|
13
|
+
export interface NodeModule<TParams extends NodeParams = NodeParams, TEventData extends NodeModuleEventData = NodeModuleEventData> extends Module<TParams, TEventData> {
|
|
14
|
+
}
|
|
15
|
+
export interface NodeInstance<TParams extends NodeParams = NodeParams, TEventData extends NodeModuleEventData = NodeModuleEventData> extends NodeModule<TParams, TEventData>, NodeQueryFunctions, ModuleInstance<TParams, TEventData> {
|
|
17
16
|
register: (mod: ModuleInstance) => Promisable<void>;
|
|
18
17
|
registeredModules(): Promisable<ModuleInstance[]>;
|
|
19
|
-
}
|
|
18
|
+
}
|
|
20
19
|
//# sourceMappingURL=Node.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Node.d.ts","sourceRoot":"","sources":["../../src/Node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Node.d.ts","sourceRoot":"","sources":["../../src/Node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAEnF,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,yBAAyB,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAA;AACzI,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAErC,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,aAAa,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;IACjF,QAAQ,IAAI,UAAU,CAAC,MAAM,EAAE,CAAC,CAAA;IAChC,MAAM,CAAC,aAAa,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;IAC7D,UAAU,IAAI,UAAU,CAAC,MAAM,EAAE,CAAC,CAAA;CACnC;AAED,MAAM,WAAW,mBACf,SAAQ,uBAAuB,EAC7B,uBAAuB,EACvB,yBAAyB,EACzB,2BAA2B,EAC3B,eAAe;CAAG;AAEtB,MAAM,WAAW,UAAU,CAAC,OAAO,SAAS,UAAU,GAAG,UAAU,EAAE,UAAU,SAAS,mBAAmB,GAAG,mBAAmB,CAC/H,SAAQ,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC;CAAG;AAExC,MAAM,WAAW,YAAY,CAAC,OAAO,SAAS,UAAU,GAAG,UAAU,EAAE,UAAU,SAAS,mBAAmB,GAAG,mBAAmB,CACjI,SAAQ,UAAU,CAAC,OAAO,EAAE,UAAU,CAAC,EACrC,kBAAkB,EAClB,cAAc,CAAC,OAAO,EAAE,UAAU,CAAC;IACrC,QAAQ,EAAE,CAAC,GAAG,EAAE,cAAc,KAAK,UAAU,CAAC,IAAI,CAAC,CAAA;IACnD,iBAAiB,IAAI,UAAU,CAAC,cAAc,EAAE,CAAC,CAAA;CAClD"}
|
package/dist/browser/Node.d.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
|
import { ModuleAttachedEventData, ModuleDetachedEventData, ModuleRegisteredEventData, ModuleUnregisteredEventData } from './EventsModels';
|
|
5
4
|
import { NodeParams } from './Params';
|
|
@@ -7,14 +6,14 @@ export interface NodeQueryFunctions {
|
|
|
7
6
|
attach(nameOrAddress: string, external?: boolean): Promisable<string | undefined>;
|
|
8
7
|
attached(): Promisable<string[]>;
|
|
9
8
|
detach(nameOrAddress: string): Promisable<string | undefined>;
|
|
10
|
-
manifest(maxDepth?: number): Promise<ModuleManifestPayload>;
|
|
11
9
|
registered(): Promisable<string[]>;
|
|
12
10
|
}
|
|
13
11
|
export interface NodeModuleEventData extends ModuleAttachedEventData, ModuleDetachedEventData, ModuleRegisteredEventData, ModuleUnregisteredEventData, ModuleEventData {
|
|
14
12
|
}
|
|
15
|
-
export
|
|
16
|
-
|
|
13
|
+
export interface NodeModule<TParams extends NodeParams = NodeParams, TEventData extends NodeModuleEventData = NodeModuleEventData> extends Module<TParams, TEventData> {
|
|
14
|
+
}
|
|
15
|
+
export interface NodeInstance<TParams extends NodeParams = NodeParams, TEventData extends NodeModuleEventData = NodeModuleEventData> extends NodeModule<TParams, TEventData>, NodeQueryFunctions, ModuleInstance<TParams, TEventData> {
|
|
17
16
|
register: (mod: ModuleInstance) => Promisable<void>;
|
|
18
17
|
registeredModules(): Promisable<ModuleInstance[]>;
|
|
19
|
-
}
|
|
18
|
+
}
|
|
20
19
|
//# sourceMappingURL=Node.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Node.d.ts","sourceRoot":"","sources":["../../src/Node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Node.d.ts","sourceRoot":"","sources":["../../src/Node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAEnF,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,yBAAyB,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAA;AACzI,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAErC,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,aAAa,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;IACjF,QAAQ,IAAI,UAAU,CAAC,MAAM,EAAE,CAAC,CAAA;IAChC,MAAM,CAAC,aAAa,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;IAC7D,UAAU,IAAI,UAAU,CAAC,MAAM,EAAE,CAAC,CAAA;CACnC;AAED,MAAM,WAAW,mBACf,SAAQ,uBAAuB,EAC7B,uBAAuB,EACvB,yBAAyB,EACzB,2BAA2B,EAC3B,eAAe;CAAG;AAEtB,MAAM,WAAW,UAAU,CAAC,OAAO,SAAS,UAAU,GAAG,UAAU,EAAE,UAAU,SAAS,mBAAmB,GAAG,mBAAmB,CAC/H,SAAQ,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC;CAAG;AAExC,MAAM,WAAW,YAAY,CAAC,OAAO,SAAS,UAAU,GAAG,UAAU,EAAE,UAAU,SAAS,mBAAmB,GAAG,mBAAmB,CACjI,SAAQ,UAAU,CAAC,OAAO,EAAE,UAAU,CAAC,EACrC,kBAAkB,EAClB,cAAc,CAAC,OAAO,EAAE,UAAU,CAAC;IACrC,QAAQ,EAAE,CAAC,GAAG,EAAE,cAAc,KAAK,UAAU,CAAC,IAAI,CAAC,CAAA;IACnD,iBAAiB,IAAI,UAAU,CAAC,cAAc,EAAE,CAAC,CAAA;CAClD"}
|
|
@@ -1,14 +1,342 @@
|
|
|
1
1
|
import { NodeInstance, NodeModule } from './Node';
|
|
2
|
-
export declare const isNodeInstance: import("@xyo-network/object").TypeCheck<NodeInstance
|
|
3
|
-
|
|
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
|
|
6
|
-
|
|
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
|
|
10
|
-
|
|
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)
|
|
13
|
-
|
|
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,
|
|
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"}
|