@xyo-network/node-model 5.2.18 → 5.2.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.
@@ -1,4 +1,4 @@
1
- import type { Address } from '@xylabs/hex';
1
+ import type { Address } from '@xylabs/sdk-js';
2
2
  import type { Payload } from '@xyo-network/payload-model';
3
3
  export declare const ChildCertificationSchema: "network.xyo.child.certification";
4
4
  export type ChildCertificationSchema = typeof ChildCertificationSchema;
@@ -1 +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"}
1
+ {"version":3,"file":"ChildCertification.d.ts","sourceRoot":"","sources":["../../src/ChildCertification.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAC7C,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"}
@@ -1,4 +1,4 @@
1
- import type { EmptyObject, WithAdditional } from '@xylabs/object';
1
+ import type { EmptyObject, WithAdditional } from '@xylabs/sdk-js';
2
2
  import type { ModuleConfig } from '@xyo-network/module-model';
3
3
  import type { Payload } from '@xyo-network/payload-model';
4
4
  export declare const NodeConfigSchema: "network.xyo.node.config";
@@ -1,4 +1,4 @@
1
- import type { EventData } from '@xylabs/events';
1
+ import type { EventData } from '@xylabs/sdk-js';
2
2
  import type { Module, ModuleEventArgs } from '@xyo-network/module-model';
3
3
  export type ModuleAttachedEventArgs<TModule extends Module = Module> = ModuleEventArgs<TModule>;
4
4
  export interface ModuleAttachedEventData extends EventData {
@@ -1,4 +1,4 @@
1
- import type { EventData } from '@xylabs/events';
1
+ import type { EventData } from '@xylabs/sdk-js';
2
2
  import type { Module, ModuleEventArgs } from '@xyo-network/module-model';
3
3
  export type ModuleDetachedEventArgs<TModule extends Module = Module> = ModuleEventArgs<TModule>;
4
4
  export interface ModuleDetachedEventData extends EventData {
@@ -1,4 +1,4 @@
1
- import type { EventData } from '@xylabs/events';
1
+ import type { EventData } from '@xylabs/sdk-js';
2
2
  import type { Module, ModuleEventArgs } from '@xyo-network/module-model';
3
3
  export type ModuleRegisteredEventArgs<TModule extends Module = Module> = ModuleEventArgs<TModule>;
4
4
  export interface ModuleRegisteredEventData extends EventData {
@@ -1,4 +1,4 @@
1
- import type { EventData } from '@xylabs/events';
1
+ import type { EventData } from '@xylabs/sdk-js';
2
2
  import type { Module, ModuleEventArgs } from '@xyo-network/module-model';
3
3
  export type ModuleUnregisteredEventArgs<TModule extends Module = Module> = ModuleEventArgs<TModule>;
4
4
  export interface ModuleUnregisteredEventData extends EventData {
@@ -1,5 +1,5 @@
1
- import type { TypeCheck } from '@xylabs/object';
2
- import { IsObjectFactory } from '@xylabs/object';
1
+ import type { TypeCheck } from '@xylabs/sdk-js';
2
+ import { IsObjectFactory } from '@xylabs/sdk-js';
3
3
  import type { AttachableModuleInstance } from '@xyo-network/module-model';
4
4
  import type { NodeInstance } from '../instance.ts';
5
5
  import type { NodeModule, NodeModuleEventData } from '../Node.ts';
@@ -1,2 +1,2 @@
1
- export declare const asAttachableNodeInstance: import("@xylabs/object").AsTypeFunction<import("./AttachableInstance.ts").AttachableNodeInstance<import("../Params.ts").NodeParams<import("@xyo-network/module-model").AnyConfigSchema<import("../Config.ts").NodeConfig>>, import("../Node.ts").NodeModuleEventData>>;
1
+ export declare const asAttachableNodeInstance: import("@xylabs/sdk-js").AsTypeFunction<import("./AttachableInstance.ts").AttachableNodeInstance<import("../Params.ts").NodeParams<import("@xyo-network/module-model").AnyConfigSchema<import("../Config.ts").NodeConfig>>, import("../Node.ts").NodeModuleEventData>>;
2
2
  //# sourceMappingURL=asAttachableInstance.d.ts.map
@@ -1,5 +1,4 @@
1
- import type { TypeCheck } from '@xylabs/object';
2
- import type { ObjectTypeShape } from '@xylabs/typeof';
1
+ import type { ObjectTypeShape, TypeCheck } from '@xylabs/sdk-js';
3
2
  import type { AttachableNodeInstance } from './AttachableInstance.ts';
4
3
  export declare const requiredAttachableNodeInstanceFunctions: ObjectTypeShape;
5
4
  export declare const isAttachableNodeInstance: TypeCheck<AttachableNodeInstance>;
@@ -1 +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"}
1
+ {"version":3,"file":"isAttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/isAttachableInstance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAKhE,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"}
@@ -1,12 +1,12 @@
1
1
  // src/attachable/asAttachableInstance.ts
2
- import { AsObjectFactory as AsObjectFactory2 } from "@xylabs/object";
2
+ import { AsObjectFactory as AsObjectFactory2 } from "@xylabs/sdk-js";
3
3
 
4
4
  // src/attachable/isAttachableInstance.ts
5
- import { IsObjectFactory } from "@xylabs/object";
5
+ import { IsObjectFactory } from "@xylabs/sdk-js";
6
6
  import { isAttachableModuleInstance } from "@xyo-network/module-model";
7
7
 
8
8
  // src/typeChecks.ts
9
- import { AsObjectFactory } from "@xylabs/object";
9
+ import { AsObjectFactory } from "@xylabs/sdk-js";
10
10
  import {
11
11
  IsInstanceFactory,
12
12
  IsModuleFactory,
@@ -59,7 +59,7 @@ var isAttachableNodeInstance = factory.create(requiredAttachableNodeInstanceFunc
59
59
  var asAttachableNodeInstance = AsObjectFactory2.create(isAttachableNodeInstance);
60
60
 
61
61
  // src/attachable/AttachableInstance.ts
62
- import { IsObjectFactory as IsObjectFactory2 } from "@xylabs/object";
62
+ import { IsObjectFactory as IsObjectFactory2 } from "@xylabs/sdk-js";
63
63
  var IsAttachableNodeInstanceFactory = class extends IsObjectFactory2 {
64
64
  };
65
65
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/attachable/asAttachableInstance.ts","../../src/attachable/isAttachableInstance.ts","../../src/typeChecks.ts","../../src/Queries/Attach.ts","../../src/Queries/Attached.ts","../../src/Queries/Certify.ts","../../src/Queries/Detach.ts","../../src/Queries/Registered.ts","../../src/attachable/AttachableInstance.ts","../../src/ChildCertification.ts","../../src/Config.ts"],"sourcesContent":["import { AsObjectFactory } from '@xylabs/object'\n\nimport { isAttachableNodeInstance } from './isAttachableInstance.ts'\n\nexport const asAttachableNodeInstance = AsObjectFactory.create(isAttachableNodeInstance)\n","import type { TypeCheck } from '@xylabs/object'\nimport { IsObjectFactory } from '@xylabs/object'\nimport type { ObjectTypeShape } from '@xylabs/typeof'\nimport { isAttachableModuleInstance } from '@xyo-network/module-model'\n\nimport { isNodeInstance } from '../typeChecks.ts'\nimport type { AttachableNodeInstance } from './AttachableInstance.ts'\n\nexport const requiredAttachableNodeInstanceFunctions: ObjectTypeShape = {}\n\n// we do not use IsInstanceFactory here to prevent a cycle\nconst factory = new IsObjectFactory<AttachableNodeInstance>()\n\nexport const isAttachableNodeInstance: TypeCheck<AttachableNodeInstance> = factory.create(requiredAttachableNodeInstanceFunctions, [\n isNodeInstance,\n isAttachableModuleInstance,\n])\n","import type { TypeCheck } from '@xylabs/object'\nimport { AsObjectFactory } from '@xylabs/object'\nimport {\n IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory,\n} from '@xyo-network/module-model'\n\nimport type { NodeInstance } from './instance.ts'\nimport type { NodeModule } from './Node.ts'\nimport { NodeAttachedQuerySchema } from './Queries/index.ts'\n\nconst instanceFactory = new IsInstanceFactory<NodeInstance>()\n\nexport const isNodeInstance: TypeCheck<NodeInstance> = instanceFactory.create(\n {\n attach: 'function',\n attached: 'function',\n certify: 'function',\n detach: 'function',\n registered: 'function',\n },\n [isModuleInstance],\n)\n\nexport const isNodeModule: TypeCheck<NodeModule> = new IsModuleFactory<NodeModule>().create([NodeAttachedQuerySchema])\n\nexport const asNodeModule = AsObjectFactory.create(isNodeModule)\nexport const asNodeInstance = AsObjectFactory.create(isNodeInstance)\nexport const withNodeModule = WithFactory.create(isNodeModule)\nexport const withNodeInstance = WithFactory.create(isNodeInstance)\n","import type { ModuleIdentifier } from '@xyo-network/module-model'\nimport type { Query } from '@xyo-network/payload-model'\n\nexport const NodeAttachQuerySchema = 'network.xyo.query.node.attach' as const\nexport type NodeAttachQuerySchema = typeof NodeAttachQuerySchema\n\nexport type NodeAttachQuery = Query<{\n external?: boolean\n id: ModuleIdentifier\n schema: NodeAttachQuerySchema\n}>\n","import type { Query } from '@xyo-network/payload-model'\n\nexport const NodeAttachedQuerySchema = 'network.xyo.query.node.attached' as const\nexport type NodeAttachedQuerySchema = typeof NodeAttachedQuerySchema\n\nexport type NodeAttachedQuery = Query<{\n schema: NodeAttachedQuerySchema\n}>\n","import type { ModuleIdentifier } from '@xyo-network/module-model'\nimport type { Query } from '@xyo-network/payload-model'\n\nexport const NodeCertifyQuerySchema = 'network.xyo.query.node.certify' as const\nexport type NodeCertifyQuerySchema = typeof NodeCertifyQuerySchema\n\nexport type NodeCertifyQuery = Query<{\n id: ModuleIdentifier\n schema: NodeCertifyQuerySchema\n}>\n","import type { ModuleIdentifier } from '@xyo-network/module-model'\nimport type { Query } from '@xyo-network/payload-model'\n\nexport const NodeDetachQuerySchema = 'network.xyo.query.node.detach' as const\nexport type NodeDetachQuerySchema = typeof NodeDetachQuerySchema\n\nexport type NodeDetachQuery = Query<{\n id: ModuleIdentifier\n schema: NodeDetachQuerySchema\n}>\n","import type { Query } from '@xyo-network/payload-model'\n\nexport const NodeRegisteredQuerySchema = 'network.xyo.query.node.registered' as const\nexport type NodeRegisteredQuerySchema = typeof NodeRegisteredQuerySchema\n\nexport type NodeRegisteredQuery = Query<{\n schema: NodeRegisteredQuerySchema\n}>\n","import type { TypeCheck } from '@xylabs/object'\nimport { IsObjectFactory } from '@xylabs/object'\nimport type { AttachableModuleInstance } from '@xyo-network/module-model'\n\nimport type { NodeInstance } from '../instance.ts'\nimport type { NodeModule, NodeModuleEventData } from '../Node.ts'\nimport type { NodeParams } from '../Params.ts'\n\nexport interface AttachableNodeInstance<TParams extends NodeParams = NodeParams, TEventData extends NodeModuleEventData = NodeModuleEventData>\n extends NodeModule<TParams, TEventData>,\n AttachableModuleInstance<TParams, TEventData>,\n NodeInstance<TParams, TEventData> {}\n\nexport type AttachableNodeInstanceTypeCheck<T extends AttachableNodeInstance = AttachableNodeInstance> = TypeCheck<T>\n\nexport class IsAttachableNodeInstanceFactory<T extends AttachableNodeInstance = AttachableNodeInstance> extends IsObjectFactory<T> {}\n","import type { Address } from '@xylabs/hex'\nimport type { Payload } from '@xyo-network/payload-model'\n\nexport const ChildCertificationSchema = 'network.xyo.child.certification' as const\nexport type ChildCertificationSchema = typeof ChildCertificationSchema\n\nexport interface ChildCertificationFields {\n address: Address\n expiration: number\n}\n\nexport type ChildCertification = Payload<ChildCertificationFields, ChildCertificationSchema>\n","import type { EmptyObject, WithAdditional } from '@xylabs/object'\nimport type { ModuleConfig } from '@xyo-network/module-model'\nimport type { Payload } from '@xyo-network/payload-model'\n\nexport const NodeConfigSchema = 'network.xyo.node.config' as const\nexport type NodeConfigSchema = typeof NodeConfigSchema\n\nexport type NodeConfig<TConfig extends EmptyObject | Payload | void = void, TSchema extends string | void = void> = ModuleConfig<\n WithAdditional<\n {\n archivist?: string\n },\n TConfig\n >,\n TSchema extends void\n ? TConfig extends Payload\n ? TConfig['schema']\n : NodeConfigSchema\n : TSchema\n>\n"],"mappings":";AAAA,SAAS,mBAAAA,wBAAuB;;;ACChC,SAAS,uBAAuB;AAEhC,SAAS,kCAAkC;;;ACF3C,SAAS,uBAAuB;AAChC;AAAA,EACE;AAAA,EAAmB;AAAA,EAAiB;AAAA,EAAkB;AAAA,OACjD;;;ACDA,IAAM,wBAAwB;;;ACD9B,IAAM,0BAA0B;;;ACChC,IAAM,yBAAyB;;;ACA/B,IAAM,wBAAwB;;;ACD9B,IAAM,4BAA4B;;;ALQzC,IAAM,kBAAkB,IAAI,kBAAgC;AAErD,IAAM,iBAA0C,gBAAgB;AAAA,EACrE;AAAA,IACE,QAAQ;AAAA,IACR,UAAU;AAAA,IACV,SAAS;AAAA,IACT,QAAQ;AAAA,IACR,YAAY;AAAA,EACd;AAAA,EACA,CAAC,gBAAgB;AACnB;AAEO,IAAM,eAAsC,IAAI,gBAA4B,EAAE,OAAO,CAAC,uBAAuB,CAAC;AAE9G,IAAM,eAAe,gBAAgB,OAAO,YAAY;AACxD,IAAM,iBAAiB,gBAAgB,OAAO,cAAc;AAC5D,IAAM,iBAAiB,YAAY,OAAO,YAAY;AACtD,IAAM,mBAAmB,YAAY,OAAO,cAAc;;;ADpB1D,IAAM,0CAA2D,CAAC;AAGzE,IAAM,UAAU,IAAI,gBAAwC;AAErD,IAAM,2BAA8D,QAAQ,OAAO,yCAAyC;AAAA,EACjI;AAAA,EACA;AACF,CAAC;;;ADZM,IAAM,2BAA2BC,iBAAgB,OAAO,wBAAwB;;;AQHvF,SAAS,mBAAAC,wBAAuB;AAczB,IAAM,kCAAN,cAAyGA,iBAAmB;AAAC;;;ACZ7H,IAAM,2BAA2B;;;ACCjC,IAAM,mBAAmB;","names":["AsObjectFactory","AsObjectFactory","IsObjectFactory"]}
1
+ {"version":3,"sources":["../../src/attachable/asAttachableInstance.ts","../../src/attachable/isAttachableInstance.ts","../../src/typeChecks.ts","../../src/Queries/Attach.ts","../../src/Queries/Attached.ts","../../src/Queries/Certify.ts","../../src/Queries/Detach.ts","../../src/Queries/Registered.ts","../../src/attachable/AttachableInstance.ts","../../src/ChildCertification.ts","../../src/Config.ts"],"sourcesContent":["import { AsObjectFactory } from '@xylabs/sdk-js'\n\nimport { isAttachableNodeInstance } from './isAttachableInstance.ts'\n\nexport const asAttachableNodeInstance = AsObjectFactory.create(isAttachableNodeInstance)\n","import type { ObjectTypeShape, TypeCheck } from '@xylabs/sdk-js'\nimport { IsObjectFactory } from '@xylabs/sdk-js'\nimport { isAttachableModuleInstance } from '@xyo-network/module-model'\n\nimport { isNodeInstance } from '../typeChecks.ts'\nimport type { AttachableNodeInstance } from './AttachableInstance.ts'\n\nexport const requiredAttachableNodeInstanceFunctions: ObjectTypeShape = {}\n\n// we do not use IsInstanceFactory here to prevent a cycle\nconst factory = new IsObjectFactory<AttachableNodeInstance>()\n\nexport const isAttachableNodeInstance: TypeCheck<AttachableNodeInstance> = factory.create(requiredAttachableNodeInstanceFunctions, [\n isNodeInstance,\n isAttachableModuleInstance,\n])\n","import type { TypeCheck } from '@xylabs/sdk-js'\nimport { AsObjectFactory } from '@xylabs/sdk-js'\nimport {\n IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory,\n} from '@xyo-network/module-model'\n\nimport type { NodeInstance } from './instance.ts'\nimport type { NodeModule } from './Node.ts'\nimport { NodeAttachedQuerySchema } from './Queries/index.ts'\n\nconst instanceFactory = new IsInstanceFactory<NodeInstance>()\n\nexport const isNodeInstance: TypeCheck<NodeInstance> = instanceFactory.create(\n {\n attach: 'function',\n attached: 'function',\n certify: 'function',\n detach: 'function',\n registered: 'function',\n },\n [isModuleInstance],\n)\n\nexport const isNodeModule: TypeCheck<NodeModule> = new IsModuleFactory<NodeModule>().create([NodeAttachedQuerySchema])\n\nexport const asNodeModule = AsObjectFactory.create(isNodeModule)\nexport const asNodeInstance = AsObjectFactory.create(isNodeInstance)\nexport const withNodeModule = WithFactory.create(isNodeModule)\nexport const withNodeInstance = WithFactory.create(isNodeInstance)\n","import type { ModuleIdentifier } from '@xyo-network/module-model'\nimport type { Query } from '@xyo-network/payload-model'\n\nexport const NodeAttachQuerySchema = 'network.xyo.query.node.attach' as const\nexport type NodeAttachQuerySchema = typeof NodeAttachQuerySchema\n\nexport type NodeAttachQuery = Query<{\n external?: boolean\n id: ModuleIdentifier\n schema: NodeAttachQuerySchema\n}>\n","import type { Query } from '@xyo-network/payload-model'\n\nexport const NodeAttachedQuerySchema = 'network.xyo.query.node.attached' as const\nexport type NodeAttachedQuerySchema = typeof NodeAttachedQuerySchema\n\nexport type NodeAttachedQuery = Query<{\n schema: NodeAttachedQuerySchema\n}>\n","import type { ModuleIdentifier } from '@xyo-network/module-model'\nimport type { Query } from '@xyo-network/payload-model'\n\nexport const NodeCertifyQuerySchema = 'network.xyo.query.node.certify' as const\nexport type NodeCertifyQuerySchema = typeof NodeCertifyQuerySchema\n\nexport type NodeCertifyQuery = Query<{\n id: ModuleIdentifier\n schema: NodeCertifyQuerySchema\n}>\n","import type { ModuleIdentifier } from '@xyo-network/module-model'\nimport type { Query } from '@xyo-network/payload-model'\n\nexport const NodeDetachQuerySchema = 'network.xyo.query.node.detach' as const\nexport type NodeDetachQuerySchema = typeof NodeDetachQuerySchema\n\nexport type NodeDetachQuery = Query<{\n id: ModuleIdentifier\n schema: NodeDetachQuerySchema\n}>\n","import type { Query } from '@xyo-network/payload-model'\n\nexport const NodeRegisteredQuerySchema = 'network.xyo.query.node.registered' as const\nexport type NodeRegisteredQuerySchema = typeof NodeRegisteredQuerySchema\n\nexport type NodeRegisteredQuery = Query<{\n schema: NodeRegisteredQuerySchema\n}>\n","import type { TypeCheck } from '@xylabs/sdk-js'\nimport { IsObjectFactory } from '@xylabs/sdk-js'\nimport type { AttachableModuleInstance } from '@xyo-network/module-model'\n\nimport type { NodeInstance } from '../instance.ts'\nimport type { NodeModule, NodeModuleEventData } from '../Node.ts'\nimport type { NodeParams } from '../Params.ts'\n\nexport interface AttachableNodeInstance<TParams extends NodeParams = NodeParams, TEventData extends NodeModuleEventData = NodeModuleEventData>\n extends NodeModule<TParams, TEventData>,\n AttachableModuleInstance<TParams, TEventData>,\n NodeInstance<TParams, TEventData> {}\n\nexport type AttachableNodeInstanceTypeCheck<T extends AttachableNodeInstance = AttachableNodeInstance> = TypeCheck<T>\n\nexport class IsAttachableNodeInstanceFactory<T extends AttachableNodeInstance = AttachableNodeInstance> extends IsObjectFactory<T> {}\n","import type { Address } from '@xylabs/sdk-js'\nimport type { Payload } from '@xyo-network/payload-model'\n\nexport const ChildCertificationSchema = 'network.xyo.child.certification' as const\nexport type ChildCertificationSchema = typeof ChildCertificationSchema\n\nexport interface ChildCertificationFields {\n address: Address\n expiration: number\n}\n\nexport type ChildCertification = Payload<ChildCertificationFields, ChildCertificationSchema>\n","import type { EmptyObject, WithAdditional } from '@xylabs/sdk-js'\nimport type { ModuleConfig } from '@xyo-network/module-model'\nimport type { Payload } from '@xyo-network/payload-model'\n\nexport const NodeConfigSchema = 'network.xyo.node.config' as const\nexport type NodeConfigSchema = typeof NodeConfigSchema\n\nexport type NodeConfig<TConfig extends EmptyObject | Payload | void = void, TSchema extends string | void = void> = ModuleConfig<\n WithAdditional<\n {\n archivist?: string\n },\n TConfig\n >,\n TSchema extends void\n ? TConfig extends Payload\n ? TConfig['schema']\n : NodeConfigSchema\n : TSchema\n>\n"],"mappings":";AAAA,SAAS,mBAAAA,wBAAuB;;;ACChC,SAAS,uBAAuB;AAChC,SAAS,kCAAkC;;;ACD3C,SAAS,uBAAuB;AAChC;AAAA,EACE;AAAA,EAAmB;AAAA,EAAiB;AAAA,EAAkB;AAAA,OACjD;;;ACDA,IAAM,wBAAwB;;;ACD9B,IAAM,0BAA0B;;;ACChC,IAAM,yBAAyB;;;ACA/B,IAAM,wBAAwB;;;ACD9B,IAAM,4BAA4B;;;ALQzC,IAAM,kBAAkB,IAAI,kBAAgC;AAErD,IAAM,iBAA0C,gBAAgB;AAAA,EACrE;AAAA,IACE,QAAQ;AAAA,IACR,UAAU;AAAA,IACV,SAAS;AAAA,IACT,QAAQ;AAAA,IACR,YAAY;AAAA,EACd;AAAA,EACA,CAAC,gBAAgB;AACnB;AAEO,IAAM,eAAsC,IAAI,gBAA4B,EAAE,OAAO,CAAC,uBAAuB,CAAC;AAE9G,IAAM,eAAe,gBAAgB,OAAO,YAAY;AACxD,IAAM,iBAAiB,gBAAgB,OAAO,cAAc;AAC5D,IAAM,iBAAiB,YAAY,OAAO,YAAY;AACtD,IAAM,mBAAmB,YAAY,OAAO,cAAc;;;ADrB1D,IAAM,0CAA2D,CAAC;AAGzE,IAAM,UAAU,IAAI,gBAAwC;AAErD,IAAM,2BAA8D,QAAQ,OAAO,yCAAyC;AAAA,EACjI;AAAA,EACA;AACF,CAAC;;;ADXM,IAAM,2BAA2BC,iBAAgB,OAAO,wBAAwB;;;AQHvF,SAAS,mBAAAC,wBAAuB;AAczB,IAAM,kCAAN,cAAyGA,iBAAmB;AAAC;;;ACZ7H,IAAM,2BAA2B;;;ACCjC,IAAM,mBAAmB;","names":["AsObjectFactory","AsObjectFactory","IsObjectFactory"]}
@@ -1,4 +1,4 @@
1
- import type { Address } from '@xylabs/hex';
1
+ import type { Address } from '@xylabs/sdk-js';
2
2
  import type { AccountInstance } from '@xyo-network/account-model';
3
3
  import type { AddressPayload, AttachableModuleInstance, ModuleIdentifier, ModuleInstance, ModuleQueryResult } from '@xyo-network/module-model';
4
4
  import type { ChildCertification, ChildCertificationFields } from './ChildCertification.ts';
@@ -1 +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;IA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AK,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"}
@@ -1,10 +1,10 @@
1
- import type { TypeCheck } from '@xylabs/object';
1
+ import type { TypeCheck } from '@xylabs/sdk-js';
2
2
  import type { NodeInstance } from './instance.ts';
3
3
  import type { NodeModule } from './Node.ts';
4
4
  export declare const isNodeInstance: TypeCheck<NodeInstance>;
5
5
  export declare const isNodeModule: TypeCheck<NodeModule>;
6
- export declare const asNodeModule: import("@xylabs/object").AsTypeFunction<NodeModule<import("./Params.ts").NodeParams<import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").NodeConfig>>, import("./Node.ts").NodeModuleEventData>>;
7
- export declare const asNodeInstance: import("@xylabs/object").AsTypeFunction<NodeInstance<import("./Params.ts").NodeParams<import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").NodeConfig>>, import("./Node.ts").NodeModuleEventData>>;
6
+ export declare const asNodeModule: import("@xylabs/sdk-js").AsTypeFunction<NodeModule<import("./Params.ts").NodeParams<import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").NodeConfig>>, import("./Node.ts").NodeModuleEventData>>;
7
+ export declare const asNodeInstance: import("@xylabs/sdk-js").AsTypeFunction<NodeInstance<import("./Params.ts").NodeParams<import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").NodeConfig>>, import("./Node.ts").NodeModuleEventData>>;
8
8
  export declare const withNodeModule: <R>(mod: any, closure: (mod: NodeModule<import("./Params.ts").NodeParams<import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").NodeConfig>>, import("./Node.ts").NodeModuleEventData>) => R) => R | undefined;
9
9
  export declare const withNodeInstance: <R>(mod: any, closure: (mod: NodeInstance<import("./Params.ts").NodeParams<import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").NodeConfig>>, import("./Node.ts").NodeModuleEventData>) => R) => R | undefined;
10
10
  //# sourceMappingURL=typeChecks.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/node-model",
3
- "version": "5.2.18",
3
+ "version": "5.2.19",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -36,17 +36,14 @@
36
36
  "!**/*.test.*"
37
37
  ],
38
38
  "dependencies": {
39
- "@xylabs/events": "~5.0.50",
40
- "@xylabs/hex": "~5.0.50",
41
- "@xylabs/object": "~5.0.50",
42
- "@xylabs/typeof": "~5.0.50",
43
- "@xyo-network/account-model": "~5.2.18",
44
- "@xyo-network/module-model": "~5.2.18",
45
- "@xyo-network/payload-model": "~5.2.18"
39
+ "@xylabs/sdk-js": "~5.0.61",
40
+ "@xyo-network/account-model": "~5.2.19",
41
+ "@xyo-network/module-model": "~5.2.19",
42
+ "@xyo-network/payload-model": "~5.2.19"
46
43
  },
47
44
  "devDependencies": {
48
- "@xylabs/ts-scripts-yarn3": "~7.2.8",
49
- "@xylabs/tsconfig": "~7.2.8",
45
+ "@xylabs/ts-scripts-yarn3": "~7.2.32",
46
+ "@xylabs/tsconfig": "~7.2.32",
50
47
  "typescript": "~5.9.3"
51
48
  },
52
49
  "publishConfig": {
@@ -1,4 +1,4 @@
1
- import type { Address } from '@xylabs/hex'
1
+ import type { Address } from '@xylabs/sdk-js'
2
2
  import type { Payload } from '@xyo-network/payload-model'
3
3
 
4
4
  export const ChildCertificationSchema = 'network.xyo.child.certification' as const
package/src/Config.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { EmptyObject, WithAdditional } from '@xylabs/object'
1
+ import type { EmptyObject, WithAdditional } from '@xylabs/sdk-js'
2
2
  import type { ModuleConfig } from '@xyo-network/module-model'
3
3
  import type { Payload } from '@xyo-network/payload-model'
4
4
 
@@ -1,4 +1,4 @@
1
- import type { EventData } from '@xylabs/events'
1
+ import type { EventData } from '@xylabs/sdk-js'
2
2
  import type { Module, ModuleEventArgs } from '@xyo-network/module-model'
3
3
 
4
4
  export type ModuleAttachedEventArgs<TModule extends Module = Module> = ModuleEventArgs<TModule>
@@ -1,4 +1,4 @@
1
- import type { EventData } from '@xylabs/events'
1
+ import type { EventData } from '@xylabs/sdk-js'
2
2
  import type { Module, ModuleEventArgs } from '@xyo-network/module-model'
3
3
 
4
4
  export type ModuleDetachedEventArgs<TModule extends Module = Module> = ModuleEventArgs<TModule>
@@ -1,4 +1,4 @@
1
- import type { EventData } from '@xylabs/events'
1
+ import type { EventData } from '@xylabs/sdk-js'
2
2
  import type { Module, ModuleEventArgs } from '@xyo-network/module-model'
3
3
 
4
4
  export type ModuleRegisteredEventArgs<TModule extends Module = Module> = ModuleEventArgs<TModule>
@@ -1,4 +1,4 @@
1
- import type { EventData } from '@xylabs/events'
1
+ import type { EventData } from '@xylabs/sdk-js'
2
2
  import type { Module, ModuleEventArgs } from '@xyo-network/module-model'
3
3
 
4
4
  export type ModuleUnregisteredEventArgs<TModule extends Module = Module> = ModuleEventArgs<TModule>
@@ -1,5 +1,5 @@
1
- import type { TypeCheck } from '@xylabs/object'
2
- import { IsObjectFactory } from '@xylabs/object'
1
+ import type { TypeCheck } from '@xylabs/sdk-js'
2
+ import { IsObjectFactory } from '@xylabs/sdk-js'
3
3
  import type { AttachableModuleInstance } from '@xyo-network/module-model'
4
4
 
5
5
  import type { NodeInstance } from '../instance.ts'
@@ -1,4 +1,4 @@
1
- import { AsObjectFactory } from '@xylabs/object'
1
+ import { AsObjectFactory } from '@xylabs/sdk-js'
2
2
 
3
3
  import { isAttachableNodeInstance } from './isAttachableInstance.ts'
4
4
 
@@ -1,6 +1,5 @@
1
- import type { TypeCheck } from '@xylabs/object'
2
- import { IsObjectFactory } from '@xylabs/object'
3
- import type { ObjectTypeShape } from '@xylabs/typeof'
1
+ import type { ObjectTypeShape, TypeCheck } from '@xylabs/sdk-js'
2
+ import { IsObjectFactory } from '@xylabs/sdk-js'
4
3
  import { isAttachableModuleInstance } from '@xyo-network/module-model'
5
4
 
6
5
  import { isNodeInstance } from '../typeChecks.ts'
package/src/instance.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { Address } from '@xylabs/hex'
1
+ import type { Address } from '@xylabs/sdk-js'
2
2
  import type { AccountInstance } from '@xyo-network/account-model'
3
3
  import type {
4
4
  AddressPayload, AttachableModuleInstance, ModuleIdentifier, ModuleInstance, ModuleQueryResult,
package/src/typeChecks.ts CHANGED
@@ -1,5 +1,5 @@
1
- import type { TypeCheck } from '@xylabs/object'
2
- import { AsObjectFactory } from '@xylabs/object'
1
+ import type { TypeCheck } from '@xylabs/sdk-js'
2
+ import { AsObjectFactory } from '@xylabs/sdk-js'
3
3
  import {
4
4
  IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory,
5
5
  } from '@xyo-network/module-model'