@xyo-network/diviner-forecasting-model 5.2.25 → 5.3.0

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.
@@ -1,10 +1,11 @@
1
1
  import type { DivinerConfig } from '@xyo-network/diviner-model';
2
2
  import type { ModuleIdentifier } from '@xyo-network/module-model';
3
- import { ForecastingDivinerSchema } from '../Schema.ts';
4
3
  import type { ForecastingSettings } from './ForecastingSettings.ts';
5
4
  import type { TransformerSettings } from './TransformerSettings.ts';
6
- export type ForecastingDivinerConfigSchema = `${ForecastingDivinerSchema}.config`;
7
- export declare const ForecastingDivinerConfigSchema: ForecastingDivinerConfigSchema;
5
+ export declare const ForecastingDivinerConfigSchema: string & {
6
+ readonly __schema: true;
7
+ };
8
+ export type ForecastingDivinerConfigSchema = typeof ForecastingDivinerConfigSchema;
8
9
  export type ForecastingDivinerConfig = DivinerConfig<{
9
10
  boundWitnessDiviner?: ModuleIdentifier;
10
11
  schema: ForecastingDivinerConfigSchema;
@@ -1 +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,GACrB,mBAAmB,CACtB,CAAA"}
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;AAIjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AACnE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAEnE,eAAO,MAAM,8BAA8B;;CAAuD,CAAA;AAClG,MAAM,MAAM,8BAA8B,GAAG,OAAO,8BAA8B,CAAA;AAElF,MAAM,MAAM,wBAAwB,GAAG,aAAa,CAClD;IACE,mBAAmB,CAAC,EAAE,gBAAgB,CAAA;IACtC,MAAM,EAAE,8BAA8B,CAAA;CACvC,GAAG,mBAAmB,GACrB,mBAAmB,CACtB,CAAA"}
@@ -1,8 +1,9 @@
1
- import type { Payload } from '@xyo-network/payload-model';
2
- import { ForecastingDivinerSchema } from '../Schema.ts';
1
+ import { type Payload } from '@xyo-network/payload-model';
3
2
  import type { Forecast } from './Forecast.ts';
4
- export type ForecastPayloadSchema = `${ForecastingDivinerSchema}.forecast`;
5
- export declare const ForecastPayloadSchema: ForecastPayloadSchema;
3
+ export declare const ForecastPayloadSchema: string & {
4
+ readonly __schema: true;
5
+ };
6
+ export type ForecastPayloadSchema = typeof ForecastPayloadSchema;
6
7
  export type ForecastPayload = Payload<{
7
8
  schema: ForecastPayloadSchema;
8
9
  sources: string[];
@@ -1 +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"}
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Payload/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAGnE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAE7C,eAAO,MAAM,qBAAqB;;CAAyD,CAAA;AAC3F,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAA;AAEhE,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"}
@@ -1,11 +1,15 @@
1
+ // src/Config/Config.ts
2
+ import { asSchema } from "@xyo-network/payload-model";
3
+
1
4
  // src/Schema.ts
2
5
  var ForecastingDivinerSchema = "network.xyo.diviner.forecasting";
3
6
 
4
7
  // src/Config/Config.ts
5
- var ForecastingDivinerConfigSchema = `${ForecastingDivinerSchema}.config`;
8
+ var ForecastingDivinerConfigSchema = asSchema(`${ForecastingDivinerSchema}.config`, true);
6
9
 
7
10
  // src/Payload/Payload.ts
8
- var ForecastPayloadSchema = `${ForecastingDivinerSchema}.forecast`;
11
+ import { asSchema as asSchema2 } from "@xyo-network/payload-model";
12
+ var ForecastPayloadSchema = asSchema2(`${ForecastingDivinerSchema}.forecast`, true);
9
13
  var isForecastPayload = (x) => x?.schema === ForecastPayloadSchema;
10
14
 
11
15
  // src/Query.ts
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Schema.ts","../../src/Config/Config.ts","../../src/Payload/Payload.ts","../../src/Query.ts"],"sourcesContent":["export const ForecastingDivinerSchema = 'network.xyo.diviner.forecasting' as const\nexport type ForecastingDivinerSchema = typeof ForecastingDivinerSchema\n","import type { DivinerConfig } from '@xyo-network/diviner-model'\nimport type { ModuleIdentifier } from '@xyo-network/module-model'\n\nimport { ForecastingDivinerSchema } from '../Schema.ts'\nimport type { ForecastingSettings } from './ForecastingSettings.ts'\nimport type { TransformerSettings } from './TransformerSettings.ts'\n\nexport type ForecastingDivinerConfigSchema = `${ForecastingDivinerSchema}.config`\nexport const ForecastingDivinerConfigSchema: ForecastingDivinerConfigSchema = `${ForecastingDivinerSchema}.config`\n\nexport type ForecastingDivinerConfig = DivinerConfig<\n {\n boundWitnessDiviner?: ModuleIdentifier\n schema: ForecastingDivinerConfigSchema\n } & ForecastingSettings\n & TransformerSettings\n>\n","import type { Payload } from '@xyo-network/payload-model'\n\nimport { ForecastingDivinerSchema } from '../Schema.ts'\nimport type { Forecast } from './Forecast.ts'\n\nexport type ForecastPayloadSchema = `${ForecastingDivinerSchema}.forecast`\nexport const ForecastPayloadSchema: ForecastPayloadSchema = `${ForecastingDivinerSchema}.forecast`\n\nexport type ForecastPayload = Payload<{\n schema: ForecastPayloadSchema\n sources: string[]\n values: Forecast[]\n}>\nexport const isForecastPayload = (x?: Payload | null): x is ForecastPayload => x?.schema === ForecastPayloadSchema\n","import type { Payload, Query } from '@xyo-network/payload-model'\n\nimport type { ForecastingSettings } from './Config/index.ts'\nimport { ForecastingDivinerSchema } from './Schema.ts'\n\nexport type ForecastingDivinerQuerySchema = `${ForecastingDivinerSchema}.query`\nexport const ForecastingDivinerQuerySchema: ForecastingDivinerQuerySchema = `${ForecastingDivinerSchema}.query`\n\nexport type ForecastingDivinerQueryPayload = Query<{ schema: ForecastingDivinerQuerySchema } & Partial<ForecastingSettings>>\nexport const isForecastingDivinerQueryPayload = (x?: Payload | null): x is ForecastingDivinerQueryPayload =>\n x?.schema === ForecastingDivinerQuerySchema\n"],"mappings":";AAAO,IAAM,2BAA2B;;;ACQjC,IAAM,iCAAiE,GAAG,wBAAwB;;;ACFlG,IAAM,wBAA+C,GAAG,wBAAwB;AAOhF,IAAM,oBAAoB,CAAC,MAA6C,GAAG,WAAW;;;ACPtF,IAAM,gCAA+D,GAAG,wBAAwB;AAGhG,IAAM,mCAAmC,CAAC,MAC/C,GAAG,WAAW;","names":[]}
1
+ {"version":3,"sources":["../../src/Config/Config.ts","../../src/Schema.ts","../../src/Payload/Payload.ts","../../src/Query.ts"],"sourcesContent":["import type { DivinerConfig } from '@xyo-network/diviner-model'\nimport type { ModuleIdentifier } from '@xyo-network/module-model'\nimport { asSchema } from '@xyo-network/payload-model'\n\nimport { ForecastingDivinerSchema } from '../Schema.ts'\nimport type { ForecastingSettings } from './ForecastingSettings.ts'\nimport type { TransformerSettings } from './TransformerSettings.ts'\n\nexport const ForecastingDivinerConfigSchema = asSchema(`${ForecastingDivinerSchema}.config`, true)\nexport type ForecastingDivinerConfigSchema = typeof ForecastingDivinerConfigSchema\n\nexport type ForecastingDivinerConfig = DivinerConfig<\n {\n boundWitnessDiviner?: ModuleIdentifier\n schema: ForecastingDivinerConfigSchema\n } & ForecastingSettings\n & TransformerSettings\n>\n","export const ForecastingDivinerSchema = 'network.xyo.diviner.forecasting' as const\nexport type ForecastingDivinerSchema = typeof ForecastingDivinerSchema\n","import { asSchema, type Payload } from '@xyo-network/payload-model'\n\nimport { ForecastingDivinerSchema } from '../Schema.ts'\nimport type { Forecast } from './Forecast.ts'\n\nexport const ForecastPayloadSchema = asSchema(`${ForecastingDivinerSchema}.forecast`, true)\nexport type ForecastPayloadSchema = typeof ForecastPayloadSchema\n\nexport type ForecastPayload = Payload<{\n schema: ForecastPayloadSchema\n sources: string[]\n values: Forecast[]\n}>\nexport const isForecastPayload = (x?: Payload | null): x is ForecastPayload => x?.schema === ForecastPayloadSchema\n","import type { Payload, Query } from '@xyo-network/payload-model'\n\nimport type { ForecastingSettings } from './Config/index.ts'\nimport { ForecastingDivinerSchema } from './Schema.ts'\n\nexport type ForecastingDivinerQuerySchema = `${ForecastingDivinerSchema}.query`\nexport const ForecastingDivinerQuerySchema: ForecastingDivinerQuerySchema = `${ForecastingDivinerSchema}.query`\n\nexport type ForecastingDivinerQueryPayload = Query<{ schema: ForecastingDivinerQuerySchema } & Partial<ForecastingSettings>>\nexport const isForecastingDivinerQueryPayload = (x?: Payload | null): x is ForecastingDivinerQueryPayload =>\n x?.schema === ForecastingDivinerQuerySchema\n"],"mappings":";AAEA,SAAS,gBAAgB;;;ACFlB,IAAM,2BAA2B;;;ADQjC,IAAM,iCAAiC,SAAS,GAAG,wBAAwB,WAAW,IAAI;;;AERjG,SAAS,YAAAA,iBAA8B;AAKhC,IAAM,wBAAwBC,UAAS,GAAG,wBAAwB,aAAa,IAAI;AAQnF,IAAM,oBAAoB,CAAC,MAA6C,GAAG,WAAW;;;ACPtF,IAAM,gCAA+D,GAAG,wBAAwB;AAGhG,IAAM,mCAAmC,CAAC,MAC/C,GAAG,WAAW;","names":["asSchema","asSchema"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/diviner-forecasting-model",
3
- "version": "5.2.25",
3
+ "version": "5.3.0",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -36,14 +36,14 @@
36
36
  "!**/*.test.*"
37
37
  ],
38
38
  "dependencies": {
39
- "@xylabs/sdk-js": "~5.0.63",
40
- "@xyo-network/diviner-model": "~5.2.25",
41
- "@xyo-network/module-model": "~5.2.25",
42
- "@xyo-network/payload-model": "~5.2.25"
39
+ "@xylabs/sdk-js": "~5.0.64",
40
+ "@xyo-network/diviner-model": "~5.3.0",
41
+ "@xyo-network/module-model": "~5.3.0",
42
+ "@xyo-network/payload-model": "~5.3.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@xylabs/ts-scripts-yarn3": "~7.2.32",
46
- "@xylabs/tsconfig": "~7.2.32",
45
+ "@xylabs/ts-scripts-yarn3": "~7.3.2",
46
+ "@xylabs/tsconfig": "~7.3.2",
47
47
  "typescript": "~5.9.3"
48
48
  },
49
49
  "publishConfig": {
@@ -1,12 +1,13 @@
1
1
  import type { DivinerConfig } from '@xyo-network/diviner-model'
2
2
  import type { ModuleIdentifier } from '@xyo-network/module-model'
3
+ import { asSchema } from '@xyo-network/payload-model'
3
4
 
4
5
  import { ForecastingDivinerSchema } from '../Schema.ts'
5
6
  import type { ForecastingSettings } from './ForecastingSettings.ts'
6
7
  import type { TransformerSettings } from './TransformerSettings.ts'
7
8
 
8
- export type ForecastingDivinerConfigSchema = `${ForecastingDivinerSchema}.config`
9
- export const ForecastingDivinerConfigSchema: ForecastingDivinerConfigSchema = `${ForecastingDivinerSchema}.config`
9
+ export const ForecastingDivinerConfigSchema = asSchema(`${ForecastingDivinerSchema}.config`, true)
10
+ export type ForecastingDivinerConfigSchema = typeof ForecastingDivinerConfigSchema
10
11
 
11
12
  export type ForecastingDivinerConfig = DivinerConfig<
12
13
  {
@@ -1,10 +1,10 @@
1
- import type { Payload } from '@xyo-network/payload-model'
1
+ import { asSchema, type Payload } from '@xyo-network/payload-model'
2
2
 
3
3
  import { ForecastingDivinerSchema } from '../Schema.ts'
4
4
  import type { Forecast } from './Forecast.ts'
5
5
 
6
- export type ForecastPayloadSchema = `${ForecastingDivinerSchema}.forecast`
7
- export const ForecastPayloadSchema: ForecastPayloadSchema = `${ForecastingDivinerSchema}.forecast`
6
+ export const ForecastPayloadSchema = asSchema(`${ForecastingDivinerSchema}.forecast`, true)
7
+ export type ForecastPayloadSchema = typeof ForecastPayloadSchema
8
8
 
9
9
  export type ForecastPayload = Payload<{
10
10
  schema: ForecastPayloadSchema