@xyo-network/node-model 3.9.17 → 3.9.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/neutral/ChildCertification.d.ts +10 -0
- package/dist/neutral/ChildCertification.d.ts.map +1 -0
- package/dist/neutral/Config.d.ts +9 -0
- package/dist/neutral/Config.d.ts.map +1 -0
- package/dist/neutral/EventsModels/ModuleAttached.d.ts +7 -0
- package/dist/neutral/EventsModels/ModuleAttached.d.ts.map +1 -0
- package/dist/neutral/EventsModels/ModuleDetached.d.ts +7 -0
- package/dist/neutral/EventsModels/ModuleDetached.d.ts.map +1 -0
- package/dist/neutral/EventsModels/ModuleRegistered.d.ts +7 -0
- package/dist/neutral/EventsModels/ModuleRegistered.d.ts.map +1 -0
- package/dist/neutral/EventsModels/ModuleUnregistered.d.ts +7 -0
- package/dist/neutral/EventsModels/ModuleUnregistered.d.ts.map +1 -0
- package/dist/neutral/EventsModels/index.d.ts +5 -0
- package/dist/neutral/EventsModels/index.d.ts.map +1 -0
- package/dist/neutral/Node.d.ts +8 -0
- package/dist/neutral/Node.d.ts.map +1 -0
- package/dist/neutral/Params.d.ts +5 -0
- package/dist/neutral/Params.d.ts.map +1 -0
- package/dist/neutral/Queries/Attach.d.ts +10 -0
- package/dist/neutral/Queries/Attach.d.ts.map +1 -0
- package/dist/neutral/Queries/Attached.d.ts +7 -0
- package/dist/neutral/Queries/Attached.d.ts.map +1 -0
- package/dist/neutral/Queries/Certify.d.ts +9 -0
- package/dist/neutral/Queries/Certify.d.ts.map +1 -0
- package/dist/neutral/Queries/Detach.d.ts +9 -0
- package/dist/neutral/Queries/Detach.d.ts.map +1 -0
- package/dist/neutral/Queries/Registered.d.ts +7 -0
- package/dist/neutral/Queries/Registered.d.ts.map +1 -0
- package/dist/neutral/Queries/index.d.ts +14 -0
- package/dist/neutral/Queries/index.d.ts.map +1 -0
- package/dist/neutral/attachable/AttachableInstance.d.ts +12 -0
- package/dist/neutral/attachable/AttachableInstance.d.ts.map +1 -0
- package/dist/neutral/attachable/asAttachableInstance.d.ts +35 -0
- package/dist/neutral/attachable/asAttachableInstance.d.ts.map +1 -0
- package/dist/neutral/attachable/index.d.ts +4 -0
- package/dist/neutral/attachable/index.d.ts.map +1 -0
- package/dist/neutral/attachable/isAttachableInstance.d.ts +6 -0
- package/dist/neutral/attachable/isAttachableInstance.d.ts.map +1 -0
- package/dist/neutral/index.d.ts +10 -268
- package/dist/neutral/index.d.ts.map +1 -0
- package/dist/neutral/instance.d.ts +26 -0
- package/dist/neutral/instance.d.ts.map +1 -0
- package/dist/neutral/typeChecks.d.ts +115 -0
- package/dist/neutral/typeChecks.d.ts.map +1 -0
- package/package.json +8 -8
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Address } from '@xylabs/hex';
|
|
2
|
+
import type { Payload } from '@xyo-network/payload-model';
|
|
3
|
+
export declare const ChildCertificationSchema: "network.xyo.child.certification";
|
|
4
|
+
export type ChildCertificationSchema = typeof ChildCertificationSchema;
|
|
5
|
+
export interface ChildCertificationFields {
|
|
6
|
+
address: Address;
|
|
7
|
+
expiration: number;
|
|
8
|
+
}
|
|
9
|
+
export type ChildCertification = Payload<ChildCertificationFields, ChildCertificationSchema>;
|
|
10
|
+
//# sourceMappingURL=ChildCertification.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChildCertification.d.ts","sourceRoot":"","sources":["../../src/ChildCertification.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,eAAO,MAAM,wBAAwB,EAAG,iCAA0C,CAAA;AAClF,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAA;AAEtE,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,OAAO,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,wBAAwB,EAAE,wBAAwB,CAAC,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { EmptyObject, WithAdditional } from '@xylabs/object';
|
|
2
|
+
import type { ModuleConfig } from '@xyo-network/module-model';
|
|
3
|
+
import type { Payload } from '@xyo-network/payload-model';
|
|
4
|
+
export declare const NodeConfigSchema: "network.xyo.node.config";
|
|
5
|
+
export type NodeConfigSchema = typeof NodeConfigSchema;
|
|
6
|
+
export type NodeConfig<TConfig extends EmptyObject | Payload | void = void, TSchema extends string | void = void> = ModuleConfig<WithAdditional<{
|
|
7
|
+
archivist?: string;
|
|
8
|
+
}, TConfig>, TSchema extends void ? TConfig extends Payload ? TConfig['schema'] : NodeConfigSchema : TSchema>;
|
|
9
|
+
//# sourceMappingURL=Config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,eAAO,MAAM,gBAAgB,EAAG,yBAAkC,CAAA;AAClE,MAAM,MAAM,gBAAgB,GAAG,OAAO,gBAAgB,CAAA;AAEtD,MAAM,MAAM,UAAU,CAAC,OAAO,SAAS,WAAW,GAAG,OAAO,GAAG,IAAI,GAAG,IAAI,EAAE,OAAO,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI,IAAI,YAAY,CAC9H,cAAc,CACZ;IACE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,EACD,OAAO,CACR,EACD,OAAO,SAAS,IAAI,GAClB,OAAO,SAAS,OAAO,GACrB,OAAO,CAAC,QAAQ,CAAC,GACf,gBAAgB,GAClB,OAAO,CACZ,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { EventData } from '@xyo-network/module-events';
|
|
2
|
+
import type { Module, ModuleEventArgs } from '@xyo-network/module-model';
|
|
3
|
+
export type ModuleAttachedEventArgs<TModule extends Module = Module> = ModuleEventArgs<TModule>;
|
|
4
|
+
export interface ModuleAttachedEventData extends EventData {
|
|
5
|
+
moduleAttached: ModuleAttachedEventArgs;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=ModuleAttached.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModuleAttached.d.ts","sourceRoot":"","sources":["../../../src/EventsModels/ModuleAttached.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,KAAK,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAExE,MAAM,MAAM,uBAAuB,CAAC,OAAO,SAAS,MAAM,GAAG,MAAM,IAAI,eAAe,CAAC,OAAO,CAAC,CAAA;AAE/F,MAAM,WAAW,uBAAwB,SAAQ,SAAS;IACxD,cAAc,EAAE,uBAAuB,CAAA;CACxC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { EventData } from '@xyo-network/module-events';
|
|
2
|
+
import type { Module, ModuleEventArgs } from '@xyo-network/module-model';
|
|
3
|
+
export type ModuleDetachedEventArgs<TModule extends Module = Module> = ModuleEventArgs<TModule>;
|
|
4
|
+
export interface ModuleDetachedEventData extends EventData {
|
|
5
|
+
moduleDetached: ModuleDetachedEventArgs;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=ModuleDetached.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModuleDetached.d.ts","sourceRoot":"","sources":["../../../src/EventsModels/ModuleDetached.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,KAAK,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAExE,MAAM,MAAM,uBAAuB,CAAC,OAAO,SAAS,MAAM,GAAG,MAAM,IAAI,eAAe,CAAC,OAAO,CAAC,CAAA;AAE/F,MAAM,WAAW,uBAAwB,SAAQ,SAAS;IACxD,cAAc,EAAE,uBAAuB,CAAA;CACxC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { EventData } from '@xyo-network/module-events';
|
|
2
|
+
import type { Module, ModuleEventArgs } from '@xyo-network/module-model';
|
|
3
|
+
export type ModuleRegisteredEventArgs<TModule extends Module = Module> = ModuleEventArgs<TModule>;
|
|
4
|
+
export interface ModuleRegisteredEventData extends EventData {
|
|
5
|
+
moduleRegistered: ModuleRegisteredEventArgs;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=ModuleRegistered.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModuleRegistered.d.ts","sourceRoot":"","sources":["../../../src/EventsModels/ModuleRegistered.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,KAAK,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAExE,MAAM,MAAM,yBAAyB,CAAC,OAAO,SAAS,MAAM,GAAG,MAAM,IAAI,eAAe,CAAC,OAAO,CAAC,CAAA;AAEjG,MAAM,WAAW,yBAA0B,SAAQ,SAAS;IAC1D,gBAAgB,EAAE,yBAAyB,CAAA;CAC5C"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { EventData } from '@xyo-network/module-events';
|
|
2
|
+
import type { Module, ModuleEventArgs } from '@xyo-network/module-model';
|
|
3
|
+
export type ModuleUnregisteredEventArgs<TModule extends Module = Module> = ModuleEventArgs<TModule>;
|
|
4
|
+
export interface ModuleUnregisteredEventData extends EventData {
|
|
5
|
+
moduleUnregistered: ModuleUnregisteredEventArgs;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=ModuleUnregistered.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModuleUnregistered.d.ts","sourceRoot":"","sources":["../../../src/EventsModels/ModuleUnregistered.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,KAAK,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAExE,MAAM,MAAM,2BAA2B,CAAC,OAAO,SAAS,MAAM,GAAG,MAAM,IAAI,eAAe,CAAC,OAAO,CAAC,CAAA;AAEnG,MAAM,WAAW,2BAA4B,SAAQ,SAAS;IAC5D,kBAAkB,EAAE,2BAA2B,CAAA;CAChD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/EventsModels/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA;AACrC,cAAc,yBAAyB,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Module, ModuleEventData } from '@xyo-network/module-model';
|
|
2
|
+
import type { ModuleAttachedEventData, ModuleDetachedEventData, ModuleRegisteredEventData, ModuleUnregisteredEventData } from './EventsModels/index.ts';
|
|
3
|
+
import type { NodeParams } from './Params.ts';
|
|
4
|
+
export interface NodeModuleEventData extends ModuleAttachedEventData, ModuleDetachedEventData, ModuleRegisteredEventData, ModuleUnregisteredEventData, ModuleEventData {
|
|
5
|
+
}
|
|
6
|
+
export interface NodeModule<TParams extends NodeParams = NodeParams, TEventData extends NodeModuleEventData = NodeModuleEventData> extends Module<TParams, TEventData> {
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=Node.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Node.d.ts","sourceRoot":"","sources":["../../src/Node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAExE,OAAO,KAAK,EACV,uBAAuB,EAAE,uBAAuB,EAAE,yBAAyB,EAAE,2BAA2B,EACzG,MAAM,yBAAyB,CAAA;AAChC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAE7C,MAAM,WAAW,mBACf,SAAQ,uBAAuB,EAC/B,uBAAuB,EACvB,yBAAyB,EACzB,2BAA2B,EAC3B,eAAe;CAAG;AAEpB,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"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { EmptyObject } from '@xylabs/object';
|
|
2
|
+
import type { AnyConfigSchema, ModuleParams } from '@xyo-network/module-model';
|
|
3
|
+
import type { NodeConfig } from './Config.ts';
|
|
4
|
+
export type NodeParams<TConfig extends AnyConfigSchema<NodeConfig> = AnyConfigSchema<NodeConfig>, TAdditionalParams extends EmptyObject | void = void> = ModuleParams<TConfig, TAdditionalParams>;
|
|
5
|
+
//# sourceMappingURL=Params.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../src/Params.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AACjD,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAE9E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAE7C,MAAM,MAAM,UAAU,CACpB,OAAO,SAAS,eAAe,CAAC,UAAU,CAAC,GAAG,eAAe,CAAC,UAAU,CAAC,EACzE,iBAAiB,SAAS,WAAW,GAAG,IAAI,GAAG,IAAI,IACjD,YAAY,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ModuleIdentifier } from '@xyo-network/module-model';
|
|
2
|
+
import type { Query } from '@xyo-network/payload-model';
|
|
3
|
+
export declare const NodeAttachQuerySchema: "network.xyo.query.node.attach";
|
|
4
|
+
export type NodeAttachQuerySchema = typeof NodeAttachQuerySchema;
|
|
5
|
+
export type NodeAttachQuery = Query<{
|
|
6
|
+
external?: boolean;
|
|
7
|
+
id: ModuleIdentifier;
|
|
8
|
+
schema: NodeAttachQuerySchema;
|
|
9
|
+
}>;
|
|
10
|
+
//# sourceMappingURL=Attach.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Attach.d.ts","sourceRoot":"","sources":["../../../src/Queries/Attach.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AACjE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAA;AAEvD,eAAO,MAAM,qBAAqB,EAAG,+BAAwC,CAAA;AAC7E,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAA;AAEhE,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,EAAE,EAAE,gBAAgB,CAAA;IACpB,MAAM,EAAE,qBAAqB,CAAA;CAC9B,CAAC,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Query } from '@xyo-network/payload-model';
|
|
2
|
+
export declare const NodeAttachedQuerySchema: "network.xyo.query.node.attached";
|
|
3
|
+
export type NodeAttachedQuerySchema = typeof NodeAttachedQuerySchema;
|
|
4
|
+
export type NodeAttachedQuery = Query<{
|
|
5
|
+
schema: NodeAttachedQuerySchema;
|
|
6
|
+
}>;
|
|
7
|
+
//# sourceMappingURL=Attached.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Attached.d.ts","sourceRoot":"","sources":["../../../src/Queries/Attached.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAA;AAEvD,eAAO,MAAM,uBAAuB,EAAG,iCAA0C,CAAA;AACjF,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAA;AAEpE,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC;IACpC,MAAM,EAAE,uBAAuB,CAAA;CAChC,CAAC,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ModuleIdentifier } from '@xyo-network/module-model';
|
|
2
|
+
import type { Query } from '@xyo-network/payload-model';
|
|
3
|
+
export declare const NodeCertifyQuerySchema: "network.xyo.query.node.certify";
|
|
4
|
+
export type NodeCertifyQuerySchema = typeof NodeCertifyQuerySchema;
|
|
5
|
+
export type NodeCertifyQuery = Query<{
|
|
6
|
+
id: ModuleIdentifier;
|
|
7
|
+
schema: NodeCertifyQuerySchema;
|
|
8
|
+
}>;
|
|
9
|
+
//# sourceMappingURL=Certify.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Certify.d.ts","sourceRoot":"","sources":["../../../src/Queries/Certify.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AACjE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAA;AAEvD,eAAO,MAAM,sBAAsB,EAAG,gCAAyC,CAAA;AAC/E,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAA;AAElE,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC;IACnC,EAAE,EAAE,gBAAgB,CAAA;IACpB,MAAM,EAAE,sBAAsB,CAAA;CAC/B,CAAC,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ModuleIdentifier } from '@xyo-network/module-model';
|
|
2
|
+
import type { Query } from '@xyo-network/payload-model';
|
|
3
|
+
export declare const NodeDetachQuerySchema: "network.xyo.query.node.detach";
|
|
4
|
+
export type NodeDetachQuerySchema = typeof NodeDetachQuerySchema;
|
|
5
|
+
export type NodeDetachQuery = Query<{
|
|
6
|
+
id: ModuleIdentifier;
|
|
7
|
+
schema: NodeDetachQuerySchema;
|
|
8
|
+
}>;
|
|
9
|
+
//# sourceMappingURL=Detach.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Detach.d.ts","sourceRoot":"","sources":["../../../src/Queries/Detach.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AACjE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAA;AAEvD,eAAO,MAAM,qBAAqB,EAAG,+BAAwC,CAAA;AAC7E,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAA;AAEhE,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC;IAClC,EAAE,EAAE,gBAAgB,CAAA;IACpB,MAAM,EAAE,qBAAqB,CAAA;CAC9B,CAAC,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Query } from '@xyo-network/payload-model';
|
|
2
|
+
export declare const NodeRegisteredQuerySchema: "network.xyo.query.node.registered";
|
|
3
|
+
export type NodeRegisteredQuerySchema = typeof NodeRegisteredQuerySchema;
|
|
4
|
+
export type NodeRegisteredQuery = Query<{
|
|
5
|
+
schema: NodeRegisteredQuerySchema;
|
|
6
|
+
}>;
|
|
7
|
+
//# sourceMappingURL=Registered.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Registered.d.ts","sourceRoot":"","sources":["../../../src/Queries/Registered.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAA;AAEvD,eAAO,MAAM,yBAAyB,EAAG,mCAA4C,CAAA;AACrF,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAA;AAExE,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC;IACtC,MAAM,EAAE,yBAAyB,CAAA;CAClC,CAAC,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ModuleQueries } from '@xyo-network/module-model';
|
|
2
|
+
import type { NodeAttachQuery } from './Attach.ts';
|
|
3
|
+
import type { NodeAttachedQuery } from './Attached.ts';
|
|
4
|
+
import type { NodeCertifyQuery } from './Certify.ts';
|
|
5
|
+
import type { NodeDetachQuery } from './Detach.ts';
|
|
6
|
+
import type { NodeRegisteredQuery } from './Registered.ts';
|
|
7
|
+
export * from './Attach.ts';
|
|
8
|
+
export * from './Attached.ts';
|
|
9
|
+
export * from './Certify.ts';
|
|
10
|
+
export * from './Detach.ts';
|
|
11
|
+
export * from './Registered.ts';
|
|
12
|
+
export type NodeQueries = NodeAttachQuery | NodeCertifyQuery | NodeDetachQuery | NodeAttachedQuery | NodeRegisteredQuery;
|
|
13
|
+
export type NodeModuleQueries = ModuleQueries | NodeQueries;
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Queries/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAE9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAClD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AACtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AACpD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAClD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AAE1D,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA;AAE/B,MAAM,MAAM,WAAW,GAAG,eAAe,GAAG,gBAAgB,GAAG,eAAe,GAAG,iBAAiB,GAAG,mBAAmB,CAAA;AACxH,MAAM,MAAM,iBAAiB,GAAG,aAAa,GAAG,WAAW,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { TypeCheck } from '@xylabs/object';
|
|
2
|
+
import { IsObjectFactory } from '@xylabs/object';
|
|
3
|
+
import type { AttachableModuleInstance } from '@xyo-network/module-model';
|
|
4
|
+
import type { NodeInstance } from '../instance.ts';
|
|
5
|
+
import type { NodeModule, NodeModuleEventData } from '../Node.ts';
|
|
6
|
+
import type { NodeParams } from '../Params.ts';
|
|
7
|
+
export interface AttachableNodeInstance<TParams extends NodeParams = NodeParams, TEventData extends NodeModuleEventData = NodeModuleEventData> extends NodeModule<TParams, TEventData>, AttachableModuleInstance<TParams, TEventData>, NodeInstance<TParams, TEventData> {
|
|
8
|
+
}
|
|
9
|
+
export type AttachableNodeInstanceTypeCheck<T extends AttachableNodeInstance = AttachableNodeInstance> = TypeCheck<T>;
|
|
10
|
+
export declare class IsAttachableNodeInstanceFactory<T extends AttachableNodeInstance = AttachableNodeInstance> extends IsObjectFactory<T> {
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=AttachableInstance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/AttachableInstance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAA;AAEzE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AACjE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAE9C,MAAM,WAAW,sBAAsB,CAAC,OAAO,SAAS,UAAU,GAAG,UAAU,EAAE,UAAU,SAAS,mBAAmB,GAAG,mBAAmB,CAC3I,SAAQ,UAAU,CAAC,OAAO,EAAE,UAAU,CAAC,EACvC,wBAAwB,CAAC,OAAO,EAAE,UAAU,CAAC,EAC7C,YAAY,CAAC,OAAO,EAAE,UAAU,CAAC;CAAG;AAEtC,MAAM,MAAM,+BAA+B,CAAC,CAAC,SAAS,sBAAsB,GAAG,sBAAsB,IAAI,SAAS,CAAC,CAAC,CAAC,CAAA;AAErH,qBAAa,+BAA+B,CAAC,CAAC,SAAS,sBAAsB,GAAG,sBAAsB,CAAE,SAAQ,eAAe,CAAC,CAAC,CAAC;CAAG"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export declare const asAttachableNodeInstance: {
|
|
2
|
+
<TType extends import("./AttachableInstance.ts").AttachableNodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
3
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
4
|
+
addToResolvers?: boolean;
|
|
5
|
+
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
6
|
+
allowNameResolution?: boolean;
|
|
7
|
+
config: import("@xyo-network/module-model").AnyConfigSchema<import("../Config.ts").NodeConfig>;
|
|
8
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
9
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
10
|
+
privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
11
|
+
publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
12
|
+
}, import("../Node.ts").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
13
|
+
<TType extends import("./AttachableInstance.ts").AttachableNodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
14
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
15
|
+
addToResolvers?: boolean;
|
|
16
|
+
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
17
|
+
allowNameResolution?: boolean;
|
|
18
|
+
config: import("@xyo-network/module-model").AnyConfigSchema<import("../Config.ts").NodeConfig>;
|
|
19
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
20
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
21
|
+
privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
22
|
+
publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
23
|
+
}, import("../Node.ts").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<import("./AttachableInstance.ts").AttachableNodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
24
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
25
|
+
addToResolvers?: boolean;
|
|
26
|
+
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
27
|
+
allowNameResolution?: boolean;
|
|
28
|
+
config: import("@xyo-network/module-model").AnyConfigSchema<import("../Config.ts").NodeConfig>;
|
|
29
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
30
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
31
|
+
privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
32
|
+
publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
33
|
+
}, import("../Node.ts").NodeModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=asAttachableInstance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asAttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/asAttachableInstance.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,wBAAwB;;;;;;;;;;;gEACI,iBAAiB,iCAAiC,gBAAoB;;;;;;;;;;;gEAA+E,iBAAiB;;;;;;;;;;mEAAgG,gBAAoB;CAD3O,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/attachable/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,yBAAyB,CAAA;AACvC,cAAc,2BAA2B,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { TypeCheck } from '@xylabs/object';
|
|
2
|
+
import type { ObjectTypeShape } from '@xylabs/typeof';
|
|
3
|
+
import type { AttachableNodeInstance } from './AttachableInstance.ts';
|
|
4
|
+
export declare const requiredAttachableNodeInstanceFunctions: ObjectTypeShape;
|
|
5
|
+
export declare const isAttachableNodeInstance: TypeCheck<AttachableNodeInstance>;
|
|
6
|
+
//# sourceMappingURL=isAttachableInstance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isAttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/isAttachableInstance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE/C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAIrD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAA;AAErE,eAAO,MAAM,uCAAuC,EAAE,eAAoB,CAAA;AAK1E,eAAO,MAAM,wBAAwB,EAAE,SAAS,CAAC,sBAAsB,CAGrE,CAAA"}
|
package/dist/neutral/index.d.ts
CHANGED
|
@@ -1,268 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
import { ObjectTypeShape } from '@xylabs/typeof';
|
|
12
|
-
|
|
13
|
-
declare const ChildCertificationSchema: "network.xyo.child.certification";
|
|
14
|
-
type ChildCertificationSchema = typeof ChildCertificationSchema;
|
|
15
|
-
interface ChildCertificationFields {
|
|
16
|
-
address: Address;
|
|
17
|
-
expiration: number;
|
|
18
|
-
}
|
|
19
|
-
type ChildCertification = Payload<ChildCertificationFields, ChildCertificationSchema>;
|
|
20
|
-
|
|
21
|
-
type ModuleAttachedEventArgs<TModule extends Module = Module> = ModuleEventArgs<TModule>;
|
|
22
|
-
interface ModuleAttachedEventData extends EventData {
|
|
23
|
-
moduleAttached: ModuleAttachedEventArgs;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
type ModuleDetachedEventArgs<TModule extends Module = Module> = ModuleEventArgs<TModule>;
|
|
27
|
-
interface ModuleDetachedEventData extends EventData {
|
|
28
|
-
moduleDetached: ModuleDetachedEventArgs;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
type ModuleRegisteredEventArgs<TModule extends Module = Module> = ModuleEventArgs<TModule>;
|
|
32
|
-
interface ModuleRegisteredEventData extends EventData {
|
|
33
|
-
moduleRegistered: ModuleRegisteredEventArgs;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
type ModuleUnregisteredEventArgs<TModule extends Module = Module> = ModuleEventArgs<TModule>;
|
|
37
|
-
interface ModuleUnregisteredEventData extends EventData {
|
|
38
|
-
moduleUnregistered: ModuleUnregisteredEventArgs;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
declare const NodeConfigSchema: "network.xyo.node.config";
|
|
42
|
-
type NodeConfigSchema = typeof NodeConfigSchema;
|
|
43
|
-
type NodeConfig<TConfig extends EmptyObject | Payload | void = void, TSchema extends string | void = void> = ModuleConfig<WithAdditional<{
|
|
44
|
-
archivist?: string;
|
|
45
|
-
}, TConfig>, TSchema extends void ? TConfig extends Payload ? TConfig['schema'] : NodeConfigSchema : TSchema>;
|
|
46
|
-
|
|
47
|
-
type NodeParams<TConfig extends AnyConfigSchema<NodeConfig> = AnyConfigSchema<NodeConfig>, TAdditionalParams extends EmptyObject | void = void> = ModuleParams<TConfig, TAdditionalParams>;
|
|
48
|
-
|
|
49
|
-
interface NodeModuleEventData extends ModuleAttachedEventData, ModuleDetachedEventData, ModuleRegisteredEventData, ModuleUnregisteredEventData, ModuleEventData {
|
|
50
|
-
}
|
|
51
|
-
interface NodeModule<TParams extends NodeParams = NodeParams, TEventData extends NodeModuleEventData = NodeModuleEventData> extends Module<TParams, TEventData> {
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
interface NodeQueryFunctions {
|
|
55
|
-
attach: (id: ModuleIdentifier, external?: boolean) => Promise<Address | undefined>;
|
|
56
|
-
attachQuery: (id: ModuleIdentifier, external?: boolean, account?: AccountInstance) => Promise<ModuleQueryResult<AddressPayload>>;
|
|
57
|
-
attached: () => Promise<Address[]>;
|
|
58
|
-
attachedQuery: (account?: AccountInstance) => Promise<ModuleQueryResult<AddressPayload>>;
|
|
59
|
-
certify: (id: ModuleIdentifier) => Promise<ChildCertificationFields | undefined>;
|
|
60
|
-
certifyQuery: (id: ModuleIdentifier, account?: AccountInstance) => Promise<ModuleQueryResult<ChildCertification>>;
|
|
61
|
-
detach: (id: ModuleIdentifier) => Promise<Address | undefined>;
|
|
62
|
-
detachQuery: (id: ModuleIdentifier, account?: AccountInstance) => Promise<ModuleQueryResult<AddressPayload>>;
|
|
63
|
-
registered: () => Promise<Address[]>;
|
|
64
|
-
registeredQuery: (account?: AccountInstance) => Promise<ModuleQueryResult<AddressPayload>>;
|
|
65
|
-
}
|
|
66
|
-
interface NodeRegistrationFunctions {
|
|
67
|
-
register?: (mod: AttachableModuleInstance) => Promise<void>;
|
|
68
|
-
registeredModules?: () => AttachableModuleInstance[];
|
|
69
|
-
unregister?: (mod: ModuleInstance) => Promise<ModuleInstance>;
|
|
70
|
-
}
|
|
71
|
-
interface NodeInstance<TParams extends NodeParams = NodeParams, TEventData extends NodeModuleEventData = NodeModuleEventData> extends NodeModule<TParams, TEventData>, NodeQueryFunctions, NodeRegistrationFunctions, ModuleInstance<TParams, TEventData> {
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
interface AttachableNodeInstance<TParams extends NodeParams = NodeParams, TEventData extends NodeModuleEventData = NodeModuleEventData> extends NodeModule<TParams, TEventData>, AttachableModuleInstance<TParams, TEventData>, NodeInstance<TParams, TEventData> {
|
|
75
|
-
}
|
|
76
|
-
type AttachableNodeInstanceTypeCheck<T extends AttachableNodeInstance = AttachableNodeInstance> = TypeCheck<T>;
|
|
77
|
-
declare class IsAttachableNodeInstanceFactory<T extends AttachableNodeInstance = AttachableNodeInstance> extends IsObjectFactory<T> {
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
declare const asAttachableNodeInstance: {
|
|
81
|
-
<TType extends AttachableNodeInstance<_xylabs_object.BaseParamsFields & {
|
|
82
|
-
account?: _xyo_network_account_model.AccountInstance | "random";
|
|
83
|
-
addToResolvers?: boolean;
|
|
84
|
-
additionalSigners?: _xyo_network_account_model.AccountInstance[];
|
|
85
|
-
allowNameResolution?: boolean;
|
|
86
|
-
config: _xyo_network_module_model.AnyConfigSchema<NodeConfig>;
|
|
87
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
88
|
-
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
89
|
-
privateChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
90
|
-
publicChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
91
|
-
}, NodeModuleEventData>>(value: _xylabs_promise.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
92
|
-
<TType extends AttachableNodeInstance<_xylabs_object.BaseParamsFields & {
|
|
93
|
-
account?: _xyo_network_account_model.AccountInstance | "random";
|
|
94
|
-
addToResolvers?: boolean;
|
|
95
|
-
additionalSigners?: _xyo_network_account_model.AccountInstance[];
|
|
96
|
-
allowNameResolution?: boolean;
|
|
97
|
-
config: _xyo_network_module_model.AnyConfigSchema<NodeConfig>;
|
|
98
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
99
|
-
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
100
|
-
privateChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
101
|
-
publicChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
102
|
-
}, NodeModuleEventData>>(value: _xylabs_promise.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<AttachableNodeInstance<_xylabs_object.BaseParamsFields & {
|
|
103
|
-
account?: _xyo_network_account_model.AccountInstance | "random";
|
|
104
|
-
addToResolvers?: boolean;
|
|
105
|
-
additionalSigners?: _xyo_network_account_model.AccountInstance[];
|
|
106
|
-
allowNameResolution?: boolean;
|
|
107
|
-
config: _xyo_network_module_model.AnyConfigSchema<NodeConfig>;
|
|
108
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
109
|
-
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
110
|
-
privateChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
111
|
-
publicChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
112
|
-
}, NodeModuleEventData>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
declare const requiredAttachableNodeInstanceFunctions: ObjectTypeShape;
|
|
116
|
-
declare const isAttachableNodeInstance: TypeCheck<AttachableNodeInstance>;
|
|
117
|
-
|
|
118
|
-
declare const NodeAttachQuerySchema: "network.xyo.query.node.attach";
|
|
119
|
-
type NodeAttachQuerySchema = typeof NodeAttachQuerySchema;
|
|
120
|
-
type NodeAttachQuery = Query<{
|
|
121
|
-
external?: boolean;
|
|
122
|
-
id: ModuleIdentifier;
|
|
123
|
-
schema: NodeAttachQuerySchema;
|
|
124
|
-
}>;
|
|
125
|
-
|
|
126
|
-
declare const NodeAttachedQuerySchema: "network.xyo.query.node.attached";
|
|
127
|
-
type NodeAttachedQuerySchema = typeof NodeAttachedQuerySchema;
|
|
128
|
-
type NodeAttachedQuery = Query<{
|
|
129
|
-
schema: NodeAttachedQuerySchema;
|
|
130
|
-
}>;
|
|
131
|
-
|
|
132
|
-
declare const NodeCertifyQuerySchema: "network.xyo.query.node.certify";
|
|
133
|
-
type NodeCertifyQuerySchema = typeof NodeCertifyQuerySchema;
|
|
134
|
-
type NodeCertifyQuery = Query<{
|
|
135
|
-
id: ModuleIdentifier;
|
|
136
|
-
schema: NodeCertifyQuerySchema;
|
|
137
|
-
}>;
|
|
138
|
-
|
|
139
|
-
declare const NodeDetachQuerySchema: "network.xyo.query.node.detach";
|
|
140
|
-
type NodeDetachQuerySchema = typeof NodeDetachQuerySchema;
|
|
141
|
-
type NodeDetachQuery = Query<{
|
|
142
|
-
id: ModuleIdentifier;
|
|
143
|
-
schema: NodeDetachQuerySchema;
|
|
144
|
-
}>;
|
|
145
|
-
|
|
146
|
-
declare const NodeRegisteredQuerySchema: "network.xyo.query.node.registered";
|
|
147
|
-
type NodeRegisteredQuerySchema = typeof NodeRegisteredQuerySchema;
|
|
148
|
-
type NodeRegisteredQuery = Query<{
|
|
149
|
-
schema: NodeRegisteredQuerySchema;
|
|
150
|
-
}>;
|
|
151
|
-
|
|
152
|
-
type NodeQueries = NodeAttachQuery | NodeCertifyQuery | NodeDetachQuery | NodeAttachedQuery | NodeRegisteredQuery;
|
|
153
|
-
type NodeModuleQueries = ModuleQueries | NodeQueries;
|
|
154
|
-
|
|
155
|
-
declare const isNodeInstance: _xylabs_object.TypeCheck<NodeInstance<_xylabs_object.BaseParamsFields & {
|
|
156
|
-
account?: _xyo_network_account_model.AccountInstance | "random";
|
|
157
|
-
addToResolvers?: boolean;
|
|
158
|
-
additionalSigners?: _xyo_network_account_model.AccountInstance[];
|
|
159
|
-
allowNameResolution?: boolean;
|
|
160
|
-
config: _xyo_network_module_model.AnyConfigSchema<NodeConfig>;
|
|
161
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
162
|
-
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
163
|
-
privateChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
164
|
-
publicChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
165
|
-
}, NodeModuleEventData>>;
|
|
166
|
-
declare const isNodeModule: _xyo_network_module_model.ModuleTypeCheck<NodeModule<_xylabs_object.BaseParamsFields & {
|
|
167
|
-
account?: _xyo_network_account_model.AccountInstance | "random";
|
|
168
|
-
addToResolvers?: boolean;
|
|
169
|
-
additionalSigners?: _xyo_network_account_model.AccountInstance[];
|
|
170
|
-
allowNameResolution?: boolean;
|
|
171
|
-
config: _xyo_network_module_model.AnyConfigSchema<NodeConfig>;
|
|
172
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
173
|
-
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
174
|
-
privateChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
175
|
-
publicChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
176
|
-
}, NodeModuleEventData>>;
|
|
177
|
-
declare const asNodeModule: {
|
|
178
|
-
<TType extends NodeModule<_xylabs_object.BaseParamsFields & {
|
|
179
|
-
account?: _xyo_network_account_model.AccountInstance | "random";
|
|
180
|
-
addToResolvers?: boolean;
|
|
181
|
-
additionalSigners?: _xyo_network_account_model.AccountInstance[];
|
|
182
|
-
allowNameResolution?: boolean;
|
|
183
|
-
config: _xyo_network_module_model.AnyConfigSchema<NodeConfig>;
|
|
184
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
185
|
-
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
186
|
-
privateChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
187
|
-
publicChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
188
|
-
}, NodeModuleEventData>>(value: _xylabs_promise.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
189
|
-
<TType extends NodeModule<_xylabs_object.BaseParamsFields & {
|
|
190
|
-
account?: _xyo_network_account_model.AccountInstance | "random";
|
|
191
|
-
addToResolvers?: boolean;
|
|
192
|
-
additionalSigners?: _xyo_network_account_model.AccountInstance[];
|
|
193
|
-
allowNameResolution?: boolean;
|
|
194
|
-
config: _xyo_network_module_model.AnyConfigSchema<NodeConfig>;
|
|
195
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
196
|
-
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
197
|
-
privateChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
198
|
-
publicChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
199
|
-
}, NodeModuleEventData>>(value: _xylabs_promise.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<NodeModule<_xylabs_object.BaseParamsFields & {
|
|
200
|
-
account?: _xyo_network_account_model.AccountInstance | "random";
|
|
201
|
-
addToResolvers?: boolean;
|
|
202
|
-
additionalSigners?: _xyo_network_account_model.AccountInstance[];
|
|
203
|
-
allowNameResolution?: boolean;
|
|
204
|
-
config: _xyo_network_module_model.AnyConfigSchema<NodeConfig>;
|
|
205
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
206
|
-
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
207
|
-
privateChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
208
|
-
publicChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
209
|
-
}, NodeModuleEventData>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
210
|
-
};
|
|
211
|
-
declare const asNodeInstance: {
|
|
212
|
-
<TType extends NodeInstance<_xylabs_object.BaseParamsFields & {
|
|
213
|
-
account?: _xyo_network_account_model.AccountInstance | "random";
|
|
214
|
-
addToResolvers?: boolean;
|
|
215
|
-
additionalSigners?: _xyo_network_account_model.AccountInstance[];
|
|
216
|
-
allowNameResolution?: boolean;
|
|
217
|
-
config: _xyo_network_module_model.AnyConfigSchema<NodeConfig>;
|
|
218
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
219
|
-
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
220
|
-
privateChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
221
|
-
publicChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
222
|
-
}, NodeModuleEventData>>(value: _xylabs_promise.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
223
|
-
<TType extends NodeInstance<_xylabs_object.BaseParamsFields & {
|
|
224
|
-
account?: _xyo_network_account_model.AccountInstance | "random";
|
|
225
|
-
addToResolvers?: boolean;
|
|
226
|
-
additionalSigners?: _xyo_network_account_model.AccountInstance[];
|
|
227
|
-
allowNameResolution?: boolean;
|
|
228
|
-
config: _xyo_network_module_model.AnyConfigSchema<NodeConfig>;
|
|
229
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
230
|
-
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
231
|
-
privateChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
232
|
-
publicChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
233
|
-
}, NodeModuleEventData>>(value: _xylabs_promise.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<NodeInstance<_xylabs_object.BaseParamsFields & {
|
|
234
|
-
account?: _xyo_network_account_model.AccountInstance | "random";
|
|
235
|
-
addToResolvers?: boolean;
|
|
236
|
-
additionalSigners?: _xyo_network_account_model.AccountInstance[];
|
|
237
|
-
allowNameResolution?: boolean;
|
|
238
|
-
config: _xyo_network_module_model.AnyConfigSchema<NodeConfig>;
|
|
239
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
240
|
-
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
241
|
-
privateChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
242
|
-
publicChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
243
|
-
}, NodeModuleEventData>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
244
|
-
};
|
|
245
|
-
declare const withNodeModule: <R>(mod: any, closure: (mod: NodeModule<_xylabs_object.BaseParamsFields & {
|
|
246
|
-
account?: _xyo_network_account_model.AccountInstance | "random";
|
|
247
|
-
addToResolvers?: boolean;
|
|
248
|
-
additionalSigners?: _xyo_network_account_model.AccountInstance[];
|
|
249
|
-
allowNameResolution?: boolean;
|
|
250
|
-
config: _xyo_network_module_model.AnyConfigSchema<NodeConfig>;
|
|
251
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
252
|
-
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
253
|
-
privateChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
254
|
-
publicChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
255
|
-
}, NodeModuleEventData>) => R) => R | undefined;
|
|
256
|
-
declare const withNodeInstance: <R>(mod: any, closure: (mod: NodeInstance<_xylabs_object.BaseParamsFields & {
|
|
257
|
-
account?: _xyo_network_account_model.AccountInstance | "random";
|
|
258
|
-
addToResolvers?: boolean;
|
|
259
|
-
additionalSigners?: _xyo_network_account_model.AccountInstance[];
|
|
260
|
-
allowNameResolution?: boolean;
|
|
261
|
-
config: _xyo_network_module_model.AnyConfigSchema<NodeConfig>;
|
|
262
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
263
|
-
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
264
|
-
privateChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
265
|
-
publicChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
266
|
-
}, NodeModuleEventData>) => R) => R | undefined;
|
|
267
|
-
|
|
268
|
-
export { type AttachableNodeInstance, type AttachableNodeInstanceTypeCheck, type ChildCertification, type ChildCertificationFields, ChildCertificationSchema, IsAttachableNodeInstanceFactory, type ModuleAttachedEventArgs, type ModuleAttachedEventData, type ModuleDetachedEventArgs, type ModuleDetachedEventData, type ModuleRegisteredEventArgs, type ModuleRegisteredEventData, type ModuleUnregisteredEventArgs, type ModuleUnregisteredEventData, type NodeAttachQuery, NodeAttachQuerySchema, type NodeAttachedQuery, NodeAttachedQuerySchema, type NodeCertifyQuery, NodeCertifyQuerySchema, type NodeConfig, NodeConfigSchema, type NodeDetachQuery, NodeDetachQuerySchema, type NodeInstance, type NodeModule, type NodeModuleEventData, type NodeModuleQueries, type NodeParams, type NodeQueries, type NodeQueryFunctions, type NodeRegisteredQuery, NodeRegisteredQuerySchema, type NodeRegistrationFunctions, asAttachableNodeInstance, asNodeInstance, asNodeModule, isAttachableNodeInstance, isNodeInstance, isNodeModule, requiredAttachableNodeInstanceFunctions, withNodeInstance, withNodeModule };
|
|
1
|
+
export * from './attachable/index.ts';
|
|
2
|
+
export * from './ChildCertification.ts';
|
|
3
|
+
export * from './Config.ts';
|
|
4
|
+
export * from './EventsModels/index.ts';
|
|
5
|
+
export * from './instance.ts';
|
|
6
|
+
export * from './Node.ts';
|
|
7
|
+
export * from './Params.ts';
|
|
8
|
+
export * from './Queries/index.ts';
|
|
9
|
+
export * from './typeChecks.ts';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,yBAAyB,CAAA;AACvC,cAAc,aAAa,CAAA;AAC3B,cAAc,yBAAyB,CAAA;AACvC,cAAc,eAAe,CAAA;AAC7B,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA;AAC3B,cAAc,oBAAoB,CAAA;AAClC,cAAc,iBAAiB,CAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { Address } from '@xylabs/hex';
|
|
2
|
+
import type { AccountInstance } from '@xyo-network/account-model';
|
|
3
|
+
import type { AddressPayload, AttachableModuleInstance, ModuleIdentifier, ModuleInstance, ModuleQueryResult } from '@xyo-network/module-model';
|
|
4
|
+
import type { ChildCertification, ChildCertificationFields } from './ChildCertification.ts';
|
|
5
|
+
import type { NodeModule, NodeModuleEventData } from './Node.ts';
|
|
6
|
+
import type { NodeParams } from './Params.ts';
|
|
7
|
+
export interface NodeQueryFunctions {
|
|
8
|
+
attach: (id: ModuleIdentifier, external?: boolean) => Promise<Address | undefined>;
|
|
9
|
+
attachQuery: (id: ModuleIdentifier, external?: boolean, account?: AccountInstance) => Promise<ModuleQueryResult<AddressPayload>>;
|
|
10
|
+
attached: () => Promise<Address[]>;
|
|
11
|
+
attachedQuery: (account?: AccountInstance) => Promise<ModuleQueryResult<AddressPayload>>;
|
|
12
|
+
certify: (id: ModuleIdentifier) => Promise<ChildCertificationFields | undefined>;
|
|
13
|
+
certifyQuery: (id: ModuleIdentifier, account?: AccountInstance) => Promise<ModuleQueryResult<ChildCertification>>;
|
|
14
|
+
detach: (id: ModuleIdentifier) => Promise<Address | undefined>;
|
|
15
|
+
detachQuery: (id: ModuleIdentifier, account?: AccountInstance) => Promise<ModuleQueryResult<AddressPayload>>;
|
|
16
|
+
registered: () => Promise<Address[]>;
|
|
17
|
+
registeredQuery: (account?: AccountInstance) => Promise<ModuleQueryResult<AddressPayload>>;
|
|
18
|
+
}
|
|
19
|
+
export interface NodeRegistrationFunctions {
|
|
20
|
+
register?: (mod: AttachableModuleInstance) => Promise<void>;
|
|
21
|
+
registeredModules?: () => AttachableModuleInstance[];
|
|
22
|
+
unregister?: (mod: ModuleInstance) => Promise<ModuleInstance>;
|
|
23
|
+
}
|
|
24
|
+
export interface NodeInstance<TParams extends NodeParams = NodeParams, TEventData extends NodeModuleEventData = NodeModuleEventData> extends NodeModule<TParams, TEventData>, NodeQueryFunctions, NodeRegistrationFunctions, ModuleInstance<TParams, TEventData> {
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=instance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instance.d.ts","sourceRoot":"","sources":["../../src/instance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,KAAK,EACV,cAAc,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,cAAc,EAAE,iBAAiB,EAC9F,MAAM,2BAA2B,CAAA;AAElC,OAAO,KAAK,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAA;AAC3F,OAAO,KAAK,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAA;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAE7C,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,CAAC,EAAE,EAAE,gBAAgB,EAAE,QAAQ,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC,CAAA;IAClF,WAAW,EAAE,CAAC,EAAE,EAAE,gBAAgB,EAAE,QAAQ,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,eAAe,KAAK,OAAO,CAAC,iBAAiB,CAAC,cAAc,CAAC,CAAC,CAAA;IAChI,QAAQ,EAAE,MAAM,OAAO,CAAC,OAAO,EAAE,CAAC,CAAA;IAClC,aAAa,EAAE,CAAC,OAAO,CAAC,EAAE,eAAe,KAAK,OAAO,CAAC,iBAAiB,CAAC,cAAc,CAAC,CAAC,CAAA;IACxF,OAAO,EAAE,CAAC,EAAE,EAAE,gBAAgB,KAAK,OAAO,CAAC,wBAAwB,GAAG,SAAS,CAAC,CAAA;IAChF,YAAY,EAAE,CAAC,EAAE,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,eAAe,KAAK,OAAO,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,CAAC,CAAA;IACjH,MAAM,EAAE,CAAC,EAAE,EAAE,gBAAgB,KAAK,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC,CAAA;IAC9D,WAAW,EAAE,CAAC,EAAE,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,eAAe,KAAK,OAAO,CAAC,iBAAiB,CAAC,cAAc,CAAC,CAAC,CAAA;IAC5G,UAAU,EAAE,MAAM,OAAO,CAAC,OAAO,EAAE,CAAC,CAAA;IACpC,eAAe,EAAE,CAAC,OAAO,CAAC,EAAE,eAAe,KAAK,OAAO,CAAC,iBAAiB,CAAC,cAAc,CAAC,CAAC,CAAA;CAC3F;AAED,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,wBAAwB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IAC3D,iBAAiB,CAAC,EAAE,MAAM,wBAAwB,EAAE,CAAA;IACpD,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,cAAc,KAAK,OAAO,CAAC,cAAc,CAAC,CAAA;CAC9D;AAED,MAAM,WAAW,YAAY,CAAC,OAAO,SAAS,UAAU,GAAG,UAAU,EAAE,UAAU,SAAS,mBAAmB,GAAG,mBAAmB,CACjI,SAAQ,UAAU,CAAC,OAAO,EAAE,UAAU,CAAC,EACvC,kBAAkB,EAClB,yBAAyB,EACzB,cAAc,CAAC,OAAO,EAAE,UAAU,CAAC;CAAG"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import type { NodeInstance } from './instance.ts';
|
|
2
|
+
import type { NodeModule } from './Node.ts';
|
|
3
|
+
export declare const isNodeInstance: import("@xylabs/object").TypeCheck<NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
4
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
5
|
+
addToResolvers?: boolean;
|
|
6
|
+
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
7
|
+
allowNameResolution?: boolean;
|
|
8
|
+
config: import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").NodeConfig>;
|
|
9
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
10
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
11
|
+
privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
12
|
+
publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
13
|
+
}, import("./Node.ts").NodeModuleEventData>>;
|
|
14
|
+
export declare const isNodeModule: import("@xyo-network/module-model").ModuleTypeCheck<NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
15
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
16
|
+
addToResolvers?: boolean;
|
|
17
|
+
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
18
|
+
allowNameResolution?: boolean;
|
|
19
|
+
config: import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").NodeConfig>;
|
|
20
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
21
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
22
|
+
privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
23
|
+
publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
24
|
+
}, import("./Node.ts").NodeModuleEventData>>;
|
|
25
|
+
export declare const asNodeModule: {
|
|
26
|
+
<TType extends NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
27
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
28
|
+
addToResolvers?: boolean;
|
|
29
|
+
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
30
|
+
allowNameResolution?: boolean;
|
|
31
|
+
config: import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").NodeConfig>;
|
|
32
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
33
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
34
|
+
privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
35
|
+
publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
36
|
+
}, import("./Node.ts").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
37
|
+
<TType extends NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
38
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
39
|
+
addToResolvers?: boolean;
|
|
40
|
+
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
41
|
+
allowNameResolution?: boolean;
|
|
42
|
+
config: import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").NodeConfig>;
|
|
43
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
44
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
45
|
+
privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
46
|
+
publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
47
|
+
}, import("./Node.ts").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
48
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
49
|
+
addToResolvers?: boolean;
|
|
50
|
+
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
51
|
+
allowNameResolution?: boolean;
|
|
52
|
+
config: import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").NodeConfig>;
|
|
53
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
54
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
55
|
+
privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
56
|
+
publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
57
|
+
}, import("./Node.ts").NodeModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
58
|
+
};
|
|
59
|
+
export declare const asNodeInstance: {
|
|
60
|
+
<TType extends NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
61
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
62
|
+
addToResolvers?: boolean;
|
|
63
|
+
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
64
|
+
allowNameResolution?: boolean;
|
|
65
|
+
config: import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").NodeConfig>;
|
|
66
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
67
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
68
|
+
privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
69
|
+
publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
70
|
+
}, import("./Node.ts").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
71
|
+
<TType extends NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
72
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
73
|
+
addToResolvers?: boolean;
|
|
74
|
+
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
75
|
+
allowNameResolution?: boolean;
|
|
76
|
+
config: import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").NodeConfig>;
|
|
77
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
78
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
79
|
+
privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
80
|
+
publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
81
|
+
}, import("./Node.ts").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
82
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
83
|
+
addToResolvers?: boolean;
|
|
84
|
+
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
85
|
+
allowNameResolution?: boolean;
|
|
86
|
+
config: import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").NodeConfig>;
|
|
87
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
88
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
89
|
+
privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
90
|
+
publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
91
|
+
}, import("./Node.ts").NodeModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
92
|
+
};
|
|
93
|
+
export declare const withNodeModule: <R>(mod: any, closure: (mod: NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
94
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
95
|
+
addToResolvers?: boolean;
|
|
96
|
+
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
97
|
+
allowNameResolution?: boolean;
|
|
98
|
+
config: import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").NodeConfig>;
|
|
99
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
100
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
101
|
+
privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
102
|
+
publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
103
|
+
}, import("./Node.ts").NodeModuleEventData>) => R) => R | undefined;
|
|
104
|
+
export declare const withNodeInstance: <R>(mod: any, closure: (mod: NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
105
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
106
|
+
addToResolvers?: boolean;
|
|
107
|
+
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
108
|
+
allowNameResolution?: boolean;
|
|
109
|
+
config: import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").NodeConfig>;
|
|
110
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
111
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
112
|
+
privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
113
|
+
publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
114
|
+
}, import("./Node.ts").NodeModuleEventData>) => R) => R | undefined;
|
|
115
|
+
//# sourceMappingURL=typeChecks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typeChecks.d.ts","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AAK3C,eAAO,MAAM,cAAc;;;;;;;;;;4CAS1B,CAAA;AAID,eAAO,MAAM,YAAY;;;;;;;;;;4CAAkD,CAAA;AAE3E,eAAO,MAAM,YAAY;;;;;;;;;;;+DApBY,iBAC3B,iCAAiC,gBAE1C;;;;;;;;;;;+DAEgB,iBAAiB;;;;;;;;;;kEAIZ,gBACL;CAU+C,CAAA;AAChE,eAAO,MAAM,cAAc;;;;;;;;;;;+DArBU,iBAC3B,iCAAiC,gBAE1C;;;;;;;;;;;+DAEgB,iBAAiB;;;;;;;;;;kEAIZ,gBACL;CAWmD,CAAA;AACpE,eAAO,MAAM,cAAc;;;;;;;;;;mEAAmC,CAAA;AAC9D,eAAO,MAAM,gBAAgB;;;;;;;;;;mEAAqC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/node-model",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.19",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -32,15 +32,15 @@
|
|
|
32
32
|
"@xylabs/hex": "^4.5.1",
|
|
33
33
|
"@xylabs/object": "^4.5.1",
|
|
34
34
|
"@xylabs/typeof": "^4.5.1",
|
|
35
|
-
"@xyo-network/account-model": "^3.9.
|
|
36
|
-
"@xyo-network/module-events": "^3.9.
|
|
37
|
-
"@xyo-network/module-model": "^3.9.
|
|
38
|
-
"@xyo-network/payload-model": "^3.9.
|
|
35
|
+
"@xyo-network/account-model": "^3.9.19",
|
|
36
|
+
"@xyo-network/module-events": "^3.9.19",
|
|
37
|
+
"@xyo-network/module-model": "^3.9.19",
|
|
38
|
+
"@xyo-network/payload-model": "^3.9.19"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@xylabs/ts-scripts-yarn3": "^5.0.
|
|
42
|
-
"@xylabs/tsconfig": "^5.0.
|
|
43
|
-
"typescript": "^5.
|
|
41
|
+
"@xylabs/ts-scripts-yarn3": "^5.0.39",
|
|
42
|
+
"@xylabs/tsconfig": "^5.0.39",
|
|
43
|
+
"typescript": "^5.8.2"
|
|
44
44
|
},
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"access": "public"
|