@xyo-network/sentinel-model 7.0.1 → 7.0.3
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 +3 -3
- package/dist/neutral/Automation.d.ts.map +1 -1
- package/dist/neutral/Config.d.ts +3 -3
- package/dist/neutral/Config.d.ts.map +1 -1
- package/dist/neutral/EventsModels/JobEnd.d.ts +2 -2
- package/dist/neutral/EventsModels/JobEnd.d.ts.map +1 -1
- package/dist/neutral/EventsModels/JobStart.d.ts +2 -2
- package/dist/neutral/EventsModels/JobStart.d.ts.map +1 -1
- package/dist/neutral/EventsModels/ReportEnd.d.ts +2 -2
- package/dist/neutral/EventsModels/ReportEnd.d.ts.map +1 -1
- package/dist/neutral/EventsModels/ReportStart.d.ts +2 -2
- package/dist/neutral/EventsModels/ReportStart.d.ts.map +1 -1
- package/dist/neutral/EventsModels/TaskEnd.d.ts +2 -2
- package/dist/neutral/EventsModels/TaskEnd.d.ts.map +1 -1
- package/dist/neutral/EventsModels/TaskStart.d.ts +2 -2
- package/dist/neutral/EventsModels/TaskStart.d.ts.map +1 -1
- package/dist/neutral/Queries/Report.d.ts +2 -2
- package/dist/neutral/Queries/Report.d.ts.map +1 -1
- package/dist/neutral/Sentinel.d.ts +2 -2
- package/dist/neutral/Sentinel.d.ts.map +1 -1
- package/dist/neutral/attachable/AttachableInstance.d.ts +2 -2
- package/dist/neutral/attachable/AttachableInstance.d.ts.map +1 -1
- package/dist/neutral/attachable/asAttachableInstance.d.ts +1 -1
- package/dist/neutral/attachable/asAttachableInstance.d.ts.map +1 -1
- package/dist/neutral/attachable/isAttachableInstance.d.ts +1 -1
- package/dist/neutral/attachable/isAttachableInstance.d.ts.map +1 -1
- package/dist/neutral/index.mjs +10 -10
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/neutral/typeChecks.d.ts +3 -3
- package/dist/neutral/typeChecks.d.ts.map +1 -1
- package/package.json +21 -23
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { EventName } from '@xylabs/sdk
|
|
2
|
-
import { zodAsFactory, zodIsFactory, zodToFactory } from '@xylabs/sdk
|
|
1
|
+
import type { EventName } from '@xylabs/sdk';
|
|
2
|
+
import { zodAsFactory, zodIsFactory, zodToFactory } from '@xylabs/sdk';
|
|
3
3
|
import type { ModuleIdentifier } from '@xyo-network/module-model';
|
|
4
|
-
import type { Payload } from '@xyo-network/sdk-protocol
|
|
4
|
+
import type { Payload } from '@xyo-network/sdk-protocol';
|
|
5
5
|
import * as z from 'zod/mini';
|
|
6
6
|
export declare const SentinelAutomationSchema: 'network.xyo.automation' & {
|
|
7
7
|
readonly __schema: true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Automation.d.ts","sourceRoot":"","sources":["../../src/Automation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Automation.d.ts","sourceRoot":"","sources":["../../src/Automation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,EACL,YAAY,EAAE,YAAY,EAAE,YAAY,EACzC,MAAM,aAAa,CAAA;AACpB,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,OA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CAAgC,GAAG,mCAAmC,CAClG,CAAA"}
|
package/dist/neutral/Config.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { WithAdditional } from '@xylabs/sdk
|
|
2
|
-
import { zodAsFactory, zodIsFactory, zodToFactory } from '@xylabs/sdk
|
|
1
|
+
import type { WithAdditional } from '@xylabs/sdk';
|
|
2
|
+
import { zodAsFactory, zodIsFactory, zodToFactory } from '@xylabs/sdk';
|
|
3
3
|
import type { ModuleConfig } from '@xyo-network/module-model';
|
|
4
4
|
import { ModuleConfigZod } from '@xyo-network/module-model';
|
|
5
|
-
import { type Payload, type Schema } from '@xyo-network/sdk-protocol
|
|
5
|
+
import { type Payload, type Schema } from '@xyo-network/sdk-protocol';
|
|
6
6
|
import * as z from 'zod/mini';
|
|
7
7
|
import type { SentinelAutomationPayload } from './Automation.ts';
|
|
8
8
|
import type { Task } from './Task.ts';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,EACL,YAAY,EAAE,YAAY,EAAE,YAAY,EACzC,MAAM,aAAa,CAAA;AACpB,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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,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,6 +1,6 @@
|
|
|
1
|
-
import type { EventData } from '@xylabs/sdk
|
|
1
|
+
import type { EventData } from '@xylabs/sdk';
|
|
2
2
|
import type { ModuleEventArgs, QueryableModule } from '@xyo-network/module-model';
|
|
3
|
-
import type { Payload, XyoAddress } from '@xyo-network/sdk-protocol
|
|
3
|
+
import type { Payload, XyoAddress } from '@xyo-network/sdk-protocol';
|
|
4
4
|
export type JobEndEventArgs<T extends QueryableModule = QueryableModule> = ModuleEventArgs<T, {
|
|
5
5
|
finalResult?: Record<XyoAddress, Payload[]>;
|
|
6
6
|
inPayloads?: Payload[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JobEnd.d.ts","sourceRoot":"","sources":["../../../src/EventsModels/JobEnd.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"JobEnd.d.ts","sourceRoot":"","sources":["../../../src/EventsModels/JobEnd.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAC5C,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,6 +1,6 @@
|
|
|
1
|
-
import type { EventData } from '@xylabs/sdk
|
|
1
|
+
import type { EventData } from '@xylabs/sdk';
|
|
2
2
|
import type { ModuleEventArgs, QueryableModule } from '@xyo-network/module-model';
|
|
3
|
-
import type { Payload } from '@xyo-network/sdk-protocol
|
|
3
|
+
import type { Payload } from '@xyo-network/sdk-protocol';
|
|
4
4
|
export type JobStartEventArgs<T extends QueryableModule = QueryableModule> = ModuleEventArgs<T, {
|
|
5
5
|
inPayloads?: Payload[];
|
|
6
6
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JobStart.d.ts","sourceRoot":"","sources":["../../../src/EventsModels/JobStart.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"JobStart.d.ts","sourceRoot":"","sources":["../../../src/EventsModels/JobStart.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAC5C,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,6 +1,6 @@
|
|
|
1
|
-
import type { EventData } from '@xylabs/sdk
|
|
1
|
+
import type { EventData } from '@xylabs/sdk';
|
|
2
2
|
import type { ModuleEventArgs, QueryableModule } from '@xyo-network/module-model';
|
|
3
|
-
import type { BoundWitness, Payload } from '@xyo-network/sdk-protocol
|
|
3
|
+
import type { BoundWitness, Payload } from '@xyo-network/sdk-protocol';
|
|
4
4
|
export type ReportEndEventArgs<T extends QueryableModule = QueryableModule> = ModuleEventArgs<T, {
|
|
5
5
|
boundwitness?: BoundWitness;
|
|
6
6
|
inPayloads?: Payload[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReportEnd.d.ts","sourceRoot":"","sources":["../../../src/EventsModels/ReportEnd.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ReportEnd.d.ts","sourceRoot":"","sources":["../../../src/EventsModels/ReportEnd.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAC5C,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,6 +1,6 @@
|
|
|
1
|
-
import type { EventData } from '@xylabs/sdk
|
|
1
|
+
import type { EventData } from '@xylabs/sdk';
|
|
2
2
|
import type { ModuleEventArgs, QueryableModule } from '@xyo-network/module-model';
|
|
3
|
-
import type { Payload } from '@xyo-network/sdk-protocol
|
|
3
|
+
import type { Payload } from '@xyo-network/sdk-protocol';
|
|
4
4
|
export type ReportStartEventArgs<T extends QueryableModule = QueryableModule> = ModuleEventArgs<T, {
|
|
5
5
|
inPayloads?: Payload[];
|
|
6
6
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReportStart.d.ts","sourceRoot":"","sources":["../../../src/EventsModels/ReportStart.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ReportStart.d.ts","sourceRoot":"","sources":["../../../src/EventsModels/ReportStart.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAC5C,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,6 +1,6 @@
|
|
|
1
|
-
import type { EventData } from '@xylabs/sdk
|
|
1
|
+
import type { EventData } from '@xylabs/sdk';
|
|
2
2
|
import type { ModuleEventArgs, QueryableModule } from '@xyo-network/module-model';
|
|
3
|
-
import type { Payload, XyoAddress } from '@xyo-network/sdk-protocol
|
|
3
|
+
import type { Payload, XyoAddress } from '@xyo-network/sdk-protocol';
|
|
4
4
|
export type TaskEndEventArgs<T extends QueryableModule = QueryableModule> = ModuleEventArgs<T, {
|
|
5
5
|
address: XyoAddress;
|
|
6
6
|
inPayloads?: Payload[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TaskEnd.d.ts","sourceRoot":"","sources":["../../../src/EventsModels/TaskEnd.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"TaskEnd.d.ts","sourceRoot":"","sources":["../../../src/EventsModels/TaskEnd.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAC5C,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,6 +1,6 @@
|
|
|
1
|
-
import type { EventData } from '@xylabs/sdk
|
|
1
|
+
import type { EventData } from '@xylabs/sdk';
|
|
2
2
|
import type { ModuleEventArgs, QueryableModule } from '@xyo-network/module-model';
|
|
3
|
-
import type { Payload, XyoAddress } from '@xyo-network/sdk-protocol
|
|
3
|
+
import type { Payload, XyoAddress } from '@xyo-network/sdk-protocol';
|
|
4
4
|
export type TaskStartEventArgs<T extends QueryableModule = QueryableModule> = ModuleEventArgs<T, {
|
|
5
5
|
address: XyoAddress;
|
|
6
6
|
inPayloads?: Payload[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TaskStart.d.ts","sourceRoot":"","sources":["../../../src/EventsModels/TaskStart.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"TaskStart.d.ts","sourceRoot":"","sources":["../../../src/EventsModels/TaskStart.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAC5C,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,5 +1,5 @@
|
|
|
1
|
-
import { zodAsFactory, zodIsFactory, zodToFactory } from '@xylabs/sdk
|
|
2
|
-
import { QueryFieldsZod } from '@xyo-network/sdk-protocol
|
|
1
|
+
import { zodAsFactory, zodIsFactory, zodToFactory } from '@xylabs/sdk';
|
|
2
|
+
import { QueryFieldsZod } from '@xyo-network/sdk-protocol';
|
|
3
3
|
import * as z from 'zod/mini';
|
|
4
4
|
export declare const SentinelReportQuerySchema: 'network.xyo.query.sentinel.report' & {
|
|
5
5
|
readonly __schema: true;
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,aAAa,CAAA;AACpB,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 +1,6 @@
|
|
|
1
|
-
import type { Promisable } from '@xylabs/sdk
|
|
1
|
+
import type { Promisable } from '@xylabs/sdk';
|
|
2
2
|
import type { ModuleQueryResult } from '@xyo-network/module-model';
|
|
3
|
-
import type { AccountInstance, Payload } from '@xyo-network/sdk-protocol
|
|
3
|
+
import type { AccountInstance, Payload } from '@xyo-network/sdk-protocol';
|
|
4
4
|
export interface Sentinel<TIn extends Payload = Payload, TOut extends Payload = Payload> {
|
|
5
5
|
report: (payloads?: TIn[]) => Promisable<TOut[]>;
|
|
6
6
|
reportQuery: (payloads?: TIn[], account?: AccountInstance) => Promisable<ModuleQueryResult<TOut>>;
|
|
@@ -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,aAAa,CAAA;AAC7C,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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { TypeCheck } from '@xylabs/sdk
|
|
2
|
-
import { IsObjectFactory } from '@xylabs/sdk
|
|
1
|
+
import type { TypeCheck } from '@xylabs/sdk';
|
|
2
|
+
import { IsObjectFactory } from '@xylabs/sdk';
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/AttachableInstance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"AttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/AttachableInstance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAC7C,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 +1,2 @@
|
|
|
1
|
-
export declare const asAttachableSentinelInstance: import("@xylabs/sdk
|
|
1
|
+
export declare const asAttachableSentinelInstance: import("@xylabs/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
2
|
//# sourceMappingURL=asAttachableInstance.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asAttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/asAttachableInstance.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,4BAA4B,
|
|
1
|
+
{"version":3,"file":"asAttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/asAttachableInstance.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,4BAA4B,8iBAAuD,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ObjectTypeShape, TypeCheck } from '@xylabs/sdk
|
|
1
|
+
import type { ObjectTypeShape, TypeCheck } from '@xylabs/sdk';
|
|
2
2
|
import type { AttachableSentinelInstance } from './AttachableInstance.ts';
|
|
3
3
|
export declare const requiredAttachableSentinelInstanceFunctions: ObjectTypeShape;
|
|
4
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,eAAe,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"isAttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/isAttachableInstance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAK7D,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/sdk
|
|
2
|
+
import { AsObjectFactory as AsObjectFactory2 } from "@xylabs/sdk";
|
|
3
3
|
|
|
4
4
|
// src/attachable/isAttachableInstance.ts
|
|
5
|
-
import { IsObjectFactory } from "@xylabs/sdk
|
|
5
|
+
import { IsObjectFactory } from "@xylabs/sdk";
|
|
6
6
|
import { isAttachableModuleInstance } from "@xyo-network/module-model";
|
|
7
7
|
|
|
8
8
|
// src/typeChecks.ts
|
|
9
|
-
import { AsObjectFactory } from "@xylabs/sdk
|
|
9
|
+
import { AsObjectFactory } from "@xylabs/sdk";
|
|
10
10
|
import {
|
|
11
11
|
IsInstanceFactory,
|
|
12
12
|
isModuleInstance,
|
|
@@ -19,12 +19,12 @@ import {
|
|
|
19
19
|
zodAsFactory,
|
|
20
20
|
zodIsFactory,
|
|
21
21
|
zodToFactory
|
|
22
|
-
} from "@xylabs/sdk
|
|
22
|
+
} from "@xylabs/sdk";
|
|
23
23
|
import {
|
|
24
24
|
asSchema,
|
|
25
25
|
PayloadZodOfSchema,
|
|
26
26
|
QueryFieldsZod
|
|
27
|
-
} from "@xyo-network/sdk-protocol
|
|
27
|
+
} from "@xyo-network/sdk-protocol";
|
|
28
28
|
import * as z from "zod/mini";
|
|
29
29
|
var SentinelReportQuerySchema = asSchema("network.xyo.query.sentinel.report", true);
|
|
30
30
|
var SentinelReportQueryZod = z.extend(PayloadZodOfSchema(SentinelReportQuerySchema), { ...QueryFieldsZod.shape });
|
|
@@ -52,7 +52,7 @@ var isAttachableSentinelInstance = factory.create(requiredAttachableSentinelInst
|
|
|
52
52
|
var asAttachableSentinelInstance = AsObjectFactory2.create(isAttachableSentinelInstance);
|
|
53
53
|
|
|
54
54
|
// src/attachable/AttachableInstance.ts
|
|
55
|
-
import { IsObjectFactory as IsObjectFactory2 } from "@xylabs/sdk
|
|
55
|
+
import { IsObjectFactory as IsObjectFactory2 } from "@xylabs/sdk";
|
|
56
56
|
var IsAttachableSentinelInstanceFactory = class extends IsObjectFactory2 {
|
|
57
57
|
};
|
|
58
58
|
|
|
@@ -61,8 +61,8 @@ import {
|
|
|
61
61
|
zodAsFactory as zodAsFactory2,
|
|
62
62
|
zodIsFactory as zodIsFactory2,
|
|
63
63
|
zodToFactory as zodToFactory2
|
|
64
|
-
} from "@xylabs/sdk
|
|
65
|
-
import { asSchema as asSchema2, PayloadZodOfSchema as PayloadZodOfSchema2 } from "@xyo-network/sdk-protocol
|
|
64
|
+
} from "@xylabs/sdk";
|
|
65
|
+
import { asSchema as asSchema2, PayloadZodOfSchema as PayloadZodOfSchema2 } from "@xyo-network/sdk-protocol";
|
|
66
66
|
import * as z2 from "zod/mini";
|
|
67
67
|
var SentinelAutomationSchema = asSchema2("network.xyo.automation", true);
|
|
68
68
|
var SentinelIntervalAutomationSchema = asSchema2("network.xyo.automation.interval", true);
|
|
@@ -98,11 +98,11 @@ import {
|
|
|
98
98
|
zodAsFactory as zodAsFactory3,
|
|
99
99
|
zodIsFactory as zodIsFactory3,
|
|
100
100
|
zodToFactory as zodToFactory3
|
|
101
|
-
} from "@xylabs/sdk
|
|
101
|
+
} from "@xylabs/sdk";
|
|
102
102
|
import { ModuleConfigZod } from "@xyo-network/module-model";
|
|
103
103
|
import {
|
|
104
104
|
asSchema as asSchema3
|
|
105
|
-
} from "@xyo-network/sdk-protocol
|
|
105
|
+
} from "@xyo-network/sdk-protocol";
|
|
106
106
|
import * as z3 from "zod/mini";
|
|
107
107
|
var SentinelConfigSchema = asSchema3("network.xyo.sentinel.config", true);
|
|
108
108
|
var SentinelConfigZod = z3.extend(ModuleConfigZod, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
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"],
|
|
4
|
-
"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, 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 '@xylabs/sdk-js'\nimport {\n asSchema, PayloadZodOfSchema, QueryFieldsZod,\n} from '@xyo-network/sdk-protocol-js'\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 '@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 {\n zodAsFactory, zodIsFactory, zodToFactory,\n} from '@xylabs/sdk-js'\nimport type { ModuleIdentifier } from '@xyo-network/module-model'\nimport type { Payload } from '@xyo-network/sdk-protocol-js'\nimport { asSchema, PayloadZodOfSchema } from '@xyo-network/sdk-protocol-js'\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 '@xylabs/sdk-js'\nimport {\n zodAsFactory, zodIsFactory, zodToFactory,\n} from '@xylabs/sdk-js'\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-js'\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"],
|
|
4
|
+
"sourcesContent": ["import { AsObjectFactory } from '@xylabs/sdk'\n\nimport { isAttachableSentinelInstance } from './isAttachableInstance.ts'\n\nexport const asAttachableSentinelInstance = AsObjectFactory.create(isAttachableSentinelInstance)\n", "import type { ObjectTypeShape, TypeCheck } from '@xylabs/sdk'\nimport { IsObjectFactory } from '@xylabs/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 '@xylabs/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 '@xylabs/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 '@xylabs/sdk'\nimport { IsObjectFactory } from '@xylabs/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 '@xylabs/sdk'\nimport {\n zodAsFactory, zodIsFactory, zodToFactory,\n} from '@xylabs/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 '@xylabs/sdk'\nimport {\n zodAsFactory, zodIsFactory, zodToFactory,\n} from '@xylabs/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
5
|
"mappings": ";AAAA,SAAS,mBAAAA,wBAAuB;;;ACChC,SAAS,uBAAuB;AAChC,SAAS,kCAAkC;;;ACF3C,SAAS,uBAAuB;AAChC;AAAA,EACE;AAAA,EAAmB;AAAA,EAAkB;AAAA,EAA0B;AAAA,OAC1D;;;ACHP;AAAA,EACE;AAAA,EAAc;AAAA,EAAc;AAAA,OACvB;AACP;AAAA,EACE;AAAA,EAAU;AAAA,EAAoB;AAAA,OACzB;AACP,YAAY,OAAO;AAEZ,IAAM,4BAET,SAAS,qCAAqC,IAAI;AAG/C,IAAM,yBAIP,SAAO,mBAAmB,yBAAyB,GAAG,EAAE,GAAG,eAAe,MAAM,CAAC;AAIhF,IAAM,wBAA8E,aAAa,sBAAsB;AACvH,IAAM,wBAA8E,aAAa,wBAAwB,uBAAuB;AAChJ,IAAM,wBAA8E,aAAa,wBAAwB,uBAAuB;;;ADdhJ,IAAM,qBAAqB,IAAI,kBAAoC,EAAE,OAAO,EAAE,QAAQ,WAAW,GAAG,CAAC,gBAAgB,CAAC;AACtH,IAAM,mBAAmB,IAAI,yBAAyC,EAAE,OAAO,CAAC,yBAAyB,CAAC;AAE1G,IAAM,mBAAmB,gBAAgB,OAAO,gBAAgB;AAChE,IAAM,qBAAqB,gBAAgB,OAAO,kBAAkB;AAIpE,IAAM,qBAAqB,YAAY,OAAO,gBAAgB;AAG9D,IAAM,uBAAuB,YAAY,OAAO,kBAAkB;;;ADblE,IAAM,8CAA+D,CAAC;AAG7E,IAAM,UAAU,IAAI,gBAA4C;AA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D,cAAa,kCAAkC,iCAAiC;AAC/L,IAAM,kCAAyGE,cAAa,kCAAkC,iCAAiC;;;AC3EtM;AAAA,EACE,gBAAAI;AAAA,EAAc,gBAAAC;AAAA,EAAc,gBAAAC;AAAA,OACvB;AAEP,SAAS,uBAAuB;AAChC;AAAA,EACE,YAAAC;AAAA,OACK;AACP,YAAYC,QAAO;AAKZ,IAAM,uBAETD,UAAS,+BAA+B,IAAI;AAGzC,IAAM,oBAUP,UAAO,iBAAiB;AAAA,EAC5B,QAAU,WAAQ,oBAAoB;AAAA,EACtC,aAAe,YAAW,SAAQ,UAAkC,CAAC,CAAC;AAAA,EACtE,aAAe,YAAW,WAAQ,CAAC;AAAA,EACnC,OAAS,SAAQ,UAAa,CAAC;AAAA,EAC/B,aAAe,YAAW,WAAQ,CAAC;AACrC,CAAC;AAIM,IAAM,mBAAwEF,cAAa,iBAAiB;AAC5G,IAAM,mBAAwED,cAAa,mBAAmB,kBAAkB;AAChI,IAAM,mBAAwEE,cAAa,mBAAmB,kBAAkB;",
|
|
6
6
|
"names": ["AsObjectFactory", "AsObjectFactory", "IsObjectFactory", "zodAsFactory", "zodIsFactory", "zodToFactory", "asSchema", "PayloadZodOfSchema", "z", "zodAsFactory", "zodIsFactory", "zodToFactory", "asSchema", "z"]
|
|
7
7
|
}
|
|
@@ -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/sdk
|
|
3
|
+
export declare const isSentinelInstance: import("@xylabs/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
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("@xylabs/sdk
|
|
6
|
-
export declare const asSentinelInstance: import("@xylabs/sdk
|
|
5
|
+
export declare const asSentinelModule: import("@xylabs/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("@xylabs/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
7
|
/** @deprecated use narrowing instead [ if(is) ] */
|
|
8
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
9
|
/** @deprecated use narrowing instead [ if(is) ] */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeChecks.d.ts","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAGjD,eAAO,MAAM,kBAAkB,
|
|
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,0fAA+F,CAAA;AAC9H,eAAO,MAAM,gBAAgB,qhBAAqF,CAAA;AAElH,eAAO,MAAM,gBAAgB,6fAA2C,CAAA;AACxE,eAAO,MAAM,kBAAkB,+fAA6C,CAAA;AAE5E,mDAAmD;AAEnD,eAAO,MAAM,kBAAkB,4gBAAuC,CAAA;AACtE,mDAAmD;AAEnD,eAAO,MAAM,oBAAoB,8gBAAyC,CAAA"}
|
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.3",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -34,57 +34,55 @@
|
|
|
34
34
|
"README.md"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@xyo-network/diviner-model": "~7.0.
|
|
38
|
-
"@xyo-network/archivist-model": "~7.0.
|
|
39
|
-
"@xyo-network/module-model": "~7.0.
|
|
40
|
-
"@xyo-network/witness-model": "~7.0.
|
|
37
|
+
"@xyo-network/diviner-model": "~7.0.3",
|
|
38
|
+
"@xyo-network/archivist-model": "~7.0.3",
|
|
39
|
+
"@xyo-network/module-model": "~7.0.3",
|
|
40
|
+
"@xyo-network/witness-model": "~7.0.3"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@bitauth/libauth": "~3.0.0",
|
|
44
|
-
"@metamask/providers": "^22.1.1",
|
|
45
44
|
"@noble/post-quantum": "~0.6.1",
|
|
46
45
|
"@opentelemetry/api": "^1.9.1",
|
|
47
46
|
"@opentelemetry/sdk-trace-base": "^2.8.0",
|
|
48
47
|
"@scure/base": "~2.2.0",
|
|
49
48
|
"@scure/bip39": "~2.2.0",
|
|
50
|
-
"@xylabs/geo": "^
|
|
51
|
-
"@xylabs/sdk
|
|
52
|
-
"@xylabs/threads": "^
|
|
53
|
-
"@xylabs/toolchain": "^8.3
|
|
54
|
-
"@xylabs/tsconfig": "^8.3
|
|
55
|
-
"@xyo-network/sdk-protocol
|
|
49
|
+
"@xylabs/geo": "^7.0.1",
|
|
50
|
+
"@xylabs/sdk": "^7.0.1",
|
|
51
|
+
"@xylabs/threads": "^7.0.1",
|
|
52
|
+
"@xylabs/toolchain": "^8.5.3",
|
|
53
|
+
"@xylabs/tsconfig": "^8.5.3",
|
|
54
|
+
"@xyo-network/sdk-protocol": "^7.0.4",
|
|
56
55
|
"ajv": "^8.20.0",
|
|
57
56
|
"async-mutex": "^0.5.0",
|
|
58
|
-
"
|
|
59
|
-
"
|
|
57
|
+
"browserslist": "4.28.4",
|
|
58
|
+
"debug": "^4.4.3",
|
|
59
|
+
"eslint": "^10.6.0",
|
|
60
|
+
"eslint-import-resolver-typescript": "^4.4.5",
|
|
60
61
|
"ethers": "^6.17.0",
|
|
61
62
|
"hash-wasm": "~4.12.0",
|
|
62
63
|
"idb": "^8.0.3",
|
|
63
|
-
"observable-fns": "
|
|
64
|
+
"observable-fns": "^0.6.1",
|
|
64
65
|
"typescript": "~6.0.3",
|
|
65
|
-
"webextension-polyfill": "^0.12.0",
|
|
66
66
|
"zod": "^4.4.3"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
69
|
"@bitauth/libauth": "~3.0",
|
|
70
|
-
"@metamask/providers": "^22.1",
|
|
71
70
|
"@noble/post-quantum": "~0.6.1",
|
|
72
71
|
"@opentelemetry/api": "^1.9",
|
|
73
72
|
"@opentelemetry/sdk-trace-base": "^2.7",
|
|
74
73
|
"@scure/base": "~2.2",
|
|
75
74
|
"@scure/bip39": "~2.2",
|
|
76
|
-
"@xylabs/geo": "^
|
|
77
|
-
"@xylabs/sdk
|
|
78
|
-
"@xylabs/threads": "^
|
|
79
|
-
"@xyo-network/sdk-protocol
|
|
75
|
+
"@xylabs/geo": "^7.0",
|
|
76
|
+
"@xylabs/sdk": "^7.0",
|
|
77
|
+
"@xylabs/threads": "^7.0",
|
|
78
|
+
"@xyo-network/sdk-protocol": "^7.0",
|
|
80
79
|
"ajv": "^8.20",
|
|
81
80
|
"async-mutex": "^0.5",
|
|
82
|
-
"debug": "
|
|
81
|
+
"debug": "^4.4",
|
|
83
82
|
"ethers": "^6.16",
|
|
84
83
|
"hash-wasm": "~4.12",
|
|
85
84
|
"idb": "^8.0",
|
|
86
85
|
"observable-fns": "~0.6",
|
|
87
|
-
"webextension-polyfill": "^0.12",
|
|
88
86
|
"zod": "^4.4"
|
|
89
87
|
},
|
|
90
88
|
"engines": {
|