@xyo-network/diviner-forecasting-model 3.9.18 → 3.9.20

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.
@@ -0,0 +1,12 @@
1
+ import type { DivinerConfig } from '@xyo-network/diviner-model';
2
+ import type { ModuleIdentifier } from '@xyo-network/module-model';
3
+ import { ForecastingDivinerSchema } from '../Schema.ts';
4
+ import type { ForecastingSettings } from './ForecastingSettings.ts';
5
+ import type { TransformerSettings } from './TransformerSettings.ts';
6
+ export type ForecastingDivinerConfigSchema = `${ForecastingDivinerSchema}.config`;
7
+ export declare const ForecastingDivinerConfigSchema: ForecastingDivinerConfigSchema;
8
+ export type ForecastingDivinerConfig = DivinerConfig<{
9
+ boundWitnessDiviner?: ModuleIdentifier;
10
+ schema: ForecastingDivinerConfigSchema;
11
+ } & ForecastingSettings & TransformerSettings>;
12
+ //# sourceMappingURL=Config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../../src/Config/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAEjE,OAAO,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAA;AACvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AACnE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAEnE,MAAM,MAAM,8BAA8B,GAAG,GAAG,wBAAwB,SAAS,CAAA;AACjF,eAAO,MAAM,8BAA8B,EAAE,8BAAqE,CAAA;AAElH,MAAM,MAAM,wBAAwB,GAAG,aAAa,CAClD;IACE,mBAAmB,CAAC,EAAE,gBAAgB,CAAA;IACtC,MAAM,EAAE,8BAA8B,CAAA;CACvC,GAAG,mBAAmB,GACvB,mBAAmB,CACpB,CAAA"}
@@ -0,0 +1,13 @@
1
+ import type { Address } from '@xylabs/hex';
2
+ import type { Schema } from '@xyo-network/payload-model';
3
+ export interface ForecastingSettings {
4
+ batchLimit?: number;
5
+ forecastingMethod?: string;
6
+ forecastingSteps?: number;
7
+ maxTrainingLength?: number;
8
+ timestamp?: number;
9
+ windowSize?: number;
10
+ witnessAddresses?: Address[];
11
+ witnessSchema?: Schema;
12
+ }
13
+ //# sourceMappingURL=ForecastingSettings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ForecastingSettings.d.ts","sourceRoot":"","sources":["../../../src/Config/ForecastingSettings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAExD,MAAM,WAAW,mBAAmB;IAClC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,gBAAgB,CAAC,EAAE,OAAO,EAAE,CAAA;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB"}
@@ -0,0 +1,4 @@
1
+ export interface TransformerSettings {
2
+ jsonPathExpression?: string;
3
+ }
4
+ //# sourceMappingURL=TransformerSettings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TransformerSettings.d.ts","sourceRoot":"","sources":["../../../src/Config/TransformerSettings.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B"}
@@ -0,0 +1,4 @@
1
+ export * from './Config.ts';
2
+ export * from './ForecastingSettings.ts';
3
+ export * from './TransformerSettings.ts';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Config/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,0BAA0B,CAAA;AACxC,cAAc,0BAA0B,CAAA"}
@@ -0,0 +1,6 @@
1
+ import type { Promisable } from '@xylabs/promise';
2
+ import type { Payload } from '@xyo-network/payload-model';
3
+ import type { Forecast } from './Payload/index.ts';
4
+ import type { PayloadValueTransformer } from './PayloadValueTransformer.ts';
5
+ export type ForecastingMethod = (payloads: Payload[], transformers: PayloadValueTransformer) => Promisable<Forecast[]>;
6
+ //# sourceMappingURL=ForecastingMethod.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ForecastingMethod.d.ts","sourceRoot":"","sources":["../../src/ForecastingMethod.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;AAE3E,MAAM,MAAM,iBAAiB,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,EAAE,YAAY,EAAE,uBAAuB,KAAK,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAA"}
@@ -0,0 +1,6 @@
1
+ export interface Forecast {
2
+ error?: number;
3
+ timestamp?: number;
4
+ value: number;
5
+ }
6
+ //# sourceMappingURL=Forecast.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Forecast.d.ts","sourceRoot":"","sources":["../../../src/Payload/Forecast.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;CACd"}
@@ -0,0 +1,12 @@
1
+ import type { Payload } from '@xyo-network/payload-model';
2
+ import { ForecastingDivinerSchema } from '../Schema.ts';
3
+ import type { Forecast } from './Forecast.ts';
4
+ export type ForecastPayloadSchema = `${ForecastingDivinerSchema}.forecast`;
5
+ export declare const ForecastPayloadSchema: ForecastPayloadSchema;
6
+ export type ForecastPayload = Payload<{
7
+ schema: ForecastPayloadSchema;
8
+ sources: string[];
9
+ values: Forecast[];
10
+ }>;
11
+ export declare const isForecastPayload: (x?: Payload | null) => x is ForecastPayload;
12
+ //# sourceMappingURL=Payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Payload/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAA;AACvD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAE7C,MAAM,MAAM,qBAAqB,GAAG,GAAG,wBAAwB,WAAW,CAAA;AAC1E,eAAO,MAAM,qBAAqB,EAAE,qBAA8D,CAAA;AAElG,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC;IACpC,MAAM,EAAE,qBAAqB,CAAA;IAC7B,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,MAAM,EAAE,QAAQ,EAAE,CAAA;CACnB,CAAC,CAAA;AACF,eAAO,MAAM,iBAAiB,GAAI,IAAI,OAAO,GAAG,IAAI,KAAG,CAAC,IAAI,eAAsD,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './Forecast.ts';
2
+ export * from './Payload.ts';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Payload/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { Payload } from '@xyo-network/payload-model';
2
+ export type PayloadValueTransformer = (payload: Payload) => number;
3
+ //# sourceMappingURL=PayloadValueTransformer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PayloadValueTransformer.d.ts","sourceRoot":"","sources":["../../src/PayloadValueTransformer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,MAAM,MAAM,uBAAuB,GAAG,CAAC,OAAO,EAAE,OAAO,KAAK,MAAM,CAAA"}
@@ -0,0 +1,10 @@
1
+ import type { Payload, Query } from '@xyo-network/payload-model';
2
+ import type { ForecastingSettings } from './Config/index.ts';
3
+ import { ForecastingDivinerSchema } from './Schema.ts';
4
+ export type ForecastingDivinerQuerySchema = `${ForecastingDivinerSchema}.query`;
5
+ export declare const ForecastingDivinerQuerySchema: ForecastingDivinerQuerySchema;
6
+ export type ForecastingDivinerQueryPayload = Query<{
7
+ schema: ForecastingDivinerQuerySchema;
8
+ } & Partial<ForecastingSettings>>;
9
+ export declare const isForecastingDivinerQueryPayload: (x?: Payload | null) => x is ForecastingDivinerQueryPayload;
10
+ //# sourceMappingURL=Query.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../src/Query.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAA;AAEhE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAC5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAA;AAEtD,MAAM,MAAM,6BAA6B,GAAG,GAAG,wBAAwB,QAAQ,CAAA;AAC/E,eAAO,MAAM,6BAA6B,EAAE,6BAAmE,CAAA;AAE/G,MAAM,MAAM,8BAA8B,GAAG,KAAK,CAAC;IAAE,MAAM,EAAE,6BAA6B,CAAA;CAAE,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAA;AAC5H,eAAO,MAAM,gCAAgC,GAAI,IAAI,OAAO,GAAG,IAAI,KAAG,CAAC,IAAI,8BAC9B,CAAA"}
@@ -0,0 +1,3 @@
1
+ export declare const ForecastingDivinerSchema: "network.xyo.diviner.forecasting";
2
+ export type ForecastingDivinerSchema = typeof ForecastingDivinerSchema;
3
+ //# sourceMappingURL=Schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,EAAG,iCAA0C,CAAA;AAClF,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAA"}
@@ -1,58 +1,7 @@
1
- import { DivinerConfig } from '@xyo-network/diviner-model';
2
- import { ModuleIdentifier } from '@xyo-network/module-model';
3
- import { Address } from '@xylabs/hex';
4
- import { Schema, Payload, Query } from '@xyo-network/payload-model';
5
- import { Promisable } from '@xylabs/promise';
6
-
7
- declare const ForecastingDivinerSchema: "network.xyo.diviner.forecasting";
8
- type ForecastingDivinerSchema = typeof ForecastingDivinerSchema;
9
-
10
- interface ForecastingSettings {
11
- batchLimit?: number;
12
- forecastingMethod?: string;
13
- forecastingSteps?: number;
14
- maxTrainingLength?: number;
15
- timestamp?: number;
16
- windowSize?: number;
17
- witnessAddresses?: Address[];
18
- witnessSchema?: Schema;
19
- }
20
-
21
- interface TransformerSettings {
22
- jsonPathExpression?: string;
23
- }
24
-
25
- type ForecastingDivinerConfigSchema = `${ForecastingDivinerSchema}.config`;
26
- declare const ForecastingDivinerConfigSchema: ForecastingDivinerConfigSchema;
27
- type ForecastingDivinerConfig = DivinerConfig<{
28
- boundWitnessDiviner?: ModuleIdentifier;
29
- schema: ForecastingDivinerConfigSchema;
30
- } & ForecastingSettings & TransformerSettings>;
31
-
32
- interface Forecast {
33
- error?: number;
34
- timestamp?: number;
35
- value: number;
36
- }
37
-
38
- type ForecastPayloadSchema = `${ForecastingDivinerSchema}.forecast`;
39
- declare const ForecastPayloadSchema: ForecastPayloadSchema;
40
- type ForecastPayload = Payload<{
41
- schema: ForecastPayloadSchema;
42
- sources: string[];
43
- values: Forecast[];
44
- }>;
45
- declare const isForecastPayload: (x?: Payload | null) => x is ForecastPayload;
46
-
47
- type PayloadValueTransformer = (payload: Payload) => number;
48
-
49
- type ForecastingMethod = (payloads: Payload[], transformers: PayloadValueTransformer) => Promisable<Forecast[]>;
50
-
51
- type ForecastingDivinerQuerySchema = `${ForecastingDivinerSchema}.query`;
52
- declare const ForecastingDivinerQuerySchema: ForecastingDivinerQuerySchema;
53
- type ForecastingDivinerQueryPayload = Query<{
54
- schema: ForecastingDivinerQuerySchema;
55
- } & Partial<ForecastingSettings>>;
56
- declare const isForecastingDivinerQueryPayload: (x?: Payload | null) => x is ForecastingDivinerQueryPayload;
57
-
58
- export { type Forecast, type ForecastPayload, ForecastPayloadSchema, type ForecastingDivinerConfig, ForecastingDivinerConfigSchema, type ForecastingDivinerQueryPayload, ForecastingDivinerQuerySchema, ForecastingDivinerSchema, type ForecastingMethod, type ForecastingSettings, type PayloadValueTransformer, type TransformerSettings, isForecastPayload, isForecastingDivinerQueryPayload };
1
+ export * from './Config/index.ts';
2
+ export * from './ForecastingMethod.ts';
3
+ export * from './Payload/index.ts';
4
+ export * from './PayloadValueTransformer.ts';
5
+ export * from './Query.ts';
6
+ export * from './Schema.ts';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,wBAAwB,CAAA;AACtC,cAAc,oBAAoB,CAAA;AAClC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/diviner-forecasting-model",
3
- "version": "3.9.18",
3
+ "version": "3.9.20",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -31,14 +31,14 @@
31
31
  "dependencies": {
32
32
  "@xylabs/hex": "^4.5.1",
33
33
  "@xylabs/promise": "^4.5.1",
34
- "@xyo-network/diviner-model": "^3.9.18",
35
- "@xyo-network/module-model": "^3.9.18",
36
- "@xyo-network/payload-model": "^3.9.18"
34
+ "@xyo-network/diviner-model": "^3.9.20",
35
+ "@xyo-network/module-model": "^3.9.20",
36
+ "@xyo-network/payload-model": "^3.9.20"
37
37
  },
38
38
  "devDependencies": {
39
- "@xylabs/ts-scripts-yarn3": "^5.0.25",
40
- "@xylabs/tsconfig": "^5.0.25",
41
- "typescript": "^5.7.3"
39
+ "@xylabs/ts-scripts-yarn3": "^5.0.39",
40
+ "@xylabs/tsconfig": "^5.0.39",
41
+ "typescript": "^5.8.2"
42
42
  },
43
43
  "publishConfig": {
44
44
  "access": "public"