@xyo-network/diviner-boundwitness-model 4.0.3 → 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.
- package/dist/neutral/index.d.ts +33 -0
- package/package.json +10 -10
- /package/{dist/types → build/neutral}/Config.d.ts +0 -0
- /package/{dist/types → build/neutral}/Config.d.ts.map +0 -0
- /package/{dist/types → build/neutral}/Params.d.ts +0 -0
- /package/{dist/types → build/neutral}/Params.d.ts.map +0 -0
- /package/{dist/types → build/neutral}/Predicate.d.ts +0 -0
- /package/{dist/types → build/neutral}/Predicate.d.ts.map +0 -0
- /package/{dist/types → build/neutral}/Query.d.ts +0 -0
- /package/{dist/types → build/neutral}/Query.d.ts.map +0 -0
- /package/{dist/types → build/neutral}/Schema.d.ts +0 -0
- /package/{dist/types → build/neutral}/Schema.d.ts.map +0 -0
- /package/{dist/types → build/neutral}/index.d.ts +0 -0
- /package/{dist/types → build/neutral}/index.d.ts.map +0 -0
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
import { BoundWitness } from '@xyo-network/boundwitness-model';
|
|
5
|
+
import { PayloadDivinerPredicate } from '@xyo-network/diviner-payload-model';
|
|
6
|
+
|
|
7
|
+
declare const BoundWitnessDivinerSchema: "network.xyo.diviner.boundwitness";
|
|
8
|
+
type BoundWitnessDivinerSchema = typeof BoundWitnessDivinerSchema;
|
|
9
|
+
|
|
10
|
+
type BoundWitnessDivinerConfigSchema = `${BoundWitnessDivinerSchema}.config`;
|
|
11
|
+
declare const BoundWitnessDivinerConfigSchema: BoundWitnessDivinerConfigSchema;
|
|
12
|
+
type BoundWitnessDivinerConfig<T extends Payload = Payload> = DivinerConfig<T & {
|
|
13
|
+
schema: BoundWitnessDivinerConfigSchema;
|
|
14
|
+
}>;
|
|
15
|
+
|
|
16
|
+
type BoundWitnessDivinerParams = DivinerParams<AnyConfigSchema<BoundWitnessDivinerConfig>>;
|
|
17
|
+
|
|
18
|
+
type WithoutSchemas<T> = Omit<Omit<T, 'schema'>, 'schemas'>;
|
|
19
|
+
type BoundWitnessDivinerPredicateFields = {
|
|
20
|
+
destination: string[];
|
|
21
|
+
sourceQuery: string;
|
|
22
|
+
};
|
|
23
|
+
type BoundWitnessDivinerPredicate = WithoutSchemas<PayloadDivinerPredicate & Partial<BoundWitness & BoundWitnessDivinerPredicateFields>>;
|
|
24
|
+
|
|
25
|
+
type BoundWitnessDivinerQuerySchema = `${BoundWitnessDivinerSchema}.query`;
|
|
26
|
+
declare const BoundWitnessDivinerQuerySchema: BoundWitnessDivinerQuerySchema;
|
|
27
|
+
type BoundWitnessDivinerQueryPayload = Query<{
|
|
28
|
+
schema: BoundWitnessDivinerQuerySchema;
|
|
29
|
+
} & BoundWitnessDivinerPredicate>;
|
|
30
|
+
declare const isBoundWitnessDivinerQueryPayload: (x?: unknown | null) => x is BoundWitnessDivinerQueryPayload;
|
|
31
|
+
|
|
32
|
+
export { BoundWitnessDivinerConfigSchema, BoundWitnessDivinerQuerySchema, BoundWitnessDivinerSchema, isBoundWitnessDivinerQueryPayload };
|
|
33
|
+
export type { BoundWitnessDivinerConfig, BoundWitnessDivinerParams, BoundWitnessDivinerPredicate, BoundWitnessDivinerPredicateFields, BoundWitnessDivinerQueryPayload, WithoutSchemas };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/diviner-boundwitness-model",
|
|
3
|
-
"version": "4.0
|
|
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,23 +21,23 @@
|
|
|
21
21
|
"type": "module",
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
24
|
-
"types": "./dist/
|
|
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/
|
|
30
|
+
"types": "dist/neutral/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@xyo-network/boundwitness-model": "^4.0
|
|
33
|
-
"@xyo-network/diviner-model": "^4.0
|
|
34
|
-
"@xyo-network/diviner-payload-model": "^4.0
|
|
35
|
-
"@xyo-network/module-model": "^4.0
|
|
36
|
-
"@xyo-network/payload-model": "^4.0
|
|
32
|
+
"@xyo-network/boundwitness-model": "^4.1.0",
|
|
33
|
+
"@xyo-network/diviner-model": "^4.1.0",
|
|
34
|
+
"@xyo-network/diviner-payload-model": "^4.1.0",
|
|
35
|
+
"@xyo-network/module-model": "^4.1.0",
|
|
36
|
+
"@xyo-network/payload-model": "^4.1.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@xylabs/ts-scripts-yarn3": "^
|
|
40
|
-
"@xylabs/tsconfig": "^
|
|
39
|
+
"@xylabs/ts-scripts-yarn3": "^7.0.0-rc.20",
|
|
40
|
+
"@xylabs/tsconfig": "^7.0.0-rc.20",
|
|
41
41
|
"typescript": "^5.8.3"
|
|
42
42
|
},
|
|
43
43
|
"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
|