@xyo-network/diviner-schema-list 6.1.0 → 7.0.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/Config.d.ts +10 -0
- package/dist/neutral/Config.d.ts.map +1 -1
- package/dist/neutral/Payload.d.ts +10 -6
- package/dist/neutral/Payload.d.ts.map +1 -1
- package/dist/neutral/Query.d.ts +10 -5
- package/dist/neutral/Query.d.ts.map +1 -1
- package/dist/neutral/index.mjs +46 -4
- package/dist/neutral/index.mjs.map +3 -3
- package/dist/neutral/memory.mjs +24 -2
- package/dist/neutral/memory.mjs.map +3 -3
- package/dist/neutral/model.mjs +46 -4
- package/dist/neutral/model.mjs.map +3 -3
- package/package.json +11 -11
package/dist/neutral/Config.d.ts
CHANGED
|
@@ -1,9 +1,19 @@
|
|
|
1
|
+
import { zodAsFactory, zodIsFactory, zodToFactory } from '@xylabs/sdk-js';
|
|
1
2
|
import type { DivinerConfig } from '@xyo-network/diviner-model';
|
|
3
|
+
import { DivinerConfigZod } from '@xyo-network/diviner-model';
|
|
2
4
|
import { type Payload } from '@xyo-network/sdk-protocol-js';
|
|
5
|
+
import * as z from 'zod/mini';
|
|
3
6
|
export declare const SchemaListDivinerConfigSchema: string & {
|
|
4
7
|
readonly __schema: true;
|
|
5
8
|
};
|
|
6
9
|
export type SchemaListDivinerConfigSchema = typeof SchemaListDivinerConfigSchema;
|
|
10
|
+
export declare const SchemaListDivinerConfigZod: z.ZodMiniObject<Omit<(typeof DivinerConfigZod)['shape'], 'schema'> & {
|
|
11
|
+
schema: z.ZodMiniLiteral<SchemaListDivinerConfigSchema>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export type SchemaListDivinerConfigBase = z.infer<typeof SchemaListDivinerConfigZod>;
|
|
14
|
+
export declare const isSchemaListDivinerConfig: ReturnType<typeof zodIsFactory<SchemaListDivinerConfigBase>>;
|
|
15
|
+
export declare const asSchemaListDivinerConfig: ReturnType<typeof zodAsFactory<SchemaListDivinerConfigBase>>;
|
|
16
|
+
export declare const toSchemaListDivinerConfig: ReturnType<typeof zodToFactory<SchemaListDivinerConfigBase>>;
|
|
7
17
|
export type SchemaListDivinerConfig<T extends Payload = Payload> = DivinerConfig<T & {
|
|
8
18
|
schema: SchemaListDivinerConfigSchema;
|
|
9
19
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,EAAY,KAAK,OAAO,EAAE,MAAM,8BAA8B,CAAA;
|
|
1
|
+
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAAE,YAAY,EAAE,YAAY,EACzC,MAAM,gBAAgB,CAAA;AACvB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAC7D,OAAO,EAAY,KAAK,OAAO,EAAE,MAAM,8BAA8B,CAAA;AACrE,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAI7B,eAAO,MAAM,6BAA6B,EAAE,MAAM,GAAG;IACnD,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAA;CAC8B,CAAA;AACvD,MAAM,MAAM,6BAA6B,GAAG,OAAO,6BAA6B,CAAA;AAEhF,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,aAAa,CACtD,IAAI,CAAC,CAAC,OAAO,gBAAgB,CAAC,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC,GAAG;IACnD,MAAM,EAAE,CAAC,CAAC,cAAc,CAAC,6BAA6B,CAAC,CAAA;CACxD,EACD,CAAC,CAAC,IAAI,CAAC,MAAM,CACqE,CAAA;AAEpF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAA;AAEpF,eAAO,MAAM,yBAAyB,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,2BAA2B,CAAC,CAA4C,CAAA;AAC/I,eAAO,MAAM,yBAAyB,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,2BAA2B,CAAC,CAAyE,CAAA;AAC5K,eAAO,MAAM,yBAAyB,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,2BAA2B,CAAC,CAAyE,CAAA;AAE5K,MAAM,MAAM,uBAAuB,CAAC,CAAC,SAAS,OAAO,GAAG,OAAO,IAAI,aAAa,CAC9E,CAAC,GAAG;IACF,MAAM,EAAE,6BAA6B,CAAA;CACtC,CACF,CAAA"}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { zodAsFactory, zodIsFactory, zodToFactory } from '@xylabs/sdk-js';
|
|
2
|
+
import * as z from 'zod/mini';
|
|
2
3
|
import { SchemaListDivinerSchema } from './Schema.ts';
|
|
3
|
-
export
|
|
4
|
-
schema: SchemaListDivinerSchema
|
|
5
|
-
schemas: string
|
|
6
|
-
}>;
|
|
7
|
-
export
|
|
4
|
+
export declare const SchemaListPayloadZod: z.ZodMiniObject<{
|
|
5
|
+
schema: z.ZodMiniLiteral<SchemaListDivinerSchema>;
|
|
6
|
+
schemas: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export type SchemaListPayload = z.infer<typeof SchemaListPayloadZod>;
|
|
9
|
+
export declare const isSchemaListPayload: ReturnType<typeof zodIsFactory<SchemaListPayload>>;
|
|
10
|
+
export declare const asSchemaListPayload: ReturnType<typeof zodAsFactory<SchemaListPayload>>;
|
|
11
|
+
export declare const toSchemaListPayload: ReturnType<typeof zodToFactory<SchemaListPayload>>;
|
|
8
12
|
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAAE,YAAY,EAAE,YAAY,EACzC,MAAM,gBAAgB,CAAA;AAEvB,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA;AAErD,eAAO,MAAM,oBAAoB,EAAE,CAAC,CAAC,aAAa,CAAC;IACjD,MAAM,EAAE,CAAC,CAAC,cAAc,CAAC,uBAAuB,CAAC,CAAA;IACjD,OAAO,EAAE,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAA;CACjD,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,CAA2F,CAAA;AAE3G,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEpE,eAAO,MAAM,mBAAmB,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,iBAAiB,CAAC,CAAsC,CAAA;AACzH,eAAO,MAAM,mBAAmB,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,iBAAiB,CAAC,CAA6D,CAAA;AAChJ,eAAO,MAAM,mBAAmB,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,iBAAiB,CAAC,CAA6D,CAAA"}
|
package/dist/neutral/Query.d.ts
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { zodAsFactory, zodIsFactory, zodToFactory } from '@xylabs/sdk-js';
|
|
2
|
+
import { QueryFieldsZod } from '@xyo-network/sdk-protocol-js';
|
|
3
|
+
import * as z from 'zod/mini';
|
|
2
4
|
export declare const SchemaListQuerySchema: string & {
|
|
3
5
|
readonly __schema: true;
|
|
4
6
|
};
|
|
5
7
|
export type SchemaListQuerySchema = typeof SchemaListQuerySchema;
|
|
6
|
-
export
|
|
7
|
-
schema: SchemaListQuerySchema
|
|
8
|
-
}>;
|
|
9
|
-
export
|
|
8
|
+
export declare const SchemaListQueryPayloadZod: z.ZodMiniObject<{
|
|
9
|
+
schema: z.ZodMiniLiteral<SchemaListQuerySchema>;
|
|
10
|
+
} & (typeof QueryFieldsZod)['shape'], z.core.$strip>;
|
|
11
|
+
export type SchemaListQueryPayload = z.infer<typeof SchemaListQueryPayloadZod>;
|
|
12
|
+
export declare const isSchemaListQueryPayload: ReturnType<typeof zodIsFactory<SchemaListQueryPayload>>;
|
|
13
|
+
export declare const asSchemaListQueryPayload: ReturnType<typeof zodAsFactory<SchemaListQueryPayload>>;
|
|
14
|
+
export declare const toSchemaListQueryPayload: ReturnType<typeof zodToFactory<SchemaListQueryPayload>>;
|
|
10
15
|
//# sourceMappingURL=Query.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../src/Query.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../src/Query.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAAE,YAAY,EAAE,YAAY,EACzC,MAAM,gBAAgB,CAAA;AACvB,OAAO,EACyB,cAAc,EAC7C,MAAM,8BAA8B,CAAA;AACrC,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAI7B,eAAO,MAAM,qBAAqB,EAAE,MAAM,GAAG;IAC3C,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAA;CAC6B,CAAA;AACtD,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAA;AAEhE,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,aAAa,CACnD;IAAE,MAAM,EAAE,CAAC,CAAC,cAAc,CAAC,qBAAqB,CAAC,CAAA;CAAE,GACnD,CAAC,OAAO,cAAc,CAAC,CAAC,OAAO,CAAC,EAClC,CAAC,CAAC,IAAI,CAAC,MAAM,CACqE,CAAA;AAEpF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAE9E,eAAO,MAAM,wBAAwB,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,sBAAsB,CAAC,CAA2C,CAAA;AACxI,eAAO,MAAM,wBAAwB,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,sBAAsB,CAAC,CAAuE,CAAA;AACpK,eAAO,MAAM,wBAAwB,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,sBAAsB,CAAC,CAAuE,CAAA"}
|
package/dist/neutral/index.mjs
CHANGED
|
@@ -11,7 +11,14 @@ import {
|
|
|
11
11
|
} from "@xyo-network/sdk-protocol-js";
|
|
12
12
|
|
|
13
13
|
// src/Config.ts
|
|
14
|
+
import {
|
|
15
|
+
zodAsFactory,
|
|
16
|
+
zodIsFactory,
|
|
17
|
+
zodToFactory
|
|
18
|
+
} from "@xylabs/sdk-js";
|
|
19
|
+
import { DivinerConfigZod } from "@xyo-network/diviner-model";
|
|
14
20
|
import { asSchema as asSchema2 } from "@xyo-network/sdk-protocol-js";
|
|
21
|
+
import * as z from "zod/mini";
|
|
15
22
|
|
|
16
23
|
// src/Schema.ts
|
|
17
24
|
import { asSchema } from "@xyo-network/sdk-protocol-js";
|
|
@@ -19,13 +26,28 @@ var SchemaListDivinerSchema = asSchema("network.xyo.diviner.schema.list", true);
|
|
|
19
26
|
|
|
20
27
|
// src/Config.ts
|
|
21
28
|
var SchemaListDivinerConfigSchema = asSchema2(`${SchemaListDivinerSchema}.config`, true);
|
|
29
|
+
var SchemaListDivinerConfigZod = z.extend(DivinerConfigZod, { schema: z.literal(SchemaListDivinerConfigSchema) });
|
|
30
|
+
var isSchemaListDivinerConfig = zodIsFactory(SchemaListDivinerConfigZod);
|
|
31
|
+
var asSchemaListDivinerConfig = zodAsFactory(SchemaListDivinerConfigZod, "asSchemaListDivinerConfig");
|
|
32
|
+
var toSchemaListDivinerConfig = zodToFactory(SchemaListDivinerConfigZod, "toSchemaListDivinerConfig");
|
|
22
33
|
|
|
23
34
|
// src/Query.ts
|
|
24
35
|
import {
|
|
25
|
-
|
|
36
|
+
zodAsFactory as zodAsFactory2,
|
|
37
|
+
zodIsFactory as zodIsFactory2,
|
|
38
|
+
zodToFactory as zodToFactory2
|
|
39
|
+
} from "@xylabs/sdk-js";
|
|
40
|
+
import {
|
|
41
|
+
asSchema as asSchema3,
|
|
42
|
+
PayloadZodOfSchema,
|
|
43
|
+
QueryFieldsZod
|
|
26
44
|
} from "@xyo-network/sdk-protocol-js";
|
|
45
|
+
import * as z2 from "zod/mini";
|
|
27
46
|
var SchemaListQuerySchema = asSchema3(`${SchemaListDivinerSchema}.query`, true);
|
|
28
|
-
var
|
|
47
|
+
var SchemaListQueryPayloadZod = z2.extend(PayloadZodOfSchema(SchemaListQuerySchema), { ...QueryFieldsZod.shape });
|
|
48
|
+
var isSchemaListQueryPayload = zodIsFactory2(SchemaListQueryPayloadZod);
|
|
49
|
+
var asSchemaListQueryPayload = zodAsFactory2(SchemaListQueryPayloadZod, "asSchemaListQueryPayload");
|
|
50
|
+
var toSchemaListQueryPayload = zodToFactory2(SchemaListQueryPayloadZod, "toSchemaListQueryPayload");
|
|
29
51
|
|
|
30
52
|
// src/MemorySchemaListDiviner.ts
|
|
31
53
|
var MemorySchemaListDiviner = class extends SchemaListDiviner {
|
|
@@ -51,14 +73,34 @@ var MemorySchemaListDiviner = class extends SchemaListDiviner {
|
|
|
51
73
|
};
|
|
52
74
|
|
|
53
75
|
// src/Payload.ts
|
|
54
|
-
|
|
76
|
+
import {
|
|
77
|
+
zodAsFactory as zodAsFactory3,
|
|
78
|
+
zodIsFactory as zodIsFactory3,
|
|
79
|
+
zodToFactory as zodToFactory3
|
|
80
|
+
} from "@xylabs/sdk-js";
|
|
81
|
+
import { PayloadZodOfSchema as PayloadZodOfSchema2 } from "@xyo-network/sdk-protocol-js";
|
|
82
|
+
import * as z3 from "zod/mini";
|
|
83
|
+
var SchemaListPayloadZod = z3.extend(PayloadZodOfSchema2(SchemaListDivinerSchema), { schemas: z3.array(z3.string()) });
|
|
84
|
+
var isSchemaListPayload = zodIsFactory3(SchemaListPayloadZod);
|
|
85
|
+
var asSchemaListPayload = zodAsFactory3(SchemaListPayloadZod, "asSchemaListPayload");
|
|
86
|
+
var toSchemaListPayload = zodToFactory3(SchemaListPayloadZod, "toSchemaListPayload");
|
|
55
87
|
export {
|
|
56
88
|
MemorySchemaListDiviner,
|
|
57
89
|
SchemaListDiviner,
|
|
58
90
|
SchemaListDivinerConfigSchema,
|
|
91
|
+
SchemaListDivinerConfigZod,
|
|
59
92
|
SchemaListDivinerSchema,
|
|
93
|
+
SchemaListPayloadZod,
|
|
94
|
+
SchemaListQueryPayloadZod,
|
|
60
95
|
SchemaListQuerySchema,
|
|
96
|
+
asSchemaListDivinerConfig,
|
|
97
|
+
asSchemaListPayload,
|
|
98
|
+
asSchemaListQueryPayload,
|
|
99
|
+
isSchemaListDivinerConfig,
|
|
61
100
|
isSchemaListPayload,
|
|
62
|
-
isSchemaListQueryPayload
|
|
101
|
+
isSchemaListQueryPayload,
|
|
102
|
+
toSchemaListDivinerConfig,
|
|
103
|
+
toSchemaListPayload,
|
|
104
|
+
toSchemaListQueryPayload
|
|
63
105
|
};
|
|
64
106
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/SchemaListDiviner.ts", "../../src/MemorySchemaListDiviner.ts", "../../src/Config.ts", "../../src/Schema.ts", "../../src/Query.ts", "../../src/Payload.ts"],
|
|
4
|
-
"sourcesContent": ["import { AbstractDiviner } from '@xyo-network/diviner-abstract'\nimport type { DivinerInstance, DivinerModuleEventData } from '@xyo-network/diviner-model'\nimport type { Payload } from '@xyo-network/sdk-protocol-js'\n\nimport type { SchemaListDivinerParams } from './Params.ts'\n\nexport abstract class SchemaListDiviner<\n TParams extends SchemaListDivinerParams = SchemaListDivinerParams,\n TIn extends Payload = Payload,\n TOut extends Payload = Payload,\n TEventData extends DivinerModuleEventData<DivinerInstance<TParams, TIn, TOut>, TIn, TOut> = DivinerModuleEventData<\n DivinerInstance<TParams, TIn, TOut>,\n TIn,\n TOut\n >,\n> extends AbstractDiviner<TParams, TIn, TOut, TEventData> {}\n", "import { assertEx, distinct } from '@xylabs/sdk-js'\nimport { isBoundWitness, PayloadBuilder } from '@xyo-network/sdk-protocol-js'\nimport {\n isStorageMeta, type Payload, type Schema, type XyoAddress,\n} from '@xyo-network/sdk-protocol-js'\n\nimport { SchemaListDivinerConfigSchema } from './Config.ts'\nimport type { SchemaListDivinerParams } from './Params.ts'\nimport type { SchemaListPayload } from './Payload.ts'\nimport type { SchemaListQueryPayload } from './Query.ts'\nimport { isSchemaListQueryPayload } from './Query.ts'\nimport { SchemaListDivinerSchema } from './Schema.ts'\nimport { SchemaListDiviner } from './SchemaListDiviner.ts'\n\nexport class MemorySchemaListDiviner<TParams extends SchemaListDivinerParams = SchemaListDivinerParams> extends SchemaListDiviner<TParams> {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, SchemaListDivinerConfigSchema]\n static override readonly defaultConfigSchema: Schema = SchemaListDivinerConfigSchema\n\n protected async divineAddress(address: XyoAddress): Promise<string[]> {\n const archivist = assertEx(await this.archivistInstance(), () => 'Unable to resolve archivist')\n const filtered = (await archivist.next({ limit: 20_000 }))\n .filter(x => isBoundWitness(x) && isStorageMeta(x))\n .filter(bw => bw.addresses.includes(address))\n return filtered.flatMap(bw => bw.payload_schemas).filter(distinct)\n }\n\n protected async divineAllAddresses(): Promise<string[]> {\n const archivist = assertEx(await this.archivistInstance(), () => 'Unable to resolve archivist')\n const all = await archivist.next({ limit: 20_000 })\n return all.map(payload => payload.schema).filter(distinct)\n }\n\n protected override async divineHandler(payloads?: Payload[]): Promise<Payload[]> {\n const query = payloads?.find<SchemaListQueryPayload>(isSchemaListQueryPayload)\n if (!query) return []\n const addresses\n = query?.address\n ? Array.isArray(query?.address)\n ? query.address\n : [query.address]\n : undefined\n const results = addresses ? await Promise.all(addresses.map(address => this.divineAddress(address))) : [await this.divineAllAddresses()]\n return results.map(schemas => new PayloadBuilder<SchemaListPayload>({ schema: SchemaListDivinerSchema }).fields({ schemas }).build())\n }\n}\n", "import type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema, type Payload } from '@xyo-network/sdk-protocol-js'\n\nimport { SchemaListDivinerSchema } from './Schema.ts'\n\nexport const SchemaListDivinerConfigSchema: string & {\n readonly __schema: true\n} = asSchema(`${SchemaListDivinerSchema}.config`, true)\nexport type SchemaListDivinerConfigSchema = typeof SchemaListDivinerConfigSchema\n\nexport type SchemaListDivinerConfig<T extends Payload = Payload> = DivinerConfig<\n T & {\n schema: SchemaListDivinerConfigSchema\n }\n>\n", "import { asSchema } from '@xyo-network/sdk-protocol-js'\n\nexport const SchemaListDivinerSchema: 'network.xyo.diviner.schema.list' & {\n readonly __schema: true\n} = asSchema('network.xyo.diviner.schema.list', true)\nexport type SchemaListDivinerSchema = typeof SchemaListDivinerSchema\n", "import {\n
|
|
5
|
-
"mappings": ";AAAA,SAAS,uBAAuB;AAMzB,IAAe,oBAAf,cASG,gBAAgD;AAAC;;;ACf3D,SAAS,UAAU,gBAAgB;AACnC,SAAS,gBAAgB,sBAAsB;AAC/C;AAAA,EACE;AAAA,OACK;;;
|
|
6
|
-
"names": ["asSchema", "asSchema", "asSchema", "asSchema"]
|
|
4
|
+
"sourcesContent": ["import { AbstractDiviner } from '@xyo-network/diviner-abstract'\nimport type { DivinerInstance, DivinerModuleEventData } from '@xyo-network/diviner-model'\nimport type { Payload } from '@xyo-network/sdk-protocol-js'\n\nimport type { SchemaListDivinerParams } from './Params.ts'\n\nexport abstract class SchemaListDiviner<\n TParams extends SchemaListDivinerParams = SchemaListDivinerParams,\n TIn extends Payload = Payload,\n TOut extends Payload = Payload,\n TEventData extends DivinerModuleEventData<DivinerInstance<TParams, TIn, TOut>, TIn, TOut> = DivinerModuleEventData<\n DivinerInstance<TParams, TIn, TOut>,\n TIn,\n TOut\n >,\n> extends AbstractDiviner<TParams, TIn, TOut, TEventData> {}\n", "import { assertEx, distinct } from '@xylabs/sdk-js'\nimport { isBoundWitness, PayloadBuilder } from '@xyo-network/sdk-protocol-js'\nimport {\n isStorageMeta, type Payload, type Schema, type XyoAddress,\n} from '@xyo-network/sdk-protocol-js'\n\nimport { SchemaListDivinerConfigSchema } from './Config.ts'\nimport type { SchemaListDivinerParams } from './Params.ts'\nimport type { SchemaListPayload } from './Payload.ts'\nimport type { SchemaListQueryPayload } from './Query.ts'\nimport { isSchemaListQueryPayload } from './Query.ts'\nimport { SchemaListDivinerSchema } from './Schema.ts'\nimport { SchemaListDiviner } from './SchemaListDiviner.ts'\n\nexport class MemorySchemaListDiviner<TParams extends SchemaListDivinerParams = SchemaListDivinerParams> extends SchemaListDiviner<TParams> {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, SchemaListDivinerConfigSchema]\n static override readonly defaultConfigSchema: Schema = SchemaListDivinerConfigSchema\n\n protected async divineAddress(address: XyoAddress): Promise<string[]> {\n const archivist = assertEx(await this.archivistInstance(), () => 'Unable to resolve archivist')\n const filtered = (await archivist.next({ limit: 20_000 }))\n .filter(x => isBoundWitness(x) && isStorageMeta(x))\n .filter(bw => bw.addresses.includes(address))\n return filtered.flatMap(bw => bw.payload_schemas).filter(distinct)\n }\n\n protected async divineAllAddresses(): Promise<string[]> {\n const archivist = assertEx(await this.archivistInstance(), () => 'Unable to resolve archivist')\n const all = await archivist.next({ limit: 20_000 })\n return all.map(payload => payload.schema).filter(distinct)\n }\n\n protected override async divineHandler(payloads?: Payload[]): Promise<Payload[]> {\n const query = payloads?.find<SchemaListQueryPayload>(isSchemaListQueryPayload)\n if (!query) return []\n const addresses\n = query?.address\n ? Array.isArray(query?.address)\n ? query.address\n : [query.address]\n : undefined\n const results = addresses ? await Promise.all(addresses.map(address => this.divineAddress(address))) : [await this.divineAllAddresses()]\n return results.map(schemas => new PayloadBuilder<SchemaListPayload>({ schema: SchemaListDivinerSchema }).fields({ schemas }).build())\n }\n}\n", "import {\n zodAsFactory, zodIsFactory, zodToFactory,\n} from '@xylabs/sdk-js'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { DivinerConfigZod } from '@xyo-network/diviner-model'\nimport { asSchema, type Payload } from '@xyo-network/sdk-protocol-js'\nimport * as z from 'zod/mini'\n\nimport { SchemaListDivinerSchema } from './Schema.ts'\n\nexport const SchemaListDivinerConfigSchema: string & {\n readonly __schema: true\n} = asSchema(`${SchemaListDivinerSchema}.config`, true)\nexport type SchemaListDivinerConfigSchema = typeof SchemaListDivinerConfigSchema\n\nexport const SchemaListDivinerConfigZod: z.ZodMiniObject<\n Omit<(typeof DivinerConfigZod)['shape'], 'schema'> & {\n schema: z.ZodMiniLiteral<SchemaListDivinerConfigSchema>\n },\n z.core.$strip\n> = z.extend(DivinerConfigZod, { schema: z.literal(SchemaListDivinerConfigSchema) })\n\nexport type SchemaListDivinerConfigBase = z.infer<typeof SchemaListDivinerConfigZod>\n\nexport const isSchemaListDivinerConfig: ReturnType<typeof zodIsFactory<SchemaListDivinerConfigBase>> = zodIsFactory(SchemaListDivinerConfigZod)\nexport const asSchemaListDivinerConfig: ReturnType<typeof zodAsFactory<SchemaListDivinerConfigBase>> = zodAsFactory(SchemaListDivinerConfigZod, 'asSchemaListDivinerConfig')\nexport const toSchemaListDivinerConfig: ReturnType<typeof zodToFactory<SchemaListDivinerConfigBase>> = zodToFactory(SchemaListDivinerConfigZod, 'toSchemaListDivinerConfig')\n\nexport type SchemaListDivinerConfig<T extends Payload = Payload> = DivinerConfig<\n T & {\n schema: SchemaListDivinerConfigSchema\n }\n>\n", "import { asSchema } from '@xyo-network/sdk-protocol-js'\n\nexport const SchemaListDivinerSchema: 'network.xyo.diviner.schema.list' & {\n readonly __schema: true\n} = asSchema('network.xyo.diviner.schema.list', true)\nexport type SchemaListDivinerSchema = typeof SchemaListDivinerSchema\n", "import {\n zodAsFactory, zodIsFactory, zodToFactory,\n} from '@xylabs/sdk-js'\nimport {\n asSchema, PayloadZodOfSchema, QueryFieldsZod,\n} from '@xyo-network/sdk-protocol-js'\nimport * as z from 'zod/mini'\n\nimport { SchemaListDivinerSchema } from './Schema.ts'\n\nexport const SchemaListQuerySchema: string & {\n readonly __schema: true\n} = asSchema(`${SchemaListDivinerSchema}.query`, true)\nexport type SchemaListQuerySchema = typeof SchemaListQuerySchema\n\nexport const SchemaListQueryPayloadZod: z.ZodMiniObject<\n & { schema: z.ZodMiniLiteral<SchemaListQuerySchema> }\n & (typeof QueryFieldsZod)['shape'],\n z.core.$strip\n> = z.extend(PayloadZodOfSchema(SchemaListQuerySchema), { ...QueryFieldsZod.shape })\n\nexport type SchemaListQueryPayload = z.infer<typeof SchemaListQueryPayloadZod>\n\nexport const isSchemaListQueryPayload: ReturnType<typeof zodIsFactory<SchemaListQueryPayload>> = zodIsFactory(SchemaListQueryPayloadZod)\nexport const asSchemaListQueryPayload: ReturnType<typeof zodAsFactory<SchemaListQueryPayload>> = zodAsFactory(SchemaListQueryPayloadZod, 'asSchemaListQueryPayload')\nexport const toSchemaListQueryPayload: ReturnType<typeof zodToFactory<SchemaListQueryPayload>> = zodToFactory(SchemaListQueryPayloadZod, 'toSchemaListQueryPayload')\n", "import {\n zodAsFactory, zodIsFactory, zodToFactory,\n} from '@xylabs/sdk-js'\nimport { PayloadZodOfSchema } from '@xyo-network/sdk-protocol-js'\nimport * as z from 'zod/mini'\n\nimport { SchemaListDivinerSchema } from './Schema.ts'\n\nexport const SchemaListPayloadZod: z.ZodMiniObject<{\n schema: z.ZodMiniLiteral<SchemaListDivinerSchema>\n schemas: z.ZodMiniArray<z.ZodMiniString<string>>\n}, z.core.$strip> = z.extend(PayloadZodOfSchema(SchemaListDivinerSchema), { schemas: z.array(z.string()) })\n\nexport type SchemaListPayload = z.infer<typeof SchemaListPayloadZod>\n\nexport const isSchemaListPayload: ReturnType<typeof zodIsFactory<SchemaListPayload>> = zodIsFactory(SchemaListPayloadZod)\nexport const asSchemaListPayload: ReturnType<typeof zodAsFactory<SchemaListPayload>> = zodAsFactory(SchemaListPayloadZod, 'asSchemaListPayload')\nexport const toSchemaListPayload: ReturnType<typeof zodToFactory<SchemaListPayload>> = zodToFactory(SchemaListPayloadZod, 'toSchemaListPayload')\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": ["asSchema", "asSchema", "zodAsFactory", "zodIsFactory", "zodToFactory", "asSchema", "z", "asSchema", "zodIsFactory", "zodAsFactory", "zodToFactory", "zodAsFactory", "zodIsFactory", "zodToFactory", "PayloadZodOfSchema", "z", "PayloadZodOfSchema", "zodIsFactory", "zodAsFactory", "zodToFactory"]
|
|
7
7
|
}
|
package/dist/neutral/memory.mjs
CHANGED
|
@@ -6,7 +6,14 @@ import {
|
|
|
6
6
|
} from "@xyo-network/sdk-protocol-js";
|
|
7
7
|
|
|
8
8
|
// src/Config.ts
|
|
9
|
+
import {
|
|
10
|
+
zodAsFactory,
|
|
11
|
+
zodIsFactory,
|
|
12
|
+
zodToFactory
|
|
13
|
+
} from "@xylabs/sdk-js";
|
|
14
|
+
import { DivinerConfigZod } from "@xyo-network/diviner-model";
|
|
9
15
|
import { asSchema as asSchema2 } from "@xyo-network/sdk-protocol-js";
|
|
16
|
+
import * as z from "zod/mini";
|
|
10
17
|
|
|
11
18
|
// src/Schema.ts
|
|
12
19
|
import { asSchema } from "@xyo-network/sdk-protocol-js";
|
|
@@ -14,13 +21,28 @@ var SchemaListDivinerSchema = asSchema("network.xyo.diviner.schema.list", true);
|
|
|
14
21
|
|
|
15
22
|
// src/Config.ts
|
|
16
23
|
var SchemaListDivinerConfigSchema = asSchema2(`${SchemaListDivinerSchema}.config`, true);
|
|
24
|
+
var SchemaListDivinerConfigZod = z.extend(DivinerConfigZod, { schema: z.literal(SchemaListDivinerConfigSchema) });
|
|
25
|
+
var isSchemaListDivinerConfig = zodIsFactory(SchemaListDivinerConfigZod);
|
|
26
|
+
var asSchemaListDivinerConfig = zodAsFactory(SchemaListDivinerConfigZod, "asSchemaListDivinerConfig");
|
|
27
|
+
var toSchemaListDivinerConfig = zodToFactory(SchemaListDivinerConfigZod, "toSchemaListDivinerConfig");
|
|
17
28
|
|
|
18
29
|
// src/Query.ts
|
|
19
30
|
import {
|
|
20
|
-
|
|
31
|
+
zodAsFactory as zodAsFactory2,
|
|
32
|
+
zodIsFactory as zodIsFactory2,
|
|
33
|
+
zodToFactory as zodToFactory2
|
|
34
|
+
} from "@xylabs/sdk-js";
|
|
35
|
+
import {
|
|
36
|
+
asSchema as asSchema3,
|
|
37
|
+
PayloadZodOfSchema,
|
|
38
|
+
QueryFieldsZod
|
|
21
39
|
} from "@xyo-network/sdk-protocol-js";
|
|
40
|
+
import * as z2 from "zod/mini";
|
|
22
41
|
var SchemaListQuerySchema = asSchema3(`${SchemaListDivinerSchema}.query`, true);
|
|
23
|
-
var
|
|
42
|
+
var SchemaListQueryPayloadZod = z2.extend(PayloadZodOfSchema(SchemaListQuerySchema), { ...QueryFieldsZod.shape });
|
|
43
|
+
var isSchemaListQueryPayload = zodIsFactory2(SchemaListQueryPayloadZod);
|
|
44
|
+
var asSchemaListQueryPayload = zodAsFactory2(SchemaListQueryPayloadZod, "asSchemaListQueryPayload");
|
|
45
|
+
var toSchemaListQueryPayload = zodToFactory2(SchemaListQueryPayloadZod, "toSchemaListQueryPayload");
|
|
24
46
|
|
|
25
47
|
// src/SchemaListDiviner.ts
|
|
26
48
|
import { AbstractDiviner } from "@xyo-network/diviner-abstract";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/MemorySchemaListDiviner.ts", "../../src/Config.ts", "../../src/Schema.ts", "../../src/Query.ts", "../../src/SchemaListDiviner.ts"],
|
|
4
|
-
"sourcesContent": ["import { assertEx, distinct } from '@xylabs/sdk-js'\nimport { isBoundWitness, PayloadBuilder } from '@xyo-network/sdk-protocol-js'\nimport {\n isStorageMeta, type Payload, type Schema, type XyoAddress,\n} from '@xyo-network/sdk-protocol-js'\n\nimport { SchemaListDivinerConfigSchema } from './Config.ts'\nimport type { SchemaListDivinerParams } from './Params.ts'\nimport type { SchemaListPayload } from './Payload.ts'\nimport type { SchemaListQueryPayload } from './Query.ts'\nimport { isSchemaListQueryPayload } from './Query.ts'\nimport { SchemaListDivinerSchema } from './Schema.ts'\nimport { SchemaListDiviner } from './SchemaListDiviner.ts'\n\nexport class MemorySchemaListDiviner<TParams extends SchemaListDivinerParams = SchemaListDivinerParams> extends SchemaListDiviner<TParams> {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, SchemaListDivinerConfigSchema]\n static override readonly defaultConfigSchema: Schema = SchemaListDivinerConfigSchema\n\n protected async divineAddress(address: XyoAddress): Promise<string[]> {\n const archivist = assertEx(await this.archivistInstance(), () => 'Unable to resolve archivist')\n const filtered = (await archivist.next({ limit: 20_000 }))\n .filter(x => isBoundWitness(x) && isStorageMeta(x))\n .filter(bw => bw.addresses.includes(address))\n return filtered.flatMap(bw => bw.payload_schemas).filter(distinct)\n }\n\n protected async divineAllAddresses(): Promise<string[]> {\n const archivist = assertEx(await this.archivistInstance(), () => 'Unable to resolve archivist')\n const all = await archivist.next({ limit: 20_000 })\n return all.map(payload => payload.schema).filter(distinct)\n }\n\n protected override async divineHandler(payloads?: Payload[]): Promise<Payload[]> {\n const query = payloads?.find<SchemaListQueryPayload>(isSchemaListQueryPayload)\n if (!query) return []\n const addresses\n = query?.address\n ? Array.isArray(query?.address)\n ? query.address\n : [query.address]\n : undefined\n const results = addresses ? await Promise.all(addresses.map(address => this.divineAddress(address))) : [await this.divineAllAddresses()]\n return results.map(schemas => new PayloadBuilder<SchemaListPayload>({ schema: SchemaListDivinerSchema }).fields({ schemas }).build())\n }\n}\n", "import type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema, type Payload } from '@xyo-network/sdk-protocol-js'\n\nimport { SchemaListDivinerSchema } from './Schema.ts'\n\nexport const SchemaListDivinerConfigSchema: string & {\n readonly __schema: true\n} = asSchema(`${SchemaListDivinerSchema}.config`, true)\nexport type SchemaListDivinerConfigSchema = typeof SchemaListDivinerConfigSchema\n\nexport type SchemaListDivinerConfig<T extends Payload = Payload> = DivinerConfig<\n T & {\n schema: SchemaListDivinerConfigSchema\n }\n>\n", "import { asSchema } from '@xyo-network/sdk-protocol-js'\n\nexport const SchemaListDivinerSchema: 'network.xyo.diviner.schema.list' & {\n readonly __schema: true\n} = asSchema('network.xyo.diviner.schema.list', true)\nexport type SchemaListDivinerSchema = typeof SchemaListDivinerSchema\n", "import {\n
|
|
5
|
-
"mappings": ";AAAA,SAAS,UAAU,gBAAgB;AACnC,SAAS,gBAAgB,sBAAsB;AAC/C;AAAA,EACE;AAAA,OACK;;;
|
|
6
|
-
"names": ["asSchema", "asSchema", "asSchema", "asSchema"]
|
|
4
|
+
"sourcesContent": ["import { assertEx, distinct } from '@xylabs/sdk-js'\nimport { isBoundWitness, PayloadBuilder } from '@xyo-network/sdk-protocol-js'\nimport {\n isStorageMeta, type Payload, type Schema, type XyoAddress,\n} from '@xyo-network/sdk-protocol-js'\n\nimport { SchemaListDivinerConfigSchema } from './Config.ts'\nimport type { SchemaListDivinerParams } from './Params.ts'\nimport type { SchemaListPayload } from './Payload.ts'\nimport type { SchemaListQueryPayload } from './Query.ts'\nimport { isSchemaListQueryPayload } from './Query.ts'\nimport { SchemaListDivinerSchema } from './Schema.ts'\nimport { SchemaListDiviner } from './SchemaListDiviner.ts'\n\nexport class MemorySchemaListDiviner<TParams extends SchemaListDivinerParams = SchemaListDivinerParams> extends SchemaListDiviner<TParams> {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, SchemaListDivinerConfigSchema]\n static override readonly defaultConfigSchema: Schema = SchemaListDivinerConfigSchema\n\n protected async divineAddress(address: XyoAddress): Promise<string[]> {\n const archivist = assertEx(await this.archivistInstance(), () => 'Unable to resolve archivist')\n const filtered = (await archivist.next({ limit: 20_000 }))\n .filter(x => isBoundWitness(x) && isStorageMeta(x))\n .filter(bw => bw.addresses.includes(address))\n return filtered.flatMap(bw => bw.payload_schemas).filter(distinct)\n }\n\n protected async divineAllAddresses(): Promise<string[]> {\n const archivist = assertEx(await this.archivistInstance(), () => 'Unable to resolve archivist')\n const all = await archivist.next({ limit: 20_000 })\n return all.map(payload => payload.schema).filter(distinct)\n }\n\n protected override async divineHandler(payloads?: Payload[]): Promise<Payload[]> {\n const query = payloads?.find<SchemaListQueryPayload>(isSchemaListQueryPayload)\n if (!query) return []\n const addresses\n = query?.address\n ? Array.isArray(query?.address)\n ? query.address\n : [query.address]\n : undefined\n const results = addresses ? await Promise.all(addresses.map(address => this.divineAddress(address))) : [await this.divineAllAddresses()]\n return results.map(schemas => new PayloadBuilder<SchemaListPayload>({ schema: SchemaListDivinerSchema }).fields({ schemas }).build())\n }\n}\n", "import {\n zodAsFactory, zodIsFactory, zodToFactory,\n} from '@xylabs/sdk-js'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { DivinerConfigZod } from '@xyo-network/diviner-model'\nimport { asSchema, type Payload } from '@xyo-network/sdk-protocol-js'\nimport * as z from 'zod/mini'\n\nimport { SchemaListDivinerSchema } from './Schema.ts'\n\nexport const SchemaListDivinerConfigSchema: string & {\n readonly __schema: true\n} = asSchema(`${SchemaListDivinerSchema}.config`, true)\nexport type SchemaListDivinerConfigSchema = typeof SchemaListDivinerConfigSchema\n\nexport const SchemaListDivinerConfigZod: z.ZodMiniObject<\n Omit<(typeof DivinerConfigZod)['shape'], 'schema'> & {\n schema: z.ZodMiniLiteral<SchemaListDivinerConfigSchema>\n },\n z.core.$strip\n> = z.extend(DivinerConfigZod, { schema: z.literal(SchemaListDivinerConfigSchema) })\n\nexport type SchemaListDivinerConfigBase = z.infer<typeof SchemaListDivinerConfigZod>\n\nexport const isSchemaListDivinerConfig: ReturnType<typeof zodIsFactory<SchemaListDivinerConfigBase>> = zodIsFactory(SchemaListDivinerConfigZod)\nexport const asSchemaListDivinerConfig: ReturnType<typeof zodAsFactory<SchemaListDivinerConfigBase>> = zodAsFactory(SchemaListDivinerConfigZod, 'asSchemaListDivinerConfig')\nexport const toSchemaListDivinerConfig: ReturnType<typeof zodToFactory<SchemaListDivinerConfigBase>> = zodToFactory(SchemaListDivinerConfigZod, 'toSchemaListDivinerConfig')\n\nexport type SchemaListDivinerConfig<T extends Payload = Payload> = DivinerConfig<\n T & {\n schema: SchemaListDivinerConfigSchema\n }\n>\n", "import { asSchema } from '@xyo-network/sdk-protocol-js'\n\nexport const SchemaListDivinerSchema: 'network.xyo.diviner.schema.list' & {\n readonly __schema: true\n} = asSchema('network.xyo.diviner.schema.list', true)\nexport type SchemaListDivinerSchema = typeof SchemaListDivinerSchema\n", "import {\n zodAsFactory, zodIsFactory, zodToFactory,\n} from '@xylabs/sdk-js'\nimport {\n asSchema, PayloadZodOfSchema, QueryFieldsZod,\n} from '@xyo-network/sdk-protocol-js'\nimport * as z from 'zod/mini'\n\nimport { SchemaListDivinerSchema } from './Schema.ts'\n\nexport const SchemaListQuerySchema: string & {\n readonly __schema: true\n} = asSchema(`${SchemaListDivinerSchema}.query`, true)\nexport type SchemaListQuerySchema = typeof SchemaListQuerySchema\n\nexport const SchemaListQueryPayloadZod: z.ZodMiniObject<\n & { schema: z.ZodMiniLiteral<SchemaListQuerySchema> }\n & (typeof QueryFieldsZod)['shape'],\n z.core.$strip\n> = z.extend(PayloadZodOfSchema(SchemaListQuerySchema), { ...QueryFieldsZod.shape })\n\nexport type SchemaListQueryPayload = z.infer<typeof SchemaListQueryPayloadZod>\n\nexport const isSchemaListQueryPayload: ReturnType<typeof zodIsFactory<SchemaListQueryPayload>> = zodIsFactory(SchemaListQueryPayloadZod)\nexport const asSchemaListQueryPayload: ReturnType<typeof zodAsFactory<SchemaListQueryPayload>> = zodAsFactory(SchemaListQueryPayloadZod, 'asSchemaListQueryPayload')\nexport const toSchemaListQueryPayload: ReturnType<typeof zodToFactory<SchemaListQueryPayload>> = zodToFactory(SchemaListQueryPayloadZod, 'toSchemaListQueryPayload')\n", "import { AbstractDiviner } from '@xyo-network/diviner-abstract'\nimport type { DivinerInstance, DivinerModuleEventData } from '@xyo-network/diviner-model'\nimport type { Payload } from '@xyo-network/sdk-protocol-js'\n\nimport type { SchemaListDivinerParams } from './Params.ts'\n\nexport abstract class SchemaListDiviner<\n TParams extends SchemaListDivinerParams = SchemaListDivinerParams,\n TIn extends Payload = Payload,\n TOut extends Payload = Payload,\n TEventData extends DivinerModuleEventData<DivinerInstance<TParams, TIn, TOut>, TIn, TOut> = DivinerModuleEventData<\n DivinerInstance<TParams, TIn, TOut>,\n TIn,\n TOut\n >,\n> extends AbstractDiviner<TParams, TIn, TOut, TEventData> {}\n"],
|
|
5
|
+
"mappings": ";AAAA,SAAS,UAAU,gBAAgB;AACnC,SAAS,gBAAgB,sBAAsB;AAC/C;AAAA,EACE;AAAA,OACK;;;ACJP;AAAA,EACE;AAAA,EAAc;AAAA,EAAc;AAAA,OACvB;AAEP,SAAS,wBAAwB;AACjC,SAAS,YAAAA,iBAA8B;AACvC,YAAY,OAAO;;;ACNnB,SAAS,gBAAgB;AAElB,IAAM,0BAET,SAAS,mCAAmC,IAAI;;;ADM7C,IAAM,gCAETC,UAAS,GAAG,uBAAuB,WAAW,IAAI;AAG/C,IAAM,6BAKP,SAAO,kBAAkB,EAAE,QAAU,UAAQ,6BAA6B,EAAE,CAAC;AAI5E,IAAM,4BAA0F,aAAa,0BAA0B;AACvI,IAAM,4BAA0F,aAAa,4BAA4B,2BAA2B;AACpK,IAAM,4BAA0F,aAAa,4BAA4B,2BAA2B;;;AE1B3K;AAAA,EACE,gBAAAC;AAAA,EAAc,gBAAAC;AAAA,EAAc,gBAAAC;AAAA,OACvB;AACP;AAAA,EACE,YAAAC;AAAA,EAAU;AAAA,EAAoB;AAAA,OACzB;AACP,YAAYC,QAAO;AAIZ,IAAM,wBAETC,UAAS,GAAG,uBAAuB,UAAU,IAAI;AAG9C,IAAM,4BAIP,UAAO,mBAAmB,qBAAqB,GAAG,EAAE,GAAG,eAAe,MAAM,CAAC;AAI5E,IAAM,2BAAoFC,cAAa,yBAAyB;AAChI,IAAM,2BAAoFC,cAAa,2BAA2B,0BAA0B;AAC5J,IAAM,2BAAoFC,cAAa,2BAA2B,0BAA0B;;;ACzBnK,SAAS,uBAAuB;AAMzB,IAAe,oBAAf,cASG,gBAAgD;AAAC;;;AJDpD,IAAM,0BAAN,cAAyG,kBAA2B;AAAA,EACzI,OAAyB,gBAA0B,CAAC,GAAG,MAAM,eAAe,6BAA6B;AAAA,EACzG,OAAyB,sBAA8B;AAAA,EAEvD,MAAgB,cAAc,SAAwC;AACpE,UAAM,YAAY,SAAS,MAAM,KAAK,kBAAkB,GAAG,MAAM,6BAA6B;AAC9F,UAAM,YAAY,MAAM,UAAU,KAAK,EAAE,OAAO,IAAO,CAAC,GACrD,OAAO,OAAK,eAAe,CAAC,KAAK,cAAc,CAAC,CAAC,EACjD,OAAO,QAAM,GAAG,UAAU,SAAS,OAAO,CAAC;AAC9C,WAAO,SAAS,QAAQ,QAAM,GAAG,eAAe,EAAE,OAAO,QAAQ;AAAA,EACnE;AAAA,EAEA,MAAgB,qBAAwC;AACtD,UAAM,YAAY,SAAS,MAAM,KAAK,kBAAkB,GAAG,MAAM,6BAA6B;AAC9F,UAAM,MAAM,MAAM,UAAU,KAAK,EAAE,OAAO,IAAO,CAAC;AAClD,WAAO,IAAI,IAAI,aAAW,QAAQ,MAAM,EAAE,OAAO,QAAQ;AAAA,EAC3D;AAAA,EAEA,MAAyB,cAAc,UAA0C;AAC/E,UAAM,QAAQ,UAAU,KAA6B,wBAAwB;AAC7E,QAAI,CAAC,MAAO,QAAO,CAAC;AACpB,UAAM,YACF,OAAO,UACL,MAAM,QAAQ,OAAO,OAAO,IAC1B,MAAM,UACN,CAAC,MAAM,OAAO,IAChB;AACN,UAAM,UAAU,YAAY,MAAM,QAAQ,IAAI,UAAU,IAAI,aAAW,KAAK,cAAc,OAAO,CAAC,CAAC,IAAI,CAAC,MAAM,KAAK,mBAAmB,CAAC;AACvI,WAAO,QAAQ,IAAI,aAAW,IAAI,eAAkC,EAAE,QAAQ,wBAAwB,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;AAAA,EACtI;AACF;",
|
|
6
|
+
"names": ["asSchema", "asSchema", "zodAsFactory", "zodIsFactory", "zodToFactory", "asSchema", "z", "asSchema", "zodIsFactory", "zodAsFactory", "zodToFactory"]
|
|
7
7
|
}
|
package/dist/neutral/model.mjs
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
// src/Config.ts
|
|
2
|
+
import {
|
|
3
|
+
zodAsFactory,
|
|
4
|
+
zodIsFactory,
|
|
5
|
+
zodToFactory
|
|
6
|
+
} from "@xylabs/sdk-js";
|
|
7
|
+
import { DivinerConfigZod } from "@xyo-network/diviner-model";
|
|
2
8
|
import { asSchema as asSchema2 } from "@xyo-network/sdk-protocol-js";
|
|
9
|
+
import * as z from "zod/mini";
|
|
3
10
|
|
|
4
11
|
// src/Schema.ts
|
|
5
12
|
import { asSchema } from "@xyo-network/sdk-protocol-js";
|
|
@@ -7,21 +14,56 @@ var SchemaListDivinerSchema = asSchema("network.xyo.diviner.schema.list", true);
|
|
|
7
14
|
|
|
8
15
|
// src/Config.ts
|
|
9
16
|
var SchemaListDivinerConfigSchema = asSchema2(`${SchemaListDivinerSchema}.config`, true);
|
|
17
|
+
var SchemaListDivinerConfigZod = z.extend(DivinerConfigZod, { schema: z.literal(SchemaListDivinerConfigSchema) });
|
|
18
|
+
var isSchemaListDivinerConfig = zodIsFactory(SchemaListDivinerConfigZod);
|
|
19
|
+
var asSchemaListDivinerConfig = zodAsFactory(SchemaListDivinerConfigZod, "asSchemaListDivinerConfig");
|
|
20
|
+
var toSchemaListDivinerConfig = zodToFactory(SchemaListDivinerConfigZod, "toSchemaListDivinerConfig");
|
|
10
21
|
|
|
11
22
|
// src/Payload.ts
|
|
12
|
-
|
|
23
|
+
import {
|
|
24
|
+
zodAsFactory as zodAsFactory2,
|
|
25
|
+
zodIsFactory as zodIsFactory2,
|
|
26
|
+
zodToFactory as zodToFactory2
|
|
27
|
+
} from "@xylabs/sdk-js";
|
|
28
|
+
import { PayloadZodOfSchema } from "@xyo-network/sdk-protocol-js";
|
|
29
|
+
import * as z2 from "zod/mini";
|
|
30
|
+
var SchemaListPayloadZod = z2.extend(PayloadZodOfSchema(SchemaListDivinerSchema), { schemas: z2.array(z2.string()) });
|
|
31
|
+
var isSchemaListPayload = zodIsFactory2(SchemaListPayloadZod);
|
|
32
|
+
var asSchemaListPayload = zodAsFactory2(SchemaListPayloadZod, "asSchemaListPayload");
|
|
33
|
+
var toSchemaListPayload = zodToFactory2(SchemaListPayloadZod, "toSchemaListPayload");
|
|
13
34
|
|
|
14
35
|
// src/Query.ts
|
|
15
36
|
import {
|
|
16
|
-
|
|
37
|
+
zodAsFactory as zodAsFactory3,
|
|
38
|
+
zodIsFactory as zodIsFactory3,
|
|
39
|
+
zodToFactory as zodToFactory3
|
|
40
|
+
} from "@xylabs/sdk-js";
|
|
41
|
+
import {
|
|
42
|
+
asSchema as asSchema3,
|
|
43
|
+
PayloadZodOfSchema as PayloadZodOfSchema2,
|
|
44
|
+
QueryFieldsZod
|
|
17
45
|
} from "@xyo-network/sdk-protocol-js";
|
|
46
|
+
import * as z3 from "zod/mini";
|
|
18
47
|
var SchemaListQuerySchema = asSchema3(`${SchemaListDivinerSchema}.query`, true);
|
|
19
|
-
var
|
|
48
|
+
var SchemaListQueryPayloadZod = z3.extend(PayloadZodOfSchema2(SchemaListQuerySchema), { ...QueryFieldsZod.shape });
|
|
49
|
+
var isSchemaListQueryPayload = zodIsFactory3(SchemaListQueryPayloadZod);
|
|
50
|
+
var asSchemaListQueryPayload = zodAsFactory3(SchemaListQueryPayloadZod, "asSchemaListQueryPayload");
|
|
51
|
+
var toSchemaListQueryPayload = zodToFactory3(SchemaListQueryPayloadZod, "toSchemaListQueryPayload");
|
|
20
52
|
export {
|
|
21
53
|
SchemaListDivinerConfigSchema,
|
|
54
|
+
SchemaListDivinerConfigZod,
|
|
22
55
|
SchemaListDivinerSchema,
|
|
56
|
+
SchemaListPayloadZod,
|
|
57
|
+
SchemaListQueryPayloadZod,
|
|
23
58
|
SchemaListQuerySchema,
|
|
59
|
+
asSchemaListDivinerConfig,
|
|
60
|
+
asSchemaListPayload,
|
|
61
|
+
asSchemaListQueryPayload,
|
|
62
|
+
isSchemaListDivinerConfig,
|
|
24
63
|
isSchemaListPayload,
|
|
25
|
-
isSchemaListQueryPayload
|
|
64
|
+
isSchemaListQueryPayload,
|
|
65
|
+
toSchemaListDivinerConfig,
|
|
66
|
+
toSchemaListPayload,
|
|
67
|
+
toSchemaListQueryPayload
|
|
26
68
|
};
|
|
27
69
|
//# sourceMappingURL=model.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Config.ts", "../../src/Schema.ts", "../../src/Payload.ts", "../../src/Query.ts"],
|
|
4
|
-
"sourcesContent": ["import type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema, type Payload } from '@xyo-network/sdk-protocol-js'\n\nimport { SchemaListDivinerSchema } from './Schema.ts'\n\nexport const SchemaListDivinerConfigSchema: string & {\n readonly __schema: true\n} = asSchema(`${SchemaListDivinerSchema}.config`, true)\nexport type SchemaListDivinerConfigSchema = typeof SchemaListDivinerConfigSchema\n\nexport type SchemaListDivinerConfig<T extends Payload = Payload> = DivinerConfig<\n T & {\n schema: SchemaListDivinerConfigSchema\n }\n>\n", "import { asSchema } from '@xyo-network/sdk-protocol-js'\n\nexport const SchemaListDivinerSchema: 'network.xyo.diviner.schema.list' & {\n readonly __schema: true\n} = asSchema('network.xyo.diviner.schema.list', true)\nexport type SchemaListDivinerSchema = typeof SchemaListDivinerSchema\n", "import
|
|
5
|
-
"mappings": ";
|
|
6
|
-
"names": ["asSchema", "asSchema", "asSchema", "asSchema"]
|
|
4
|
+
"sourcesContent": ["import {\n zodAsFactory, zodIsFactory, zodToFactory,\n} from '@xylabs/sdk-js'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { DivinerConfigZod } from '@xyo-network/diviner-model'\nimport { asSchema, type Payload } from '@xyo-network/sdk-protocol-js'\nimport * as z from 'zod/mini'\n\nimport { SchemaListDivinerSchema } from './Schema.ts'\n\nexport const SchemaListDivinerConfigSchema: string & {\n readonly __schema: true\n} = asSchema(`${SchemaListDivinerSchema}.config`, true)\nexport type SchemaListDivinerConfigSchema = typeof SchemaListDivinerConfigSchema\n\nexport const SchemaListDivinerConfigZod: z.ZodMiniObject<\n Omit<(typeof DivinerConfigZod)['shape'], 'schema'> & {\n schema: z.ZodMiniLiteral<SchemaListDivinerConfigSchema>\n },\n z.core.$strip\n> = z.extend(DivinerConfigZod, { schema: z.literal(SchemaListDivinerConfigSchema) })\n\nexport type SchemaListDivinerConfigBase = z.infer<typeof SchemaListDivinerConfigZod>\n\nexport const isSchemaListDivinerConfig: ReturnType<typeof zodIsFactory<SchemaListDivinerConfigBase>> = zodIsFactory(SchemaListDivinerConfigZod)\nexport const asSchemaListDivinerConfig: ReturnType<typeof zodAsFactory<SchemaListDivinerConfigBase>> = zodAsFactory(SchemaListDivinerConfigZod, 'asSchemaListDivinerConfig')\nexport const toSchemaListDivinerConfig: ReturnType<typeof zodToFactory<SchemaListDivinerConfigBase>> = zodToFactory(SchemaListDivinerConfigZod, 'toSchemaListDivinerConfig')\n\nexport type SchemaListDivinerConfig<T extends Payload = Payload> = DivinerConfig<\n T & {\n schema: SchemaListDivinerConfigSchema\n }\n>\n", "import { asSchema } from '@xyo-network/sdk-protocol-js'\n\nexport const SchemaListDivinerSchema: 'network.xyo.diviner.schema.list' & {\n readonly __schema: true\n} = asSchema('network.xyo.diviner.schema.list', true)\nexport type SchemaListDivinerSchema = typeof SchemaListDivinerSchema\n", "import {\n zodAsFactory, zodIsFactory, zodToFactory,\n} from '@xylabs/sdk-js'\nimport { PayloadZodOfSchema } from '@xyo-network/sdk-protocol-js'\nimport * as z from 'zod/mini'\n\nimport { SchemaListDivinerSchema } from './Schema.ts'\n\nexport const SchemaListPayloadZod: z.ZodMiniObject<{\n schema: z.ZodMiniLiteral<SchemaListDivinerSchema>\n schemas: z.ZodMiniArray<z.ZodMiniString<string>>\n}, z.core.$strip> = z.extend(PayloadZodOfSchema(SchemaListDivinerSchema), { schemas: z.array(z.string()) })\n\nexport type SchemaListPayload = z.infer<typeof SchemaListPayloadZod>\n\nexport const isSchemaListPayload: ReturnType<typeof zodIsFactory<SchemaListPayload>> = zodIsFactory(SchemaListPayloadZod)\nexport const asSchemaListPayload: ReturnType<typeof zodAsFactory<SchemaListPayload>> = zodAsFactory(SchemaListPayloadZod, 'asSchemaListPayload')\nexport const toSchemaListPayload: ReturnType<typeof zodToFactory<SchemaListPayload>> = zodToFactory(SchemaListPayloadZod, 'toSchemaListPayload')\n", "import {\n zodAsFactory, zodIsFactory, zodToFactory,\n} from '@xylabs/sdk-js'\nimport {\n asSchema, PayloadZodOfSchema, QueryFieldsZod,\n} from '@xyo-network/sdk-protocol-js'\nimport * as z from 'zod/mini'\n\nimport { SchemaListDivinerSchema } from './Schema.ts'\n\nexport const SchemaListQuerySchema: string & {\n readonly __schema: true\n} = asSchema(`${SchemaListDivinerSchema}.query`, true)\nexport type SchemaListQuerySchema = typeof SchemaListQuerySchema\n\nexport const SchemaListQueryPayloadZod: z.ZodMiniObject<\n & { schema: z.ZodMiniLiteral<SchemaListQuerySchema> }\n & (typeof QueryFieldsZod)['shape'],\n z.core.$strip\n> = z.extend(PayloadZodOfSchema(SchemaListQuerySchema), { ...QueryFieldsZod.shape })\n\nexport type SchemaListQueryPayload = z.infer<typeof SchemaListQueryPayloadZod>\n\nexport const isSchemaListQueryPayload: ReturnType<typeof zodIsFactory<SchemaListQueryPayload>> = zodIsFactory(SchemaListQueryPayloadZod)\nexport const asSchemaListQueryPayload: ReturnType<typeof zodAsFactory<SchemaListQueryPayload>> = zodAsFactory(SchemaListQueryPayloadZod, 'asSchemaListQueryPayload')\nexport const toSchemaListQueryPayload: ReturnType<typeof zodToFactory<SchemaListQueryPayload>> = zodToFactory(SchemaListQueryPayloadZod, 'toSchemaListQueryPayload')\n"],
|
|
5
|
+
"mappings": ";AAAA;AAAA,EACE;AAAA,EAAc;AAAA,EAAc;AAAA,OACvB;AAEP,SAAS,wBAAwB;AACjC,SAAS,YAAAA,iBAA8B;AACvC,YAAY,OAAO;;;ACNnB,SAAS,gBAAgB;AAElB,IAAM,0BAET,SAAS,mCAAmC,IAAI;;;ADM7C,IAAM,gCAETC,UAAS,GAAG,uBAAuB,WAAW,IAAI;AAG/C,IAAM,6BAKP,SAAO,kBAAkB,EAAE,QAAU,UAAQ,6BAA6B,EAAE,CAAC;AAI5E,IAAM,4BAA0F,aAAa,0BAA0B;AACvI,IAAM,4BAA0F,aAAa,4BAA4B,2BAA2B;AACpK,IAAM,4BAA0F,aAAa,4BAA4B,2BAA2B;;;AE1B3K;AAAA,EACE,gBAAAC;AAAA,EAAc,gBAAAC;AAAA,EAAc,gBAAAC;AAAA,OACvB;AACP,SAAS,0BAA0B;AACnC,YAAYC,QAAO;AAIZ,IAAM,uBAGS,UAAO,mBAAmB,uBAAuB,GAAG,EAAE,SAAW,SAAQ,UAAO,CAAC,EAAE,CAAC;AAInG,IAAM,sBAA0EC,cAAa,oBAAoB;AACjH,IAAM,sBAA0EC,cAAa,sBAAsB,qBAAqB;AACxI,IAAM,sBAA0EC,cAAa,sBAAsB,qBAAqB;;;ACjB/I;AAAA,EACE,gBAAAC;AAAA,EAAc,gBAAAC;AAAA,EAAc,gBAAAC;AAAA,OACvB;AACP;AAAA,EACE,YAAAC;AAAA,EAAU,sBAAAC;AAAA,EAAoB;AAAA,OACzB;AACP,YAAYC,QAAO;AAIZ,IAAM,wBAETC,UAAS,GAAG,uBAAuB,UAAU,IAAI;AAG9C,IAAM,4BAIP,UAAOC,oBAAmB,qBAAqB,GAAG,EAAE,GAAG,eAAe,MAAM,CAAC;AAI5E,IAAM,2BAAoFC,cAAa,yBAAyB;AAChI,IAAM,2BAAoFC,cAAa,2BAA2B,0BAA0B;AAC5J,IAAM,2BAAoFC,cAAa,2BAA2B,0BAA0B;",
|
|
6
|
+
"names": ["asSchema", "asSchema", "zodAsFactory", "zodIsFactory", "zodToFactory", "z", "zodIsFactory", "zodAsFactory", "zodToFactory", "zodAsFactory", "zodIsFactory", "zodToFactory", "asSchema", "PayloadZodOfSchema", "z", "asSchema", "PayloadZodOfSchema", "zodIsFactory", "zodAsFactory", "zodToFactory"]
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/diviner-schema-list",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -46,28 +46,28 @@
|
|
|
46
46
|
"README.md"
|
|
47
47
|
],
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@xyo-network/diviner-abstract": "~
|
|
50
|
-
"@xyo-network/diviner-model": "~
|
|
51
|
-
"@xyo-network/module-model": "~
|
|
49
|
+
"@xyo-network/diviner-abstract": "~7.0.0",
|
|
50
|
+
"@xyo-network/diviner-model": "~7.0.0",
|
|
51
|
+
"@xyo-network/module-model": "~7.0.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@bitauth/libauth": "~3.0.0",
|
|
55
55
|
"@metamask/providers": "^22.1.1",
|
|
56
56
|
"@noble/post-quantum": "~0.6.1",
|
|
57
57
|
"@opentelemetry/api": "^1.9.1",
|
|
58
|
-
"@opentelemetry/sdk-trace-base": "^2.
|
|
58
|
+
"@opentelemetry/sdk-trace-base": "^2.8.0",
|
|
59
59
|
"@scure/base": "~2.2.0",
|
|
60
60
|
"@scure/bip39": "~2.2.0",
|
|
61
|
-
"@xylabs/geo": "^6.1.
|
|
62
|
-
"@xylabs/sdk-js": "^6.1.
|
|
63
|
-
"@xylabs/threads": "^6.1.
|
|
61
|
+
"@xylabs/geo": "^6.1.1",
|
|
62
|
+
"@xylabs/sdk-js": "^6.1.1",
|
|
63
|
+
"@xylabs/threads": "^6.1.1",
|
|
64
64
|
"@xylabs/toolchain": "^8.1.20",
|
|
65
65
|
"@xylabs/tsconfig": "^8.1.20",
|
|
66
|
-
"@xyo-network/sdk-protocol-js": "
|
|
66
|
+
"@xyo-network/sdk-protocol-js": "~7.0",
|
|
67
67
|
"ajv": "^8.20.0",
|
|
68
68
|
"async-mutex": "^0.5.0",
|
|
69
69
|
"debug": "~4.4.3",
|
|
70
|
-
"eslint": "^10.
|
|
70
|
+
"eslint": "^10.5.0",
|
|
71
71
|
"ethers": "^6.16.0",
|
|
72
72
|
"hash-wasm": "~4.12.0",
|
|
73
73
|
"idb": "^8.0.3",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"@xylabs/geo": "^6.0",
|
|
89
89
|
"@xylabs/sdk-js": "^6.0",
|
|
90
90
|
"@xylabs/threads": "^6.0",
|
|
91
|
-
"@xyo-network/sdk-protocol-js": "^
|
|
91
|
+
"@xyo-network/sdk-protocol-js": "^7.0",
|
|
92
92
|
"ajv": "^8.20",
|
|
93
93
|
"async-mutex": "^0.5",
|
|
94
94
|
"debug": "~4.4",
|