@xyo-network/sentinel-model 7.0.8 → 7.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/neutral/index.d.ts +1 -14
- package/dist/neutral/index.d.ts.map +1 -1
- package/dist/neutral/index.mjs +2 -150
- package/dist/neutral/index.mjs.map +4 -4
- package/package.json +14 -17
- package/dist/neutral/Automation.d.ts +0 -48
- package/dist/neutral/Automation.d.ts.map +0 -1
- package/dist/neutral/Config.d.ts +0 -32
- package/dist/neutral/Config.d.ts.map +0 -1
- package/dist/neutral/EventData.d.ts +0 -5
- package/dist/neutral/EventData.d.ts.map +0 -1
- package/dist/neutral/EventsModels/JobEnd.d.ts +0 -11
- package/dist/neutral/EventsModels/JobEnd.d.ts.map +0 -1
- package/dist/neutral/EventsModels/JobStart.d.ts +0 -10
- package/dist/neutral/EventsModels/JobStart.d.ts.map +0 -1
- package/dist/neutral/EventsModels/ReportEnd.d.ts +0 -12
- package/dist/neutral/EventsModels/ReportEnd.d.ts.map +0 -1
- package/dist/neutral/EventsModels/ReportStart.d.ts +0 -10
- package/dist/neutral/EventsModels/ReportStart.d.ts.map +0 -1
- package/dist/neutral/EventsModels/TaskEnd.d.ts +0 -13
- package/dist/neutral/EventsModels/TaskEnd.d.ts.map +0 -1
- package/dist/neutral/EventsModels/TaskStart.d.ts +0 -12
- package/dist/neutral/EventsModels/TaskStart.d.ts.map +0 -1
- package/dist/neutral/EventsModels/index.d.ts +0 -7
- package/dist/neutral/EventsModels/index.d.ts.map +0 -1
- package/dist/neutral/Instance.d.ts +0 -10
- package/dist/neutral/Instance.d.ts.map +0 -1
- package/dist/neutral/Job.d.ts +0 -5
- package/dist/neutral/Job.d.ts.map +0 -1
- package/dist/neutral/Module.d.ts +0 -8
- package/dist/neutral/Module.d.ts.map +0 -1
- package/dist/neutral/Params.d.ts +0 -5
- package/dist/neutral/Params.d.ts.map +0 -1
- package/dist/neutral/Queries/Report.d.ts +0 -15
- package/dist/neutral/Queries/Report.d.ts.map +0 -1
- package/dist/neutral/Queries/index.d.ts +0 -6
- package/dist/neutral/Queries/index.d.ts.map +0 -1
- package/dist/neutral/ResolvedTask.d.ts +0 -14
- package/dist/neutral/ResolvedTask.d.ts.map +0 -1
- package/dist/neutral/Sentinel.d.ts +0 -8
- package/dist/neutral/Sentinel.d.ts.map +0 -1
- package/dist/neutral/Task.d.ts +0 -15
- package/dist/neutral/Task.d.ts.map +0 -1
- package/dist/neutral/attachable/AttachableInstance.d.ts +0 -13
- package/dist/neutral/attachable/AttachableInstance.d.ts.map +0 -1
- package/dist/neutral/attachable/asAttachableInstance.d.ts +0 -2
- package/dist/neutral/attachable/asAttachableInstance.d.ts.map +0 -1
- package/dist/neutral/attachable/index.d.ts +0 -4
- package/dist/neutral/attachable/index.d.ts.map +0 -1
- package/dist/neutral/attachable/isAttachableInstance.d.ts +0 -5
- package/dist/neutral/attachable/isAttachableInstance.d.ts.map +0 -1
- package/dist/neutral/typeChecks.d.ts +0 -11
- package/dist/neutral/typeChecks.d.ts.map +0 -1
package/dist/neutral/index.d.ts
CHANGED
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from './Automation.ts';
|
|
3
|
-
export * from './Config.ts';
|
|
4
|
-
export * from './EventData.ts';
|
|
5
|
-
export * from './EventsModels/index.ts';
|
|
6
|
-
export * from './Instance.ts';
|
|
7
|
-
export * from './Job.ts';
|
|
8
|
-
export * from './Module.ts';
|
|
9
|
-
export * from './Params.ts';
|
|
10
|
-
export * from './Queries/index.ts';
|
|
11
|
-
export * from './ResolvedTask.ts';
|
|
12
|
-
export * from './Sentinel.ts';
|
|
13
|
-
export * from './Task.ts';
|
|
14
|
-
export * from './typeChecks.ts';
|
|
1
|
+
export * from '@xyo-network/sdk/sentinel-model';
|
|
15
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,cAAc,iCAAiC,CAAA"}
|
package/dist/neutral/index.mjs
CHANGED
|
@@ -1,151 +1,3 @@
|
|
|
1
|
-
// src/
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
// src/attachable/isAttachableInstance.ts
|
|
5
|
-
import { IsObjectFactory } from "@ariestools/sdk";
|
|
6
|
-
import { isAttachableModuleInstance } from "@xyo-network/module-model";
|
|
7
|
-
|
|
8
|
-
// src/typeChecks.ts
|
|
9
|
-
import { AsObjectFactory } from "@ariestools/sdk";
|
|
10
|
-
import {
|
|
11
|
-
IsInstanceFactory,
|
|
12
|
-
isModuleInstance,
|
|
13
|
-
IsQueryableModuleFactory,
|
|
14
|
-
WithFactory
|
|
15
|
-
} from "@xyo-network/module-model";
|
|
16
|
-
|
|
17
|
-
// src/Queries/Report.ts
|
|
18
|
-
import {
|
|
19
|
-
zodAsFactory,
|
|
20
|
-
zodIsFactory,
|
|
21
|
-
zodToFactory
|
|
22
|
-
} from "@ariestools/sdk";
|
|
23
|
-
import {
|
|
24
|
-
asSchema,
|
|
25
|
-
PayloadZodOfSchema,
|
|
26
|
-
QueryFieldsZod
|
|
27
|
-
} from "@xyo-network/sdk-protocol";
|
|
28
|
-
import * as z from "zod/mini";
|
|
29
|
-
var SentinelReportQuerySchema = asSchema("network.xyo.query.sentinel.report", true);
|
|
30
|
-
var SentinelReportQueryZod = z.extend(PayloadZodOfSchema(SentinelReportQuerySchema), { ...QueryFieldsZod.shape });
|
|
31
|
-
var isSentinelReportQuery = zodIsFactory(SentinelReportQueryZod);
|
|
32
|
-
var asSentinelReportQuery = zodAsFactory(SentinelReportQueryZod, "asSentinelReportQuery");
|
|
33
|
-
var toSentinelReportQuery = zodToFactory(SentinelReportQueryZod, "toSentinelReportQuery");
|
|
34
|
-
|
|
35
|
-
// src/typeChecks.ts
|
|
36
|
-
var isSentinelInstance = new IsInstanceFactory().create({ report: "function" }, [isModuleInstance]);
|
|
37
|
-
var isSentinelModule = new IsQueryableModuleFactory().create([SentinelReportQuerySchema]);
|
|
38
|
-
var asSentinelModule = AsObjectFactory.create(isSentinelModule);
|
|
39
|
-
var asSentinelInstance = AsObjectFactory.create(isSentinelInstance);
|
|
40
|
-
var withSentinelModule = WithFactory.create(isSentinelModule);
|
|
41
|
-
var withSentinelInstance = WithFactory.create(isSentinelInstance);
|
|
42
|
-
|
|
43
|
-
// src/attachable/isAttachableInstance.ts
|
|
44
|
-
var requiredAttachableSentinelInstanceFunctions = {};
|
|
45
|
-
var factory = new IsObjectFactory();
|
|
46
|
-
var isAttachableSentinelInstance = factory.create(requiredAttachableSentinelInstanceFunctions, [
|
|
47
|
-
isSentinelInstance,
|
|
48
|
-
isAttachableModuleInstance
|
|
49
|
-
]);
|
|
50
|
-
|
|
51
|
-
// src/attachable/asAttachableInstance.ts
|
|
52
|
-
var asAttachableSentinelInstance = AsObjectFactory2.create(isAttachableSentinelInstance);
|
|
53
|
-
|
|
54
|
-
// src/attachable/AttachableInstance.ts
|
|
55
|
-
import { IsObjectFactory as IsObjectFactory2 } from "@ariestools/sdk";
|
|
56
|
-
var IsAttachableSentinelInstanceFactory = class extends IsObjectFactory2 {
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
// src/Automation.ts
|
|
60
|
-
import {
|
|
61
|
-
zodAsFactory as zodAsFactory2,
|
|
62
|
-
zodIsFactory as zodIsFactory2,
|
|
63
|
-
zodToFactory as zodToFactory2
|
|
64
|
-
} from "@ariestools/sdk";
|
|
65
|
-
import { asSchema as asSchema2, PayloadZodOfSchema as PayloadZodOfSchema2 } from "@xyo-network/sdk-protocol";
|
|
66
|
-
import * as z2 from "zod/mini";
|
|
67
|
-
var SentinelAutomationSchema = asSchema2("network.xyo.automation", true);
|
|
68
|
-
var SentinelIntervalAutomationSchema = asSchema2("network.xyo.automation.interval", true);
|
|
69
|
-
var SentinelModuleEventAutomationSchema = asSchema2("network.xyo.automation.event.module", true);
|
|
70
|
-
var SentinelIntervalAutomationZod = z2.extend(PayloadZodOfSchema2(SentinelIntervalAutomationSchema), {
|
|
71
|
-
/** Epoch after which any reoccurrence stops */
|
|
72
|
-
end: z2.optional(z2.number()),
|
|
73
|
-
/** Time between triggers [non-repeating if undefined] */
|
|
74
|
-
frequency: z2.optional(z2.number()),
|
|
75
|
-
/** Units for frequency field [hour if undefined] */
|
|
76
|
-
frequencyUnits: z2.optional(z2.union([z2.literal("second"), z2.literal("minute"), z2.literal("hour"), z2.literal("day"), z2.literal("millis")])),
|
|
77
|
-
/** Remaining triggers [infinite if undefined] */
|
|
78
|
-
remaining: z2.optional(z2.number()),
|
|
79
|
-
/** Epoch of the next trigger */
|
|
80
|
-
start: z2.optional(z2.number()),
|
|
81
|
-
/** The type of automation */
|
|
82
|
-
type: z2.literal("interval")
|
|
83
|
-
});
|
|
84
|
-
var isSentinelIntervalAutomation = zodIsFactory2(SentinelIntervalAutomationZod);
|
|
85
|
-
var asSentinelIntervalAutomation = zodAsFactory2(SentinelIntervalAutomationZod, "asSentinelIntervalAutomation");
|
|
86
|
-
var toSentinelIntervalAutomation = zodToFactory2(SentinelIntervalAutomationZod, "toSentinelIntervalAutomation");
|
|
87
|
-
var SentinelModuleEventAutomationZod = z2.extend(PayloadZodOfSchema2(SentinelModuleEventAutomationSchema), {
|
|
88
|
-
eventName: z2.custom(),
|
|
89
|
-
source: z2.custom(),
|
|
90
|
-
type: z2.literal("event")
|
|
91
|
-
});
|
|
92
|
-
var isSentinelModuleEventAutomation = zodIsFactory2(SentinelModuleEventAutomationZod);
|
|
93
|
-
var asSentinelModuleEventAutomation = zodAsFactory2(SentinelModuleEventAutomationZod, "asSentinelModuleEventAutomation");
|
|
94
|
-
var toSentinelModuleEventAutomation = zodToFactory2(SentinelModuleEventAutomationZod, "toSentinelModuleEventAutomation");
|
|
95
|
-
|
|
96
|
-
// src/Config.ts
|
|
97
|
-
import {
|
|
98
|
-
zodAsFactory as zodAsFactory3,
|
|
99
|
-
zodIsFactory as zodIsFactory3,
|
|
100
|
-
zodToFactory as zodToFactory3
|
|
101
|
-
} from "@ariestools/sdk";
|
|
102
|
-
import { ModuleConfigZod } from "@xyo-network/module-model";
|
|
103
|
-
import {
|
|
104
|
-
asSchema as asSchema3
|
|
105
|
-
} from "@xyo-network/sdk-protocol";
|
|
106
|
-
import * as z3 from "zod/mini";
|
|
107
|
-
var SentinelConfigSchema = asSchema3("network.xyo.sentinel.config", true);
|
|
108
|
-
var SentinelConfigZod = z3.extend(ModuleConfigZod, {
|
|
109
|
-
schema: z3.literal(SentinelConfigSchema),
|
|
110
|
-
automations: z3.optional(z3.array(z3.custom())),
|
|
111
|
-
synchronous: z3.optional(z3.boolean()),
|
|
112
|
-
tasks: z3.array(z3.custom()),
|
|
113
|
-
throwErrors: z3.optional(z3.boolean())
|
|
114
|
-
});
|
|
115
|
-
var isSentinelConfig = zodIsFactory3(SentinelConfigZod);
|
|
116
|
-
var asSentinelConfig = zodAsFactory3(SentinelConfigZod, "asSentinelConfig");
|
|
117
|
-
var toSentinelConfig = zodToFactory3(SentinelConfigZod, "toSentinelConfig");
|
|
118
|
-
export {
|
|
119
|
-
IsAttachableSentinelInstanceFactory,
|
|
120
|
-
SentinelAutomationSchema,
|
|
121
|
-
SentinelConfigSchema,
|
|
122
|
-
SentinelConfigZod,
|
|
123
|
-
SentinelIntervalAutomationSchema,
|
|
124
|
-
SentinelIntervalAutomationZod,
|
|
125
|
-
SentinelModuleEventAutomationSchema,
|
|
126
|
-
SentinelModuleEventAutomationZod,
|
|
127
|
-
SentinelReportQuerySchema,
|
|
128
|
-
SentinelReportQueryZod,
|
|
129
|
-
asAttachableSentinelInstance,
|
|
130
|
-
asSentinelConfig,
|
|
131
|
-
asSentinelInstance,
|
|
132
|
-
asSentinelIntervalAutomation,
|
|
133
|
-
asSentinelModule,
|
|
134
|
-
asSentinelModuleEventAutomation,
|
|
135
|
-
asSentinelReportQuery,
|
|
136
|
-
isAttachableSentinelInstance,
|
|
137
|
-
isSentinelConfig,
|
|
138
|
-
isSentinelInstance,
|
|
139
|
-
isSentinelIntervalAutomation,
|
|
140
|
-
isSentinelModule,
|
|
141
|
-
isSentinelModuleEventAutomation,
|
|
142
|
-
isSentinelReportQuery,
|
|
143
|
-
requiredAttachableSentinelInstanceFunctions,
|
|
144
|
-
toSentinelConfig,
|
|
145
|
-
toSentinelIntervalAutomation,
|
|
146
|
-
toSentinelModuleEventAutomation,
|
|
147
|
-
toSentinelReportQuery,
|
|
148
|
-
withSentinelInstance,
|
|
149
|
-
withSentinelModule
|
|
150
|
-
};
|
|
1
|
+
// src/index.ts
|
|
2
|
+
export * from "@xyo-network/sdk/sentinel-model";
|
|
151
3
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/
|
|
4
|
-
"sourcesContent": ["import { AsObjectFactory } from '@ariestools/sdk'\n\nimport { isAttachableSentinelInstance } from './isAttachableInstance.ts'\n\nexport const asAttachableSentinelInstance = AsObjectFactory.create(isAttachableSentinelInstance)\n", "import type { ObjectTypeShape, TypeCheck } from '@ariestools/sdk'\nimport { IsObjectFactory } from '@ariestools/sdk'\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 '@ariestools/sdk'\nimport {\n IsInstanceFactory, isModuleInstance, IsQueryableModuleFactory, 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 IsQueryableModuleFactory<SentinelModule>().create([SentinelReportQuerySchema])\n\nexport const asSentinelModule = AsObjectFactory.create(isSentinelModule)\nexport const asSentinelInstance = AsObjectFactory.create(isSentinelInstance)\n\n/** @deprecated use narrowing instead [ if(is) ] */\n// eslint-disable-next-line @typescript-eslint/no-deprecated\nexport const withSentinelModule = WithFactory.create(isSentinelModule)\n/** @deprecated use narrowing instead [ if(is) ] */\n// eslint-disable-next-line @typescript-eslint/no-deprecated\nexport const withSentinelInstance = WithFactory.create(isSentinelInstance)\n", "import {\n zodAsFactory, zodIsFactory, zodToFactory,\n} from '@ariestools/sdk'\nimport {\n asSchema, PayloadZodOfSchema, QueryFieldsZod,\n} from '@xyo-network/sdk-protocol'\nimport * as z from 'zod/mini'\n\nexport const SentinelReportQuerySchema: 'network.xyo.query.sentinel.report' & {\n readonly __schema: true\n} = asSchema('network.xyo.query.sentinel.report', true)\nexport type SentinelReportQuerySchema = typeof SentinelReportQuerySchema\n\nexport const SentinelReportQueryZod: z.ZodMiniObject<\n & { schema: z.ZodMiniLiteral<SentinelReportQuerySchema> }\n & (typeof QueryFieldsZod)['shape'],\n z.core.$strip\n> = z.extend(PayloadZodOfSchema(SentinelReportQuerySchema), { ...QueryFieldsZod.shape })\n\nexport type SentinelReportQuery = z.infer<typeof SentinelReportQueryZod>\n\nexport const isSentinelReportQuery: ReturnType<typeof zodIsFactory<SentinelReportQuery>> = zodIsFactory(SentinelReportQueryZod)\nexport const asSentinelReportQuery: ReturnType<typeof zodAsFactory<SentinelReportQuery>> = zodAsFactory(SentinelReportQueryZod, 'asSentinelReportQuery')\nexport const toSentinelReportQuery: ReturnType<typeof zodToFactory<SentinelReportQuery>> = zodToFactory(SentinelReportQueryZod, 'toSentinelReportQuery')\n", "import type { TypeCheck } from '@ariestools/sdk'\nimport { IsObjectFactory } from '@ariestools/sdk'\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 '@ariestools/sdk'\nimport {\n zodAsFactory, zodIsFactory, zodToFactory,\n} from '@ariestools/sdk'\nimport type { ModuleIdentifier } from '@xyo-network/module-model'\nimport type { Payload } from '@xyo-network/sdk-protocol'\nimport { asSchema, PayloadZodOfSchema } from '@xyo-network/sdk-protocol'\nimport * as z from 'zod/mini'\n\nexport const SentinelAutomationSchema: 'network.xyo.automation' & {\n readonly __schema: true\n} = asSchema('network.xyo.automation', true)\nexport type SentinelAutomationSchema = typeof SentinelAutomationSchema\n\nexport const SentinelIntervalAutomationSchema: 'network.xyo.automation.interval' & {\n readonly __schema: true\n} = asSchema('network.xyo.automation.interval', true)\nexport type SentinelIntervalAutomationSchema = typeof SentinelIntervalAutomationSchema\n\nexport const SentinelModuleEventAutomationSchema: 'network.xyo.automation.event.module' & {\n readonly __schema: true\n} = asSchema('network.xyo.automation.event.module', true)\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 const SentinelIntervalAutomationZod: z.ZodMiniObject<{\n end: z.ZodMiniOptional<z.ZodMiniNumber<number>>\n frequency: z.ZodMiniOptional<z.ZodMiniNumber<number>>\n frequencyUnits: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<'second'>, z.ZodMiniLiteral<'minute'>, z.ZodMiniLiteral<'hour'>, z.ZodMiniLiteral<'day'>, z.ZodMiniLiteral<'millis'>]>>\n remaining: z.ZodMiniOptional<z.ZodMiniNumber<number>>\n schema: z.ZodMiniLiteral<SentinelIntervalAutomationSchema>\n start: z.ZodMiniOptional<z.ZodMiniNumber<number>>\n type: z.ZodMiniLiteral<'interval'>\n}, z.core.$strip> = z.extend(PayloadZodOfSchema(SentinelIntervalAutomationSchema), {\n /** Epoch after which any reoccurrence stops */\n end: z.optional(z.number()),\n /** Time between triggers [non-repeating if undefined] */\n frequency: z.optional(z.number()),\n /** Units for frequency field [hour if undefined] */\n frequencyUnits: z.optional(z.union([z.literal('second'), z.literal('minute'), z.literal('hour'), z.literal('day'), z.literal('millis')])),\n /** Remaining triggers [infinite if undefined] */\n remaining: z.optional(z.number()),\n /** Epoch of the next trigger */\n start: z.optional(z.number()),\n /** The type of automation */\n type: z.literal('interval'),\n})\n\nexport type SentinelIntervalAutomationPayload = z.infer<typeof SentinelIntervalAutomationZod>\n\nexport const isSentinelIntervalAutomation: ReturnType<typeof zodIsFactory<SentinelIntervalAutomationPayload>> = zodIsFactory(SentinelIntervalAutomationZod)\nexport const asSentinelIntervalAutomation: ReturnType<typeof zodAsFactory<SentinelIntervalAutomationPayload>> = zodAsFactory(SentinelIntervalAutomationZod, 'asSentinelIntervalAutomation')\nexport const toSentinelIntervalAutomation: ReturnType<typeof zodToFactory<SentinelIntervalAutomationPayload>> = zodToFactory(SentinelIntervalAutomationZod, 'toSentinelIntervalAutomation')\n\n/** Settings for an Module Event Automation */\nexport const SentinelModuleEventAutomationZod: z.ZodMiniObject<{\n eventName: z.ZodMiniCustom<EventName, EventName>\n schema: z.ZodMiniLiteral<SentinelModuleEventAutomationSchema>\n source: z.ZodMiniCustom<ModuleIdentifier, ModuleIdentifier>\n type: z.ZodMiniLiteral<'event'>\n}, z.core.$strip> = z.extend(PayloadZodOfSchema(SentinelModuleEventAutomationSchema), {\n eventName: z.custom<EventName>(),\n source: z.custom<ModuleIdentifier>(),\n type: z.literal('event'),\n})\n\nexport type SentinelModuleEventAutomationPayload = z.infer<typeof SentinelModuleEventAutomationZod>\n\nexport const isSentinelModuleEventAutomation: ReturnType<typeof zodIsFactory<SentinelModuleEventAutomationPayload>> = zodIsFactory(SentinelModuleEventAutomationZod)\nexport const asSentinelModuleEventAutomation: ReturnType<typeof zodAsFactory<SentinelModuleEventAutomationPayload>> = zodAsFactory(SentinelModuleEventAutomationZod, 'asSentinelModuleEventAutomation')\nexport const toSentinelModuleEventAutomation: ReturnType<typeof zodToFactory<SentinelModuleEventAutomationPayload>> = zodToFactory(SentinelModuleEventAutomationZod, 'toSentinelModuleEventAutomation')\n\n/** Settings for an Automation */\nexport type SentinelAutomationPayload = Payload<\n SentinelIntervalAutomationPayload | SentinelModuleEventAutomationPayload,\n SentinelAutomationSchema | SentinelIntervalAutomationSchema | SentinelModuleEventAutomationSchema\n>\n", "import type { WithAdditional } from '@ariestools/sdk'\nimport {\n zodAsFactory, zodIsFactory, zodToFactory,\n} from '@ariestools/sdk'\nimport type { ModuleConfig } from '@xyo-network/module-model'\nimport { ModuleConfigZod } from '@xyo-network/module-model'\nimport {\n asSchema, type Payload, type Schema,\n} from '@xyo-network/sdk-protocol'\nimport * as z from 'zod/mini'\n\nimport type { SentinelAutomationPayload } from './Automation.ts'\nimport type { Task } from './Task.ts'\n\nexport const SentinelConfigSchema: 'network.xyo.sentinel.config' & {\n readonly __schema: true\n} = asSchema('network.xyo.sentinel.config', true)\nexport type SentinelConfigSchema = typeof SentinelConfigSchema\n\nexport const SentinelConfigZod: z.ZodMiniObject<\n & Omit<(typeof ModuleConfigZod)['shape'], 'schema'>\n & { schema: z.ZodMiniLiteral<SentinelConfigSchema> }\n & {\n automations: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<SentinelAutomationPayload, SentinelAutomationPayload>>>\n synchronous: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>\n tasks: z.ZodMiniArray<z.ZodMiniCustom<Task, Task>>\n throwErrors: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>\n },\n z.core.$strip\n> = z.extend(ModuleConfigZod, {\n schema: z.literal(SentinelConfigSchema),\n automations: z.optional(z.array(z.custom<SentinelAutomationPayload>())),\n synchronous: z.optional(z.boolean()),\n tasks: z.array(z.custom<Task>()),\n throwErrors: z.optional(z.boolean()),\n})\n\nexport type SentinelConfigBase = z.infer<typeof SentinelConfigZod>\n\nexport const isSentinelConfig: ReturnType<typeof zodIsFactory<SentinelConfigBase>> = zodIsFactory(SentinelConfigZod)\nexport const asSentinelConfig: ReturnType<typeof zodAsFactory<SentinelConfigBase>> = zodAsFactory(SentinelConfigZod, 'asSentinelConfig')\nexport const toSentinelConfig: ReturnType<typeof zodToFactory<SentinelConfigBase>> = zodToFactory(SentinelConfigZod, 'toSentinelConfig')\n\nexport type SentinelConfig<TConfig extends Payload | void = void, TSchema extends Schema | 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"],
|
|
5
|
-
"mappings": ";
|
|
6
|
-
"names": [
|
|
3
|
+
"sources": ["../../src/index.ts"],
|
|
4
|
+
"sourcesContent": ["// Compatibility shim: this package re-exports from @xyo-network/sdk.\nexport * from '@xyo-network/sdk/sentinel-model'\n"],
|
|
5
|
+
"mappings": ";AACA,cAAc;",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/sentinel-model",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.10",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -34,13 +34,11 @@
|
|
|
34
34
|
"README.md"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@xyo-network/
|
|
38
|
-
"@xyo-network/diviner-model": "~7.0.8",
|
|
39
|
-
"@xyo-network/module-model": "~7.0.8",
|
|
40
|
-
"@xyo-network/witness-model": "~7.0.8"
|
|
37
|
+
"@xyo-network/sdk": "~7.0.10"
|
|
41
38
|
},
|
|
42
39
|
"devDependencies": {
|
|
43
|
-
"@ariestools/sdk": "~
|
|
40
|
+
"@ariestools/sdk": "~8.0.2",
|
|
41
|
+
"@ariestools/threads": "~8.0.2",
|
|
44
42
|
"@bitauth/libauth": "~3.0.0",
|
|
45
43
|
"@metamask/providers": "~22.1.1",
|
|
46
44
|
"@noble/post-quantum": "~0.6.1",
|
|
@@ -48,27 +46,26 @@
|
|
|
48
46
|
"@opentelemetry/sdk-trace-base": "~2.9.0",
|
|
49
47
|
"@scure/base": "~2.2.0",
|
|
50
48
|
"@scure/bip39": "~2.2.0",
|
|
51
|
-
"@xylabs/
|
|
52
|
-
"@xylabs/
|
|
53
|
-
"@
|
|
54
|
-
"@xylabs/tsconfig": "~8.6.2",
|
|
55
|
-
"@xyo-network/sdk-protocol": "~7.0.13",
|
|
49
|
+
"@xylabs/toolchain": "~8.6.8",
|
|
50
|
+
"@xylabs/tsconfig": "~8.6.8",
|
|
51
|
+
"@xyo-network/sdk-protocol": "~7.0.15",
|
|
56
52
|
"ajv": "~8.20.0",
|
|
57
53
|
"async-mutex": "~0.5.0",
|
|
58
|
-
"browserslist": "~4.28.4",
|
|
59
54
|
"debug": "~4.4.3",
|
|
60
55
|
"eslint": "~10.6.0",
|
|
61
56
|
"eslint-import-resolver-typescript": "~4.4.5",
|
|
62
57
|
"ethers": "~6.17.0",
|
|
63
58
|
"hash-wasm": "~4.12.0",
|
|
64
59
|
"idb": "~8.0.3",
|
|
60
|
+
"lru-cache": "~11.5.1",
|
|
65
61
|
"observable-fns": "~0.6.1",
|
|
66
62
|
"typescript": "~6.0.3",
|
|
67
63
|
"webextension-polyfill": "~0.12.0",
|
|
68
64
|
"zod": "~4.4.3"
|
|
69
65
|
},
|
|
70
66
|
"peerDependencies": {
|
|
71
|
-
"@ariestools/sdk": "^
|
|
67
|
+
"@ariestools/sdk": "^8.0.2",
|
|
68
|
+
"@ariestools/threads": "^8.0.2",
|
|
72
69
|
"@bitauth/libauth": "^3.0.0",
|
|
73
70
|
"@metamask/providers": "^22.1.1",
|
|
74
71
|
"@noble/post-quantum": "^0.6.1",
|
|
@@ -76,15 +73,14 @@
|
|
|
76
73
|
"@opentelemetry/sdk-trace-base": "^2.9.0",
|
|
77
74
|
"@scure/base": "^2.2.0",
|
|
78
75
|
"@scure/bip39": "^2.2.0",
|
|
79
|
-
"@
|
|
80
|
-
"@xylabs/threads": "^7.0.8",
|
|
81
|
-
"@xyo-network/sdk-protocol": "^7.0.13",
|
|
76
|
+
"@xyo-network/sdk-protocol": "^7.0.15",
|
|
82
77
|
"ajv": "^8.20.0",
|
|
83
78
|
"async-mutex": "^0.5.0",
|
|
84
79
|
"debug": "^4.4.3",
|
|
85
80
|
"ethers": "^6.17.0",
|
|
86
81
|
"hash-wasm": "^4.12.0",
|
|
87
82
|
"idb": "^8.0.3",
|
|
83
|
+
"lru-cache": "^11.5.1",
|
|
88
84
|
"observable-fns": "^0.6.1",
|
|
89
85
|
"webextension-polyfill": "^0.12.0",
|
|
90
86
|
"zod": "^4.4.3"
|
|
@@ -94,5 +90,6 @@
|
|
|
94
90
|
},
|
|
95
91
|
"publishConfig": {
|
|
96
92
|
"access": "public"
|
|
97
|
-
}
|
|
93
|
+
},
|
|
94
|
+
"deprecated": "Use @xyo-network/sdk/sentinel-model instead. Replace @xyo-network/sentinel-model with @xyo-network/sdk/sentinel-model. This package is a compatibility shim only and will not receive further updates."
|
|
98
95
|
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import type { EventName } from '@ariestools/sdk';
|
|
2
|
-
import { zodAsFactory, zodIsFactory, zodToFactory } from '@ariestools/sdk';
|
|
3
|
-
import type { ModuleIdentifier } from '@xyo-network/module-model';
|
|
4
|
-
import type { Payload } from '@xyo-network/sdk-protocol';
|
|
5
|
-
import * as z from 'zod/mini';
|
|
6
|
-
export declare const SentinelAutomationSchema: 'network.xyo.automation' & {
|
|
7
|
-
readonly __schema: true;
|
|
8
|
-
};
|
|
9
|
-
export type SentinelAutomationSchema = typeof SentinelAutomationSchema;
|
|
10
|
-
export declare const SentinelIntervalAutomationSchema: 'network.xyo.automation.interval' & {
|
|
11
|
-
readonly __schema: true;
|
|
12
|
-
};
|
|
13
|
-
export type SentinelIntervalAutomationSchema = typeof SentinelIntervalAutomationSchema;
|
|
14
|
-
export declare const SentinelModuleEventAutomationSchema: 'network.xyo.automation.event.module' & {
|
|
15
|
-
readonly __schema: true;
|
|
16
|
-
};
|
|
17
|
-
export type SentinelModuleEventAutomationSchema = typeof SentinelModuleEventAutomationSchema;
|
|
18
|
-
export type SentinelBaseAutomationPayload<T extends Payload> = Payload<{
|
|
19
|
-
type?: 'interval' | 'event';
|
|
20
|
-
} & T>;
|
|
21
|
-
/** Settings for an Interval Automation */
|
|
22
|
-
export declare const SentinelIntervalAutomationZod: z.ZodMiniObject<{
|
|
23
|
-
end: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
24
|
-
frequency: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
25
|
-
frequencyUnits: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<'second'>, z.ZodMiniLiteral<'minute'>, z.ZodMiniLiteral<'hour'>, z.ZodMiniLiteral<'day'>, z.ZodMiniLiteral<'millis'>]>>;
|
|
26
|
-
remaining: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
27
|
-
schema: z.ZodMiniLiteral<SentinelIntervalAutomationSchema>;
|
|
28
|
-
start: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
29
|
-
type: z.ZodMiniLiteral<'interval'>;
|
|
30
|
-
}, z.core.$strip>;
|
|
31
|
-
export type SentinelIntervalAutomationPayload = z.infer<typeof SentinelIntervalAutomationZod>;
|
|
32
|
-
export declare const isSentinelIntervalAutomation: ReturnType<typeof zodIsFactory<SentinelIntervalAutomationPayload>>;
|
|
33
|
-
export declare const asSentinelIntervalAutomation: ReturnType<typeof zodAsFactory<SentinelIntervalAutomationPayload>>;
|
|
34
|
-
export declare const toSentinelIntervalAutomation: ReturnType<typeof zodToFactory<SentinelIntervalAutomationPayload>>;
|
|
35
|
-
/** Settings for an Module Event Automation */
|
|
36
|
-
export declare const SentinelModuleEventAutomationZod: z.ZodMiniObject<{
|
|
37
|
-
eventName: z.ZodMiniCustom<EventName, EventName>;
|
|
38
|
-
schema: z.ZodMiniLiteral<SentinelModuleEventAutomationSchema>;
|
|
39
|
-
source: z.ZodMiniCustom<ModuleIdentifier, ModuleIdentifier>;
|
|
40
|
-
type: z.ZodMiniLiteral<'event'>;
|
|
41
|
-
}, z.core.$strip>;
|
|
42
|
-
export type SentinelModuleEventAutomationPayload = z.infer<typeof SentinelModuleEventAutomationZod>;
|
|
43
|
-
export declare const isSentinelModuleEventAutomation: ReturnType<typeof zodIsFactory<SentinelModuleEventAutomationPayload>>;
|
|
44
|
-
export declare const asSentinelModuleEventAutomation: ReturnType<typeof zodAsFactory<SentinelModuleEventAutomationPayload>>;
|
|
45
|
-
export declare const toSentinelModuleEventAutomation: ReturnType<typeof zodToFactory<SentinelModuleEventAutomationPayload>>;
|
|
46
|
-
/** Settings for an Automation */
|
|
47
|
-
export type SentinelAutomationPayload = Payload<SentinelIntervalAutomationPayload | SentinelModuleEventAutomationPayload, SentinelAutomationSchema | SentinelIntervalAutomationSchema | SentinelModuleEventAutomationSchema>;
|
|
48
|
-
//# sourceMappingURL=Automation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Automation.d.ts","sourceRoot":"","sources":["../../src/Automation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAChD,OAAO,EACL,YAAY,EAAE,YAAY,EAAE,YAAY,EACzC,MAAM,iBAAiB,CAAA;AACxB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AACjE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAExD,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,eAAO,MAAM,wBAAwB,EAAE,wBAAwB,GAAG;IAChE,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAA;CACmB,CAAA;AAC5C,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAA;AAEtE,eAAO,MAAM,gCAAgC,EAAE,iCAAiC,GAAG;IACjF,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAA;CAC4B,CAAA;AACrD,MAAM,MAAM,gCAAgC,GAAG,OAAO,gCAAgC,CAAA;AAEtF,eAAO,MAAM,mCAAmC,EAAE,qCAAqC,GAAG;IACxF,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAA;CACgC,CAAA;AACzD,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,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,aAAa,CAAC;IAC1D,GAAG,EAAE,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAA;IAC/C,SAAS,EAAE,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAA;IACrD,cAAc,EAAE,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAA;IACnM,SAAS,EAAE,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAA;IACrD,MAAM,EAAE,CAAC,CAAC,cAAc,CAAC,gCAAgC,CAAC,CAAA;IAC1D,KAAK,EAAE,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAA;IACjD,IAAI,EAAE,CAAC,CAAC,cAAc,CAAC,UAAU,CAAC,CAAA;CACnC,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,CAad,CAAA;AAEF,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAA;AAE7F,eAAO,MAAM,4BAA4B,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,iCAAiC,CAAC,CAA+C,CAAA;AAC3J,eAAO,MAAM,4BAA4B,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,iCAAiC,CAAC,CAA+E,CAAA;AAC3L,eAAO,MAAM,4BAA4B,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,iCAAiC,CAAC,CAA+E,CAAA;AAE3L,8CAA8C;AAC9C,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,aAAa,CAAC;IAC7D,SAAS,EAAE,CAAC,CAAC,aAAa,CAAC,SAAS,EAAE,SAAS,CAAC,CAAA;IAChD,MAAM,EAAE,CAAC,CAAC,cAAc,CAAC,mCAAmC,CAAC,CAAA;IAC7D,MAAM,EAAE,CAAC,CAAC,aAAa,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,CAAA;IAC3D,IAAI,EAAE,CAAC,CAAC,cAAc,CAAC,OAAO,CAAC,CAAA;CAChC,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,CAId,CAAA;AAEF,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAA;AAEnG,eAAO,MAAM,+BAA+B,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,oCAAoC,CAAC,CAAkD,CAAA;AACpK,eAAO,MAAM,+BAA+B,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,oCAAoC,CAAC,CAAqF,CAAA;AACvM,eAAO,MAAM,+BAA+B,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,oCAAoC,CAAC,CAAqF,CAAA;AAEvM,iCAAiC;AACjC,MAAM,MAAM,yBAAyB,GAAG,OAAO,CAC7C,iCAAiC,GAAG,oCAAoC,EACxE,wBAAwB,GAAG,gCAAgC,GAAG,mCAAmC,CAClG,CAAA"}
|
package/dist/neutral/Config.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { WithAdditional } from '@ariestools/sdk';
|
|
2
|
-
import { zodAsFactory, zodIsFactory, zodToFactory } from '@ariestools/sdk';
|
|
3
|
-
import type { ModuleConfig } from '@xyo-network/module-model';
|
|
4
|
-
import { ModuleConfigZod } from '@xyo-network/module-model';
|
|
5
|
-
import { type Payload, type Schema } from '@xyo-network/sdk-protocol';
|
|
6
|
-
import * as z from 'zod/mini';
|
|
7
|
-
import type { SentinelAutomationPayload } from './Automation.ts';
|
|
8
|
-
import type { Task } from './Task.ts';
|
|
9
|
-
export declare const SentinelConfigSchema: 'network.xyo.sentinel.config' & {
|
|
10
|
-
readonly __schema: true;
|
|
11
|
-
};
|
|
12
|
-
export type SentinelConfigSchema = typeof SentinelConfigSchema;
|
|
13
|
-
export declare const SentinelConfigZod: z.ZodMiniObject<Omit<(typeof ModuleConfigZod)['shape'], 'schema'> & {
|
|
14
|
-
schema: z.ZodMiniLiteral<SentinelConfigSchema>;
|
|
15
|
-
} & {
|
|
16
|
-
automations: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<SentinelAutomationPayload, SentinelAutomationPayload>>>;
|
|
17
|
-
synchronous: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
18
|
-
tasks: z.ZodMiniArray<z.ZodMiniCustom<Task, Task>>;
|
|
19
|
-
throwErrors: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
20
|
-
}, z.core.$strip>;
|
|
21
|
-
export type SentinelConfigBase = z.infer<typeof SentinelConfigZod>;
|
|
22
|
-
export declare const isSentinelConfig: ReturnType<typeof zodIsFactory<SentinelConfigBase>>;
|
|
23
|
-
export declare const asSentinelConfig: ReturnType<typeof zodAsFactory<SentinelConfigBase>>;
|
|
24
|
-
export declare const toSentinelConfig: ReturnType<typeof zodToFactory<SentinelConfigBase>>;
|
|
25
|
-
export type SentinelConfig<TConfig extends Payload | void = void, TSchema extends Schema | void = void> = ModuleConfig<WithAdditional<{
|
|
26
|
-
automations?: SentinelAutomationPayload[];
|
|
27
|
-
schema: TConfig extends Payload ? TConfig['schema'] : SentinelConfigSchema;
|
|
28
|
-
synchronous?: boolean;
|
|
29
|
-
tasks: Task[];
|
|
30
|
-
throwErrors?: boolean;
|
|
31
|
-
}, TConfig>, TSchema>;
|
|
32
|
-
//# sourceMappingURL=Config.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AACrD,OAAO,EACL,YAAY,EAAE,YAAY,EAAE,YAAY,EACzC,MAAM,iBAAiB,CAAA;AACxB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,EACK,KAAK,OAAO,EAAE,KAAK,MAAM,EACpC,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAA;AAChE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAErC,eAAO,MAAM,oBAAoB,EAAE,6BAA6B,GAAG;IACjE,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAA;CACwB,CAAA;AACjD,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAA;AAE9D,eAAO,MAAM,iBAAiB,EAAE,CAAC,CAAC,aAAa,CAC3C,IAAI,CAAC,CAAC,OAAO,eAAe,CAAC,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC,GACjD;IAAE,MAAM,EAAE,CAAC,CAAC,cAAc,CAAC,oBAAoB,CAAC,CAAA;CAAE,GAClD;IACA,WAAW,EAAE,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,aAAa,CAAC,yBAAyB,EAAE,yBAAyB,CAAC,CAAC,CAAC,CAAA;IACrH,WAAW,EAAE,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAA;IACzD,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,aAAa,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAA;IAClD,WAAW,EAAE,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAA;CAC1D,EACD,CAAC,CAAC,IAAI,CAAC,MAAM,CAOb,CAAA;AAEF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAElE,eAAO,MAAM,gBAAgB,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,kBAAkB,CAAC,CAAmC,CAAA;AACpH,eAAO,MAAM,gBAAgB,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,kBAAkB,CAAC,CAAuD,CAAA;AACxI,eAAO,MAAM,gBAAgB,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,kBAAkB,CAAC,CAAuD,CAAA;AAExI,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 +0,0 @@
|
|
|
1
|
-
import type { ModuleEventData, QueryableModule } from '@xyo-network/module-model';
|
|
2
|
-
import type { JobEndEventData, JobStartEventData, ReportEndEventData, ReportStartEventData, TaskEndEventData, TaskStartEventData } from './EventsModels/index.ts';
|
|
3
|
-
export interface SentinelModuleEventData<T extends QueryableModule = QueryableModule> extends TaskEndEventData<T>, TaskStartEventData<T>, JobEndEventData<T>, JobStartEventData<T>, ReportEndEventData<T>, ReportStartEventData<T>, ModuleEventData<T> {
|
|
4
|
-
}
|
|
5
|
-
//# sourceMappingURL=EventData.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EventData.d.ts","sourceRoot":"","sources":["../../src/EventData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAEjF,OAAO,KAAK,EACV,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EACpB,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,yBAAyB,CAAA;AAEhC,MAAM,WAAW,uBAAuB,CAAC,CAAC,SAAS,eAAe,GAAG,eAAe,CAClF,SAAQ,gBAAgB,CAAC,CAAC,CAAC,EAC3B,kBAAkB,CAAC,CAAC,CAAC,EACrB,eAAe,CAAC,CAAC,CAAC,EAClB,iBAAiB,CAAC,CAAC,CAAC,EACpB,kBAAkB,CAAC,CAAC,CAAC,EACrB,oBAAoB,CAAC,CAAC,CAAC,EACvB,eAAe,CAAC,CAAC,CAAC;CAAG"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { EventData } from '@ariestools/sdk';
|
|
2
|
-
import type { ModuleEventArgs, QueryableModule } from '@xyo-network/module-model';
|
|
3
|
-
import type { Payload, XyoAddress } from '@xyo-network/sdk-protocol';
|
|
4
|
-
export type JobEndEventArgs<T extends QueryableModule = QueryableModule> = ModuleEventArgs<T, {
|
|
5
|
-
finalResult?: Record<XyoAddress, Payload[]>;
|
|
6
|
-
inPayloads?: Payload[];
|
|
7
|
-
}>;
|
|
8
|
-
export interface JobEndEventData<T extends QueryableModule = QueryableModule> extends EventData {
|
|
9
|
-
jobEnd: JobEndEventArgs<T>;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=JobEnd.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"JobEnd.d.ts","sourceRoot":"","sources":["../../../src/EventsModels/JobEnd.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAChD,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AACjF,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAEpE,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,eAAe,GAAG,eAAe,IAAI,eAAe,CACxF,CAAC,EACD;IACE,WAAW,CAAC,EAAE,MAAM,CAAC,UAAU,EAAE,OAAO,EAAE,CAAC,CAAA;IAC3C,UAAU,CAAC,EAAE,OAAO,EAAE,CAAA;CACvB,CACF,CAAA;AAED,MAAM,WAAW,eAAe,CAAC,CAAC,SAAS,eAAe,GAAG,eAAe,CAAE,SAAQ,SAAS;IAC7F,MAAM,EAAE,eAAe,CAAC,CAAC,CAAC,CAAA;CAC3B"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { EventData } from '@ariestools/sdk';
|
|
2
|
-
import type { ModuleEventArgs, QueryableModule } from '@xyo-network/module-model';
|
|
3
|
-
import type { Payload } from '@xyo-network/sdk-protocol';
|
|
4
|
-
export type JobStartEventArgs<T extends QueryableModule = QueryableModule> = ModuleEventArgs<T, {
|
|
5
|
-
inPayloads?: Payload[];
|
|
6
|
-
}>;
|
|
7
|
-
export interface JobStartEventData<T extends QueryableModule = QueryableModule> extends EventData {
|
|
8
|
-
jobStart: JobStartEventArgs<T>;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=JobStart.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"JobStart.d.ts","sourceRoot":"","sources":["../../../src/EventsModels/JobStart.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAChD,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AACjF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAExD,MAAM,MAAM,iBAAiB,CAAC,CAAC,SAAS,eAAe,GAAG,eAAe,IAAI,eAAe,CAC1F,CAAC,EACD;IACE,UAAU,CAAC,EAAE,OAAO,EAAE,CAAA;CACvB,CACF,CAAA;AAED,MAAM,WAAW,iBAAiB,CAAC,CAAC,SAAS,eAAe,GAAG,eAAe,CAAE,SAAQ,SAAS;IAC/F,QAAQ,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAA;CAC/B"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { EventData } from '@ariestools/sdk';
|
|
2
|
-
import type { ModuleEventArgs, QueryableModule } from '@xyo-network/module-model';
|
|
3
|
-
import type { BoundWitness, Payload } from '@xyo-network/sdk-protocol';
|
|
4
|
-
export type ReportEndEventArgs<T extends QueryableModule = QueryableModule> = ModuleEventArgs<T, {
|
|
5
|
-
boundwitness?: BoundWitness;
|
|
6
|
-
inPayloads?: Payload[];
|
|
7
|
-
outPayloads?: Payload[];
|
|
8
|
-
}>;
|
|
9
|
-
export interface ReportEndEventData<T extends QueryableModule = QueryableModule> extends EventData {
|
|
10
|
-
reportEnd: ReportEndEventArgs<T>;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=ReportEnd.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReportEnd.d.ts","sourceRoot":"","sources":["../../../src/EventsModels/ReportEnd.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAChD,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AACjF,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAEtE,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,eAAe,GAAG,eAAe,IAAI,eAAe,CAC3F,CAAC,EACD;IACE,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,UAAU,CAAC,EAAE,OAAO,EAAE,CAAA;IACtB,WAAW,CAAC,EAAE,OAAO,EAAE,CAAA;CACxB,CACF,CAAA;AAED,MAAM,WAAW,kBAAkB,CAAC,CAAC,SAAS,eAAe,GAAG,eAAe,CAAE,SAAQ,SAAS;IAChG,SAAS,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAA;CACjC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { EventData } from '@ariestools/sdk';
|
|
2
|
-
import type { ModuleEventArgs, QueryableModule } from '@xyo-network/module-model';
|
|
3
|
-
import type { Payload } from '@xyo-network/sdk-protocol';
|
|
4
|
-
export type ReportStartEventArgs<T extends QueryableModule = QueryableModule> = ModuleEventArgs<T, {
|
|
5
|
-
inPayloads?: Payload[];
|
|
6
|
-
}>;
|
|
7
|
-
export interface ReportStartEventData<T extends QueryableModule = QueryableModule> extends EventData {
|
|
8
|
-
reportStart: ReportStartEventArgs<T>;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=ReportStart.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReportStart.d.ts","sourceRoot":"","sources":["../../../src/EventsModels/ReportStart.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAChD,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AACjF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAExD,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,eAAe,GAAG,eAAe,IAAI,eAAe,CAC7F,CAAC,EACD;IACE,UAAU,CAAC,EAAE,OAAO,EAAE,CAAA;CACvB,CACF,CAAA;AAED,MAAM,WAAW,oBAAoB,CAAC,CAAC,SAAS,eAAe,GAAG,eAAe,CAAE,SAAQ,SAAS;IAClG,WAAW,EAAE,oBAAoB,CAAC,CAAC,CAAC,CAAA;CACrC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { EventData } from '@ariestools/sdk';
|
|
2
|
-
import type { ModuleEventArgs, QueryableModule } from '@xyo-network/module-model';
|
|
3
|
-
import type { Payload, XyoAddress } from '@xyo-network/sdk-protocol';
|
|
4
|
-
export type TaskEndEventArgs<T extends QueryableModule = QueryableModule> = ModuleEventArgs<T, {
|
|
5
|
-
address: XyoAddress;
|
|
6
|
-
inPayloads?: Payload[];
|
|
7
|
-
name?: string;
|
|
8
|
-
outPayloads?: Payload[];
|
|
9
|
-
}>;
|
|
10
|
-
export interface TaskEndEventData<T extends QueryableModule = QueryableModule> extends EventData {
|
|
11
|
-
taskEnd: TaskEndEventArgs<T>;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=TaskEnd.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TaskEnd.d.ts","sourceRoot":"","sources":["../../../src/EventsModels/TaskEnd.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAChD,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AACjF,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAEpE,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,eAAe,GAAG,eAAe,IAAI,eAAe,CACzF,CAAC,EACD;IACE,OAAO,EAAE,UAAU,CAAA;IACnB,UAAU,CAAC,EAAE,OAAO,EAAE,CAAA;IACtB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,OAAO,EAAE,CAAA;CACxB,CACF,CAAA;AAED,MAAM,WAAW,gBAAgB,CAAC,CAAC,SAAS,eAAe,GAAG,eAAe,CAAE,SAAQ,SAAS;IAC9F,OAAO,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAA;CAC7B"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { EventData } from '@ariestools/sdk';
|
|
2
|
-
import type { ModuleEventArgs, QueryableModule } from '@xyo-network/module-model';
|
|
3
|
-
import type { Payload, XyoAddress } from '@xyo-network/sdk-protocol';
|
|
4
|
-
export type TaskStartEventArgs<T extends QueryableModule = QueryableModule> = ModuleEventArgs<T, {
|
|
5
|
-
address: XyoAddress;
|
|
6
|
-
inPayloads?: Payload[];
|
|
7
|
-
name?: string;
|
|
8
|
-
}>;
|
|
9
|
-
export interface TaskStartEventData<T extends QueryableModule = QueryableModule> extends EventData {
|
|
10
|
-
taskStart: TaskStartEventArgs<T>;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=TaskStart.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TaskStart.d.ts","sourceRoot":"","sources":["../../../src/EventsModels/TaskStart.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAChD,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AACjF,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAEpE,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,eAAe,GAAG,eAAe,IAAI,eAAe,CAC3F,CAAC,EACD;IACE,OAAO,EAAE,UAAU,CAAA;IACnB,UAAU,CAAC,EAAE,OAAO,EAAE,CAAA;IACtB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,CACF,CAAA;AAED,MAAM,WAAW,kBAAkB,CAAC,CAAC,SAAS,eAAe,GAAG,eAAe,CAAE,SAAQ,SAAS;IAChG,SAAS,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAA;CACjC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/EventsModels/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { ModuleInstance } from '@xyo-network/module-model';
|
|
2
|
-
import type { SentinelModuleEventData } from './EventData.ts';
|
|
3
|
-
import type { CustomSentinelModule, SentinelModule } from './Module.ts';
|
|
4
|
-
import type { SentinelParams } from './Params.ts';
|
|
5
|
-
import type { Sentinel } from './Sentinel.ts';
|
|
6
|
-
export interface SentinelInstance<TParams extends SentinelParams = SentinelParams, TEventData extends SentinelModuleEventData = SentinelModuleEventData> extends SentinelModule<TParams, TEventData>, Sentinel, ModuleInstance<TParams, TEventData> {
|
|
7
|
-
}
|
|
8
|
-
export interface CustomSentinelInstance<TParams extends SentinelParams = SentinelParams, TEvents extends SentinelModuleEventData<SentinelInstance<TParams>> = SentinelModuleEventData<SentinelInstance<TParams>>> extends CustomSentinelModule<TParams, TEvents>, Sentinel, SentinelInstance<TParams, TEvents> {
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=Instance.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Instance.d.ts","sourceRoot":"","sources":["../../src/Instance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE/D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAA;AAC7D,OAAO,KAAK,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAE7C,MAAM,WAAW,gBAAgB,CAC/B,OAAO,SAAS,cAAc,GAAG,cAAc,EAC/C,UAAU,SAAS,uBAAuB,GAAG,uBAAuB,CACpE,SAAQ,cAAc,CAAC,OAAO,EAAE,UAAU,CAAC,EAC3C,QAAQ,EACR,cAAc,CAAC,OAAO,EAAE,UAAU,CAAC;CAAG;AAExC,MAAM,WAAW,sBAAsB,CACrC,OAAO,SAAS,cAAc,GAAG,cAAc,EAC/C,OAAO,SAAS,uBAAuB,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,GAAG,uBAAuB,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CACvH,SAAQ,oBAAoB,CAAC,OAAO,EAAE,OAAO,CAAC,EAC9C,QAAQ,EACR,gBAAgB,CAAC,OAAO,EAAE,OAAO,CAAC;CAAG"}
|
package/dist/neutral/Job.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Job.d.ts","sourceRoot":"","sources":["../../src/Job.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,YAAY,EAAE,EAAE,CAAA;CACxB"}
|
package/dist/neutral/Module.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { QueryableModule } from '@xyo-network/module-model';
|
|
2
|
-
import type { SentinelModuleEventData } from './EventData.ts';
|
|
3
|
-
import type { SentinelParams } from './Params.ts';
|
|
4
|
-
export interface SentinelModule<TParams extends SentinelParams = SentinelParams, TEventData extends SentinelModuleEventData = SentinelModuleEventData> extends QueryableModule<TParams, TEventData> {
|
|
5
|
-
}
|
|
6
|
-
export interface CustomSentinelModule<TParams extends SentinelParams = SentinelParams, TEvents extends SentinelModuleEventData<SentinelModule<TParams>> = SentinelModuleEventData<SentinelModule<TParams>>> extends QueryableModule<TParams, TEvents> {
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=Module.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Module.d.ts","sourceRoot":"","sources":["../../src/Module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAEhE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAA;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEjD,MAAM,WAAW,cAAc,CAAC,OAAO,SAAS,cAAc,GAAG,cAAc,EAAE,UAAU,SAAS,uBAAuB,GAAG,uBAAuB,CACnJ,SAAQ,eAAe,CAAC,OAAO,EAAE,UAAU,CAAC;CAAG;AAEjD,MAAM,WAAW,oBAAoB,CACnC,OAAO,SAAS,cAAc,GAAG,cAAc,EAC/C,OAAO,SAAS,uBAAuB,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,GAAG,uBAAuB,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CACnH,SAAQ,eAAe,CAAC,OAAO,EAAE,OAAO,CAAC;CAAG"}
|
package/dist/neutral/Params.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { AnyConfigSchema, QueryableModuleParams } from '@xyo-network/module-model';
|
|
2
|
-
import type { SentinelConfig } from './Config.ts';
|
|
3
|
-
export interface SentinelParams<TConfig extends AnyConfigSchema<SentinelConfig> = AnyConfigSchema<SentinelConfig>> extends QueryableModuleParams<TConfig> {
|
|
4
|
-
}
|
|
5
|
-
//# sourceMappingURL=Params.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../src/Params.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAA;AAEvF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEjD,MAAM,WAAW,cAAc,CAC7B,OAAO,SAAS,eAAe,CAAC,cAAc,CAAC,GAAG,eAAe,CAAC,cAAc,CAAC,CACjF,SAAQ,qBAAqB,CAAC,OAAO,CAAC;CAEvC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { zodAsFactory, zodIsFactory, zodToFactory } from '@ariestools/sdk';
|
|
2
|
-
import { QueryFieldsZod } from '@xyo-network/sdk-protocol';
|
|
3
|
-
import * as z from 'zod/mini';
|
|
4
|
-
export declare const SentinelReportQuerySchema: 'network.xyo.query.sentinel.report' & {
|
|
5
|
-
readonly __schema: true;
|
|
6
|
-
};
|
|
7
|
-
export type SentinelReportQuerySchema = typeof SentinelReportQuerySchema;
|
|
8
|
-
export declare const SentinelReportQueryZod: z.ZodMiniObject<{
|
|
9
|
-
schema: z.ZodMiniLiteral<SentinelReportQuerySchema>;
|
|
10
|
-
} & (typeof QueryFieldsZod)['shape'], z.core.$strip>;
|
|
11
|
-
export type SentinelReportQuery = z.infer<typeof SentinelReportQueryZod>;
|
|
12
|
-
export declare const isSentinelReportQuery: ReturnType<typeof zodIsFactory<SentinelReportQuery>>;
|
|
13
|
-
export declare const asSentinelReportQuery: ReturnType<typeof zodAsFactory<SentinelReportQuery>>;
|
|
14
|
-
export declare const toSentinelReportQuery: ReturnType<typeof zodToFactory<SentinelReportQuery>>;
|
|
15
|
-
//# sourceMappingURL=Report.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Report.d.ts","sourceRoot":"","sources":["../../../src/Queries/Report.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAAE,YAAY,EAAE,YAAY,EACzC,MAAM,iBAAiB,CAAA;AACxB,OAAO,EACyB,cAAc,EAC7C,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,eAAO,MAAM,yBAAyB,EAAE,mCAAmC,GAAG;IAC5E,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAA;CAC8B,CAAA;AACvD,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAA;AAExE,eAAO,MAAM,sBAAsB,EAAE,CAAC,CAAC,aAAa,CAChD;IAAE,MAAM,EAAE,CAAC,CAAC,cAAc,CAAC,yBAAyB,CAAC,CAAA;CAAE,GACvD,CAAC,OAAO,cAAc,CAAC,CAAC,OAAO,CAAC,EAClC,CAAC,CAAC,IAAI,CAAC,MAAM,CACyE,CAAA;AAExF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAExE,eAAO,MAAM,qBAAqB,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,mBAAmB,CAAC,CAAwC,CAAA;AAC/H,eAAO,MAAM,qBAAqB,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,mBAAmB,CAAC,CAAiE,CAAA;AACxJ,eAAO,MAAM,qBAAqB,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,mBAAmB,CAAC,CAAiE,CAAA"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export * from './Report.ts';
|
|
2
|
-
import type { ModuleQueries } from '@xyo-network/module-model';
|
|
3
|
-
import type { SentinelReportQuery } from './Report.ts';
|
|
4
|
-
export type SentinelQueries = SentinelReportQuery;
|
|
5
|
-
export type SentinelModuleQueries = ModuleQueries | SentinelQueries;
|
|
6
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Queries/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAE3B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAE9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAEtD,MAAM,MAAM,eAAe,GAAG,mBAAmB,CAAA;AACjD,MAAM,MAAM,qBAAqB,GAAG,aAAa,GAAG,eAAe,CAAA"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { ArchivistInstance } from '@xyo-network/archivist-model';
|
|
2
|
-
import type { DivinerInstance } from '@xyo-network/diviner-model';
|
|
3
|
-
import type { ModuleInstance } from '@xyo-network/module-model';
|
|
4
|
-
import type { WitnessInstance } from '@xyo-network/witness-model';
|
|
5
|
-
import type { ArchivistTask, DivinerTask, ModuleTask, WitnessTask } from './Task.ts';
|
|
6
|
-
export type ResolvedModuleTask<TTask extends ModuleTask = ModuleTask, TInstance extends ModuleInstance = ModuleInstance> = Omit<TTask, 'mod'> & {
|
|
7
|
-
/** @field the modules that performs the task */
|
|
8
|
-
mod: TInstance;
|
|
9
|
-
};
|
|
10
|
-
export type ResolvedArchivistTask = ResolvedModuleTask<ArchivistTask, ArchivistInstance>;
|
|
11
|
-
export type ResolvedDivinerTask = ResolvedModuleTask<DivinerTask, DivinerInstance>;
|
|
12
|
-
export type ResolvedWitnessTask = ResolvedModuleTask<WitnessTask, WitnessInstance>;
|
|
13
|
-
export type ResolvedTask = ResolvedArchivistTask | ResolvedDivinerTask | ResolvedWitnessTask | ResolvedModuleTask;
|
|
14
|
-
//# sourceMappingURL=ResolvedTask.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ResolvedTask.d.ts","sourceRoot":"","sources":["../../src/ResolvedTask.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AACrE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAEjE,OAAO,KAAK,EACV,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,EACpD,MAAM,WAAW,CAAA;AAElB,MAAM,MAAM,kBAAkB,CAAC,KAAK,SAAS,UAAU,GAAG,UAAU,EAAE,SAAS,SAAS,cAAc,GAAG,cAAc,IAAI,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG;IAC9I,gDAAgD;IAChD,GAAG,EAAE,SAAS,CAAA;CACf,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG,kBAAkB,CAAC,aAAa,EAAE,iBAAiB,CAAC,CAAA;AACxF,MAAM,MAAM,mBAAmB,GAAG,kBAAkB,CAAC,WAAW,EAAE,eAAe,CAAC,CAAA;AAClF,MAAM,MAAM,mBAAmB,GAAG,kBAAkB,CAAC,WAAW,EAAE,eAAe,CAAC,CAAA;AAElF,MAAM,MAAM,YAAY,GAAG,qBAAqB,GAAG,mBAAmB,GAAG,mBAAmB,GAAG,kBAAkB,CAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Promisable } from '@ariestools/sdk';
|
|
2
|
-
import type { ModuleQueryResult } from '@xyo-network/module-model';
|
|
3
|
-
import type { AccountInstance, Payload } from '@xyo-network/sdk-protocol';
|
|
4
|
-
export interface Sentinel<TIn extends Payload = Payload, TOut extends Payload = Payload> {
|
|
5
|
-
report: (payloads?: TIn[]) => Promisable<TOut[]>;
|
|
6
|
-
reportQuery: (payloads?: TIn[], account?: AccountInstance) => Promisable<ModuleQueryResult<TOut>>;
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=Sentinel.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Sentinel.d.ts","sourceRoot":"","sources":["../../src/Sentinel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAClE,OAAO,KAAK,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAEzE,MAAM,WAAW,QAAQ,CAAC,GAAG,SAAS,OAAO,GAAG,OAAO,EAAE,IAAI,SAAS,OAAO,GAAG,OAAO;IACrF,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,KAAK,UAAU,CAAC,IAAI,EAAE,CAAC,CAAA;IAChD,WAAW,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,EAAE,OAAO,CAAC,EAAE,eAAe,KAAK,UAAU,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAA;CAClG"}
|
package/dist/neutral/Task.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { ModuleIdentifier } from '@xyo-network/module-model';
|
|
2
|
-
export interface ModuleTask<TEndpoints extends string = string> {
|
|
3
|
-
/** @field the name of the endPoint that is being called. If not specified, the default endPoint is used */
|
|
4
|
-
endPoint?: TEndpoints;
|
|
5
|
-
/** @field determines what inputs are sent to each module - if string, that is the output from other module (name/address) */
|
|
6
|
-
input?: boolean | ModuleIdentifier | ModuleIdentifier[];
|
|
7
|
-
/** @field the modules that performs the task */
|
|
8
|
-
mod: ModuleIdentifier;
|
|
9
|
-
required?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export type ArchivistTask = ModuleTask<'all' | 'clear' | 'commit' | 'delete' | 'get' | 'insert'>;
|
|
12
|
-
export type DivinerTask = ModuleTask<'divine'>;
|
|
13
|
-
export type WitnessTask = ModuleTask<'observe'>;
|
|
14
|
-
export type Task = WitnessTask | DivinerTask | ArchivistTask | ModuleTask;
|
|
15
|
-
//# sourceMappingURL=Task.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Task.d.ts","sourceRoot":"","sources":["../../src/Task.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAEjE,MAAM,WAAW,UAAU,CAAC,UAAU,SAAS,MAAM,GAAG,MAAM;IAC5D,4GAA4G;IAC5G,QAAQ,CAAC,EAAE,UAAU,CAAA;IACrB,6HAA6H;IAC7H,KAAK,CAAC,EAAE,OAAO,GAAG,gBAAgB,GAAG,gBAAgB,EAAE,CAAA;IACvD,gDAAgD;IAChD,GAAG,EAAE,gBAAgB,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,KAAK,GAAG,QAAQ,CAAC,CAAA;AAChG,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAA;AAC9C,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,SAAS,CAAC,CAAA;AAE/C,MAAM,MAAM,IAAI,GAAG,WAAW,GAAG,WAAW,GAAG,aAAa,GAAG,UAAU,CAAA"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { TypeCheck } from '@ariestools/sdk';
|
|
2
|
-
import { IsObjectFactory } from '@ariestools/sdk';
|
|
3
|
-
import type { AttachableModuleInstance } from '@xyo-network/module-model';
|
|
4
|
-
import type { SentinelModuleEventData } from '../EventData.ts';
|
|
5
|
-
import type { SentinelInstance } from '../Instance.ts';
|
|
6
|
-
import type { SentinelModule } from '../Module.ts';
|
|
7
|
-
import type { SentinelParams } from '../Params.ts';
|
|
8
|
-
export interface AttachableSentinelInstance<TParams extends SentinelParams = SentinelParams, TEventData extends SentinelModuleEventData = SentinelModuleEventData> extends SentinelModule<TParams, TEventData>, AttachableModuleInstance<TParams, TEventData>, SentinelInstance<TParams, TEventData> {
|
|
9
|
-
}
|
|
10
|
-
export type AttachableSentinelInstanceTypeCheck<T extends AttachableSentinelInstance = AttachableSentinelInstance> = TypeCheck<T>;
|
|
11
|
-
export declare class IsAttachableSentinelInstanceFactory<T extends AttachableSentinelInstance = AttachableSentinelInstance> extends IsObjectFactory<T> {
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=AttachableInstance.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/AttachableInstance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAA;AAEzE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAA;AAC9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAElD,MAAM,WAAW,0BAA0B,CACzC,OAAO,SAAS,cAAc,GAAG,cAAc,EAC/C,UAAU,SAAS,uBAAuB,GAAG,uBAAuB,CACpE,SAAQ,cAAc,CAAC,OAAO,EAAE,UAAU,CAAC,EAC3C,wBAAwB,CAAC,OAAO,EAAE,UAAU,CAAC,EAC7C,gBAAgB,CAAC,OAAO,EAAE,UAAU,CAAC;CAAG;AAE1C,MAAM,MAAM,mCAAmC,CAAC,CAAC,SAAS,0BAA0B,GAAG,0BAA0B,IAAI,SAAS,CAAC,CAAC,CAAC,CAAA;AAEjI,qBAAa,mCAAmC,CAAC,CAAC,SAAS,0BAA0B,GAAG,0BAA0B,CAAE,SAAQ,eAAe,CAAC,CAAC,CAAC;CAAG"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export declare const asAttachableSentinelInstance: import("@ariestools/sdk").AsTypeFunction<import("./AttachableInstance.ts").AttachableSentinelInstance<import("../Params.ts").SentinelParams<import("@xyo-network/module-model").AnyConfigSchema<import("../Config.ts").SentinelConfig>>, import("../EventData.ts").SentinelModuleEventData<import("@xyo-network/module-model").QueryableModule<import("@xyo-network/module-model").QueryableModuleParams<import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/module-model").ModuleConfig>>, import("@xyo-network/module-model").ModuleEventData<object>>>>>;
|
|
2
|
-
//# sourceMappingURL=asAttachableInstance.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"asAttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/asAttachableInstance.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,4BAA4B,kjBAAuD,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/attachable/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,yBAAyB,CAAA;AACvC,cAAc,2BAA2B,CAAA"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { ObjectTypeShape, TypeCheck } from '@ariestools/sdk';
|
|
2
|
-
import type { AttachableSentinelInstance } from './AttachableInstance.ts';
|
|
3
|
-
export declare const requiredAttachableSentinelInstanceFunctions: ObjectTypeShape;
|
|
4
|
-
export declare const isAttachableSentinelInstance: TypeCheck<AttachableSentinelInstance>;
|
|
5
|
-
//# sourceMappingURL=isAttachableInstance.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isAttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/isAttachableInstance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAKjE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAA;AAEzE,eAAO,MAAM,2CAA2C,EAAE,eAAoB,CAAA;AAK9E,eAAO,MAAM,4BAA4B,EAAE,SAAS,CAAC,0BAA0B,CAG7E,CAAA"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { SentinelInstance } from './Instance.ts';
|
|
2
|
-
import type { SentinelModule } from './Module.ts';
|
|
3
|
-
export declare const isSentinelInstance: import("@ariestools/sdk").TypeCheck<SentinelInstance<import("./Params.ts").SentinelParams<import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").SentinelConfig>>, import("./EventData.ts").SentinelModuleEventData<import("@xyo-network/module-model").QueryableModule<import("@xyo-network/module-model").QueryableModuleParams<import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/module-model").ModuleConfig>>, import("@xyo-network/module-model").ModuleEventData<object>>>>>;
|
|
4
|
-
export declare const isSentinelModule: import("@xyo-network/module-model").QueryableModuleTypeCheck<SentinelModule<import("./Params.ts").SentinelParams<import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").SentinelConfig>>, import("./EventData.ts").SentinelModuleEventData<import("@xyo-network/module-model").QueryableModule<import("@xyo-network/module-model").QueryableModuleParams<import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/module-model").ModuleConfig>>, import("@xyo-network/module-model").ModuleEventData<object>>>>>;
|
|
5
|
-
export declare const asSentinelModule: import("@ariestools/sdk").AsTypeFunction<SentinelModule<import("./Params.ts").SentinelParams<import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").SentinelConfig>>, import("./EventData.ts").SentinelModuleEventData<import("@xyo-network/module-model").QueryableModule<import("@xyo-network/module-model").QueryableModuleParams<import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/module-model").ModuleConfig>>, import("@xyo-network/module-model").ModuleEventData<object>>>>>;
|
|
6
|
-
export declare const asSentinelInstance: import("@ariestools/sdk").AsTypeFunction<SentinelInstance<import("./Params.ts").SentinelParams<import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").SentinelConfig>>, import("./EventData.ts").SentinelModuleEventData<import("@xyo-network/module-model").QueryableModule<import("@xyo-network/module-model").QueryableModuleParams<import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/module-model").ModuleConfig>>, import("@xyo-network/module-model").ModuleEventData<object>>>>>;
|
|
7
|
-
/** @deprecated use narrowing instead [ if(is) ] */
|
|
8
|
-
export declare const withSentinelModule: <R>(mod: any, closure: (mod: SentinelModule<import("./Params.ts").SentinelParams<import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").SentinelConfig>>, import("./EventData.ts").SentinelModuleEventData<import("@xyo-network/module-model").QueryableModule<import("@xyo-network/module-model").QueryableModuleParams<import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/module-model").ModuleConfig>>, import("@xyo-network/module-model").ModuleEventData<object>>>>) => R) => R | undefined;
|
|
9
|
-
/** @deprecated use narrowing instead [ if(is) ] */
|
|
10
|
-
export declare const withSentinelInstance: <R>(mod: any, closure: (mod: SentinelInstance<import("./Params.ts").SentinelParams<import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").SentinelConfig>>, import("./EventData.ts").SentinelModuleEventData<import("@xyo-network/module-model").QueryableModule<import("@xyo-network/module-model").QueryableModuleParams<import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/module-model").ModuleConfig>>, import("@xyo-network/module-model").ModuleEventData<object>>>>) => R) => R | undefined;
|
|
11
|
-
//# sourceMappingURL=typeChecks.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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,8fAA+F,CAAA;AAC9H,eAAO,MAAM,gBAAgB,qhBAAqF,CAAA;AAElH,eAAO,MAAM,gBAAgB,igBAA2C,CAAA;AACxE,eAAO,MAAM,kBAAkB,mgBAA6C,CAAA;AAE5E,mDAAmD;AAEnD,eAAO,MAAM,kBAAkB,4gBAAuC,CAAA;AACtE,mDAAmD;AAEnD,eAAO,MAAM,oBAAoB,8gBAAyC,CAAA"}
|