@xyo-network/sentinel-model 5.2.18 → 5.2.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/neutral/Automation.d.ts +1 -1
- package/dist/neutral/Config.d.ts +1 -1
- package/dist/neutral/EventsModels/JobEnd.d.ts +1 -2
- package/dist/neutral/EventsModels/JobEnd.d.ts.map +1 -1
- package/dist/neutral/EventsModels/JobStart.d.ts +1 -1
- package/dist/neutral/EventsModels/ReportEnd.d.ts +1 -1
- package/dist/neutral/EventsModels/ReportStart.d.ts +1 -1
- package/dist/neutral/EventsModels/TaskEnd.d.ts +1 -2
- package/dist/neutral/EventsModels/TaskEnd.d.ts.map +1 -1
- package/dist/neutral/EventsModels/TaskStart.d.ts +1 -2
- package/dist/neutral/EventsModels/TaskStart.d.ts.map +1 -1
- package/dist/neutral/Sentinel.d.ts +1 -1
- package/dist/neutral/Sentinel.d.ts.map +1 -1
- package/dist/neutral/attachable/AttachableInstance.d.ts +2 -2
- package/dist/neutral/attachable/asAttachableInstance.d.ts +1 -1
- package/dist/neutral/attachable/isAttachableInstance.d.ts +1 -2
- package/dist/neutral/attachable/isAttachableInstance.d.ts.map +1 -1
- package/dist/neutral/index.mjs +4 -4
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/neutral/typeChecks.d.ts +3 -3
- package/package.json +11 -15
- package/src/Automation.ts +1 -1
- package/src/Config.ts +1 -1
- package/src/EventsModels/JobEnd.ts +1 -2
- package/src/EventsModels/JobStart.ts +1 -1
- package/src/EventsModels/ReportEnd.ts +1 -1
- package/src/EventsModels/ReportStart.ts +1 -1
- package/src/EventsModels/TaskEnd.ts +1 -2
- package/src/EventsModels/TaskStart.ts +1 -2
- package/src/Sentinel.ts +1 -1
- package/src/attachable/AttachableInstance.ts +2 -2
- package/src/attachable/asAttachableInstance.ts +1 -1
- package/src/attachable/isAttachableInstance.ts +2 -3
- package/src/typeChecks.ts +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EventName } from '@xylabs/
|
|
1
|
+
import type { EventName } from '@xylabs/sdk-js';
|
|
2
2
|
import type { ModuleIdentifier } from '@xyo-network/module-model';
|
|
3
3
|
import type { Payload } from '@xyo-network/payload-model';
|
|
4
4
|
export declare const SentinelAutomationSchema: "network.xyo.automation";
|
package/dist/neutral/Config.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { WithAdditional } from '@xylabs/
|
|
1
|
+
import type { WithAdditional } from '@xylabs/sdk-js';
|
|
2
2
|
import type { ModuleConfig } from '@xyo-network/module-model';
|
|
3
3
|
import type { Payload } from '@xyo-network/payload-model';
|
|
4
4
|
import type { SentinelAutomationPayload } from './Automation.ts';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { EventData } from '@xylabs/
|
|
2
|
-
import type { Address } from '@xylabs/hex';
|
|
1
|
+
import type { Address, EventData } from '@xylabs/sdk-js';
|
|
3
2
|
import type { Module, ModuleEventArgs } from '@xyo-network/module-model';
|
|
4
3
|
import type { Payload } from '@xyo-network/payload-model';
|
|
5
4
|
export type JobEndEventArgs<T extends Module = Module> = ModuleEventArgs<T, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JobEnd.d.ts","sourceRoot":"","sources":["../../../src/EventsModels/JobEnd.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"JobEnd.d.ts","sourceRoot":"","sources":["../../../src/EventsModels/JobEnd.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AACxD,OAAO,KAAK,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AACxE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI,eAAe,CACtE,CAAC,EACD;IACE,WAAW,CAAC,EAAE,MAAM,CAAC,OAAO,EAAE,OAAO,EAAE,CAAC,CAAA;IACxC,UAAU,CAAC,EAAE,OAAO,EAAE,CAAA;CACvB,CACF,CAAA;AAED,MAAM,WAAW,eAAe,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,CAAE,SAAQ,SAAS;IAC3E,MAAM,EAAE,eAAe,CAAC,CAAC,CAAC,CAAA;CAC3B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EventData } from '@xylabs/
|
|
1
|
+
import type { EventData } from '@xylabs/sdk-js';
|
|
2
2
|
import type { Module, ModuleEventArgs } from '@xyo-network/module-model';
|
|
3
3
|
import type { Payload } from '@xyo-network/payload-model';
|
|
4
4
|
export type JobStartEventArgs<T extends Module = Module> = ModuleEventArgs<T, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EventData } from '@xylabs/
|
|
1
|
+
import type { EventData } from '@xylabs/sdk-js';
|
|
2
2
|
import type { BoundWitness } from '@xyo-network/boundwitness-model';
|
|
3
3
|
import type { Module, ModuleEventArgs } from '@xyo-network/module-model';
|
|
4
4
|
import type { Payload } from '@xyo-network/payload-model';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EventData } from '@xylabs/
|
|
1
|
+
import type { EventData } from '@xylabs/sdk-js';
|
|
2
2
|
import type { Module, ModuleEventArgs } from '@xyo-network/module-model';
|
|
3
3
|
import type { Payload } from '@xyo-network/payload-model';
|
|
4
4
|
export type ReportStartEventArgs<T extends Module = Module> = ModuleEventArgs<T, {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { EventData } from '@xylabs/
|
|
2
|
-
import type { Address } from '@xylabs/hex';
|
|
1
|
+
import type { Address, EventData } from '@xylabs/sdk-js';
|
|
3
2
|
import type { Module, ModuleEventArgs } from '@xyo-network/module-model';
|
|
4
3
|
import type { Payload } from '@xyo-network/payload-model';
|
|
5
4
|
export type TaskEndEventArgs<T extends Module = Module> = ModuleEventArgs<T, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TaskEnd.d.ts","sourceRoot":"","sources":["../../../src/EventsModels/TaskEnd.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"TaskEnd.d.ts","sourceRoot":"","sources":["../../../src/EventsModels/TaskEnd.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AACxD,OAAO,KAAK,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AACxE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI,eAAe,CACvE,CAAC,EACD;IACE,OAAO,EAAE,OAAO,CAAA;IAChB,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,MAAM,GAAG,MAAM,CAAE,SAAQ,SAAS;IAC5E,OAAO,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAA;CAC7B"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { EventData } from '@xylabs/
|
|
2
|
-
import type { Address } from '@xylabs/hex';
|
|
1
|
+
import type { Address, EventData } from '@xylabs/sdk-js';
|
|
3
2
|
import type { Module, ModuleEventArgs } from '@xyo-network/module-model';
|
|
4
3
|
import type { Payload } from '@xyo-network/payload-model';
|
|
5
4
|
export type TaskStartEventArgs<T extends Module = Module> = ModuleEventArgs<T, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TaskStart.d.ts","sourceRoot":"","sources":["../../../src/EventsModels/TaskStart.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"TaskStart.d.ts","sourceRoot":"","sources":["../../../src/EventsModels/TaskStart.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AACxD,OAAO,KAAK,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AACxE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI,eAAe,CACzE,CAAC,EACD;IACE,OAAO,EAAE,OAAO,CAAA;IAChB,UAAU,CAAC,EAAE,OAAO,EAAE,CAAA;IACtB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,CACF,CAAA;AAED,MAAM,WAAW,kBAAkB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,CAAE,SAAQ,SAAS;IAC9E,SAAS,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAA;CACjC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Promisable } from '@xylabs/
|
|
1
|
+
import type { Promisable } from '@xylabs/sdk-js';
|
|
2
2
|
import type { AccountInstance } from '@xyo-network/account-model';
|
|
3
3
|
import type { ModuleQueryResult } from '@xyo-network/module-model';
|
|
4
4
|
import type { Payload } from '@xyo-network/payload-model';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sentinel.d.ts","sourceRoot":"","sources":["../../src/Sentinel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Sentinel.d.ts","sourceRoot":"","sources":["../../src/Sentinel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAClE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { TypeCheck } from '@xylabs/
|
|
2
|
-
import { IsObjectFactory } from '@xylabs/
|
|
1
|
+
import type { TypeCheck } from '@xylabs/sdk-js';
|
|
2
|
+
import { IsObjectFactory } from '@xylabs/sdk-js';
|
|
3
3
|
import type { AttachableModuleInstance } from '@xyo-network/module-model';
|
|
4
4
|
import type { SentinelModuleEventData } from '../EventData.ts';
|
|
5
5
|
import type { SentinelInstance } from '../Instance.ts';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const asAttachableSentinelInstance: import("@xylabs/
|
|
1
|
+
export declare const asAttachableSentinelInstance: import("@xylabs/sdk-js").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").Module<import("@xyo-network/module-model").ModuleParams<import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/module-model").ModuleConfig>>, import("@xyo-network/module-model").ModuleEventData<object>>>>>;
|
|
2
2
|
//# sourceMappingURL=asAttachableInstance.d.ts.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { TypeCheck } from '@xylabs/
|
|
2
|
-
import type { ObjectTypeShape } from '@xylabs/typeof';
|
|
1
|
+
import type { ObjectTypeShape, TypeCheck } from '@xylabs/sdk-js';
|
|
3
2
|
import type { AttachableSentinelInstance } from './AttachableInstance.ts';
|
|
4
3
|
export declare const requiredAttachableSentinelInstanceFunctions: ObjectTypeShape;
|
|
5
4
|
export declare const isAttachableSentinelInstance: TypeCheck<AttachableSentinelInstance>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isAttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/isAttachableInstance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"isAttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/isAttachableInstance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAKhE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAA;AAEzE,eAAO,MAAM,2CAA2C,EAAE,eAAoB,CAAA;AAK9E,eAAO,MAAM,4BAA4B,EAAE,SAAS,CAAC,0BAA0B,CAG7E,CAAA"}
|
package/dist/neutral/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// src/attachable/asAttachableInstance.ts
|
|
2
|
-
import { AsObjectFactory as AsObjectFactory2 } from "@xylabs/
|
|
2
|
+
import { AsObjectFactory as AsObjectFactory2 } from "@xylabs/sdk-js";
|
|
3
3
|
|
|
4
4
|
// src/attachable/isAttachableInstance.ts
|
|
5
|
-
import { IsObjectFactory } from "@xylabs/
|
|
5
|
+
import { IsObjectFactory } from "@xylabs/sdk-js";
|
|
6
6
|
import { isAttachableModuleInstance } from "@xyo-network/module-model";
|
|
7
7
|
|
|
8
8
|
// src/typeChecks.ts
|
|
9
|
-
import { AsObjectFactory } from "@xylabs/
|
|
9
|
+
import { AsObjectFactory } from "@xylabs/sdk-js";
|
|
10
10
|
import {
|
|
11
11
|
IsInstanceFactory,
|
|
12
12
|
IsModuleFactory,
|
|
@@ -37,7 +37,7 @@ var isAttachableSentinelInstance = factory.create(requiredAttachableSentinelInst
|
|
|
37
37
|
var asAttachableSentinelInstance = AsObjectFactory2.create(isAttachableSentinelInstance);
|
|
38
38
|
|
|
39
39
|
// src/attachable/AttachableInstance.ts
|
|
40
|
-
import { IsObjectFactory as IsObjectFactory2 } from "@xylabs/
|
|
40
|
+
import { IsObjectFactory as IsObjectFactory2 } from "@xylabs/sdk-js";
|
|
41
41
|
var IsAttachableSentinelInstanceFactory = class extends IsObjectFactory2 {
|
|
42
42
|
};
|
|
43
43
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/attachable/asAttachableInstance.ts","../../src/attachable/isAttachableInstance.ts","../../src/typeChecks.ts","../../src/Queries/Report.ts","../../src/attachable/AttachableInstance.ts","../../src/Automation.ts","../../src/Config.ts"],"sourcesContent":["import { AsObjectFactory } from '@xylabs/
|
|
1
|
+
{"version":3,"sources":["../../src/attachable/asAttachableInstance.ts","../../src/attachable/isAttachableInstance.ts","../../src/typeChecks.ts","../../src/Queries/Report.ts","../../src/attachable/AttachableInstance.ts","../../src/Automation.ts","../../src/Config.ts"],"sourcesContent":["import { AsObjectFactory } from '@xylabs/sdk-js'\n\nimport { isAttachableSentinelInstance } from './isAttachableInstance.ts'\n\nexport const asAttachableSentinelInstance = AsObjectFactory.create(isAttachableSentinelInstance)\n","import type { ObjectTypeShape, TypeCheck } from '@xylabs/sdk-js'\nimport { IsObjectFactory } from '@xylabs/sdk-js'\nimport { isAttachableModuleInstance } from '@xyo-network/module-model'\n\nimport { isSentinelInstance } from '../typeChecks.ts'\nimport type { AttachableSentinelInstance } from './AttachableInstance.ts'\n\nexport const requiredAttachableSentinelInstanceFunctions: ObjectTypeShape = {}\n\n// we do not use IsInstanceFactory here to prevent a cycle\nconst factory = new IsObjectFactory<AttachableSentinelInstance>()\n\nexport const isAttachableSentinelInstance: TypeCheck<AttachableSentinelInstance> = factory.create(requiredAttachableSentinelInstanceFunctions, [\n isSentinelInstance,\n isAttachableModuleInstance,\n])\n","import { AsObjectFactory } from '@xylabs/sdk-js'\nimport {\n IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory,\n} from '@xyo-network/module-model'\n\nimport type { SentinelInstance } from './Instance.ts'\nimport type { SentinelModule } from './Module.ts'\nimport { SentinelReportQuerySchema } from './Queries/index.ts'\n\nexport const isSentinelInstance = new IsInstanceFactory<SentinelInstance>().create({ report: 'function' }, [isModuleInstance])\nexport const isSentinelModule = new IsModuleFactory<SentinelModule>().create([SentinelReportQuerySchema])\n\nexport const asSentinelModule = AsObjectFactory.create(isSentinelModule)\nexport const asSentinelInstance = AsObjectFactory.create(isSentinelInstance)\nexport const withSentinelModule = WithFactory.create(isSentinelModule)\nexport const withSentinelInstance = WithFactory.create(isSentinelInstance)\n","import type { Query } from '@xyo-network/payload-model'\n\nexport const SentinelReportQuerySchema = 'network.xyo.query.sentinel.report' as const\nexport type SentinelReportQuerySchema = typeof SentinelReportQuerySchema\n\nexport type SentinelReportQuery = Query<{\n schema: SentinelReportQuerySchema\n}>\n","import type { TypeCheck } from '@xylabs/sdk-js'\nimport { IsObjectFactory } from '@xylabs/sdk-js'\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 '@xylabs/sdk-js'\nimport type { ModuleIdentifier } from '@xyo-network/module-model'\nimport type { Payload } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType } from '@xyo-network/payload-model'\n\nexport const SentinelAutomationSchema = 'network.xyo.automation' as const\nexport type SentinelAutomationSchema = typeof SentinelAutomationSchema\n\nexport const SentinelIntervalAutomationSchema = 'network.xyo.automation.interval' as const\nexport type SentinelIntervalAutomationSchema = typeof SentinelIntervalAutomationSchema\n\nexport const SentinelModuleEventAutomationSchema = 'network.xyo.automation.event.module' as const\nexport type SentinelModuleEventAutomationSchema = typeof SentinelModuleEventAutomationSchema\n\nexport type SentinelBaseAutomationPayload<T extends Payload> = Payload<\n {\n type?: 'interval' | 'event'\n } & T\n>\n\n/** Settings for an Interval Automation */\nexport type SentinelIntervalAutomationPayload = SentinelBaseAutomationPayload<{\n /** Epoch after which any reoccurrence stops */\n end?: number\n\n /** Time between triggers [non-repeating if undefined] */\n frequency?: number\n\n /** Units for frequency field [hour if undefined] */\n frequencyUnits?: 'second' | 'minute' | 'hour' | 'day' | 'millis'\n\n /** Remaining triggers [infinite if undefined] */\n remaining?: number\n\n schema: SentinelIntervalAutomationSchema\n\n /** Epoch of the next trigger */\n start: number\n\n /** The type of automation */\n type: 'interval'\n}>\n\nexport const isSentinelIntervalAutomation = isPayloadOfSchemaType<SentinelIntervalAutomationPayload>(SentinelIntervalAutomationSchema)\n\n/** Settings for an Module Event Automation */\nexport type SentinelModuleEventAutomationPayload = SentinelBaseAutomationPayload<{\n eventName: EventName\n schema: SentinelModuleEventAutomationSchema\n source: ModuleIdentifier\n type: 'event'\n}>\n\n/** Settings for an Automation */\nexport type SentinelAutomationPayload = Payload<\n SentinelIntervalAutomationPayload | SentinelModuleEventAutomationPayload,\n SentinelAutomationSchema | SentinelIntervalAutomationSchema | SentinelModuleEventAutomationSchema\n>\n","import type { WithAdditional } from '@xylabs/sdk-js'\nimport type { ModuleConfig } from '@xyo-network/module-model'\nimport type { Payload } from '@xyo-network/payload-model'\n\nimport type { SentinelAutomationPayload } from './Automation.ts'\nimport type { Task } from './Task.ts'\n\nexport const SentinelConfigSchema = 'network.xyo.sentinel.config' as const\nexport type SentinelConfigSchema = typeof SentinelConfigSchema\n\nexport type SentinelConfig<TConfig extends Payload | void = void, TSchema extends string | void = void> = ModuleConfig<\n WithAdditional<\n {\n automations?: SentinelAutomationPayload[]\n schema: TConfig extends Payload ? TConfig['schema'] : SentinelConfigSchema\n synchronous?: boolean\n tasks: Task[]\n throwErrors?: boolean\n },\n TConfig\n >,\n TSchema\n>\n"],"mappings":";AAAA,SAAS,mBAAAA,wBAAuB;;;ACChC,SAAS,uBAAuB;AAChC,SAAS,kCAAkC;;;ACF3C,SAAS,uBAAuB;AAChC;AAAA,EACE;AAAA,EAAmB;AAAA,EAAiB;AAAA,EAAkB;AAAA,OACjD;;;ACDA,IAAM,4BAA4B;;;ADOlC,IAAM,qBAAqB,IAAI,kBAAoC,EAAE,OAAO,EAAE,QAAQ,WAAW,GAAG,CAAC,gBAAgB,CAAC;AACtH,IAAM,mBAAmB,IAAI,gBAAgC,EAAE,OAAO,CAAC,yBAAyB,CAAC;AAEjG,IAAM,mBAAmB,gBAAgB,OAAO,gBAAgB;AAChE,IAAM,qBAAqB,gBAAgB,OAAO,kBAAkB;AACpE,IAAM,qBAAqB,YAAY,OAAO,gBAAgB;AAC9D,IAAM,uBAAuB,YAAY,OAAO,kBAAkB;;;ADRlE,IAAM,8CAA+D,CAAC;AAG7E,IAAM,UAAU,IAAI,gBAA4C;AAEzD,IAAM,+BAAsE,QAAQ,OAAO,6CAA6C;AAAA,EAC7I;AAAA,EACA;AACF,CAAC;;;ADXM,IAAM,+BAA+BC,iBAAgB,OAAO,4BAA4B;;;AIH/F,SAAS,mBAAAC,wBAAuB;AAiBzB,IAAM,sCAAN,cAAqHA,iBAAmB;AAAC;;;ACfhJ,SAAS,6BAA6B;AAE/B,IAAM,2BAA2B;AAGjC,IAAM,mCAAmC;AAGzC,IAAM,sCAAsC;AAgC5C,IAAM,+BAA+B,sBAAyD,gCAAgC;;;ACpC9H,IAAM,uBAAuB;","names":["AsObjectFactory","AsObjectFactory","IsObjectFactory"]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { SentinelInstance } from './Instance.ts';
|
|
2
2
|
import type { SentinelModule } from './Module.ts';
|
|
3
|
-
export declare const isSentinelInstance: import("@xylabs/
|
|
3
|
+
export declare const isSentinelInstance: import("@xylabs/sdk-js").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").Module<import("@xyo-network/module-model").ModuleParams<import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/module-model").ModuleConfig>>, import("@xyo-network/module-model").ModuleEventData<object>>>>>;
|
|
4
4
|
export declare const isSentinelModule: import("@xyo-network/module-model").ModuleTypeCheck<SentinelModule<import("./Params.ts").SentinelParams<import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").SentinelConfig>>, import("./EventData.ts").SentinelModuleEventData<import("@xyo-network/module-model").Module<import("@xyo-network/module-model").ModuleParams<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("@xylabs/
|
|
6
|
-
export declare const asSentinelInstance: import("@xylabs/
|
|
5
|
+
export declare const asSentinelModule: import("@xylabs/sdk-js").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").Module<import("@xyo-network/module-model").ModuleParams<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("@xylabs/sdk-js").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").Module<import("@xyo-network/module-model").ModuleParams<import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/module-model").ModuleConfig>>, import("@xyo-network/module-model").ModuleEventData<object>>>>>;
|
|
7
7
|
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").Module<import("@xyo-network/module-model").ModuleParams<import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/module-model").ModuleConfig>>, import("@xyo-network/module-model").ModuleEventData<object>>>>) => R) => R | undefined;
|
|
8
8
|
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").Module<import("@xyo-network/module-model").ModuleParams<import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/module-model").ModuleConfig>>, import("@xyo-network/module-model").ModuleEventData<object>>>>) => R) => R | undefined;
|
|
9
9
|
//# sourceMappingURL=typeChecks.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/sentinel-model",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.19",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -36,22 +36,18 @@
|
|
|
36
36
|
"!**/*.test.*"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@xylabs/
|
|
40
|
-
"@
|
|
41
|
-
"@
|
|
42
|
-
"@
|
|
43
|
-
"@
|
|
44
|
-
"@xyo-network/
|
|
45
|
-
"@xyo-network/
|
|
46
|
-
"@xyo-network/
|
|
47
|
-
"@xyo-network/diviner-model": "~5.2.18",
|
|
48
|
-
"@xyo-network/module-model": "~5.2.18",
|
|
49
|
-
"@xyo-network/payload-model": "~5.2.18",
|
|
50
|
-
"@xyo-network/witness-model": "~5.2.18"
|
|
39
|
+
"@xylabs/sdk-js": "~5.0.61",
|
|
40
|
+
"@xyo-network/account-model": "~5.2.19",
|
|
41
|
+
"@xyo-network/archivist-model": "~5.2.19",
|
|
42
|
+
"@xyo-network/boundwitness-model": "~5.2.19",
|
|
43
|
+
"@xyo-network/diviner-model": "~5.2.19",
|
|
44
|
+
"@xyo-network/module-model": "~5.2.19",
|
|
45
|
+
"@xyo-network/payload-model": "~5.2.19",
|
|
46
|
+
"@xyo-network/witness-model": "~5.2.19"
|
|
51
47
|
},
|
|
52
48
|
"devDependencies": {
|
|
53
|
-
"@xylabs/ts-scripts-yarn3": "~7.2.
|
|
54
|
-
"@xylabs/tsconfig": "~7.2.
|
|
49
|
+
"@xylabs/ts-scripts-yarn3": "~7.2.32",
|
|
50
|
+
"@xylabs/tsconfig": "~7.2.32",
|
|
55
51
|
"typescript": "~5.9.3"
|
|
56
52
|
},
|
|
57
53
|
"publishConfig": {
|
package/src/Automation.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EventName } from '@xylabs/
|
|
1
|
+
import type { EventName } from '@xylabs/sdk-js'
|
|
2
2
|
import type { ModuleIdentifier } from '@xyo-network/module-model'
|
|
3
3
|
import type { Payload } from '@xyo-network/payload-model'
|
|
4
4
|
import { isPayloadOfSchemaType } from '@xyo-network/payload-model'
|
package/src/Config.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { EventData } from '@xylabs/
|
|
2
|
-
import type { Address } from '@xylabs/hex'
|
|
1
|
+
import type { Address, EventData } from '@xylabs/sdk-js'
|
|
3
2
|
import type { Module, ModuleEventArgs } from '@xyo-network/module-model'
|
|
4
3
|
import type { Payload } from '@xyo-network/payload-model'
|
|
5
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EventData } from '@xylabs/
|
|
1
|
+
import type { EventData } from '@xylabs/sdk-js'
|
|
2
2
|
import type { BoundWitness } from '@xyo-network/boundwitness-model'
|
|
3
3
|
import type { Module, ModuleEventArgs } from '@xyo-network/module-model'
|
|
4
4
|
import type { Payload } from '@xyo-network/payload-model'
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { EventData } from '@xylabs/
|
|
2
|
-
import type { Address } from '@xylabs/hex'
|
|
1
|
+
import type { Address, EventData } from '@xylabs/sdk-js'
|
|
3
2
|
import type { Module, ModuleEventArgs } from '@xyo-network/module-model'
|
|
4
3
|
import type { Payload } from '@xyo-network/payload-model'
|
|
5
4
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { EventData } from '@xylabs/
|
|
2
|
-
import type { Address } from '@xylabs/hex'
|
|
1
|
+
import type { Address, EventData } from '@xylabs/sdk-js'
|
|
3
2
|
import type { Module, ModuleEventArgs } from '@xyo-network/module-model'
|
|
4
3
|
import type { Payload } from '@xyo-network/payload-model'
|
|
5
4
|
|
package/src/Sentinel.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Promisable } from '@xylabs/
|
|
1
|
+
import type { Promisable } from '@xylabs/sdk-js'
|
|
2
2
|
import type { AccountInstance } from '@xyo-network/account-model'
|
|
3
3
|
import type { ModuleQueryResult } from '@xyo-network/module-model'
|
|
4
4
|
import type { Payload } from '@xyo-network/payload-model'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { TypeCheck } from '@xylabs/
|
|
2
|
-
import { IsObjectFactory } from '@xylabs/
|
|
1
|
+
import type { TypeCheck } from '@xylabs/sdk-js'
|
|
2
|
+
import { IsObjectFactory } from '@xylabs/sdk-js'
|
|
3
3
|
import type { AttachableModuleInstance } from '@xyo-network/module-model'
|
|
4
4
|
|
|
5
5
|
import type { SentinelModuleEventData } from '../EventData.ts'
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { TypeCheck } from '@xylabs/
|
|
2
|
-
import { IsObjectFactory } from '@xylabs/
|
|
3
|
-
import type { ObjectTypeShape } from '@xylabs/typeof'
|
|
1
|
+
import type { ObjectTypeShape, TypeCheck } from '@xylabs/sdk-js'
|
|
2
|
+
import { IsObjectFactory } from '@xylabs/sdk-js'
|
|
4
3
|
import { isAttachableModuleInstance } from '@xyo-network/module-model'
|
|
5
4
|
|
|
6
5
|
import { isSentinelInstance } from '../typeChecks.ts'
|
package/src/typeChecks.ts
CHANGED