@xyo-network/diviner-schema-list 5.6.4 → 6.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.
@@ -5,4 +5,4 @@ var SchemaListDiviner = class extends AbstractDiviner {
5
5
  export {
6
6
  SchemaListDiviner
7
7
  };
8
- //# sourceMappingURL=abstract.mjs.map
8
+ //# sourceMappingURL=abstract.mjs.map
@@ -1 +1,7 @@
1
- {"version":3,"sources":["../../src/SchemaListDiviner.ts"],"sourcesContent":["import { AbstractDiviner } from '@xyo-network/diviner-abstract'\nimport type { DivinerInstance, DivinerModuleEventData } from '@xyo-network/diviner-model'\nimport type { Payload } from '@xyo-network/payload-model'\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"],"mappings":";AAAA,SAAS,uBAAuB;AAMzB,IAAe,oBAAf,cASG,gBAAgD;AAAC;","names":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/SchemaListDiviner.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/payload-model'\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,uBAAuB;AAMzB,IAAe,oBAAf,cASG,gBAAgD;AAAC;",
6
+ "names": []
7
+ }
@@ -64,4 +64,4 @@ export {
64
64
  isSchemaListPayload,
65
65
  isSchemaListQueryPayload
66
66
  };
67
- //# sourceMappingURL=index.mjs.map
67
+ //# sourceMappingURL=index.mjs.map
@@ -1 +1,7 @@
1
- {"version":3,"sources":["../../src/SchemaListDiviner.ts","../../src/MemorySchemaListDiviner.ts","../../src/Config.ts","../../src/Schema.ts","../../src/Query.ts","../../src/Payload.ts"],"sourcesContent":["import { AbstractDiviner } from '@xyo-network/diviner-abstract'\nimport type { DivinerInstance, DivinerModuleEventData } from '@xyo-network/diviner-model'\nimport type { Payload } from '@xyo-network/payload-model'\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 type { Address } from '@xylabs/sdk-js'\nimport { assertEx, distinct } from '@xylabs/sdk-js'\nimport { isBoundWitness } from '@xyo-network/boundwitness-model'\nimport { PayloadBuilder } from '@xyo-network/payload-builder'\nimport {\n isStorageMeta, type Payload, type Schema,\n} from '@xyo-network/payload-model'\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: Address): 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 await Promise.all(\n results.map(schemas => new PayloadBuilder<SchemaListPayload>({ schema: SchemaListDivinerSchema }).fields({ schemas }).build()),\n )\n }\n}\n","import type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema, type Payload } from '@xyo-network/payload-model'\n\nimport { SchemaListDivinerSchema } from './Schema.ts'\n\nexport const SchemaListDivinerConfigSchema = 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/payload-model'\n\nexport const SchemaListDivinerSchema = asSchema('network.xyo.diviner.schema.list', true)\nexport type SchemaListDivinerSchema = typeof SchemaListDivinerSchema\n","import {\n asSchema, type Payload, type Query,\n} from '@xyo-network/payload-model'\n\nimport { SchemaListDivinerSchema } from './Schema.ts'\n\nexport const SchemaListQuerySchema = asSchema(`${SchemaListDivinerSchema}.query`, true)\nexport type SchemaListQuerySchema = typeof SchemaListQuerySchema\n\nexport type SchemaListQueryPayload = Query<{ schema: SchemaListQuerySchema }>\nexport const isSchemaListQueryPayload = (x?: Payload | null): x is SchemaListQueryPayload => x?.schema === SchemaListQuerySchema\n","import type { Payload } from '@xyo-network/payload-model'\n\nimport { SchemaListDivinerSchema } from './Schema.ts'\n\nexport type SchemaListPayload = Payload<{\n schema: SchemaListDivinerSchema\n schemas: string[]\n}>\n\nexport const isSchemaListPayload = (x?: Payload | null): x is SchemaListPayload => x?.schema === SchemaListDivinerSchema\n"],"mappings":";AAAA,SAAS,uBAAuB;AAMzB,IAAe,oBAAf,cASG,gBAAgD;AAAC;;;ACd3D,SAAS,UAAU,gBAAgB;AACnC,SAAS,sBAAsB;AAC/B,SAAS,sBAAsB;AAC/B;AAAA,EACE;AAAA,OACK;;;ACLP,SAAS,YAAAA,iBAA8B;;;ACDvC,SAAS,gBAAgB;AAElB,IAAM,0BAA0B,SAAS,mCAAmC,IAAI;;;ADGhF,IAAM,gCAAgCC,UAAS,GAAG,uBAAuB,WAAW,IAAI;;;AEL/F;AAAA,EACE,YAAAC;AAAA,OACK;AAIA,IAAM,wBAAwBC,UAAS,GAAG,uBAAuB,UAAU,IAAI;AAI/E,IAAM,2BAA2B,CAAC,MAAoD,GAAG,WAAW;;;AHMpG,IAAM,0BAAN,cAAyG,kBAA2B;AAAA,EACzI,OAAyB,gBAA0B,CAAC,GAAG,MAAM,eAAe,6BAA6B;AAAA,EACzG,OAAyB,sBAA8B;AAAA,EAEvD,MAAgB,cAAc,SAAqC;AACjE,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,MAAM,QAAQ;AAAA,MACnB,QAAQ,IAAI,aAAW,IAAI,eAAkC,EAAE,QAAQ,wBAAwB,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;AAAA,IAC/H;AAAA,EACF;AACF;;;AIvCO,IAAM,sBAAsB,CAAC,MAA+C,GAAG,WAAW;","names":["asSchema","asSchema","asSchema","asSchema"]}
1
+ {
2
+ "version": 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/payload-model'\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 type { Address } from '@xylabs/sdk-js'\nimport { assertEx, distinct } from '@xylabs/sdk-js'\nimport { isBoundWitness } from '@xyo-network/boundwitness-model'\nimport { PayloadBuilder } from '@xyo-network/payload-builder'\nimport {\n isStorageMeta, type Payload, type Schema,\n} from '@xyo-network/payload-model'\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: Address): 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 await Promise.all(\n results.map(schemas => new PayloadBuilder<SchemaListPayload>({ schema: SchemaListDivinerSchema }).fields({ schemas }).build()),\n )\n }\n}\n", "import type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema, type Payload } from '@xyo-network/payload-model'\n\nimport { SchemaListDivinerSchema } from './Schema.ts'\n\nexport const SchemaListDivinerConfigSchema = 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/payload-model'\n\nexport const SchemaListDivinerSchema = asSchema('network.xyo.diviner.schema.list', true)\nexport type SchemaListDivinerSchema = typeof SchemaListDivinerSchema\n", "import {\n asSchema, type Payload, type Query,\n} from '@xyo-network/payload-model'\n\nimport { SchemaListDivinerSchema } from './Schema.ts'\n\nexport const SchemaListQuerySchema = asSchema(`${SchemaListDivinerSchema}.query`, true)\nexport type SchemaListQuerySchema = typeof SchemaListQuerySchema\n\nexport type SchemaListQueryPayload = Query<{ schema: SchemaListQuerySchema }>\nexport const isSchemaListQueryPayload = (x?: Payload | null): x is SchemaListQueryPayload => x?.schema === SchemaListQuerySchema\n", "import type { Payload } from '@xyo-network/payload-model'\n\nimport { SchemaListDivinerSchema } from './Schema.ts'\n\nexport type SchemaListPayload = Payload<{\n schema: SchemaListDivinerSchema\n schemas: string[]\n}>\n\nexport const isSchemaListPayload = (x?: Payload | null): x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;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,MAAM,QAAQ;AAAA,MACnB,QAAQ,IAAI,aAAW,IAAI,eAAkC,EAAE,QAAQ,wBAAwB,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;AAAA,IAC/H;AAAA,EACF;AACF;;;AIvCO,IAAM,sBAAsB,CAAC,MAA+C,GAAG,WAAW;",
6
+ "names": ["asSchema", "asSchema", "asSchema", "asSchema"]
7
+ }
@@ -55,4 +55,4 @@ var MemorySchemaListDiviner = class extends SchemaListDiviner {
55
55
  export {
56
56
  MemorySchemaListDiviner
57
57
  };
58
- //# sourceMappingURL=memory.mjs.map
58
+ //# sourceMappingURL=memory.mjs.map
@@ -1 +1,7 @@
1
- {"version":3,"sources":["../../src/MemorySchemaListDiviner.ts","../../src/Config.ts","../../src/Schema.ts","../../src/Query.ts","../../src/SchemaListDiviner.ts"],"sourcesContent":["import type { Address } from '@xylabs/sdk-js'\nimport { assertEx, distinct } from '@xylabs/sdk-js'\nimport { isBoundWitness } from '@xyo-network/boundwitness-model'\nimport { PayloadBuilder } from '@xyo-network/payload-builder'\nimport {\n isStorageMeta, type Payload, type Schema,\n} from '@xyo-network/payload-model'\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: Address): 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 await Promise.all(\n results.map(schemas => new PayloadBuilder<SchemaListPayload>({ schema: SchemaListDivinerSchema }).fields({ schemas }).build()),\n )\n }\n}\n","import type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema, type Payload } from '@xyo-network/payload-model'\n\nimport { SchemaListDivinerSchema } from './Schema.ts'\n\nexport const SchemaListDivinerConfigSchema = 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/payload-model'\n\nexport const SchemaListDivinerSchema = asSchema('network.xyo.diviner.schema.list', true)\nexport type SchemaListDivinerSchema = typeof SchemaListDivinerSchema\n","import {\n asSchema, type Payload, type Query,\n} from '@xyo-network/payload-model'\n\nimport { SchemaListDivinerSchema } from './Schema.ts'\n\nexport const SchemaListQuerySchema = asSchema(`${SchemaListDivinerSchema}.query`, true)\nexport type SchemaListQuerySchema = typeof SchemaListQuerySchema\n\nexport type SchemaListQueryPayload = Query<{ schema: SchemaListQuerySchema }>\nexport const isSchemaListQueryPayload = (x?: Payload | null): x is SchemaListQueryPayload => x?.schema === SchemaListQuerySchema\n","import { AbstractDiviner } from '@xyo-network/diviner-abstract'\nimport type { DivinerInstance, DivinerModuleEventData } from '@xyo-network/diviner-model'\nimport type { Payload } from '@xyo-network/payload-model'\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"],"mappings":";AACA,SAAS,UAAU,gBAAgB;AACnC,SAAS,sBAAsB;AAC/B,SAAS,sBAAsB;AAC/B;AAAA,EACE;AAAA,OACK;;;ACLP,SAAS,YAAAA,iBAA8B;;;ACDvC,SAAS,gBAAgB;AAElB,IAAM,0BAA0B,SAAS,mCAAmC,IAAI;;;ADGhF,IAAM,gCAAgCC,UAAS,GAAG,uBAAuB,WAAW,IAAI;;;AEL/F;AAAA,EACE,YAAAC;AAAA,OACK;AAIA,IAAM,wBAAwBC,UAAS,GAAG,uBAAuB,UAAU,IAAI;AAI/E,IAAM,2BAA2B,CAAC,MAAoD,GAAG,WAAW;;;ACV3G,SAAS,uBAAuB;AAMzB,IAAe,oBAAf,cASG,gBAAgD;AAAC;;;AJCpD,IAAM,0B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"version": 3,
3
+ "sources": ["../../src/MemorySchemaListDiviner.ts", "../../src/Config.ts", "../../src/Schema.ts", "../../src/Query.ts", "../../src/SchemaListDiviner.ts"],
4
+ "sourcesContent": ["import type { Address } from '@xylabs/sdk-js'\nimport { assertEx, distinct } from '@xylabs/sdk-js'\nimport { isBoundWitness } from '@xyo-network/boundwitness-model'\nimport { PayloadBuilder } from '@xyo-network/payload-builder'\nimport {\n isStorageMeta, type Payload, type Schema,\n} from '@xyo-network/payload-model'\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: Address): 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 await Promise.all(\n results.map(schemas => new PayloadBuilder<SchemaListPayload>({ schema: SchemaListDivinerSchema }).fields({ schemas }).build()),\n )\n }\n}\n", "import type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema, type Payload } from '@xyo-network/payload-model'\n\nimport { SchemaListDivinerSchema } from './Schema.ts'\n\nexport const SchemaListDivinerConfigSchema = 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/payload-model'\n\nexport const SchemaListDivinerSchema = asSchema('network.xyo.diviner.schema.list', true)\nexport type SchemaListDivinerSchema = typeof SchemaListDivinerSchema\n", "import {\n asSchema, type Payload, type Query,\n} from '@xyo-network/payload-model'\n\nimport { SchemaListDivinerSchema } from './Schema.ts'\n\nexport const SchemaListQuerySchema = asSchema(`${SchemaListDivinerSchema}.query`, true)\nexport type SchemaListQuerySchema = typeof SchemaListQuerySchema\n\nexport type SchemaListQueryPayload = Query<{ schema: SchemaListQuerySchema }>\nexport const isSchemaListQueryPayload = (x?: Payload | null): x is SchemaListQueryPayload => x?.schema === SchemaListQuerySchema\n", "import { AbstractDiviner } from '@xyo-network/diviner-abstract'\nimport type { DivinerInstance, DivinerModuleEventData } from '@xyo-network/diviner-model'\nimport type { Payload } from '@xyo-network/payload-model'\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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AM,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,MAAM,QAAQ;AAAA,MACnB,QAAQ,IAAI,aAAW,IAAI,eAAkC,EAAE,QAAQ,wBAAwB,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;AAAA,IAC/H;AAAA,EACF;AACF;",
6
+ "names": ["asSchema", "asSchema", "asSchema", "asSchema"]
7
+ }
@@ -24,4 +24,4 @@ export {
24
24
  isSchemaListPayload,
25
25
  isSchemaListQueryPayload
26
26
  };
27
- //# sourceMappingURL=model.mjs.map
27
+ //# sourceMappingURL=model.mjs.map
@@ -1 +1,7 @@
1
- {"version":3,"sources":["../../src/Config.ts","../../src/Schema.ts","../../src/Payload.ts","../../src/Query.ts"],"sourcesContent":["import type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema, type Payload } from '@xyo-network/payload-model'\n\nimport { SchemaListDivinerSchema } from './Schema.ts'\n\nexport const SchemaListDivinerConfigSchema = 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/payload-model'\n\nexport const SchemaListDivinerSchema = asSchema('network.xyo.diviner.schema.list', true)\nexport type SchemaListDivinerSchema = typeof SchemaListDivinerSchema\n","import type { Payload } from '@xyo-network/payload-model'\n\nimport { SchemaListDivinerSchema } from './Schema.ts'\n\nexport type SchemaListPayload = Payload<{\n schema: SchemaListDivinerSchema\n schemas: string[]\n}>\n\nexport const isSchemaListPayload = (x?: Payload | null): x is SchemaListPayload => x?.schema === SchemaListDivinerSchema\n","import {\n asSchema, type Payload, type Query,\n} from '@xyo-network/payload-model'\n\nimport { SchemaListDivinerSchema } from './Schema.ts'\n\nexport const SchemaListQuerySchema = asSchema(`${SchemaListDivinerSchema}.query`, true)\nexport type SchemaListQuerySchema = typeof SchemaListQuerySchema\n\nexport type SchemaListQueryPayload = Query<{ schema: SchemaListQuerySchema }>\nexport const isSchemaListQueryPayload = (x?: Payload | null): x is SchemaListQueryPayload => x?.schema === SchemaListQuerySchema\n"],"mappings":";AACA,SAAS,YAAAA,iBAA8B;;;ACDvC,SAAS,gBAAgB;AAElB,IAAM,0BAA0B,SAAS,mCAAmC,IAAI;;;ADGhF,IAAM,gCAAgCC,UAAS,GAAG,uBAAuB,WAAW,IAAI;;;AEIxF,IAAM,sBAAsB,CAAC,MAA+C,GAAG,WAAW;;;ACTjG;AAAA,EACE,YAAAC;AAAA,OACK;AAIA,IAAM,wBAAwBC,UAAS,GAAG,uBAAuB,UAAU,IAAI;AAI/E,IAAM,2BAA2B,CAAC,MAAoD,GAAG,WAAW;","names":["asSchema","asSchema","asSchema","asSchema"]}
1
+ {
2
+ "version": 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/payload-model'\n\nimport { SchemaListDivinerSchema } from './Schema.ts'\n\nexport const SchemaListDivinerConfigSchema = 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/payload-model'\n\nexport const SchemaListDivinerSchema = asSchema('network.xyo.diviner.schema.list', true)\nexport type SchemaListDivinerSchema = typeof SchemaListDivinerSchema\n", "import type { Payload } from '@xyo-network/payload-model'\n\nimport { SchemaListDivinerSchema } from './Schema.ts'\n\nexport type SchemaListPayload = Payload<{\n schema: SchemaListDivinerSchema\n schemas: string[]\n}>\n\nexport const isSchemaListPayload = (x?: Payload | null): x is SchemaListPayload => x?.schema === SchemaListDivinerSchema\n", "import {\n asSchema, type Payload, type Query,\n} from '@xyo-network/payload-model'\n\nimport { SchemaListDivinerSchema } from './Schema.ts'\n\nexport const SchemaListQuerySchema = asSchema(`${SchemaListDivinerSchema}.query`, true)\nexport type SchemaListQuerySchema = typeof SchemaListQuerySchema\n\nexport type SchemaListQueryPayload = Query<{ schema: SchemaListQuerySchema }>\nexport const isSchemaListQueryPayload = (x?: Payload | null): x is SchemaListQueryPayload => x?.schema === SchemaListQuerySchema\n"],
5
+ "mappings": ";AACA,SAAS,YAAAA,iBAA8B;;;ACDvC,SAAS,gBAAgB;AAElB,IAAM,0BAA0B,SAAS,mCAAmC,IAAI;;;ADGhF,IAAM,gCAAgCC,UAAS,GAAG,uBAAuB,WAAW,IAAI;;;AEIxF,IAAM,sBAAsB,CAAC,MAA+C,GAAG,WAAW;;;ACTjG;AAAA,EACE,YAAAC;AAAA,OACK;AAIA,IAAM,wBAAwBC,UAAS,GAAG,uBAAuB,UAAU,IAAI;AAI/E,IAAM,2BAA2B,CAAC,MAAoD,GAAG,WAAW;",
6
+ "names": ["asSchema", "asSchema", "asSchema", "asSchema"]
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/diviner-schema-list",
3
- "version": "5.6.4",
3
+ "version": "6.0.0",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -46,42 +46,42 @@
46
46
  "README.md"
47
47
  ],
48
48
  "dependencies": {
49
- "@xyo-network/diviner-abstract": "~5.6.4",
50
- "@xyo-network/diviner-model": "~5.6.4",
51
- "@xyo-network/module-model": "~5.6.4"
49
+ "@xyo-network/diviner-abstract": "~6.0.0",
50
+ "@xyo-network/diviner-model": "~6.0.0",
51
+ "@xyo-network/module-model": "~6.0.0"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@bitauth/libauth": "~3.0.0",
55
55
  "@opentelemetry/api": "^1.9.1",
56
56
  "@opentelemetry/sdk-trace-base": "^2.7.1",
57
57
  "@scure/base": "~2.2.0",
58
- "@xylabs/sdk-js": "^5.1.2",
59
- "@xylabs/threads": "~5.1.2",
60
- "@xylabs/toolchain": "~7.13.15",
61
- "@xylabs/tsconfig": "~7.13.15",
62
- "@xyo-network/account": "~5.6.2",
63
- "@xyo-network/account-model": "~5.6.3",
64
- "@xyo-network/boundwitness-builder": "~5.6.2",
65
- "@xyo-network/boundwitness-model": "~5.6.3",
66
- "@xyo-network/boundwitness-wrapper": "~5.6.2",
67
- "@xyo-network/config-payload-plugin": "~5.6.3",
68
- "@xyo-network/manifest-model": "~5.6.3",
69
- "@xyo-network/payload-builder": "~5.6.2",
70
- "@xyo-network/payload-model": "~5.6.3",
71
- "@xyo-network/query-payload-plugin": "~5.6.3",
72
- "@xyo-network/wallet-model": "~5.6.3",
58
+ "@xylabs/sdk-js": "^6.0.0",
59
+ "@xylabs/threads": "~6.0.0",
60
+ "@xylabs/toolchain": "~8.0.17",
61
+ "@xylabs/tsconfig": "~8.0.17",
62
+ "@xyo-network/account": "~6.0",
63
+ "@xyo-network/account-model": "~6.0",
64
+ "@xyo-network/boundwitness-builder": "~6.0",
65
+ "@xyo-network/boundwitness-model": "~6.0",
66
+ "@xyo-network/boundwitness-wrapper": "~6.0",
67
+ "@xyo-network/config-payload-plugin": "~6.0",
68
+ "@xyo-network/manifest-model": "~6.0",
69
+ "@xyo-network/payload-builder": "~6.0.0",
70
+ "@xyo-network/payload-model": "~6.0.0",
71
+ "@xyo-network/query-payload-plugin": "~6.0",
72
+ "@xyo-network/wallet-model": "~6.0",
73
73
  "async-mutex": "^0.5.0",
74
74
  "bn.js": "^5.2.3",
75
75
  "buffer": "^6.0.3",
76
76
  "chalk": "^5.6.2",
77
77
  "debug": "~4.4.3",
78
- "eslint": "^10.3.0",
78
+ "eslint": "^10.4.0",
79
79
  "ethers": "^6.16.0",
80
80
  "hash-wasm": "~4.12.0",
81
- "lru-cache": "^11.3.6",
81
+ "lru-cache": "^11.5.0",
82
82
  "observable-fns": "~0.6.1",
83
83
  "pako": "~2.1.0",
84
- "typescript": "~5.9.3",
84
+ "typescript": "~6.0.3",
85
85
  "wasm-feature-detect": "~1.8.0",
86
86
  "zod": "^4.4.3"
87
87
  },
@@ -90,19 +90,19 @@
90
90
  "@opentelemetry/api": "^1.9",
91
91
  "@opentelemetry/sdk-trace-base": "^2.7",
92
92
  "@scure/base": "~2.2",
93
- "@xylabs/sdk-js": "^5.1",
94
- "@xylabs/threads": "~5.1",
95
- "@xyo-network/account": "~5.6",
96
- "@xyo-network/account-model": "~5.6",
97
- "@xyo-network/boundwitness-builder": "~5.6",
98
- "@xyo-network/boundwitness-model": "~5.6",
99
- "@xyo-network/boundwitness-wrapper": "~5.6",
100
- "@xyo-network/config-payload-plugin": "~5.6",
101
- "@xyo-network/manifest-model": "~5.6",
102
- "@xyo-network/payload-builder": "~5.6",
103
- "@xyo-network/payload-model": "~5.6",
104
- "@xyo-network/query-payload-plugin": "~5.6",
105
- "@xyo-network/wallet-model": "~5.6",
93
+ "@xylabs/sdk-js": "^6.0",
94
+ "@xylabs/threads": "~6.0",
95
+ "@xyo-network/account": "~6.0",
96
+ "@xyo-network/account-model": "~6.0",
97
+ "@xyo-network/boundwitness-builder": "~6.0",
98
+ "@xyo-network/boundwitness-model": "~6.0",
99
+ "@xyo-network/boundwitness-wrapper": "~6.0",
100
+ "@xyo-network/config-payload-plugin": "~6.0",
101
+ "@xyo-network/manifest-model": "~6.0",
102
+ "@xyo-network/payload-builder": "~6.0",
103
+ "@xyo-network/payload-model": "~6.0",
104
+ "@xyo-network/query-payload-plugin": "~6.0",
105
+ "@xyo-network/wallet-model": "~6.0",
106
106
  "async-mutex": "^0.5",
107
107
  "bn.js": "^5.2",
108
108
  "buffer": "^6.0",