@xyo-network/diviner-boundwitness-model 5.3.22 → 5.3.24
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/package.json +18 -22
- package/src/Config.ts +0 -13
- package/src/Params.ts +0 -6
- package/src/Predicate.ts +0 -15
- package/src/Query.ts +0 -11
- package/src/Schema.ts +0 -4
- package/src/index.ts +0 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/diviner-boundwitness-model",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.24",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -30,39 +30,35 @@
|
|
|
30
30
|
"types": "dist/neutral/index.d.ts",
|
|
31
31
|
"files": [
|
|
32
32
|
"dist",
|
|
33
|
-
"src",
|
|
34
33
|
"!**/*.bench.*",
|
|
35
34
|
"!**/*.spec.*",
|
|
36
35
|
"!**/*.test.*",
|
|
37
36
|
"README.md"
|
|
38
37
|
],
|
|
39
38
|
"dependencies": {
|
|
40
|
-
"@xyo-network/boundwitness-model": "~5.3.
|
|
41
|
-
"@xyo-network/diviner-model": "~5.3.
|
|
42
|
-
"@xyo-network/diviner-payload-model": "~5.3.
|
|
43
|
-
"@xyo-network/module-model": "~5.3.
|
|
44
|
-
"@xyo-network/payload-model": "~5.3.
|
|
39
|
+
"@xyo-network/boundwitness-model": "~5.3.24",
|
|
40
|
+
"@xyo-network/diviner-model": "~5.3.24",
|
|
41
|
+
"@xyo-network/diviner-payload-model": "~5.3.24",
|
|
42
|
+
"@xyo-network/module-model": "~5.3.24",
|
|
43
|
+
"@xyo-network/payload-model": "~5.3.24"
|
|
45
44
|
},
|
|
46
45
|
"devDependencies": {
|
|
47
46
|
"@opentelemetry/api": "^1.9.1",
|
|
48
47
|
"@types/node": "^25.5.0",
|
|
49
|
-
"@xylabs/sdk-js": "^5.0.
|
|
50
|
-
"@xylabs/ts-scripts-common": "~7.6.
|
|
51
|
-
"@xylabs/ts-scripts-
|
|
52
|
-
"@xylabs/tsconfig": "~7.6.
|
|
53
|
-
"@xyo-network/boundwitness-model": "~5.3.22",
|
|
54
|
-
"@xyo-network/diviner-model": "~5.3.22",
|
|
55
|
-
"@xyo-network/diviner-payload-model": "~5.3.22",
|
|
56
|
-
"@xyo-network/module-model": "~5.3.22",
|
|
57
|
-
"@xyo-network/payload-model": "~5.3.22",
|
|
48
|
+
"@xylabs/sdk-js": "^5.0.93",
|
|
49
|
+
"@xylabs/ts-scripts-common": "~7.6.16",
|
|
50
|
+
"@xylabs/ts-scripts-pnpm": "~7.6.16",
|
|
51
|
+
"@xylabs/tsconfig": "~7.6.16",
|
|
58
52
|
"acorn": "^8.16.0",
|
|
59
53
|
"axios": "^1.14.0",
|
|
60
|
-
"
|
|
61
|
-
"esbuild": "^0.27.4",
|
|
62
|
-
"eslint": "^10.1.0",
|
|
63
|
-
"rollup": "^4.60.1",
|
|
54
|
+
"esbuild": "^0.28.0",
|
|
64
55
|
"typescript": "~5.9.3",
|
|
65
|
-
"zod": "^4.3.6"
|
|
56
|
+
"zod": "^4.3.6",
|
|
57
|
+
"@xyo-network/boundwitness-model": "~5.3.24",
|
|
58
|
+
"@xyo-network/diviner-model": "~5.3.24",
|
|
59
|
+
"@xyo-network/diviner-payload-model": "~5.3.24",
|
|
60
|
+
"@xyo-network/payload-model": "~5.3.24",
|
|
61
|
+
"@xyo-network/module-model": "~5.3.24"
|
|
66
62
|
},
|
|
67
63
|
"peerDependencies": {
|
|
68
64
|
"@xylabs/sdk-js": "^5",
|
|
@@ -71,4 +67,4 @@
|
|
|
71
67
|
"publishConfig": {
|
|
72
68
|
"access": "public"
|
|
73
69
|
}
|
|
74
|
-
}
|
|
70
|
+
}
|
package/src/Config.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { DivinerConfig } from '@xyo-network/diviner-model'
|
|
2
|
-
import { asSchema, type Payload } from '@xyo-network/payload-model'
|
|
3
|
-
|
|
4
|
-
import { BoundWitnessDivinerSchema } from './Schema.ts'
|
|
5
|
-
|
|
6
|
-
export const BoundWitnessDivinerConfigSchema = asSchema(`${BoundWitnessDivinerSchema}.config`, true)
|
|
7
|
-
export type BoundWitnessDivinerConfigSchema = typeof BoundWitnessDivinerConfigSchema
|
|
8
|
-
|
|
9
|
-
export type BoundWitnessDivinerConfig<T extends Payload = Payload> = DivinerConfig<
|
|
10
|
-
T & {
|
|
11
|
-
schema: BoundWitnessDivinerConfigSchema
|
|
12
|
-
}
|
|
13
|
-
>
|
package/src/Params.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { DivinerParams } from '@xyo-network/diviner-model'
|
|
2
|
-
import type { AnyConfigSchema } from '@xyo-network/module-model'
|
|
3
|
-
|
|
4
|
-
import type { BoundWitnessDivinerConfig } from './Config.ts'
|
|
5
|
-
|
|
6
|
-
export type BoundWitnessDivinerParams = DivinerParams<AnyConfigSchema<BoundWitnessDivinerConfig>>
|
package/src/Predicate.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { BoundWitness } from '@xyo-network/boundwitness-model'
|
|
2
|
-
import type { PayloadDivinerPredicate } from '@xyo-network/diviner-payload-model'
|
|
3
|
-
|
|
4
|
-
export type WithoutSchemas<T> = Omit<Omit<T, 'schema'>, 'schemas'>
|
|
5
|
-
|
|
6
|
-
export type BoundWitnessDivinerPredicateFields = {
|
|
7
|
-
destination: string[]
|
|
8
|
-
sourceQuery: string
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
// TODO: Should we just accept "schema"/"schemas" here and infer that they mean "payload_schemas"?
|
|
12
|
-
export type BoundWitnessDivinerPredicate = WithoutSchemas<
|
|
13
|
-
PayloadDivinerPredicate
|
|
14
|
-
& Partial<BoundWitness & BoundWitnessDivinerPredicateFields>
|
|
15
|
-
>
|
package/src/Query.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Query } from '@xyo-network/payload-model'
|
|
2
|
-
import { asSchema, isPayloadOfSchemaType } from '@xyo-network/payload-model'
|
|
3
|
-
|
|
4
|
-
import type { BoundWitnessDivinerPredicate } from './Predicate.ts'
|
|
5
|
-
import { BoundWitnessDivinerSchema } from './Schema.ts'
|
|
6
|
-
|
|
7
|
-
export const BoundWitnessDivinerQuerySchema = asSchema(`${BoundWitnessDivinerSchema}.query`, true)
|
|
8
|
-
export type BoundWitnessDivinerQuerySchema = typeof BoundWitnessDivinerQuerySchema
|
|
9
|
-
|
|
10
|
-
export type BoundWitnessDivinerQueryPayload = Query<{ schema: BoundWitnessDivinerQuerySchema } & BoundWitnessDivinerPredicate>
|
|
11
|
-
export const isBoundWitnessDivinerQueryPayload = isPayloadOfSchemaType<BoundWitnessDivinerQueryPayload>(BoundWitnessDivinerQuerySchema)
|
package/src/Schema.ts
DELETED