@xyo-network/sentinel-model 3.14.18 → 3.15.0

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.
@@ -45,7 +45,7 @@ var IsAttachableSentinelInstanceFactory = class extends IsObjectFactory2 {
45
45
  import { isPayloadOfSchemaType } from "@xyo-network/payload-model";
46
46
  var SentinelAutomationSchema = "network.xyo.automation";
47
47
  var SentinelIntervalAutomationSchema = "network.xyo.automation.interval";
48
- var SentinelEventAutomationSchema = "network.xyo.automation.event";
48
+ var SentinelModuleEventAutomationSchema = "network.xyo.automation.event.module";
49
49
  var isSentinelIntervalAutomation = isPayloadOfSchemaType(SentinelIntervalAutomationSchema);
50
50
 
51
51
  // src/Config.ts
@@ -54,8 +54,8 @@ export {
54
54
  IsAttachableSentinelInstanceFactory,
55
55
  SentinelAutomationSchema,
56
56
  SentinelConfigSchema,
57
- SentinelEventAutomationSchema,
58
57
  SentinelIntervalAutomationSchema,
58
+ SentinelModuleEventAutomationSchema,
59
59
  SentinelReportQuerySchema,
60
60
  asAttachableSentinelInstance,
61
61
  asSentinelInstance,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/attachable/asAttachableInstance.ts","../../src/attachable/isAttachableInstance.ts","../../src/typeChecks.ts","../../src/Queries/Report.ts","../../src/attachable/AttachableInstance.ts","../../src/Automation.ts","../../src/Config.ts"],"sourcesContent":["import { AsObjectFactory } from '@xylabs/object'\n\nimport { isAttachableSentinelInstance } from './isAttachableInstance.ts'\n\nexport const asAttachableSentinelInstance = AsObjectFactory.create(isAttachableSentinelInstance)\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 { isSentinelInstance } from '../typeChecks.ts'\nimport type { AttachableSentinelInstance } from './AttachableInstance.ts'\n\nexport const requiredAttachableSentinelInstanceFunctions: ObjectTypeShape = {}\n\n// we do not use IsInstanceFactory here to prevent a cycle\nconst factory = new IsObjectFactory<AttachableSentinelInstance>()\n\nexport const isAttachableSentinelInstance: TypeCheck<AttachableSentinelInstance> = factory.create(requiredAttachableSentinelInstanceFunctions, [\n isSentinelInstance,\n isAttachableModuleInstance,\n])\n","import { AsObjectFactory } from '@xylabs/object'\nimport {\n IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory,\n} from '@xyo-network/module-model'\n\nimport type { SentinelInstance } from './Instance.ts'\nimport type { SentinelModule } from './Module.ts'\nimport { SentinelReportQuerySchema } from './Queries/index.ts'\n\nexport const isSentinelInstance = new IsInstanceFactory<SentinelInstance>().create({ report: 'function' }, [isModuleInstance])\nexport const isSentinelModule = new IsModuleFactory<SentinelModule>().create([SentinelReportQuerySchema])\n\nexport const asSentinelModule = AsObjectFactory.create(isSentinelModule)\nexport const asSentinelInstance = AsObjectFactory.create(isSentinelInstance)\nexport const withSentinelModule = WithFactory.create(isSentinelModule)\nexport const withSentinelInstance = WithFactory.create(isSentinelInstance)\n","import type { Query } from '@xyo-network/payload-model'\n\nexport const SentinelReportQuerySchema = 'network.xyo.query.sentinel.report' as const\nexport type SentinelReportQuerySchema = typeof SentinelReportQuerySchema\n\nexport type SentinelReportQuery = Query<{\n schema: SentinelReportQuerySchema\n}>\n","import type { TypeCheck } from '@xylabs/object'\nimport { IsObjectFactory } from '@xylabs/object'\nimport type { AttachableModuleInstance } from '@xyo-network/module-model'\n\nimport type { SentinelModuleEventData } from '../EventData.ts'\nimport type { SentinelInstance } from '../Instance.ts'\nimport type { SentinelModule } from '../Module.ts'\nimport type { SentinelParams } from '../Params.ts'\n\nexport interface AttachableSentinelInstance<\n TParams extends SentinelParams = SentinelParams,\n TEventData extends SentinelModuleEventData = SentinelModuleEventData,\n> extends SentinelModule<TParams, TEventData>,\n AttachableModuleInstance<TParams, TEventData>,\n SentinelInstance<TParams, TEventData> {}\n\nexport type AttachableSentinelInstanceTypeCheck<T extends AttachableSentinelInstance = AttachableSentinelInstance> = TypeCheck<T>\n\nexport class IsAttachableSentinelInstanceFactory<T extends AttachableSentinelInstance = AttachableSentinelInstance> extends IsObjectFactory<T> {}\n","import type { Payload } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType } from '@xyo-network/payload-model'\n\nexport const SentinelAutomationSchema = 'network.xyo.automation' as const\nexport type SentinelAutomationSchema = typeof SentinelAutomationSchema\n\nexport const SentinelIntervalAutomationSchema = 'network.xyo.automation.interval' as const\nexport type SentinelIntervalAutomationSchema = typeof SentinelIntervalAutomationSchema\n\nexport const SentinelEventAutomationSchema = 'network.xyo.automation.event' as const\nexport type SentinelEventAutomationSchema = typeof SentinelEventAutomationSchema\n\nexport type SentinelBaseAutomationPayload<T extends Payload> = Payload<\n {\n type?: 'interval' | 'event'\n } & T\n>\n\n/** Settings for an Interval Automation */\nexport type SentinelIntervalAutomationPayload = SentinelBaseAutomationPayload<{\n /** Epoch after which any reoccurrence stops */\n end?: number\n\n /** Time between triggers [non-repeating if undefined] */\n frequency?: number\n\n /** Units for frequency field [hour if undefined] */\n frequencyUnits?: 'second' | 'minute' | 'hour' | 'day' | 'millis'\n\n /** Remaining triggers [infinite if undefined] */\n remaining?: number\n\n schema: SentinelIntervalAutomationSchema\n\n /** Epoch of the next trigger */\n start: number\n\n /** The type of automation */\n type: 'interval'\n}>\n\nexport const isSentinelIntervalAutomation = isPayloadOfSchemaType<SentinelIntervalAutomationPayload>(SentinelIntervalAutomationSchema)\n\n/** Settings for an Event Automation */\nexport type SentinelEventAutomationPayload = SentinelBaseAutomationPayload<{\n schema: SentinelEventAutomationSchema\n type: 'event'\n}>\n\n/** Settings for an Automation */\nexport type SentinelAutomationPayload = Payload<\n SentinelIntervalAutomationPayload | SentinelEventAutomationPayload,\n SentinelAutomationSchema | SentinelIntervalAutomationSchema | SentinelEventAutomationSchema\n>\n","import type { WithAdditional } from '@xylabs/object'\nimport type { ModuleConfig } from '@xyo-network/module-model'\nimport type { Payload } from '@xyo-network/payload-model'\n\nimport type { SentinelAutomationPayload } from './Automation.ts'\nimport type { Task } from './Task.ts'\n\nexport const SentinelConfigSchema = 'network.xyo.sentinel.config' as const\nexport type SentinelConfigSchema = typeof SentinelConfigSchema\n\nexport type SentinelConfig<TConfig extends Payload | void = void, TSchema extends string | void = void> = ModuleConfig<\n WithAdditional<\n {\n automations?: SentinelAutomationPayload[]\n schema: TConfig extends Payload ? TConfig['schema'] : SentinelConfigSchema\n synchronous?: boolean\n tasks: Task[]\n throwErrors?: boolean\n },\n TConfig\n >,\n TSchema\n>\n"],"mappings":";AAAA,SAAS,mBAAAA,wBAAuB;;;ACChC,SAAS,uBAAuB;AAEhC,SAAS,kCAAkC;;;ACH3C,SAAS,uBAAuB;AAChC;AAAA,EACE;AAAA,EAAmB;AAAA,EAAiB;AAAA,EAAkB;AAAA,OACjD;;;ACDA,IAAM,4BAA4B;;;ADOlC,IAAM,qBAAqB,IAAI,kBAAoC,EAAE,OAAO,EAAE,QAAQ,WAAW,GAAG,CAAC,gBAAgB,CAAC;AACtH,IAAM,mBAAmB,IAAI,gBAAgC,EAAE,OAAO,CAAC,yBAAyB,CAAC;AAEjG,IAAM,mBAAmB,gBAAgB,OAAO,gBAAgB;AAChE,IAAM,qBAAqB,gBAAgB,OAAO,kBAAkB;AACpE,IAAM,qBAAqB,YAAY,OAAO,gBAAgB;AAC9D,IAAM,uBAAuB,YAAY,OAAO,kBAAkB;;;ADPlE,IAAM,8CAA+D,CAAC;AAG7E,IAAM,UAAU,IAAI,gBAA4C;AAEzD,IAAM,+BAAsE,QAAQ,OAAO,6CAA6C;AAAA,EAC7I;AAAA,EACA;AACF,CAAC;;;ADZM,IAAM,+BAA+BC,iBAAgB,OAAO,4BAA4B;;;AIH/F,SAAS,mBAAAC,wBAAuB;AAiBzB,IAAM,sCAAN,cAAqHA,iBAAmB;AAAC;;;ACjBhJ,SAAS,6BAA6B;AAE/B,IAAM,2BAA2B;AAGjC,IAAM,mCAAmC;AAGzC,IAAM,gCAAgC;AAgCtC,IAAM,+BAA+B,sBAAyD,gCAAgC;;;AClC9H,IAAM,uBAAuB;","names":["AsObjectFactory","AsObjectFactory","IsObjectFactory"]}
1
+ {"version":3,"sources":["../../src/attachable/asAttachableInstance.ts","../../src/attachable/isAttachableInstance.ts","../../src/typeChecks.ts","../../src/Queries/Report.ts","../../src/attachable/AttachableInstance.ts","../../src/Automation.ts","../../src/Config.ts"],"sourcesContent":["import { AsObjectFactory } from '@xylabs/object'\n\nimport { isAttachableSentinelInstance } from './isAttachableInstance.ts'\n\nexport const asAttachableSentinelInstance = AsObjectFactory.create(isAttachableSentinelInstance)\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 { isSentinelInstance } from '../typeChecks.ts'\nimport type { AttachableSentinelInstance } from './AttachableInstance.ts'\n\nexport const requiredAttachableSentinelInstanceFunctions: ObjectTypeShape = {}\n\n// we do not use IsInstanceFactory here to prevent a cycle\nconst factory = new IsObjectFactory<AttachableSentinelInstance>()\n\nexport const isAttachableSentinelInstance: TypeCheck<AttachableSentinelInstance> = factory.create(requiredAttachableSentinelInstanceFunctions, [\n isSentinelInstance,\n isAttachableModuleInstance,\n])\n","import { AsObjectFactory } from '@xylabs/object'\nimport {\n IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory,\n} from '@xyo-network/module-model'\n\nimport type { SentinelInstance } from './Instance.ts'\nimport type { SentinelModule } from './Module.ts'\nimport { SentinelReportQuerySchema } from './Queries/index.ts'\n\nexport const isSentinelInstance = new IsInstanceFactory<SentinelInstance>().create({ report: 'function' }, [isModuleInstance])\nexport const isSentinelModule = new IsModuleFactory<SentinelModule>().create([SentinelReportQuerySchema])\n\nexport const asSentinelModule = AsObjectFactory.create(isSentinelModule)\nexport const asSentinelInstance = AsObjectFactory.create(isSentinelInstance)\nexport const withSentinelModule = WithFactory.create(isSentinelModule)\nexport const withSentinelInstance = WithFactory.create(isSentinelInstance)\n","import type { Query } from '@xyo-network/payload-model'\n\nexport const SentinelReportQuerySchema = 'network.xyo.query.sentinel.report' as const\nexport type SentinelReportQuerySchema = typeof SentinelReportQuerySchema\n\nexport type SentinelReportQuery = Query<{\n schema: SentinelReportQuerySchema\n}>\n","import type { TypeCheck } from '@xylabs/object'\nimport { IsObjectFactory } from '@xylabs/object'\nimport type { AttachableModuleInstance } from '@xyo-network/module-model'\n\nimport type { SentinelModuleEventData } from '../EventData.ts'\nimport type { SentinelInstance } from '../Instance.ts'\nimport type { SentinelModule } from '../Module.ts'\nimport type { SentinelParams } from '../Params.ts'\n\nexport interface AttachableSentinelInstance<\n TParams extends SentinelParams = SentinelParams,\n TEventData extends SentinelModuleEventData = SentinelModuleEventData,\n> extends SentinelModule<TParams, TEventData>,\n AttachableModuleInstance<TParams, TEventData>,\n SentinelInstance<TParams, TEventData> {}\n\nexport type AttachableSentinelInstanceTypeCheck<T extends AttachableSentinelInstance = AttachableSentinelInstance> = TypeCheck<T>\n\nexport class IsAttachableSentinelInstanceFactory<T extends AttachableSentinelInstance = AttachableSentinelInstance> extends IsObjectFactory<T> {}\n","import type { EventName } from '@xyo-network/module-events'\nimport type { ModuleIdentifier } from '@xyo-network/module-model'\nimport type { Payload } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType } from '@xyo-network/payload-model'\n\nexport const SentinelAutomationSchema = 'network.xyo.automation' as const\nexport type SentinelAutomationSchema = typeof SentinelAutomationSchema\n\nexport const SentinelIntervalAutomationSchema = 'network.xyo.automation.interval' as const\nexport type SentinelIntervalAutomationSchema = typeof SentinelIntervalAutomationSchema\n\nexport const SentinelModuleEventAutomationSchema = 'network.xyo.automation.event.module' as const\nexport type SentinelModuleEventAutomationSchema = typeof SentinelModuleEventAutomationSchema\n\nexport type SentinelBaseAutomationPayload<T extends Payload> = Payload<\n {\n type?: 'interval' | 'event'\n } & T\n>\n\n/** Settings for an Interval Automation */\nexport type SentinelIntervalAutomationPayload = SentinelBaseAutomationPayload<{\n /** Epoch after which any reoccurrence stops */\n end?: number\n\n /** Time between triggers [non-repeating if undefined] */\n frequency?: number\n\n /** Units for frequency field [hour if undefined] */\n frequencyUnits?: 'second' | 'minute' | 'hour' | 'day' | 'millis'\n\n /** Remaining triggers [infinite if undefined] */\n remaining?: number\n\n schema: SentinelIntervalAutomationSchema\n\n /** Epoch of the next trigger */\n start: number\n\n /** The type of automation */\n type: 'interval'\n}>\n\nexport const isSentinelIntervalAutomation = isPayloadOfSchemaType<SentinelIntervalAutomationPayload>(SentinelIntervalAutomationSchema)\n\n/** Settings for an Module Event Automation */\nexport type SentinelModuleEventAutomationPayload = SentinelBaseAutomationPayload<{\n eventName: EventName\n schema: SentinelModuleEventAutomationSchema\n source: ModuleIdentifier\n type: 'event'\n}>\n\n/** Settings for an Automation */\nexport type SentinelAutomationPayload = Payload<\n SentinelIntervalAutomationPayload | SentinelModuleEventAutomationPayload,\n SentinelAutomationSchema | SentinelIntervalAutomationSchema | SentinelModuleEventAutomationSchema\n>\n","import type { WithAdditional } from '@xylabs/object'\nimport type { ModuleConfig } from '@xyo-network/module-model'\nimport type { Payload } from '@xyo-network/payload-model'\n\nimport type { SentinelAutomationPayload } from './Automation.ts'\nimport type { Task } from './Task.ts'\n\nexport const SentinelConfigSchema = 'network.xyo.sentinel.config' as const\nexport type SentinelConfigSchema = typeof SentinelConfigSchema\n\nexport type SentinelConfig<TConfig extends Payload | void = void, TSchema extends string | void = void> = ModuleConfig<\n WithAdditional<\n {\n automations?: SentinelAutomationPayload[]\n schema: TConfig extends Payload ? TConfig['schema'] : SentinelConfigSchema\n synchronous?: boolean\n tasks: Task[]\n throwErrors?: boolean\n },\n TConfig\n >,\n TSchema\n>\n"],"mappings":";AAAA,SAAS,mBAAAA,wBAAuB;;;ACChC,SAAS,uBAAuB;AAEhC,SAAS,kCAAkC;;;ACH3C,SAAS,uBAAuB;AAChC;AAAA,EACE;AAAA,EAAmB;AAAA,EAAiB;AAAA,EAAkB;AAAA,OACjD;;;ACDA,IAAM,4BAA4B;;;ADOlC,IAAM,qBAAqB,IAAI,kBAAoC,EAAE,OAAO,EAAE,QAAQ,WAAW,GAAG,CAAC,gBAAgB,CAAC;AACtH,IAAM,mBAAmB,IAAI,gBAAgC,EAAE,OAAO,CAAC,yBAAyB,CAAC;AAEjG,IAAM,mBAAmB,gBAAgB,OAAO,gBAAgB;AAChE,IAAM,qBAAqB,gBAAgB,OAAO,kBAAkB;AACpE,IAAM,qBAAqB,YAAY,OAAO,gBAAgB;AAC9D,IAAM,uBAAuB,YAAY,OAAO,kBAAkB;;;ADPlE,IAAM,8CAA+D,CAAC;AAG7E,IAAM,UAAU,IAAI,gBAA4C;AAEzD,IAAM,+BAAsE,QAAQ,OAAO,6CAA6C;AAAA,EAC7I;AAAA,EACA;AACF,CAAC;;;ADZM,IAAM,+BAA+BC,iBAAgB,OAAO,4BAA4B;;;AIH/F,SAAS,mBAAAC,wBAAuB;AAiBzB,IAAM,sCAAN,cAAqHA,iBAAmB;AAAC;;;ACfhJ,SAAS,6BAA6B;AAE/B,IAAM,2BAA2B;AAGjC,IAAM,mCAAmC;AAGzC,IAAM,sCAAsC;AAgC5C,IAAM,+BAA+B,sBAAyD,gCAAgC;;;ACpC9H,IAAM,uBAAuB;","names":["AsObjectFactory","AsObjectFactory","IsObjectFactory"]}
@@ -1,10 +1,12 @@
1
+ import type { EventName } from '@xyo-network/module-events';
2
+ import type { ModuleIdentifier } from '@xyo-network/module-model';
1
3
  import type { Payload } from '@xyo-network/payload-model';
2
4
  export declare const SentinelAutomationSchema: "network.xyo.automation";
3
5
  export type SentinelAutomationSchema = typeof SentinelAutomationSchema;
4
6
  export declare const SentinelIntervalAutomationSchema: "network.xyo.automation.interval";
5
7
  export type SentinelIntervalAutomationSchema = typeof SentinelIntervalAutomationSchema;
6
- export declare const SentinelEventAutomationSchema: "network.xyo.automation.event";
7
- export type SentinelEventAutomationSchema = typeof SentinelEventAutomationSchema;
8
+ export declare const SentinelModuleEventAutomationSchema: "network.xyo.automation.event.module";
9
+ export type SentinelModuleEventAutomationSchema = typeof SentinelModuleEventAutomationSchema;
8
10
  export type SentinelBaseAutomationPayload<T extends Payload> = Payload<{
9
11
  type?: 'interval' | 'event';
10
12
  } & T>;
@@ -25,11 +27,13 @@ export type SentinelIntervalAutomationPayload = SentinelBaseAutomationPayload<{
25
27
  type: 'interval';
26
28
  }>;
27
29
  export declare const isSentinelIntervalAutomation: (x?: unknown | null) => x is SentinelIntervalAutomationPayload;
28
- /** Settings for an Event Automation */
29
- export type SentinelEventAutomationPayload = SentinelBaseAutomationPayload<{
30
- schema: SentinelEventAutomationSchema;
30
+ /** Settings for an Module Event Automation */
31
+ export type SentinelModuleEventAutomationPayload = SentinelBaseAutomationPayload<{
32
+ eventName: EventName;
33
+ schema: SentinelModuleEventAutomationSchema;
34
+ source: ModuleIdentifier;
31
35
  type: 'event';
32
36
  }>;
33
37
  /** Settings for an Automation */
34
- export type SentinelAutomationPayload = Payload<SentinelIntervalAutomationPayload | SentinelEventAutomationPayload, SentinelAutomationSchema | SentinelIntervalAutomationSchema | SentinelEventAutomationSchema>;
38
+ export type SentinelAutomationPayload = Payload<SentinelIntervalAutomationPayload | SentinelModuleEventAutomationPayload, SentinelAutomationSchema | SentinelIntervalAutomationSchema | SentinelModuleEventAutomationSchema>;
35
39
  //# sourceMappingURL=Automation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Automation.d.ts","sourceRoot":"","sources":["../../src/Automation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAGzD,eAAO,MAAM,wBAAwB,EAAG,wBAAiC,CAAA;AACzE,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAA;AAEtE,eAAO,MAAM,gCAAgC,EAAG,iCAA0C,CAAA;AAC1F,MAAM,MAAM,gCAAgC,GAAG,OAAO,gCAAgC,CAAA;AAEtF,eAAO,MAAM,6BAA6B,EAAG,8BAAuC,CAAA;AACpF,MAAM,MAAM,6BAA6B,GAAG,OAAO,6BAA6B,CAAA;AAEhF,MAAM,MAAM,6BAA6B,CAAC,CAAC,SAAS,OAAO,IAAI,OAAO,CACpE;IACE,IAAI,CAAC,EAAE,UAAU,GAAG,OAAO,CAAA;CAC5B,GAAG,CAAC,CACN,CAAA;AAED,0CAA0C;AAC1C,MAAM,MAAM,iCAAiC,GAAG,6BAA6B,CAAC;IAC5E,+CAA+C;IAC/C,GAAG,CAAC,EAAE,MAAM,CAAA;IAEZ,yDAAyD;IACzD,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB,oDAAoD;IACpD,cAAc,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAA;IAEhE,iDAAiD;IACjD,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB,MAAM,EAAE,gCAAgC,CAAA;IAExC,gCAAgC;IAChC,KAAK,EAAE,MAAM,CAAA;IAEb,6BAA6B;IAC7B,IAAI,EAAE,UAAU,CAAA;CACjB,CAAC,CAAA;AAEF,eAAO,MAAM,4BAA4B,gEAA6F,CAAA;AAEtI,uCAAuC;AACvC,MAAM,MAAM,8BAA8B,GAAG,6BAA6B,CAAC;IACzE,MAAM,EAAE,6BAA6B,CAAA;IACrC,IAAI,EAAE,OAAO,CAAA;CACd,CAAC,CAAA;AAEF,iCAAiC;AACjC,MAAM,MAAM,yBAAyB,GAAG,OAAO,CAC7C,iCAAiC,GAAG,8BAA8B,EAClE,wBAAwB,GAAG,gCAAgC,GAAG,6BAA6B,CAC5F,CAAA"}
1
+ {"version":3,"file":"Automation.d.ts","sourceRoot":"","sources":["../../src/Automation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AACjE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAGzD,eAAO,MAAM,wBAAwB,EAAG,wBAAiC,CAAA;AACzE,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAA;AAEtE,eAAO,MAAM,gCAAgC,EAAG,iCAA0C,CAAA;AAC1F,MAAM,MAAM,gCAAgC,GAAG,OAAO,gCAAgC,CAAA;AAEtF,eAAO,MAAM,mCAAmC,EAAG,qCAA8C,CAAA;AACjG,MAAM,MAAM,mCAAmC,GAAG,OAAO,mCAAmC,CAAA;AAE5F,MAAM,MAAM,6BAA6B,CAAC,CAAC,SAAS,OAAO,IAAI,OAAO,CACpE;IACE,IAAI,CAAC,EAAE,UAAU,GAAG,OAAO,CAAA;CAC5B,GAAG,CAAC,CACN,CAAA;AAED,0CAA0C;AAC1C,MAAM,MAAM,iCAAiC,GAAG,6BAA6B,CAAC;IAC5E,+CAA+C;IAC/C,GAAG,CAAC,EAAE,MAAM,CAAA;IAEZ,yDAAyD;IACzD,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB,oDAAoD;IACpD,cAAc,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAA;IAEhE,iDAAiD;IACjD,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB,MAAM,EAAE,gCAAgC,CAAA;IAExC,gCAAgC;IAChC,KAAK,EAAE,MAAM,CAAA;IAEb,6BAA6B;IAC7B,IAAI,EAAE,UAAU,CAAA;CACjB,CAAC,CAAA;AAEF,eAAO,MAAM,4BAA4B,gEAA6F,CAAA;AAEtI,8CAA8C;AAC9C,MAAM,MAAM,oCAAoC,GAAG,6BAA6B,CAAC;IAC/E,SAAS,EAAE,SAAS,CAAA;IACpB,MAAM,EAAE,mCAAmC,CAAA;IAC3C,MAAM,EAAE,gBAAgB,CAAA;IACxB,IAAI,EAAE,OAAO,CAAA;CACd,CAAC,CAAA;AAEF,iCAAiC;AACjC,MAAM,MAAM,yBAAyB,GAAG,OAAO,CAC7C,iCAAiC,GAAG,oCAAoC,EACxE,wBAAwB,GAAG,gCAAgC,GAAG,mCAAmC,CAClG,CAAA"}
@@ -7,9 +7,7 @@ export declare const asAttachableSentinelInstance: {
7
7
  config: import("@xyo-network/module-model").AnyConfigSchema<import("../Config.ts").SentinelConfig>;
8
8
  ephemeralQueryAccountEnabled?: boolean;
9
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("../EventData.ts").SentinelModuleEventData<import("@xyo-network/module-model").Module<import("@xylabs/base").BaseParamsFields & {
10
+ } & import("@xyo-network/module-model").ModuleChildrenParams, import("../EventData.ts").SentinelModuleEventData<import("@xyo-network/module-model").Module<import("@xylabs/base").BaseParamsFields & {
13
11
  account?: import("@xyo-network/account-model").AccountInstance | "random";
14
12
  addToResolvers?: boolean;
15
13
  additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
@@ -17,9 +15,7 @@ export declare const asAttachableSentinelInstance: {
17
15
  config: import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/module-model").ModuleConfig>;
18
16
  ephemeralQueryAccountEnabled?: boolean;
19
17
  moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
20
- privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
21
- publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
22
- }, import("@xyo-network/module-model").ModuleEventData<object>>>>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
18
+ } & import("@xyo-network/module-model").ModuleChildrenParams, import("@xyo-network/module-model").ModuleEventData<object>>>>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
23
19
  <TType extends import("./AttachableInstance.ts").AttachableSentinelInstance<import("@xylabs/base").BaseParamsFields & {
24
20
  account?: import("@xyo-network/account-model").AccountInstance | "random";
25
21
  addToResolvers?: boolean;
@@ -28,9 +24,7 @@ export declare const asAttachableSentinelInstance: {
28
24
  config: import("@xyo-network/module-model").AnyConfigSchema<import("../Config.ts").SentinelConfig>;
29
25
  ephemeralQueryAccountEnabled?: boolean;
30
26
  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("../EventData.ts").SentinelModuleEventData<import("@xyo-network/module-model").Module<import("@xylabs/base").BaseParamsFields & {
27
+ } & import("@xyo-network/module-model").ModuleChildrenParams, import("../EventData.ts").SentinelModuleEventData<import("@xyo-network/module-model").Module<import("@xylabs/base").BaseParamsFields & {
34
28
  account?: import("@xyo-network/account-model").AccountInstance | "random";
35
29
  addToResolvers?: boolean;
36
30
  additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
@@ -38,9 +32,7 @@ export declare const asAttachableSentinelInstance: {
38
32
  config: import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/module-model").ModuleConfig>;
39
33
  ephemeralQueryAccountEnabled?: boolean;
40
34
  moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
41
- privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
42
- publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
43
- }, import("@xyo-network/module-model").ModuleEventData<object>>>>>(value: import("@xylabs/promise").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<import("./AttachableInstance.ts").AttachableSentinelInstance<import("@xylabs/base").BaseParamsFields & {
35
+ } & import("@xyo-network/module-model").ModuleChildrenParams, import("@xyo-network/module-model").ModuleEventData<object>>>>>(value: import("@xylabs/promise").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<import("./AttachableInstance.ts").AttachableSentinelInstance<import("@xylabs/base").BaseParamsFields & {
44
36
  account?: import("@xyo-network/account-model").AccountInstance | "random";
45
37
  addToResolvers?: boolean;
46
38
  additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
@@ -48,9 +40,7 @@ export declare const asAttachableSentinelInstance: {
48
40
  config: import("@xyo-network/module-model").AnyConfigSchema<import("../Config.ts").SentinelConfig>;
49
41
  ephemeralQueryAccountEnabled?: boolean;
50
42
  moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
51
- privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
52
- publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
53
- }, import("../EventData.ts").SentinelModuleEventData<import("@xyo-network/module-model").Module<import("@xylabs/base").BaseParamsFields & {
43
+ } & import("@xyo-network/module-model").ModuleChildrenParams, import("../EventData.ts").SentinelModuleEventData<import("@xyo-network/module-model").Module<import("@xylabs/base").BaseParamsFields & {
54
44
  account?: import("@xyo-network/account-model").AccountInstance | "random";
55
45
  addToResolvers?: boolean;
56
46
  additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
@@ -58,8 +48,6 @@ export declare const asAttachableSentinelInstance: {
58
48
  config: import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/module-model").ModuleConfig>;
59
49
  ephemeralQueryAccountEnabled?: boolean;
60
50
  moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
61
- privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
62
- publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
63
- }, import("@xyo-network/module-model").ModuleEventData<object>>>>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
51
+ } & import("@xyo-network/module-model").ModuleChildrenParams, import("@xyo-network/module-model").ModuleEventData<object>>>>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
64
52
  };
65
53
  //# sourceMappingURL=asAttachableInstance.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"asAttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/asAttachableInstance.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAuD,CAAA"}
1
+ {"version":3,"file":"asAttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/asAttachableInstance.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAuD,CAAA"}
@@ -8,9 +8,7 @@ export declare const isSentinelInstance: import("@xylabs/object").TypeCheck<Sent
8
8
  config: import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").SentinelConfig>;
9
9
  ephemeralQueryAccountEnabled?: boolean;
10
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("./EventData.ts").SentinelModuleEventData<import("@xyo-network/module-model").Module<import("@xylabs/base").BaseParamsFields & {
11
+ } & import("@xyo-network/module-model").ModuleChildrenParams, import("./EventData.ts").SentinelModuleEventData<import("@xyo-network/module-model").Module<import("@xylabs/base").BaseParamsFields & {
14
12
  account?: import("@xyo-network/account-model").AccountInstance | "random";
15
13
  addToResolvers?: boolean;
16
14
  additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
@@ -18,9 +16,7 @@ export declare const isSentinelInstance: import("@xylabs/object").TypeCheck<Sent
18
16
  config: import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/module-model").ModuleConfig>;
19
17
  ephemeralQueryAccountEnabled?: boolean;
20
18
  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("@xyo-network/module-model").ModuleEventData<object>>>>>;
19
+ } & import("@xyo-network/module-model").ModuleChildrenParams, import("@xyo-network/module-model").ModuleEventData<object>>>>>;
24
20
  export declare const isSentinelModule: import("@xyo-network/module-model").ModuleTypeCheck<SentinelModule<import("@xylabs/base").BaseParamsFields & {
25
21
  account?: import("@xyo-network/account-model").AccountInstance | "random";
26
22
  addToResolvers?: boolean;
@@ -29,9 +25,7 @@ export declare const isSentinelModule: import("@xyo-network/module-model").Modul
29
25
  config: import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").SentinelConfig>;
30
26
  ephemeralQueryAccountEnabled?: boolean;
31
27
  moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
32
- privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
33
- publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
34
- }, import("./EventData.ts").SentinelModuleEventData<import("@xyo-network/module-model").Module<import("@xylabs/base").BaseParamsFields & {
28
+ } & import("@xyo-network/module-model").ModuleChildrenParams, import("./EventData.ts").SentinelModuleEventData<import("@xyo-network/module-model").Module<import("@xylabs/base").BaseParamsFields & {
35
29
  account?: import("@xyo-network/account-model").AccountInstance | "random";
36
30
  addToResolvers?: boolean;
37
31
  additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
@@ -39,9 +33,7 @@ export declare const isSentinelModule: import("@xyo-network/module-model").Modul
39
33
  config: import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/module-model").ModuleConfig>;
40
34
  ephemeralQueryAccountEnabled?: boolean;
41
35
  moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
42
- privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
43
- publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
44
- }, import("@xyo-network/module-model").ModuleEventData<object>>>>>;
36
+ } & import("@xyo-network/module-model").ModuleChildrenParams, import("@xyo-network/module-model").ModuleEventData<object>>>>>;
45
37
  export declare const asSentinelModule: {
46
38
  <TType extends SentinelModule<import("@xylabs/base").BaseParamsFields & {
47
39
  account?: import("@xyo-network/account-model").AccountInstance | "random";
@@ -51,9 +43,7 @@ export declare const asSentinelModule: {
51
43
  config: import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").SentinelConfig>;
52
44
  ephemeralQueryAccountEnabled?: boolean;
53
45
  moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
54
- privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
55
- publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
56
- }, import("./EventData.ts").SentinelModuleEventData<import("@xyo-network/module-model").Module<import("@xylabs/base").BaseParamsFields & {
46
+ } & import("@xyo-network/module-model").ModuleChildrenParams, import("./EventData.ts").SentinelModuleEventData<import("@xyo-network/module-model").Module<import("@xylabs/base").BaseParamsFields & {
57
47
  account?: import("@xyo-network/account-model").AccountInstance | "random";
58
48
  addToResolvers?: boolean;
59
49
  additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
@@ -61,9 +51,7 @@ export declare const asSentinelModule: {
61
51
  config: import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/module-model").ModuleConfig>;
62
52
  ephemeralQueryAccountEnabled?: boolean;
63
53
  moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
64
- privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
65
- publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
66
- }, import("@xyo-network/module-model").ModuleEventData<object>>>>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
54
+ } & import("@xyo-network/module-model").ModuleChildrenParams, import("@xyo-network/module-model").ModuleEventData<object>>>>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
67
55
  <TType extends SentinelModule<import("@xylabs/base").BaseParamsFields & {
68
56
  account?: import("@xyo-network/account-model").AccountInstance | "random";
69
57
  addToResolvers?: boolean;
@@ -72,9 +60,7 @@ export declare const asSentinelModule: {
72
60
  config: import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").SentinelConfig>;
73
61
  ephemeralQueryAccountEnabled?: boolean;
74
62
  moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
75
- privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
76
- publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
77
- }, import("./EventData.ts").SentinelModuleEventData<import("@xyo-network/module-model").Module<import("@xylabs/base").BaseParamsFields & {
63
+ } & import("@xyo-network/module-model").ModuleChildrenParams, import("./EventData.ts").SentinelModuleEventData<import("@xyo-network/module-model").Module<import("@xylabs/base").BaseParamsFields & {
78
64
  account?: import("@xyo-network/account-model").AccountInstance | "random";
79
65
  addToResolvers?: boolean;
80
66
  additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
@@ -82,9 +68,7 @@ export declare const asSentinelModule: {
82
68
  config: import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/module-model").ModuleConfig>;
83
69
  ephemeralQueryAccountEnabled?: boolean;
84
70
  moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
85
- privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
86
- publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
87
- }, import("@xyo-network/module-model").ModuleEventData<object>>>>>(value: import("@xylabs/promise").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<SentinelModule<import("@xylabs/base").BaseParamsFields & {
71
+ } & import("@xyo-network/module-model").ModuleChildrenParams, import("@xyo-network/module-model").ModuleEventData<object>>>>>(value: import("@xylabs/promise").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<SentinelModule<import("@xylabs/base").BaseParamsFields & {
88
72
  account?: import("@xyo-network/account-model").AccountInstance | "random";
89
73
  addToResolvers?: boolean;
90
74
  additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
@@ -92,9 +76,7 @@ export declare const asSentinelModule: {
92
76
  config: import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").SentinelConfig>;
93
77
  ephemeralQueryAccountEnabled?: boolean;
94
78
  moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
95
- privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
96
- publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
97
- }, import("./EventData.ts").SentinelModuleEventData<import("@xyo-network/module-model").Module<import("@xylabs/base").BaseParamsFields & {
79
+ } & import("@xyo-network/module-model").ModuleChildrenParams, import("./EventData.ts").SentinelModuleEventData<import("@xyo-network/module-model").Module<import("@xylabs/base").BaseParamsFields & {
98
80
  account?: import("@xyo-network/account-model").AccountInstance | "random";
99
81
  addToResolvers?: boolean;
100
82
  additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
@@ -102,9 +84,7 @@ export declare const asSentinelModule: {
102
84
  config: import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/module-model").ModuleConfig>;
103
85
  ephemeralQueryAccountEnabled?: boolean;
104
86
  moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
105
- privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
106
- publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
107
- }, import("@xyo-network/module-model").ModuleEventData<object>>>>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
87
+ } & import("@xyo-network/module-model").ModuleChildrenParams, import("@xyo-network/module-model").ModuleEventData<object>>>>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
108
88
  };
109
89
  export declare const asSentinelInstance: {
110
90
  <TType extends SentinelInstance<import("@xylabs/base").BaseParamsFields & {
@@ -115,9 +95,7 @@ export declare const asSentinelInstance: {
115
95
  config: import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").SentinelConfig>;
116
96
  ephemeralQueryAccountEnabled?: boolean;
117
97
  moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
118
- privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
119
- publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
120
- }, import("./EventData.ts").SentinelModuleEventData<import("@xyo-network/module-model").Module<import("@xylabs/base").BaseParamsFields & {
98
+ } & import("@xyo-network/module-model").ModuleChildrenParams, import("./EventData.ts").SentinelModuleEventData<import("@xyo-network/module-model").Module<import("@xylabs/base").BaseParamsFields & {
121
99
  account?: import("@xyo-network/account-model").AccountInstance | "random";
122
100
  addToResolvers?: boolean;
123
101
  additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
@@ -125,9 +103,7 @@ export declare const asSentinelInstance: {
125
103
  config: import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/module-model").ModuleConfig>;
126
104
  ephemeralQueryAccountEnabled?: boolean;
127
105
  moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
128
- privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
129
- publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
130
- }, import("@xyo-network/module-model").ModuleEventData<object>>>>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
106
+ } & import("@xyo-network/module-model").ModuleChildrenParams, import("@xyo-network/module-model").ModuleEventData<object>>>>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
131
107
  <TType extends SentinelInstance<import("@xylabs/base").BaseParamsFields & {
132
108
  account?: import("@xyo-network/account-model").AccountInstance | "random";
133
109
  addToResolvers?: boolean;
@@ -136,9 +112,7 @@ export declare const asSentinelInstance: {
136
112
  config: import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").SentinelConfig>;
137
113
  ephemeralQueryAccountEnabled?: boolean;
138
114
  moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
139
- privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
140
- publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
141
- }, import("./EventData.ts").SentinelModuleEventData<import("@xyo-network/module-model").Module<import("@xylabs/base").BaseParamsFields & {
115
+ } & import("@xyo-network/module-model").ModuleChildrenParams, import("./EventData.ts").SentinelModuleEventData<import("@xyo-network/module-model").Module<import("@xylabs/base").BaseParamsFields & {
142
116
  account?: import("@xyo-network/account-model").AccountInstance | "random";
143
117
  addToResolvers?: boolean;
144
118
  additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
@@ -146,9 +120,7 @@ export declare const asSentinelInstance: {
146
120
  config: import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/module-model").ModuleConfig>;
147
121
  ephemeralQueryAccountEnabled?: boolean;
148
122
  moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
149
- privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
150
- publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
151
- }, import("@xyo-network/module-model").ModuleEventData<object>>>>>(value: import("@xylabs/promise").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<SentinelInstance<import("@xylabs/base").BaseParamsFields & {
123
+ } & import("@xyo-network/module-model").ModuleChildrenParams, import("@xyo-network/module-model").ModuleEventData<object>>>>>(value: import("@xylabs/promise").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<SentinelInstance<import("@xylabs/base").BaseParamsFields & {
152
124
  account?: import("@xyo-network/account-model").AccountInstance | "random";
153
125
  addToResolvers?: boolean;
154
126
  additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
@@ -156,9 +128,7 @@ export declare const asSentinelInstance: {
156
128
  config: import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").SentinelConfig>;
157
129
  ephemeralQueryAccountEnabled?: boolean;
158
130
  moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
159
- privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
160
- publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
161
- }, import("./EventData.ts").SentinelModuleEventData<import("@xyo-network/module-model").Module<import("@xylabs/base").BaseParamsFields & {
131
+ } & import("@xyo-network/module-model").ModuleChildrenParams, import("./EventData.ts").SentinelModuleEventData<import("@xyo-network/module-model").Module<import("@xylabs/base").BaseParamsFields & {
162
132
  account?: import("@xyo-network/account-model").AccountInstance | "random";
163
133
  addToResolvers?: boolean;
164
134
  additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
@@ -166,9 +136,7 @@ export declare const asSentinelInstance: {
166
136
  config: import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/module-model").ModuleConfig>;
167
137
  ephemeralQueryAccountEnabled?: boolean;
168
138
  moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
169
- privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
170
- publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
171
- }, import("@xyo-network/module-model").ModuleEventData<object>>>>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
139
+ } & import("@xyo-network/module-model").ModuleChildrenParams, import("@xyo-network/module-model").ModuleEventData<object>>>>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
172
140
  };
173
141
  export declare const withSentinelModule: <R>(mod: any, closure: (mod: SentinelModule<import("@xylabs/base").BaseParamsFields & {
174
142
  account?: import("@xyo-network/account-model").AccountInstance | "random";
@@ -178,9 +146,7 @@ export declare const withSentinelModule: <R>(mod: any, closure: (mod: SentinelMo
178
146
  config: import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").SentinelConfig>;
179
147
  ephemeralQueryAccountEnabled?: boolean;
180
148
  moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
181
- privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
182
- publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
183
- }, import("./EventData.ts").SentinelModuleEventData<import("@xyo-network/module-model").Module<import("@xylabs/base").BaseParamsFields & {
149
+ } & import("@xyo-network/module-model").ModuleChildrenParams, import("./EventData.ts").SentinelModuleEventData<import("@xyo-network/module-model").Module<import("@xylabs/base").BaseParamsFields & {
184
150
  account?: import("@xyo-network/account-model").AccountInstance | "random";
185
151
  addToResolvers?: boolean;
186
152
  additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
@@ -188,9 +154,7 @@ export declare const withSentinelModule: <R>(mod: any, closure: (mod: SentinelMo
188
154
  config: import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/module-model").ModuleConfig>;
189
155
  ephemeralQueryAccountEnabled?: boolean;
190
156
  moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
191
- privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
192
- publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
193
- }, import("@xyo-network/module-model").ModuleEventData<object>>>>) => R) => R | undefined;
157
+ } & import("@xyo-network/module-model").ModuleChildrenParams, import("@xyo-network/module-model").ModuleEventData<object>>>>) => R) => R | undefined;
194
158
  export declare const withSentinelInstance: <R>(mod: any, closure: (mod: SentinelInstance<import("@xylabs/base").BaseParamsFields & {
195
159
  account?: import("@xyo-network/account-model").AccountInstance | "random";
196
160
  addToResolvers?: boolean;
@@ -199,9 +163,7 @@ export declare const withSentinelInstance: <R>(mod: any, closure: (mod: Sentinel
199
163
  config: import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").SentinelConfig>;
200
164
  ephemeralQueryAccountEnabled?: boolean;
201
165
  moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
202
- privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
203
- publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
204
- }, import("./EventData.ts").SentinelModuleEventData<import("@xyo-network/module-model").Module<import("@xylabs/base").BaseParamsFields & {
166
+ } & import("@xyo-network/module-model").ModuleChildrenParams, import("./EventData.ts").SentinelModuleEventData<import("@xyo-network/module-model").Module<import("@xylabs/base").BaseParamsFields & {
205
167
  account?: import("@xyo-network/account-model").AccountInstance | "random";
206
168
  addToResolvers?: boolean;
207
169
  additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
@@ -209,7 +171,5 @@ export declare const withSentinelInstance: <R>(mod: any, closure: (mod: Sentinel
209
171
  config: import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/module-model").ModuleConfig>;
210
172
  ephemeralQueryAccountEnabled?: boolean;
211
173
  moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
212
- privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
213
- publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
214
- }, import("@xyo-network/module-model").ModuleEventData<object>>>>) => R) => R | undefined;
174
+ } & import("@xyo-network/module-model").ModuleChildrenParams, import("@xyo-network/module-model").ModuleEventData<object>>>>) => R) => R | undefined;
215
175
  //# sourceMappingURL=typeChecks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"typeChecks.d.ts","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAGjD,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;kEAA+F,CAAA;AAC9H,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;kEAA4E,CAAA;AAEzG,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA2C,CAAA;AACxE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA6C,CAAA;AAC5E,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;yFAAuC,CAAA;AACtE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;yFAAyC,CAAA"}
1
+ {"version":3,"file":"typeChecks.d.ts","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAGjD,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;6HAA+F,CAAA;AAC9H,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;6HAA4E,CAAA;AAEzG,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA2C,CAAA;AACxE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA6C,CAAA;AAC5E,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;oJAAuC,CAAA;AACtE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;oJAAyC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/sentinel-model",
3
- "version": "3.14.18",
3
+ "version": "3.15.0",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -29,18 +29,18 @@
29
29
  "module": "dist/neutral/index.mjs",
30
30
  "types": "dist/types/index.d.ts",
31
31
  "dependencies": {
32
- "@xylabs/hex": "^4.9.3",
33
- "@xylabs/object": "^4.9.3",
34
- "@xylabs/promise": "^4.9.3",
35
- "@xylabs/typeof": "^4.9.3",
36
- "@xyo-network/account-model": "^3.14.18",
37
- "@xyo-network/archivist-model": "^3.14.18",
38
- "@xyo-network/boundwitness-model": "^3.14.18",
39
- "@xyo-network/diviner-model": "^3.14.18",
40
- "@xyo-network/module-events": "^3.14.18",
41
- "@xyo-network/module-model": "^3.14.18",
42
- "@xyo-network/payload-model": "^3.14.18",
43
- "@xyo-network/witness-model": "^3.14.18"
32
+ "@xylabs/hex": "^4.9.7",
33
+ "@xylabs/object": "^4.9.7",
34
+ "@xylabs/promise": "^4.9.7",
35
+ "@xylabs/typeof": "^4.9.7",
36
+ "@xyo-network/account-model": "^3.15.0",
37
+ "@xyo-network/archivist-model": "^3.15.0",
38
+ "@xyo-network/boundwitness-model": "^3.15.0",
39
+ "@xyo-network/diviner-model": "^3.15.0",
40
+ "@xyo-network/module-events": "^3.15.0",
41
+ "@xyo-network/module-model": "^3.15.0",
42
+ "@xyo-network/payload-model": "^3.15.0",
43
+ "@xyo-network/witness-model": "^3.15.0"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@xylabs/ts-scripts-yarn3": "^6.5.5",
package/src/Automation.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import type { EventName } from '@xyo-network/module-events'
2
+ import type { ModuleIdentifier } from '@xyo-network/module-model'
1
3
  import type { Payload } from '@xyo-network/payload-model'
2
4
  import { isPayloadOfSchemaType } from '@xyo-network/payload-model'
3
5
 
@@ -7,8 +9,8 @@ export type SentinelAutomationSchema = typeof SentinelAutomationSchema
7
9
  export const SentinelIntervalAutomationSchema = 'network.xyo.automation.interval' as const
8
10
  export type SentinelIntervalAutomationSchema = typeof SentinelIntervalAutomationSchema
9
11
 
10
- export const SentinelEventAutomationSchema = 'network.xyo.automation.event' as const
11
- export type SentinelEventAutomationSchema = typeof SentinelEventAutomationSchema
12
+ export const SentinelModuleEventAutomationSchema = 'network.xyo.automation.event.module' as const
13
+ export type SentinelModuleEventAutomationSchema = typeof SentinelModuleEventAutomationSchema
12
14
 
13
15
  export type SentinelBaseAutomationPayload<T extends Payload> = Payload<
14
16
  {
@@ -41,14 +43,16 @@ export type SentinelIntervalAutomationPayload = SentinelBaseAutomationPayload<{
41
43
 
42
44
  export const isSentinelIntervalAutomation = isPayloadOfSchemaType<SentinelIntervalAutomationPayload>(SentinelIntervalAutomationSchema)
43
45
 
44
- /** Settings for an Event Automation */
45
- export type SentinelEventAutomationPayload = SentinelBaseAutomationPayload<{
46
- schema: SentinelEventAutomationSchema
46
+ /** Settings for an Module Event Automation */
47
+ export type SentinelModuleEventAutomationPayload = SentinelBaseAutomationPayload<{
48
+ eventName: EventName
49
+ schema: SentinelModuleEventAutomationSchema
50
+ source: ModuleIdentifier
47
51
  type: 'event'
48
52
  }>
49
53
 
50
54
  /** Settings for an Automation */
51
55
  export type SentinelAutomationPayload = Payload<
52
- SentinelIntervalAutomationPayload | SentinelEventAutomationPayload,
53
- SentinelAutomationSchema | SentinelIntervalAutomationSchema | SentinelEventAutomationSchema
56
+ SentinelIntervalAutomationPayload | SentinelModuleEventAutomationPayload,
57
+ SentinelAutomationSchema | SentinelIntervalAutomationSchema | SentinelModuleEventAutomationSchema
54
58
  >