@xyo-network/sentinel-model 2.88.2 → 2.89.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/Config.d.cts +1 -1
- package/dist/browser/Config.d.cts.map +1 -1
- package/dist/browser/Config.d.mts +1 -1
- package/dist/browser/Config.d.mts.map +1 -1
- package/dist/browser/Config.d.ts +1 -1
- package/dist/browser/Config.d.ts.map +1 -1
- package/dist/browser/Params.d.cts +1 -1
- package/dist/browser/Params.d.cts.map +1 -1
- package/dist/browser/Params.d.mts +1 -1
- package/dist/browser/Params.d.mts.map +1 -1
- package/dist/browser/Params.d.ts +1 -1
- package/dist/browser/Params.d.ts.map +1 -1
- package/dist/browser/index.cjs +1 -1
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.js +1 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/typeChecks.d.cts +52 -20
- package/dist/browser/typeChecks.d.cts.map +1 -1
- package/dist/browser/typeChecks.d.mts +52 -20
- package/dist/browser/typeChecks.d.mts.map +1 -1
- package/dist/browser/typeChecks.d.ts +52 -20
- package/dist/browser/typeChecks.d.ts.map +1 -1
- package/dist/node/Config.d.cts +1 -1
- package/dist/node/Config.d.cts.map +1 -1
- package/dist/node/Config.d.mts +1 -1
- package/dist/node/Config.d.mts.map +1 -1
- package/dist/node/Config.d.ts +1 -1
- package/dist/node/Config.d.ts.map +1 -1
- package/dist/node/Params.d.cts +1 -1
- package/dist/node/Params.d.cts.map +1 -1
- package/dist/node/Params.d.mts +1 -1
- package/dist/node/Params.d.mts.map +1 -1
- package/dist/node/Params.d.ts +1 -1
- package/dist/node/Params.d.ts.map +1 -1
- package/dist/node/index.cjs +1 -1
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.js +1 -1
- package/dist/node/index.js.map +1 -1
- package/dist/node/typeChecks.d.cts +52 -20
- package/dist/node/typeChecks.d.cts.map +1 -1
- package/dist/node/typeChecks.d.mts +52 -20
- package/dist/node/typeChecks.d.mts.map +1 -1
- package/dist/node/typeChecks.d.ts +52 -20
- package/dist/node/typeChecks.d.ts.map +1 -1
- package/package.json +12 -11
- package/src/Config.ts +1 -1
- package/src/Params.ts +1 -1
- package/src/typeChecks.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { WithAdditional } from '@xylabs/object';
|
|
1
2
|
import { ModuleConfig } from '@xyo-network/module-model';
|
|
2
|
-
import { WithAdditional } from '@xyo-network/object';
|
|
3
3
|
import { Payload } from '@xyo-network/payload-model';
|
|
4
4
|
import { SentinelAutomationPayload } from './Automation';
|
|
5
5
|
import { Task } from './Task';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,OAAO,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAA;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAE7B,eAAO,MAAM,oBAAoB,gCAAgC,CAAA;AACjE,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAA;AAE9D,MAAM,MAAM,cAAc,CAAC,OAAO,SAAS,OAAO,GAAG,IAAI,GAAG,IAAI,EAAE,OAAO,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI,IAAI,YAAY,CACpH,cAAc,CACZ;IACE,WAAW,CAAC,EAAE,yBAAyB,EAAE,CAAA;IACzC,MAAM,EAAE,OAAO,SAAS,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,GAAG,oBAAoB,CAAA;IAC1E,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,KAAK,EAAE,IAAI,EAAE,CAAA;IACb,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,EACD,OAAO,CACR,EACD,OAAO,CACR,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { WithAdditional } from '@xylabs/object';
|
|
1
2
|
import { ModuleConfig } from '@xyo-network/module-model';
|
|
2
|
-
import { WithAdditional } from '@xyo-network/object';
|
|
3
3
|
import { Payload } from '@xyo-network/payload-model';
|
|
4
4
|
import { SentinelAutomationPayload } from './Automation';
|
|
5
5
|
import { Task } from './Task';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,OAAO,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAA;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAE7B,eAAO,MAAM,oBAAoB,gCAAgC,CAAA;AACjE,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAA;AAE9D,MAAM,MAAM,cAAc,CAAC,OAAO,SAAS,OAAO,GAAG,IAAI,GAAG,IAAI,EAAE,OAAO,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI,IAAI,YAAY,CACpH,cAAc,CACZ;IACE,WAAW,CAAC,EAAE,yBAAyB,EAAE,CAAA;IACzC,MAAM,EAAE,OAAO,SAAS,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,GAAG,oBAAoB,CAAA;IAC1E,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,KAAK,EAAE,IAAI,EAAE,CAAA;IACb,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,EACD,OAAO,CACR,EACD,OAAO,CACR,CAAA"}
|
package/dist/browser/Config.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { WithAdditional } from '@xylabs/object';
|
|
1
2
|
import { ModuleConfig } from '@xyo-network/module-model';
|
|
2
|
-
import { WithAdditional } from '@xyo-network/object';
|
|
3
3
|
import { Payload } from '@xyo-network/payload-model';
|
|
4
4
|
import { SentinelAutomationPayload } from './Automation';
|
|
5
5
|
import { Task } from './Task';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,OAAO,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAA;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAE7B,eAAO,MAAM,oBAAoB,gCAAgC,CAAA;AACjE,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAA;AAE9D,MAAM,MAAM,cAAc,CAAC,OAAO,SAAS,OAAO,GAAG,IAAI,GAAG,IAAI,EAAE,OAAO,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI,IAAI,YAAY,CACpH,cAAc,CACZ;IACE,WAAW,CAAC,EAAE,yBAAyB,EAAE,CAAA;IACzC,MAAM,EAAE,OAAO,SAAS,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,GAAG,oBAAoB,CAAA;IAC1E,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,KAAK,EAAE,IAAI,EAAE,CAAA;IACb,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,EACD,OAAO,CACR,EACD,OAAO,CACR,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { EmptyObject } from '@xylabs/object';
|
|
1
2
|
import { AnyConfigSchema, ModuleParams } from '@xyo-network/module-model';
|
|
2
|
-
import { EmptyObject } from '@xyo-network/object';
|
|
3
3
|
import { SentinelConfig } from './Config';
|
|
4
4
|
export type SentinelParams<TConfig extends AnyConfigSchema<SentinelConfig> = AnyConfigSchema<SentinelConfig>, TAdditionalParams extends EmptyObject | void = void> = ModuleParams<TConfig, TAdditionalParams>;
|
|
5
5
|
//# sourceMappingURL=Params.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../src/Params.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../src/Params.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAEzE,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAEzC,MAAM,MAAM,cAAc,CACxB,OAAO,SAAS,eAAe,CAAC,cAAc,CAAC,GAAG,eAAe,CAAC,cAAc,CAAC,EACjF,iBAAiB,SAAS,WAAW,GAAG,IAAI,GAAG,IAAI,IACjD,YAAY,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { EmptyObject } from '@xylabs/object';
|
|
1
2
|
import { AnyConfigSchema, ModuleParams } from '@xyo-network/module-model';
|
|
2
|
-
import { EmptyObject } from '@xyo-network/object';
|
|
3
3
|
import { SentinelConfig } from './Config';
|
|
4
4
|
export type SentinelParams<TConfig extends AnyConfigSchema<SentinelConfig> = AnyConfigSchema<SentinelConfig>, TAdditionalParams extends EmptyObject | void = void> = ModuleParams<TConfig, TAdditionalParams>;
|
|
5
5
|
//# sourceMappingURL=Params.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../src/Params.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../src/Params.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAEzE,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAEzC,MAAM,MAAM,cAAc,CACxB,OAAO,SAAS,eAAe,CAAC,cAAc,CAAC,GAAG,eAAe,CAAC,cAAc,CAAC,EACjF,iBAAiB,SAAS,WAAW,GAAG,IAAI,GAAG,IAAI,IACjD,YAAY,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAA"}
|
package/dist/browser/Params.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { EmptyObject } from '@xylabs/object';
|
|
1
2
|
import { AnyConfigSchema, ModuleParams } from '@xyo-network/module-model';
|
|
2
|
-
import { EmptyObject } from '@xyo-network/object';
|
|
3
3
|
import { SentinelConfig } from './Config';
|
|
4
4
|
export type SentinelParams<TConfig extends AnyConfigSchema<SentinelConfig> = AnyConfigSchema<SentinelConfig>, TAdditionalParams extends EmptyObject | void = void> = ModuleParams<TConfig, TAdditionalParams>;
|
|
5
5
|
//# sourceMappingURL=Params.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../src/Params.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../src/Params.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAEzE,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAEzC,MAAM,MAAM,cAAc,CACxB,OAAO,SAAS,eAAe,CAAC,cAAc,CAAC,GAAG,eAAe,CAAC,cAAc,CAAC,EACjF,iBAAiB,SAAS,WAAW,GAAG,IAAI,GAAG,IAAI,IACjD,YAAY,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAA"}
|
package/dist/browser/index.cjs
CHANGED
|
@@ -49,8 +49,8 @@ var SentinelConfigSchema = "network.xyo.sentinel.config";
|
|
|
49
49
|
var SentinelReportQuerySchema = "network.xyo.query.sentinel.report";
|
|
50
50
|
|
|
51
51
|
// src/typeChecks.ts
|
|
52
|
+
var import_object = require("@xylabs/object");
|
|
52
53
|
var import_module_model = require("@xyo-network/module-model");
|
|
53
|
-
var import_object = require("@xyo-network/object");
|
|
54
54
|
var isSentinelInstance = new import_module_model.IsInstanceFactory().create({
|
|
55
55
|
report: "function"
|
|
56
56
|
}, [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/Automation.ts","../../src/Config.ts","../../src/Queries/Report.ts","../../src/typeChecks.ts"],"sourcesContent":["export * from './Automation'\nexport * from './Config'\nexport * from './EventData'\nexport * from './EventsModels'\nexport * from './Instance'\nexport * from './Job'\nexport * from './Module'\nexport * from './Params'\nexport * from './Queries'\nexport * from './ResolvedTask'\nexport * from './Sentinel'\nexport * from './Task'\nexport * from './typeChecks'\n","import { isPayloadOfSchemaType, Payload } 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 {
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/Automation.ts","../../src/Config.ts","../../src/Queries/Report.ts","../../src/typeChecks.ts"],"sourcesContent":["export * from './Automation'\nexport * from './Config'\nexport * from './EventData'\nexport * from './EventsModels'\nexport * from './Instance'\nexport * from './Job'\nexport * from './Module'\nexport * from './Params'\nexport * from './Queries'\nexport * from './ResolvedTask'\nexport * from './Sentinel'\nexport * from './Task'\nexport * from './typeChecks'\n","import { isPayloadOfSchemaType, Payload } 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 { WithAdditional } from '@xylabs/object'\nimport { ModuleConfig } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nimport { SentinelAutomationPayload } from './Automation'\nimport { Task } from './Task'\n\nexport const SentinelConfigSchema = 'network.xyo.sentinel.config'\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 { 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 { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from '@xyo-network/module-model'\n\nimport { SentinelInstance } from './Instance'\nimport { SentinelModule } from './Module'\nimport { SentinelReportQuerySchema } from './Queries'\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":";;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;ACAA,2BAA+C;AAGxC,IAAMA,2BAAqD;AAG3D,IAAMC,mCAAqE;AAG3E,IAAMC,gCAA+D;AA+BrE,IAAMC,mCAA+BC,4CAAyDH,gCAAAA;;;ACjC9F,IAAMI,uBAAuB;;;ACJ7B,IAAMC,4BAAuD;;;ACHpE,oBAAgC;AAChC,0BAAkF;AAM3E,IAAMC,qBAAqB,IAAIC,sCAAAA,EAAsCC,OAAO;EAAEC,QAAQ;AAAW,GAAG;EAACC;CAAiB;AACtH,IAAMC,mBAAmB,IAAIC,oCAAAA,EAAkCJ,OAAO;EAACK;CAA0B;AAEjG,IAAMC,mBAAmBC,8BAAgBP,OAAOG,gBAAAA;AAChD,IAAMK,qBAAqBD,8BAAgBP,OAAOF,kBAAAA;AAClD,IAAMW,qBAAqBC,gCAAYV,OAAOG,gBAAAA;AAC9C,IAAMQ,uBAAuBD,gCAAYV,OAAOF,kBAAAA;","names":["SentinelAutomationSchema","SentinelIntervalAutomationSchema","SentinelEventAutomationSchema","isSentinelIntervalAutomation","isPayloadOfSchemaType","SentinelConfigSchema","SentinelReportQuerySchema","isSentinelInstance","IsInstanceFactory","create","report","isModuleInstance","isSentinelModule","IsModuleFactory","SentinelReportQuerySchema","asSentinelModule","AsObjectFactory","asSentinelInstance","withSentinelModule","WithFactory","withSentinelInstance"]}
|
package/dist/browser/index.js
CHANGED
|
@@ -12,8 +12,8 @@ var SentinelConfigSchema = "network.xyo.sentinel.config";
|
|
|
12
12
|
var SentinelReportQuerySchema = "network.xyo.query.sentinel.report";
|
|
13
13
|
|
|
14
14
|
// src/typeChecks.ts
|
|
15
|
+
import { AsObjectFactory } from "@xylabs/object";
|
|
15
16
|
import { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from "@xyo-network/module-model";
|
|
16
|
-
import { AsObjectFactory } from "@xyo-network/object";
|
|
17
17
|
var isSentinelInstance = new IsInstanceFactory().create({
|
|
18
18
|
report: "function"
|
|
19
19
|
}, [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Automation.ts","../../src/Config.ts","../../src/Queries/Report.ts","../../src/typeChecks.ts"],"sourcesContent":["import { isPayloadOfSchemaType, Payload } 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 {
|
|
1
|
+
{"version":3,"sources":["../../src/Automation.ts","../../src/Config.ts","../../src/Queries/Report.ts","../../src/typeChecks.ts"],"sourcesContent":["import { isPayloadOfSchemaType, Payload } 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 { WithAdditional } from '@xylabs/object'\nimport { ModuleConfig } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nimport { SentinelAutomationPayload } from './Automation'\nimport { Task } from './Task'\n\nexport const SentinelConfigSchema = 'network.xyo.sentinel.config'\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 { 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 { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from '@xyo-network/module-model'\n\nimport { SentinelInstance } from './Instance'\nimport { SentinelModule } from './Module'\nimport { SentinelReportQuerySchema } from './Queries'\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":";AAAA,SAASA,6BAAsC;AAGxC,IAAMC,2BAAqD;AAG3D,IAAMC,mCAAqE;AAG3E,IAAMC,gCAA+D;AA+BrE,IAAMC,+BAA+BJ,sBAAyDE,gCAAAA;;;ACjC9F,IAAMG,uBAAuB;;;ACJ7B,IAAMC,4BAAuD;;;ACHpE,SAASC,uBAAuB;AAChC,SAASC,mBAAmBC,iBAAiBC,kBAAkBC,mBAAmB;AAM3E,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,6 +1,6 @@
|
|
|
1
1
|
import { SentinelInstance } from './Instance';
|
|
2
2
|
import { SentinelModule } from './Module';
|
|
3
|
-
export declare const isSentinelInstance: import("@
|
|
3
|
+
export declare const isSentinelInstance: import("@xylabs/object").TypeCheck<SentinelInstance<import("@xylabs/object").BaseParamsFields & {
|
|
4
4
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
5
5
|
config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
6
6
|
readonly archivist?: string | undefined;
|
|
@@ -9,6 +9,7 @@ export declare const isSentinelInstance: import("@xyo-network/object").TypeCheck
|
|
|
9
9
|
readonly paging?: Record<string, {
|
|
10
10
|
size?: number | undefined;
|
|
11
11
|
}> | undefined;
|
|
12
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
12
13
|
schema: "network.xyo.sentinel.config";
|
|
13
14
|
readonly security?: {
|
|
14
15
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -25,6 +26,7 @@ export declare const isSentinelInstance: import("@xyo-network/object").TypeCheck
|
|
|
25
26
|
readonly paging?: Record<string, {
|
|
26
27
|
size?: number | undefined;
|
|
27
28
|
}> | undefined;
|
|
29
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
28
30
|
schema: "network.xyo.sentinel.config";
|
|
29
31
|
readonly security?: {
|
|
30
32
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -44,7 +46,7 @@ export declare const isSentinelInstance: import("@xyo-network/object").TypeCheck
|
|
|
44
46
|
schema: string;
|
|
45
47
|
};
|
|
46
48
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
47
|
-
}, import("./EventData").SentinelModuleEventData<import("@xyo-network/module-model").Module<import("@
|
|
49
|
+
}, import("./EventData").SentinelModuleEventData<import("@xyo-network/module-model").Module<import("@xylabs/object").BaseParamsFields & {
|
|
48
50
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
49
51
|
config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
50
52
|
readonly archivist?: string | undefined;
|
|
@@ -53,6 +55,7 @@ export declare const isSentinelInstance: import("@xyo-network/object").TypeCheck
|
|
|
53
55
|
readonly paging?: Record<string, {
|
|
54
56
|
size?: number | undefined;
|
|
55
57
|
}> | undefined;
|
|
58
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
56
59
|
schema: "network.xyo.module.config";
|
|
57
60
|
readonly security?: {
|
|
58
61
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -69,6 +72,7 @@ export declare const isSentinelInstance: import("@xyo-network/object").TypeCheck
|
|
|
69
72
|
readonly paging?: Record<string, {
|
|
70
73
|
size?: number | undefined;
|
|
71
74
|
}> | undefined;
|
|
75
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
72
76
|
schema: "network.xyo.module.config";
|
|
73
77
|
readonly security?: {
|
|
74
78
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -83,7 +87,7 @@ export declare const isSentinelInstance: import("@xyo-network/object").TypeCheck
|
|
|
83
87
|
};
|
|
84
88
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
85
89
|
}, import("@xyo-network/module-model").ModuleEventData<object>>>>>;
|
|
86
|
-
export declare const isSentinelModule: import("@xyo-network/module-model").ModuleTypeCheck<SentinelModule<import("@
|
|
90
|
+
export declare const isSentinelModule: import("@xyo-network/module-model").ModuleTypeCheck<SentinelModule<import("@xylabs/object").BaseParamsFields & {
|
|
87
91
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
88
92
|
config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
89
93
|
readonly archivist?: string | undefined;
|
|
@@ -92,6 +96,7 @@ export declare const isSentinelModule: import("@xyo-network/module-model").Modul
|
|
|
92
96
|
readonly paging?: Record<string, {
|
|
93
97
|
size?: number | undefined;
|
|
94
98
|
}> | undefined;
|
|
99
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
95
100
|
schema: "network.xyo.sentinel.config";
|
|
96
101
|
readonly security?: {
|
|
97
102
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -108,6 +113,7 @@ export declare const isSentinelModule: import("@xyo-network/module-model").Modul
|
|
|
108
113
|
readonly paging?: Record<string, {
|
|
109
114
|
size?: number | undefined;
|
|
110
115
|
}> | undefined;
|
|
116
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
111
117
|
schema: "network.xyo.sentinel.config";
|
|
112
118
|
readonly security?: {
|
|
113
119
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -127,7 +133,7 @@ export declare const isSentinelModule: import("@xyo-network/module-model").Modul
|
|
|
127
133
|
schema: string;
|
|
128
134
|
};
|
|
129
135
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
130
|
-
}, import("./EventData").SentinelModuleEventData<import("@xyo-network/module-model").Module<import("@
|
|
136
|
+
}, import("./EventData").SentinelModuleEventData<import("@xyo-network/module-model").Module<import("@xylabs/object").BaseParamsFields & {
|
|
131
137
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
132
138
|
config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
133
139
|
readonly archivist?: string | undefined;
|
|
@@ -136,6 +142,7 @@ export declare const isSentinelModule: import("@xyo-network/module-model").Modul
|
|
|
136
142
|
readonly paging?: Record<string, {
|
|
137
143
|
size?: number | undefined;
|
|
138
144
|
}> | undefined;
|
|
145
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
139
146
|
schema: "network.xyo.module.config";
|
|
140
147
|
readonly security?: {
|
|
141
148
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -152,6 +159,7 @@ export declare const isSentinelModule: import("@xyo-network/module-model").Modul
|
|
|
152
159
|
readonly paging?: Record<string, {
|
|
153
160
|
size?: number | undefined;
|
|
154
161
|
}> | undefined;
|
|
162
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
155
163
|
schema: "network.xyo.module.config";
|
|
156
164
|
readonly security?: {
|
|
157
165
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -167,7 +175,7 @@ export declare const isSentinelModule: import("@xyo-network/module-model").Modul
|
|
|
167
175
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
168
176
|
}, import("@xyo-network/module-model").ModuleEventData<object>>>>>;
|
|
169
177
|
export declare const asSentinelModule: {
|
|
170
|
-
<TType extends SentinelModule<import("@
|
|
178
|
+
<TType extends SentinelModule<import("@xylabs/object").BaseParamsFields & {
|
|
171
179
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
172
180
|
config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
173
181
|
readonly archivist?: string | undefined;
|
|
@@ -176,6 +184,7 @@ export declare const asSentinelModule: {
|
|
|
176
184
|
readonly paging?: Record<string, {
|
|
177
185
|
size?: number | undefined;
|
|
178
186
|
}> | undefined;
|
|
187
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
179
188
|
schema: "network.xyo.sentinel.config";
|
|
180
189
|
readonly security?: {
|
|
181
190
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -192,6 +201,7 @@ export declare const asSentinelModule: {
|
|
|
192
201
|
readonly paging?: Record<string, {
|
|
193
202
|
size?: number | undefined;
|
|
194
203
|
}> | undefined;
|
|
204
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
195
205
|
schema: "network.xyo.sentinel.config";
|
|
196
206
|
readonly security?: {
|
|
197
207
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -211,7 +221,7 @@ export declare const asSentinelModule: {
|
|
|
211
221
|
schema: string;
|
|
212
222
|
};
|
|
213
223
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
214
|
-
}, import("./EventData").SentinelModuleEventData<import("@xyo-network/module-model").Module<import("@
|
|
224
|
+
}, import("./EventData").SentinelModuleEventData<import("@xyo-network/module-model").Module<import("@xylabs/object").BaseParamsFields & {
|
|
215
225
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
216
226
|
config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
217
227
|
readonly archivist?: string | undefined;
|
|
@@ -220,6 +230,7 @@ export declare const asSentinelModule: {
|
|
|
220
230
|
readonly paging?: Record<string, {
|
|
221
231
|
size?: number | undefined;
|
|
222
232
|
}> | undefined;
|
|
233
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
223
234
|
schema: "network.xyo.module.config";
|
|
224
235
|
readonly security?: {
|
|
225
236
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -236,6 +247,7 @@ export declare const asSentinelModule: {
|
|
|
236
247
|
readonly paging?: Record<string, {
|
|
237
248
|
size?: number | undefined;
|
|
238
249
|
}> | undefined;
|
|
250
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
239
251
|
schema: "network.xyo.module.config";
|
|
240
252
|
readonly security?: {
|
|
241
253
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -249,8 +261,8 @@ export declare const asSentinelModule: {
|
|
|
249
261
|
schema: string;
|
|
250
262
|
};
|
|
251
263
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
252
|
-
}, import("@xyo-network/module-model").ModuleEventData<object>>>>>(value: unknown, config?: import("@
|
|
253
|
-
<TType_1 extends SentinelModule<import("@
|
|
264
|
+
}, import("@xyo-network/module-model").ModuleEventData<object>>>>>(value: unknown, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType | undefined;
|
|
265
|
+
<TType_1 extends SentinelModule<import("@xylabs/object").BaseParamsFields & {
|
|
254
266
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
255
267
|
config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
256
268
|
readonly archivist?: string | undefined;
|
|
@@ -259,6 +271,7 @@ export declare const asSentinelModule: {
|
|
|
259
271
|
readonly paging?: Record<string, {
|
|
260
272
|
size?: number | undefined;
|
|
261
273
|
}> | undefined;
|
|
274
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
262
275
|
schema: "network.xyo.sentinel.config";
|
|
263
276
|
readonly security?: {
|
|
264
277
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -275,6 +288,7 @@ export declare const asSentinelModule: {
|
|
|
275
288
|
readonly paging?: Record<string, {
|
|
276
289
|
size?: number | undefined;
|
|
277
290
|
}> | undefined;
|
|
291
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
278
292
|
schema: "network.xyo.sentinel.config";
|
|
279
293
|
readonly security?: {
|
|
280
294
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -294,7 +308,7 @@ export declare const asSentinelModule: {
|
|
|
294
308
|
schema: string;
|
|
295
309
|
};
|
|
296
310
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
297
|
-
}, import("./EventData").SentinelModuleEventData<import("@xyo-network/module-model").Module<import("@
|
|
311
|
+
}, import("./EventData").SentinelModuleEventData<import("@xyo-network/module-model").Module<import("@xylabs/object").BaseParamsFields & {
|
|
298
312
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
299
313
|
config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
300
314
|
readonly archivist?: string | undefined;
|
|
@@ -303,6 +317,7 @@ export declare const asSentinelModule: {
|
|
|
303
317
|
readonly paging?: Record<string, {
|
|
304
318
|
size?: number | undefined;
|
|
305
319
|
}> | undefined;
|
|
320
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
306
321
|
schema: "network.xyo.module.config";
|
|
307
322
|
readonly security?: {
|
|
308
323
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -319,6 +334,7 @@ export declare const asSentinelModule: {
|
|
|
319
334
|
readonly paging?: Record<string, {
|
|
320
335
|
size?: number | undefined;
|
|
321
336
|
}> | undefined;
|
|
337
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
322
338
|
schema: "network.xyo.module.config";
|
|
323
339
|
readonly security?: {
|
|
324
340
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -332,10 +348,10 @@ export declare const asSentinelModule: {
|
|
|
332
348
|
schema: string;
|
|
333
349
|
};
|
|
334
350
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
335
|
-
}, import("@xyo-network/module-model").ModuleEventData<object>>>>>(value: unknown, assert: string | (() => string), config?: import("@
|
|
351
|
+
}, import("@xyo-network/module-model").ModuleEventData<object>>>>>(value: unknown, assert: string | (() => string), config?: import("@xylabs/object").TypeCheckConfig | undefined): TType_1;
|
|
336
352
|
};
|
|
337
353
|
export declare const asSentinelInstance: {
|
|
338
|
-
<TType extends SentinelInstance<import("@
|
|
354
|
+
<TType extends SentinelInstance<import("@xylabs/object").BaseParamsFields & {
|
|
339
355
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
340
356
|
config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
341
357
|
readonly archivist?: string | undefined;
|
|
@@ -344,6 +360,7 @@ export declare const asSentinelInstance: {
|
|
|
344
360
|
readonly paging?: Record<string, {
|
|
345
361
|
size?: number | undefined;
|
|
346
362
|
}> | undefined;
|
|
363
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
347
364
|
schema: "network.xyo.sentinel.config";
|
|
348
365
|
readonly security?: {
|
|
349
366
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -360,6 +377,7 @@ export declare const asSentinelInstance: {
|
|
|
360
377
|
readonly paging?: Record<string, {
|
|
361
378
|
size?: number | undefined;
|
|
362
379
|
}> | undefined;
|
|
380
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
363
381
|
schema: "network.xyo.sentinel.config";
|
|
364
382
|
readonly security?: {
|
|
365
383
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -379,7 +397,7 @@ export declare const asSentinelInstance: {
|
|
|
379
397
|
schema: string;
|
|
380
398
|
};
|
|
381
399
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
382
|
-
}, import("./EventData").SentinelModuleEventData<import("@xyo-network/module-model").Module<import("@
|
|
400
|
+
}, import("./EventData").SentinelModuleEventData<import("@xyo-network/module-model").Module<import("@xylabs/object").BaseParamsFields & {
|
|
383
401
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
384
402
|
config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
385
403
|
readonly archivist?: string | undefined;
|
|
@@ -388,6 +406,7 @@ export declare const asSentinelInstance: {
|
|
|
388
406
|
readonly paging?: Record<string, {
|
|
389
407
|
size?: number | undefined;
|
|
390
408
|
}> | undefined;
|
|
409
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
391
410
|
schema: "network.xyo.module.config";
|
|
392
411
|
readonly security?: {
|
|
393
412
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -404,6 +423,7 @@ export declare const asSentinelInstance: {
|
|
|
404
423
|
readonly paging?: Record<string, {
|
|
405
424
|
size?: number | undefined;
|
|
406
425
|
}> | undefined;
|
|
426
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
407
427
|
schema: "network.xyo.module.config";
|
|
408
428
|
readonly security?: {
|
|
409
429
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -417,8 +437,8 @@ export declare const asSentinelInstance: {
|
|
|
417
437
|
schema: string;
|
|
418
438
|
};
|
|
419
439
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
420
|
-
}, import("@xyo-network/module-model").ModuleEventData<object>>>>>(value: unknown, config?: import("@
|
|
421
|
-
<TType_1 extends SentinelInstance<import("@
|
|
440
|
+
}, import("@xyo-network/module-model").ModuleEventData<object>>>>>(value: unknown, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType | undefined;
|
|
441
|
+
<TType_1 extends SentinelInstance<import("@xylabs/object").BaseParamsFields & {
|
|
422
442
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
423
443
|
config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
424
444
|
readonly archivist?: string | undefined;
|
|
@@ -427,6 +447,7 @@ export declare const asSentinelInstance: {
|
|
|
427
447
|
readonly paging?: Record<string, {
|
|
428
448
|
size?: number | undefined;
|
|
429
449
|
}> | undefined;
|
|
450
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
430
451
|
schema: "network.xyo.sentinel.config";
|
|
431
452
|
readonly security?: {
|
|
432
453
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -443,6 +464,7 @@ export declare const asSentinelInstance: {
|
|
|
443
464
|
readonly paging?: Record<string, {
|
|
444
465
|
size?: number | undefined;
|
|
445
466
|
}> | undefined;
|
|
467
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
446
468
|
schema: "network.xyo.sentinel.config";
|
|
447
469
|
readonly security?: {
|
|
448
470
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -462,7 +484,7 @@ export declare const asSentinelInstance: {
|
|
|
462
484
|
schema: string;
|
|
463
485
|
};
|
|
464
486
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
465
|
-
}, import("./EventData").SentinelModuleEventData<import("@xyo-network/module-model").Module<import("@
|
|
487
|
+
}, import("./EventData").SentinelModuleEventData<import("@xyo-network/module-model").Module<import("@xylabs/object").BaseParamsFields & {
|
|
466
488
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
467
489
|
config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
468
490
|
readonly archivist?: string | undefined;
|
|
@@ -471,6 +493,7 @@ export declare const asSentinelInstance: {
|
|
|
471
493
|
readonly paging?: Record<string, {
|
|
472
494
|
size?: number | undefined;
|
|
473
495
|
}> | undefined;
|
|
496
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
474
497
|
schema: "network.xyo.module.config";
|
|
475
498
|
readonly security?: {
|
|
476
499
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -487,6 +510,7 @@ export declare const asSentinelInstance: {
|
|
|
487
510
|
readonly paging?: Record<string, {
|
|
488
511
|
size?: number | undefined;
|
|
489
512
|
}> | undefined;
|
|
513
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
490
514
|
schema: "network.xyo.module.config";
|
|
491
515
|
readonly security?: {
|
|
492
516
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -500,9 +524,9 @@ export declare const asSentinelInstance: {
|
|
|
500
524
|
schema: string;
|
|
501
525
|
};
|
|
502
526
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
503
|
-
}, import("@xyo-network/module-model").ModuleEventData<object>>>>>(value: unknown, assert: string | (() => string), config?: import("@
|
|
527
|
+
}, import("@xyo-network/module-model").ModuleEventData<object>>>>>(value: unknown, assert: string | (() => string), config?: import("@xylabs/object").TypeCheckConfig | undefined): TType_1;
|
|
504
528
|
};
|
|
505
|
-
export declare const withSentinelModule: <R>(module: any, closure: (module: SentinelModule<import("@
|
|
529
|
+
export declare const withSentinelModule: <R>(module: any, closure: (module: SentinelModule<import("@xylabs/object").BaseParamsFields & {
|
|
506
530
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
507
531
|
config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
508
532
|
readonly archivist?: string | undefined;
|
|
@@ -511,6 +535,7 @@ export declare const withSentinelModule: <R>(module: any, closure: (module: Sent
|
|
|
511
535
|
readonly paging?: Record<string, {
|
|
512
536
|
size?: number | undefined;
|
|
513
537
|
}> | undefined;
|
|
538
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
514
539
|
schema: "network.xyo.sentinel.config";
|
|
515
540
|
readonly security?: {
|
|
516
541
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -527,6 +552,7 @@ export declare const withSentinelModule: <R>(module: any, closure: (module: Sent
|
|
|
527
552
|
readonly paging?: Record<string, {
|
|
528
553
|
size?: number | undefined;
|
|
529
554
|
}> | undefined;
|
|
555
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
530
556
|
schema: "network.xyo.sentinel.config";
|
|
531
557
|
readonly security?: {
|
|
532
558
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -546,7 +572,7 @@ export declare const withSentinelModule: <R>(module: any, closure: (module: Sent
|
|
|
546
572
|
schema: string;
|
|
547
573
|
};
|
|
548
574
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
549
|
-
}, import("./EventData").SentinelModuleEventData<import("@xyo-network/module-model").Module<import("@
|
|
575
|
+
}, import("./EventData").SentinelModuleEventData<import("@xyo-network/module-model").Module<import("@xylabs/object").BaseParamsFields & {
|
|
550
576
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
551
577
|
config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
552
578
|
readonly archivist?: string | undefined;
|
|
@@ -555,6 +581,7 @@ export declare const withSentinelModule: <R>(module: any, closure: (module: Sent
|
|
|
555
581
|
readonly paging?: Record<string, {
|
|
556
582
|
size?: number | undefined;
|
|
557
583
|
}> | undefined;
|
|
584
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
558
585
|
schema: "network.xyo.module.config";
|
|
559
586
|
readonly security?: {
|
|
560
587
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -571,6 +598,7 @@ export declare const withSentinelModule: <R>(module: any, closure: (module: Sent
|
|
|
571
598
|
readonly paging?: Record<string, {
|
|
572
599
|
size?: number | undefined;
|
|
573
600
|
}> | undefined;
|
|
601
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
574
602
|
schema: "network.xyo.module.config";
|
|
575
603
|
readonly security?: {
|
|
576
604
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -585,7 +613,7 @@ export declare const withSentinelModule: <R>(module: any, closure: (module: Sent
|
|
|
585
613
|
};
|
|
586
614
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
587
615
|
}, import("@xyo-network/module-model").ModuleEventData<object>>>>) => R) => R | undefined;
|
|
588
|
-
export declare const withSentinelInstance: <R>(module: any, closure: (module: SentinelInstance<import("@
|
|
616
|
+
export declare const withSentinelInstance: <R>(module: any, closure: (module: SentinelInstance<import("@xylabs/object").BaseParamsFields & {
|
|
589
617
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
590
618
|
config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
591
619
|
readonly archivist?: string | undefined;
|
|
@@ -594,6 +622,7 @@ export declare const withSentinelInstance: <R>(module: any, closure: (module: Se
|
|
|
594
622
|
readonly paging?: Record<string, {
|
|
595
623
|
size?: number | undefined;
|
|
596
624
|
}> | undefined;
|
|
625
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
597
626
|
schema: "network.xyo.sentinel.config";
|
|
598
627
|
readonly security?: {
|
|
599
628
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -610,6 +639,7 @@ export declare const withSentinelInstance: <R>(module: any, closure: (module: Se
|
|
|
610
639
|
readonly paging?: Record<string, {
|
|
611
640
|
size?: number | undefined;
|
|
612
641
|
}> | undefined;
|
|
642
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
613
643
|
schema: "network.xyo.sentinel.config";
|
|
614
644
|
readonly security?: {
|
|
615
645
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -629,7 +659,7 @@ export declare const withSentinelInstance: <R>(module: any, closure: (module: Se
|
|
|
629
659
|
schema: string;
|
|
630
660
|
};
|
|
631
661
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
632
|
-
}, import("./EventData").SentinelModuleEventData<import("@xyo-network/module-model").Module<import("@
|
|
662
|
+
}, import("./EventData").SentinelModuleEventData<import("@xyo-network/module-model").Module<import("@xylabs/object").BaseParamsFields & {
|
|
633
663
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
634
664
|
config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
635
665
|
readonly archivist?: string | undefined;
|
|
@@ -638,6 +668,7 @@ export declare const withSentinelInstance: <R>(module: any, closure: (module: Se
|
|
|
638
668
|
readonly paging?: Record<string, {
|
|
639
669
|
size?: number | undefined;
|
|
640
670
|
}> | undefined;
|
|
671
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
641
672
|
schema: "network.xyo.module.config";
|
|
642
673
|
readonly security?: {
|
|
643
674
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -654,6 +685,7 @@ export declare const withSentinelInstance: <R>(module: any, closure: (module: Se
|
|
|
654
685
|
readonly paging?: Record<string, {
|
|
655
686
|
size?: number | undefined;
|
|
656
687
|
}> | undefined;
|
|
688
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
657
689
|
schema: "network.xyo.module.config";
|
|
658
690
|
readonly security?: {
|
|
659
691
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeChecks.d.ts","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAGzC,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"typeChecks.d.ts","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAGzC,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"}
|