@xyo-network/diviner-payload-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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/diviner-payload-model",
3
- "version": "5.3.22",
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,35 +30,31 @@
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/diviner-model": "~5.3.22",
41
- "@xyo-network/module-model": "~5.3.22",
42
- "@xyo-network/payload-model": "~5.3.22"
39
+ "@xyo-network/diviner-model": "~5.3.24",
40
+ "@xyo-network/module-model": "~5.3.24",
41
+ "@xyo-network/payload-model": "~5.3.24"
43
42
  },
44
43
  "devDependencies": {
45
44
  "@opentelemetry/api": "^1.9.1",
46
45
  "@types/node": "^25.5.0",
47
- "@xylabs/sdk-js": "^5.0.91",
48
- "@xylabs/ts-scripts-common": "~7.6.8",
49
- "@xylabs/ts-scripts-yarn3": "~7.6.8",
50
- "@xylabs/tsconfig": "~7.6.8",
51
- "@xyo-network/diviner-model": "~5.3.22",
52
- "@xyo-network/module-model": "~5.3.22",
53
- "@xyo-network/payload-model": "~5.3.22",
46
+ "@xylabs/sdk-js": "^5.0.93",
47
+ "@xylabs/ts-scripts-common": "~7.6.16",
48
+ "@xylabs/ts-scripts-pnpm": "~7.6.16",
49
+ "@xylabs/tsconfig": "~7.6.16",
54
50
  "acorn": "^8.16.0",
55
51
  "axios": "^1.14.0",
56
- "cosmiconfig": "^9.0.1",
57
- "esbuild": "^0.27.4",
58
- "eslint": "^10.1.0",
59
- "rollup": "^4.60.1",
52
+ "esbuild": "^0.28.0",
60
53
  "typescript": "~5.9.3",
61
- "zod": "^4.3.6"
54
+ "zod": "^4.3.6",
55
+ "@xyo-network/module-model": "~5.3.24",
56
+ "@xyo-network/payload-model": "~5.3.24",
57
+ "@xyo-network/diviner-model": "~5.3.24"
62
58
  },
63
59
  "peerDependencies": {
64
60
  "@xylabs/sdk-js": "^5",
@@ -67,4 +63,4 @@
67
63
  "publishConfig": {
68
64
  "access": "public"
69
65
  }
70
- }
66
+ }
package/src/Config.ts DELETED
@@ -1,19 +0,0 @@
1
- import type { EmptyObject, WithAdditional } from '@xylabs/sdk-js'
2
- import type { DivinerConfig } from '@xyo-network/diviner-model'
3
- import { asSchema, type Schema } from '@xyo-network/payload-model'
4
-
5
- import { PayloadDivinerSchema } from './Schema.ts'
6
-
7
- export const PayloadDivinerConfigSchema = asSchema(`${PayloadDivinerSchema}.config`, true)
8
- export type PayloadDivinerConfigSchema = typeof PayloadDivinerConfigSchema
9
-
10
- export type PayloadDivinerConfig<TAdditional extends EmptyObject | void = void, TSchema extends Schema | void = void> = DivinerConfig<
11
- WithAdditional<
12
- {
13
- indexBatchSize?: number
14
- maxIndexSize?: number
15
- },
16
- TAdditional
17
- >,
18
- TSchema extends void ? Schema : TSchema
19
- >
package/src/Order.ts DELETED
@@ -1 +0,0 @@
1
- export type Order = 'asc' | 'desc'
package/src/Params.ts DELETED
@@ -1,8 +0,0 @@
1
- import type { DivinerParams } from '@xyo-network/diviner-model'
2
- import type { AnyConfigSchema } from '@xyo-network/module-model'
3
-
4
- import type { PayloadDivinerConfig } from './Config.ts'
5
-
6
- export type PayloadDivinerParams<T extends AnyConfigSchema<PayloadDivinerConfig> | void = void> = DivinerParams<
7
- T extends AnyConfigSchema<PayloadDivinerConfig> ? T : AnyConfigSchema<PayloadDivinerConfig>
8
- >
package/src/Predicate.ts DELETED
@@ -1,13 +0,0 @@
1
- import type { EmptyObject } from '@xylabs/sdk-js'
2
- import type { Schema, Sequence } from '@xyo-network/payload-model'
3
-
4
- import type { Order } from './Order.ts'
5
-
6
- export type PayloadDivinerPredicate<T extends EmptyObject = EmptyObject> = Partial<
7
- {
8
- cursor: Sequence
9
- limit: number
10
- order: Order
11
- schemas: Schema[]
12
- } & T
13
- >
package/src/Query.ts DELETED
@@ -1,18 +0,0 @@
1
- import type { EmptyObject } from '@xylabs/sdk-js'
2
- import { AsObjectFactory } from '@xylabs/sdk-js'
3
- import type { Query } from '@xyo-network/payload-model'
4
- import { asSchema, isPayloadOfSchemaType } from '@xyo-network/payload-model'
5
-
6
- import type { PayloadDivinerPredicate } from './Predicate.ts'
7
- import { PayloadDivinerSchema } from './Schema.ts'
8
-
9
- export const PayloadDivinerQuerySchema = asSchema(`${PayloadDivinerSchema}.query`, true)
10
- export type PayloadDivinerQuerySchema = typeof PayloadDivinerQuerySchema
11
-
12
- export type PayloadDivinerQueryPayload<T extends EmptyObject = EmptyObject> = Query<
13
- { schema: PayloadDivinerQuerySchema } & PayloadDivinerPredicate<T>
14
- >
15
-
16
- export const isPayloadDivinerQueryPayload = isPayloadOfSchemaType<PayloadDivinerQueryPayload>(PayloadDivinerQuerySchema)
17
-
18
- export const asPayloadDivinerQueryPayload = AsObjectFactory.create(isPayloadDivinerQueryPayload)
package/src/Schema.ts DELETED
@@ -1,4 +0,0 @@
1
- import { asSchema } from '@xyo-network/payload-model'
2
-
3
- export const PayloadDivinerSchema = asSchema('network.xyo.diviner.payload', true)
4
- export type PayloadDivinerSchema = typeof PayloadDivinerSchema
@@ -1,2 +0,0 @@
1
- /** @deprecated use Order instead */
2
- export type SortDirection = 'asc' | 'desc'
package/src/index.ts DELETED
@@ -1,7 +0,0 @@
1
- export * from './Config.ts'
2
- export * from './Order.ts'
3
- export * from './Params.ts'
4
- export * from './Predicate.ts'
5
- export * from './Query.ts'
6
- export * from './Schema.ts'
7
- export * from './SortDirection.ts'