@xyo-network/diviner-range-model 3.8.0 → 3.8.2

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,3 +1,85 @@
1
- export * from './Config/index.ts';
2
- export * from './Payload/index.ts';
3
- //# sourceMappingURL=index.d.ts.map
1
+ import * as _xylabs_object from '@xylabs/object';
2
+ import * as _xylabs_logger from '@xylabs/logger';
3
+ import * as _xyo_network_module_model from '@xyo-network/module-model';
4
+ import { DivinerConfig } from '@xyo-network/diviner-model';
5
+ import { Hex } from '@xylabs/hex';
6
+ import { Payload } from '@xyo-network/payload-model';
7
+
8
+ declare const BigIntSchema: "network.xyo.bigint";
9
+ type BigIntSchema = typeof BigIntSchema;
10
+ type BigIntPayload = Payload<{
11
+ value: Hex;
12
+ }, BigIntSchema>;
13
+
14
+ declare const NumberSchema: "network.xyo.number";
15
+ type NumberSchema = typeof NumberSchema;
16
+ type NumberPayload = Payload<{
17
+ value: number;
18
+ }, NumberSchema>;
19
+
20
+ declare const RangeSchema: "network.xyo.range";
21
+ type RangeSchema = typeof RangeSchema;
22
+ type RangePayloadBase<T> = Payload<{
23
+ count: number;
24
+ start: T;
25
+ }, RangeSchema>;
26
+ type NumberRangePayload = RangePayloadBase<number>;
27
+ type BigIntRangePayload = RangePayloadBase<Hex>;
28
+ type RangePayload = NumberRangePayload | BigIntRangePayload;
29
+ declare const isRangePayload: (x?: unknown | null) => x is RangePayload;
30
+ declare const isBigIntRangePayload: (payload?: unknown) => payload is BigIntRangePayload;
31
+ declare const isNumberRangePayload: (payload?: unknown) => payload is NumberRangePayload;
32
+
33
+ declare const RangeDivinerConfigSchema: "network.xyo.diviner.range.config";
34
+ type RangeDivinerConfigSchema = typeof RangeDivinerConfigSchema;
35
+
36
+ type RangeDivinerConfig = DivinerConfig<{
37
+ ranges?: RangePayload[];
38
+ }, RangeDivinerConfigSchema>;
39
+ declare const isRangeDivinerConfig: (x?: unknown | null) => x is _xylabs_object.DeepRestrictToStringKeys<{
40
+ schema: "network.xyo.diviner.range.config";
41
+ readonly archiving?: {
42
+ readonly archivists?: string[] | undefined;
43
+ readonly queries?: string[] | undefined;
44
+ } | undefined;
45
+ readonly allowedQueries?: string[] | undefined;
46
+ readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
47
+ readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
48
+ readonly labels?: {
49
+ [x: string]: string | undefined;
50
+ } | undefined;
51
+ readonly name?: _xyo_network_module_model.ModuleName | undefined;
52
+ readonly paging?: {
53
+ [x: string]: {
54
+ size?: number | undefined;
55
+ };
56
+ } | undefined;
57
+ readonly retry?: {
58
+ backoff?: number | undefined;
59
+ interval?: number | undefined;
60
+ retries?: number | undefined;
61
+ } | undefined;
62
+ readonly security?: {
63
+ readonly allowAnonymous?: boolean | undefined;
64
+ readonly allowed?: {
65
+ [x: string]: (Lowercase<string> | Lowercase<string>[])[];
66
+ } | undefined;
67
+ readonly disallowed?: {
68
+ [x: string]: Lowercase<string>[];
69
+ } | undefined;
70
+ } | undefined;
71
+ readonly sign?: boolean | undefined;
72
+ readonly storeQueries?: boolean | undefined;
73
+ readonly timestamp?: boolean | undefined;
74
+ ranges?: ({
75
+ schema: "network.xyo.range";
76
+ count: number;
77
+ start: number;
78
+ } | {
79
+ schema: "network.xyo.range";
80
+ count: number;
81
+ start: Lowercase<string>;
82
+ })[] | undefined;
83
+ }>;
84
+
85
+ export { type BigIntPayload, type BigIntRangePayload, BigIntSchema, type NumberPayload, type NumberRangePayload, NumberSchema, type RangeDivinerConfig, RangeDivinerConfigSchema, type RangePayload, type RangePayloadBase, RangeSchema, isBigIntRangePayload, isNumberRangePayload, isRangeDivinerConfig, isRangePayload };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/diviner-range-model",
3
- "version": "3.8.0",
3
+ "version": "3.8.2",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -30,12 +30,12 @@
30
30
  "types": "dist/neutral/index.d.ts",
31
31
  "dependencies": {
32
32
  "@xylabs/hex": "^4.5.1",
33
- "@xyo-network/diviner-model": "^3.8.0",
34
- "@xyo-network/payload-model": "^3.8.0"
33
+ "@xyo-network/diviner-model": "^3.8.2",
34
+ "@xyo-network/payload-model": "^3.8.2"
35
35
  },
36
36
  "devDependencies": {
37
- "@xylabs/ts-scripts-yarn3": "^4.2.6",
38
- "@xylabs/tsconfig": "^4.2.6",
37
+ "@xylabs/ts-scripts-yarn3": "^5.0.22",
38
+ "@xylabs/tsconfig": "^5.0.22",
39
39
  "typescript": "^5.7.3"
40
40
  },
41
41
  "publishConfig": {
@@ -1,53 +0,0 @@
1
- import type { DivinerConfig } from '@xyo-network/diviner-model';
2
- export declare const RangeDivinerConfigSchema: "network.xyo.diviner.range.config";
3
- export type RangeDivinerConfigSchema = typeof RangeDivinerConfigSchema;
4
- import type { RangePayload } from '../Payload/index.ts';
5
- export type RangeDivinerConfig = DivinerConfig<{
6
- ranges?: RangePayload[];
7
- }, RangeDivinerConfigSchema>;
8
- export declare const isRangeDivinerConfig: (x?: unknown | null) => x is import("@xylabs/object").DeepRestrictToStringKeys<{
9
- schema: "network.xyo.diviner.range.config";
10
- readonly archiving?: {
11
- readonly archivists?: string[] | undefined;
12
- readonly queries?: string[] | undefined;
13
- } | undefined;
14
- readonly allowedQueries?: string[] | undefined;
15
- readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
16
- readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
17
- readonly labels?: {
18
- [x: string]: string | undefined;
19
- } | undefined;
20
- readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
21
- readonly paging?: {
22
- [x: string]: {
23
- size?: number | undefined;
24
- };
25
- } | undefined;
26
- readonly retry?: {
27
- backoff?: number | undefined;
28
- interval?: number | undefined;
29
- retries?: number | undefined;
30
- } | undefined;
31
- readonly security?: {
32
- readonly allowAnonymous?: boolean | undefined;
33
- readonly allowed?: {
34
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
35
- } | undefined;
36
- readonly disallowed?: {
37
- [x: string]: Lowercase<string>[];
38
- } | undefined;
39
- } | undefined;
40
- readonly sign?: boolean | undefined;
41
- readonly storeQueries?: boolean | undefined;
42
- readonly timestamp?: boolean | undefined;
43
- ranges?: ({
44
- schema: "network.xyo.range";
45
- count: number;
46
- start: number;
47
- } | {
48
- schema: "network.xyo.range";
49
- count: number;
50
- start: Lowercase<string>;
51
- })[] | undefined;
52
- }>;
53
- //# sourceMappingURL=Config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../../src/Config/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAG/D,eAAO,MAAM,wBAAwB,EAAG,kCAA2C,CAAA;AACnF,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAA;AAEtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAEvD,MAAM,MAAM,kBAAkB,GAAG,aAAa,CAC5C;IACE,MAAM,CAAC,EAAE,YAAY,EAAE,CAAA;CACxB,EACD,wBAAwB,CACzB,CAAA;AAED,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAsE,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from './Config.ts';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Config/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA"}
@@ -1,8 +0,0 @@
1
- import type { Hex } from '@xylabs/hex';
2
- import type { Payload } from '@xyo-network/payload-model';
3
- export declare const BigIntSchema: "network.xyo.bigint";
4
- export type BigIntSchema = typeof BigIntSchema;
5
- export type BigIntPayload = Payload<{
6
- value: Hex;
7
- }, BigIntSchema>;
8
- //# sourceMappingURL=BigInt.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BigInt.d.ts","sourceRoot":"","sources":["../../../src/Payload/BigInt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,eAAO,MAAM,YAAY,EAAG,oBAA6B,CAAA;AACzD,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAA;AAE9C,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC;IAAE,KAAK,EAAE,GAAG,CAAA;CAAE,EAAE,YAAY,CAAC,CAAA"}
@@ -1,7 +0,0 @@
1
- import type { Payload } from '@xyo-network/payload-model';
2
- export declare const NumberSchema: "network.xyo.number";
3
- export type NumberSchema = typeof NumberSchema;
4
- export type NumberPayload = Payload<{
5
- value: number;
6
- }, NumberSchema>;
7
- //# sourceMappingURL=Number.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Number.d.ts","sourceRoot":"","sources":["../../../src/Payload/Number.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,eAAO,MAAM,YAAY,EAAG,oBAA6B,CAAA;AACzD,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAA;AAE9C,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,EAAE,YAAY,CAAC,CAAA"}
@@ -1,15 +0,0 @@
1
- import type { Hex } from '@xylabs/hex';
2
- import type { Payload } from '@xyo-network/payload-model';
3
- export declare const RangeSchema: "network.xyo.range";
4
- export type RangeSchema = typeof RangeSchema;
5
- export type RangePayloadBase<T> = Payload<{
6
- count: number;
7
- start: T;
8
- }, RangeSchema>;
9
- export type NumberRangePayload = RangePayloadBase<number>;
10
- export type BigIntRangePayload = RangePayloadBase<Hex>;
11
- export type RangePayload = NumberRangePayload | BigIntRangePayload;
12
- export declare const isRangePayload: (x?: unknown | null) => x is RangePayload;
13
- export declare const isBigIntRangePayload: (payload?: unknown) => payload is BigIntRangePayload;
14
- export declare const isNumberRangePayload: (payload?: unknown) => payload is NumberRangePayload;
15
- //# sourceMappingURL=Range.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Range.d.ts","sourceRoot":"","sources":["../../../src/Payload/Range.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,aAAa,CAAA;AAEtC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAKzD,eAAO,MAAM,WAAW,EAAG,mBAA4B,CAAA;AACvD,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAA;AAE5C,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI,OAAO,CACvC;IACE,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,CAAC,CAAA;CACT,EACD,WAAW,CACZ,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAAA;AACzD,MAAM,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,GAAG,CAAC,CAAA;AAEtD,MAAM,MAAM,YAAY,GAAG,kBAAkB,GAAG,kBAAkB,CAAA;AAElE,eAAO,MAAM,cAAc,2CAAmD,CAAA;AAE9E,eAAO,MAAM,oBAAoB,aAAc,OAAO,KAAG,OAAO,IAAI,kBACD,CAAA;AAEnE,eAAO,MAAM,oBAAoB,aAAc,OAAO,KAAG,OAAO,IAAI,kBAAkF,CAAA"}
@@ -1,4 +0,0 @@
1
- export * from './BigInt.ts';
2
- export * from './Number.ts';
3
- export * from './Range.ts';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Payload/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA"}