@xyo-network/diviner-schema-stats-model 4.0.2 → 4.1.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.
@@ -0,0 +1,31 @@
1
+ import { DivinerConfig, DivinerParams } from '@xyo-network/diviner-model';
2
+ import { Payload, Query } from '@xyo-network/payload-model';
3
+ import { AnyConfigSchema } from '@xyo-network/module-model';
4
+
5
+ declare const SchemaStatsDivinerSchema: "network.xyo.diviner.schema.stats";
6
+ type SchemaStatsDivinerSchema = typeof SchemaStatsDivinerSchema;
7
+
8
+ type SchemaStatsDivinerConfigSchema = `${SchemaStatsDivinerSchema}.config`;
9
+ declare const SchemaStatsDivinerConfigSchema: SchemaStatsDivinerConfigSchema;
10
+ type SchemaStatsDivinerConfig<T extends Payload = Payload> = DivinerConfig<T & {
11
+ schema: SchemaStatsDivinerConfigSchema;
12
+ }>;
13
+
14
+ type SchemaStatsDivinerParams = DivinerParams<AnyConfigSchema<SchemaStatsDivinerConfig>>;
15
+
16
+ type SchemaStatsPayload = Payload<{
17
+ count: Record<string, number>;
18
+ name?: string;
19
+ schema: SchemaStatsDivinerSchema;
20
+ }>;
21
+ declare const isSchemaStatsPayload: (x?: Payload | null) => x is SchemaStatsPayload;
22
+
23
+ type SchemaStatsQuerySchema = `${SchemaStatsDivinerSchema}.query`;
24
+ declare const SchemaStatsQuerySchema: SchemaStatsQuerySchema;
25
+ type SchemaStatsQueryPayload = Query<{
26
+ schema: SchemaStatsQuerySchema;
27
+ }>;
28
+ declare const isSchemaStatsQueryPayload: (x?: Payload | null) => x is SchemaStatsQueryPayload;
29
+
30
+ export { SchemaStatsDivinerConfigSchema, SchemaStatsDivinerSchema, SchemaStatsQuerySchema, isSchemaStatsPayload, isSchemaStatsQueryPayload };
31
+ export type { SchemaStatsDivinerConfig, SchemaStatsDivinerParams, SchemaStatsPayload, SchemaStatsQueryPayload };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/diviner-schema-stats-model",
3
- "version": "4.0.2",
3
+ "version": "4.1.0",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -21,21 +21,21 @@
21
21
  "type": "module",
22
22
  "exports": {
23
23
  ".": {
24
- "types": "./dist/types/index.d.ts",
24
+ "types": "./dist/neutral/index.d.ts",
25
25
  "default": "./dist/neutral/index.mjs"
26
26
  },
27
27
  "./package.json": "./package.json"
28
28
  },
29
29
  "module": "dist/neutral/index.mjs",
30
- "types": "dist/types/index.d.ts",
30
+ "types": "dist/neutral/index.d.ts",
31
31
  "dependencies": {
32
- "@xyo-network/diviner-model": "^4.0.2",
33
- "@xyo-network/module-model": "^4.0.2",
34
- "@xyo-network/payload-model": "^4.0.2"
32
+ "@xyo-network/diviner-model": "^4.1.0",
33
+ "@xyo-network/module-model": "^4.1.0",
34
+ "@xyo-network/payload-model": "^4.1.0"
35
35
  },
36
36
  "devDependencies": {
37
- "@xylabs/ts-scripts-yarn3": "^6.5.12",
38
- "@xylabs/tsconfig": "^6.5.12",
37
+ "@xylabs/ts-scripts-yarn3": "^7.0.0-rc.20",
38
+ "@xylabs/tsconfig": "^7.0.0-rc.20",
39
39
  "typescript": "^5.8.3"
40
40
  },
41
41
  "publishConfig": {
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes