@xyo-network/sentinel-model 3.6.9 → 3.6.11

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,10 +1,10 @@
1
1
  import type { Payload } from '@xyo-network/payload-model';
2
- export type SentinelAutomationSchema = 'network.xyo.automation';
3
- export declare const SentinelAutomationSchema: SentinelAutomationSchema;
4
- export type SentinelIntervalAutomationSchema = 'network.xyo.automation.interval';
5
- export declare const SentinelIntervalAutomationSchema: SentinelIntervalAutomationSchema;
6
- export type SentinelEventAutomationSchema = 'network.xyo.automation.event';
7
- export declare const SentinelEventAutomationSchema: SentinelEventAutomationSchema;
2
+ export declare const SentinelAutomationSchema: "network.xyo.automation";
3
+ export type SentinelAutomationSchema = typeof SentinelAutomationSchema;
4
+ export declare const SentinelIntervalAutomationSchema: "network.xyo.automation.interval";
5
+ export type SentinelIntervalAutomationSchema = typeof SentinelIntervalAutomationSchema;
6
+ export declare const SentinelEventAutomationSchema: "network.xyo.automation.event";
7
+ export type SentinelEventAutomationSchema = typeof SentinelEventAutomationSchema;
8
8
  export type SentinelBaseAutomationPayload<T extends Payload> = Payload<{
9
9
  type?: 'interval' | 'event';
10
10
  } & T>;
@@ -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,MAAM,MAAM,wBAAwB,GAAG,wBAAwB,CAAA;AAC/D,eAAO,MAAM,wBAAwB,EAAE,wBAAmD,CAAA;AAE1F,MAAM,MAAM,gCAAgC,GAAG,iCAAiC,CAAA;AAChF,eAAO,MAAM,gCAAgC,EAAE,gCAAoE,CAAA;AAEnH,MAAM,MAAM,6BAA6B,GAAG,8BAA8B,CAAA;AAC1E,eAAO,MAAM,6BAA6B,EAAE,6BAA8D,CAAA;AAE1G,MAAM,MAAM,6BAA6B,CAAC,CAAC,SAAS,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BAA8B,EAClE,wBAAwB,GAAG,gCAAgC,GAAG,6BAA6B,CAC5F,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import type { Query } from '@xyo-network/payload-model';
2
- export type SentinelReportQuerySchema = 'network.xyo.query.sentinel.report';
3
- export declare const SentinelReportQuerySchema: SentinelReportQuerySchema;
2
+ export declare const SentinelReportQuerySchema: "network.xyo.query.sentinel.report";
3
+ export type SentinelReportQuerySchema = typeof SentinelReportQuerySchema;
4
4
  export type SentinelReportQuery = Query<{
5
5
  schema: SentinelReportQuerySchema;
6
6
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"Report.d.ts","sourceRoot":"","sources":["../../../src/Queries/Report.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAA;AAEvD,MAAM,MAAM,yBAAyB,GAAG,mCAAmC,CAAA;AAC3E,eAAO,MAAM,yBAAyB,EAAE,yBAA+D,CAAA;AAEvG,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC;IACtC,MAAM,EAAE,yBAAyB,CAAA;CAClC,CAAC,CAAA"}
1
+ {"version":3,"file":"Report.d.ts","sourceRoot":"","sources":["../../../src/Queries/Report.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"}
@@ -13,15 +13,14 @@ var SentinelReportQuerySchema = "network.xyo.query.sentinel.report";
13
13
 
14
14
  // src/typeChecks.ts
15
15
  import { AsObjectFactory } from "@xylabs/object";
16
- import { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from "@xyo-network/module-model";
17
- var isSentinelInstance = new IsInstanceFactory().create({
18
- report: "function"
19
- }, [
20
- isModuleInstance
21
- ]);
22
- var isSentinelModule = new IsModuleFactory().create([
23
- SentinelReportQuerySchema
24
- ]);
16
+ import {
17
+ IsInstanceFactory,
18
+ IsModuleFactory,
19
+ isModuleInstance,
20
+ WithFactory
21
+ } from "@xyo-network/module-model";
22
+ var isSentinelInstance = new IsInstanceFactory().create({ report: "function" }, [isModuleInstance]);
23
+ var isSentinelModule = new IsModuleFactory().create([SentinelReportQuerySchema]);
25
24
  var asSentinelModule = AsObjectFactory.create(isSentinelModule);
26
25
  var asSentinelInstance = AsObjectFactory.create(isSentinelInstance);
27
26
  var withSentinelModule = WithFactory.create(isSentinelModule);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Automation.ts","../../src/Config.ts","../../src/Queries/Report.ts","../../src/typeChecks.ts"],"sourcesContent":["import type { Payload } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType } from '@xyo-network/payload-model'\n\nexport type SentinelAutomationSchema = 'network.xyo.automation'\nexport const SentinelAutomationSchema: SentinelAutomationSchema = 'network.xyo.automation'\n\nexport type SentinelIntervalAutomationSchema = 'network.xyo.automation.interval'\nexport const SentinelIntervalAutomationSchema: SentinelIntervalAutomationSchema = 'network.xyo.automation.interval'\n\nexport type SentinelEventAutomationSchema = 'network.xyo.automation.event'\nexport const SentinelEventAutomationSchema: SentinelEventAutomationSchema = 'network.xyo.automation.event'\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'\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","import type { Query } from '@xyo-network/payload-model'\n\nexport type SentinelReportQuerySchema = 'network.xyo.query.sentinel.report'\nexport const SentinelReportQuerySchema: SentinelReportQuerySchema = 'network.xyo.query.sentinel.report'\n\nexport type SentinelReportQuery = Query<{\n schema: SentinelReportQuerySchema\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"],"mappings":";AACA,SAASA,6BAA6B;AAG/B,IAAMC,2BAAqD;AAG3D,IAAMC,mCAAqE;AAG3E,IAAMC,gCAA+D;AA+BrE,IAAMC,+BAA+BJ,sBAAyDE,gCAAAA;;;AClC9F,IAAMG,uBAAuB;;;ACJ7B,IAAMC,4BAAuD;;;ACHpE,SAASC,uBAAuB;AAChC,SACEC,mBAAmBC,iBAAiBC,kBAAkBC,mBACjD;AAMA,IAAMC,qBAAqB,IAAIC,kBAAAA,EAAsCC,OAAO;EAAEC,QAAQ;AAAW,GAAG;EAACC;CAAiB;AACtH,IAAMC,mBAAmB,IAAIC,gBAAAA,EAAkCJ,OAAO;EAACK;CAA0B;AAEjG,IAAMC,mBAAmBC,gBAAgBP,OAAOG,gBAAAA;AAChD,IAAMK,qBAAqBD,gBAAgBP,OAAOF,kBAAAA;AAClD,IAAMW,qBAAqBC,YAAYV,OAAOG,gBAAAA;AAC9C,IAAMQ,uBAAuBD,YAAYV,OAAOF,kBAAAA;","names":["isPayloadOfSchemaType","SentinelAutomationSchema","SentinelIntervalAutomationSchema","SentinelEventAutomationSchema","isSentinelIntervalAutomation","SentinelConfigSchema","SentinelReportQuerySchema","AsObjectFactory","IsInstanceFactory","IsModuleFactory","isModuleInstance","WithFactory","isSentinelInstance","IsInstanceFactory","create","report","isModuleInstance","isSentinelModule","IsModuleFactory","SentinelReportQuerySchema","asSentinelModule","AsObjectFactory","asSentinelInstance","withSentinelModule","WithFactory","withSentinelInstance"]}
1
+ {"version":3,"sources":["../../src/Automation.ts","../../src/Config.ts","../../src/Queries/Report.ts","../../src/typeChecks.ts"],"sourcesContent":["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'\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","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 { 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"],"mappings":";AACA,SAAS,6BAA6B;AAE/B,IAAM,2BAA2B;AAGjC,IAAM,mCAAmC;AAGzC,IAAM,gCAAgC;AAgCtC,IAAM,+BAA+B,sBAAyD,gCAAgC;;;AClC9H,IAAM,uBAAuB;;;ACL7B,IAAM,4BAA4B;;;ACFzC,SAAS,uBAAuB;AAChC;AAAA,EACE;AAAA,EAAmB;AAAA,EAAiB;AAAA,EAAkB;AAAA,OACjD;AAMA,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;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/sentinel-model",
3
- "version": "3.6.9",
3
+ "version": "3.6.11",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -29,22 +29,22 @@
29
29
  "module": "dist/neutral/index.mjs",
30
30
  "types": "dist/neutral/index.d.ts",
31
31
  "dependencies": {
32
- "@xylabs/hex": "^4.4.34",
33
- "@xylabs/object": "^4.4.34",
34
- "@xylabs/promise": "^4.4.34",
35
- "@xyo-network/account-model": "^3.6.9",
36
- "@xyo-network/archivist-model": "^3.6.9",
37
- "@xyo-network/boundwitness-model": "^3.6.9",
38
- "@xyo-network/diviner-model": "^3.6.9",
39
- "@xyo-network/module-events": "^3.6.9",
40
- "@xyo-network/module-model": "^3.6.9",
41
- "@xyo-network/payload-model": "^3.6.9",
42
- "@xyo-network/witness-model": "^3.6.9"
32
+ "@xylabs/hex": "^4.5.1",
33
+ "@xylabs/object": "^4.5.1",
34
+ "@xylabs/promise": "^4.5.1",
35
+ "@xyo-network/account-model": "^3.6.11",
36
+ "@xyo-network/archivist-model": "^3.6.11",
37
+ "@xyo-network/boundwitness-model": "^3.6.11",
38
+ "@xyo-network/diviner-model": "^3.6.11",
39
+ "@xyo-network/module-events": "^3.6.11",
40
+ "@xyo-network/module-model": "^3.6.11",
41
+ "@xyo-network/payload-model": "^3.6.11",
42
+ "@xyo-network/witness-model": "^3.6.11"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@xylabs/ts-scripts-yarn3": "^4.2.6",
46
46
  "@xylabs/tsconfig": "^4.2.6",
47
- "typescript": "^5.7.2"
47
+ "typescript": "^5.7.3"
48
48
  },
49
49
  "publishConfig": {
50
50
  "access": "public"
package/src/Automation.ts CHANGED
@@ -1,14 +1,14 @@
1
1
  import type { Payload } from '@xyo-network/payload-model'
2
2
  import { isPayloadOfSchemaType } from '@xyo-network/payload-model'
3
3
 
4
- export type SentinelAutomationSchema = 'network.xyo.automation'
5
- export const SentinelAutomationSchema: SentinelAutomationSchema = 'network.xyo.automation'
4
+ export const SentinelAutomationSchema = 'network.xyo.automation' as const
5
+ export type SentinelAutomationSchema = typeof SentinelAutomationSchema
6
6
 
7
- export type SentinelIntervalAutomationSchema = 'network.xyo.automation.interval'
8
- export const SentinelIntervalAutomationSchema: SentinelIntervalAutomationSchema = 'network.xyo.automation.interval'
7
+ export const SentinelIntervalAutomationSchema = 'network.xyo.automation.interval' as const
8
+ export type SentinelIntervalAutomationSchema = typeof SentinelIntervalAutomationSchema
9
9
 
10
- export type SentinelEventAutomationSchema = 'network.xyo.automation.event'
11
- export const SentinelEventAutomationSchema: SentinelEventAutomationSchema = 'network.xyo.automation.event'
10
+ export const SentinelEventAutomationSchema = 'network.xyo.automation.event' as const
11
+ export type SentinelEventAutomationSchema = typeof SentinelEventAutomationSchema
12
12
 
13
13
  export type SentinelBaseAutomationPayload<T extends Payload> = Payload<
14
14
  {
@@ -1,7 +1,7 @@
1
1
  import type { Query } from '@xyo-network/payload-model'
2
2
 
3
- export type SentinelReportQuerySchema = 'network.xyo.query.sentinel.report'
4
- export const SentinelReportQuerySchema: SentinelReportQuerySchema = 'network.xyo.query.sentinel.report'
3
+ export const SentinelReportQuerySchema = 'network.xyo.query.sentinel.report' as const
4
+ export type SentinelReportQuerySchema = typeof SentinelReportQuerySchema
5
5
 
6
6
  export type SentinelReportQuery = Query<{
7
7
  schema: SentinelReportQuerySchema