@xyo-network/diviner-huri 4.0.3 → 4.1.1

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.
@@ -0,0 +1,32 @@
1
+ import { DivinerConfig, DivinerParams, DivinerModuleEventData, DivinerInstance } from '@xyo-network/diviner-model';
2
+ import * as _xyo_network_huri from '@xyo-network/huri';
3
+ import { HuriOptions } from '@xyo-network/huri';
4
+ import { Payload, Schema } from '@xyo-network/payload-model';
5
+ import { AbstractDiviner } from '@xyo-network/diviner-abstract';
6
+ import { AnyConfigSchema } from '@xyo-network/module-model';
7
+
8
+ declare const HuriPayloadDivinerConfigSchema: "network.xyo.diviner.payload.huri.config";
9
+ type HuriPayloadDivinerConfigSchema = typeof HuriPayloadDivinerConfigSchema;
10
+ type HuriPayloadDivinerConfig<T extends Payload = Payload> = DivinerConfig<T & {
11
+ options?: HuriOptions;
12
+ schema: HuriPayloadDivinerConfigSchema;
13
+ }>;
14
+
15
+ declare const HuriSchema: "network.xyo.huri";
16
+ type HuriSchema = typeof HuriSchema;
17
+ type HuriPayload = Payload<{
18
+ huri: string[];
19
+ schema: 'network.xyo.huri';
20
+ tokens?: string[];
21
+ }>;
22
+
23
+ type HuriPayloadDivinerParams<TConfig extends AnyConfigSchema<HuriPayloadDivinerConfig> = AnyConfigSchema<HuriPayloadDivinerConfig>> = DivinerParams<TConfig>;
24
+ declare class HuriPayloadDiviner<TParams extends HuriPayloadDivinerParams = HuriPayloadDivinerParams, TIn extends HuriPayload = HuriPayload, TOut extends Payload = Payload, TEventData extends DivinerModuleEventData<DivinerInstance<TParams, TIn, TOut>, TIn, TOut> = DivinerModuleEventData<DivinerInstance<TParams, TIn, TOut>, TIn, TOut>> extends AbstractDiviner<TParams, TIn, TOut, TEventData> {
25
+ static readonly configSchemas: Schema[];
26
+ static readonly defaultConfigSchema: Schema;
27
+ protected get options(): _xyo_network_huri.HuriOptions | undefined;
28
+ protected divineHandler(payloads?: TIn[]): Promise<TOut[]>;
29
+ }
30
+
31
+ export { HuriPayloadDiviner, HuriPayloadDivinerConfigSchema, HuriSchema };
32
+ export type { HuriPayload, HuriPayloadDivinerConfig, HuriPayloadDivinerParams };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/diviner-huri",
3
- "version": "4.0.3",
3
+ "version": "4.1.1",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -21,26 +21,26 @@
21
21
  "type": "module",
22
22
  "exports": {
23
23
  ".": {
24
- "types": "./dist/types/index.d.ts",
24
+ "types": "./dist/neutral/index.d.ts",
25
25
  "default": "./dist/neutral/index.mjs"
26
26
  },
27
27
  "./package.json": "./package.json"
28
28
  },
29
29
  "module": "dist/neutral/index.mjs",
30
- "types": "dist/types/index.d.ts",
30
+ "types": "dist/neutral/index.d.ts",
31
31
  "dependencies": {
32
- "@xylabs/assert": "^4.13.4",
33
- "@xylabs/exists": "^4.13.4",
34
- "@xylabs/promise": "^4.13.4",
35
- "@xyo-network/diviner-abstract": "^4.0.3",
36
- "@xyo-network/diviner-model": "^4.0.3",
37
- "@xyo-network/huri": "^4.0.3",
38
- "@xyo-network/module-model": "^4.0.3",
39
- "@xyo-network/payload-model": "^4.0.3"
32
+ "@xylabs/assert": "^4.13.15",
33
+ "@xylabs/exists": "^4.13.15",
34
+ "@xylabs/promise": "^4.13.15",
35
+ "@xyo-network/diviner-abstract": "^4.1.1",
36
+ "@xyo-network/diviner-model": "^4.1.1",
37
+ "@xyo-network/huri": "^4.1.1",
38
+ "@xyo-network/module-model": "^4.1.1",
39
+ "@xyo-network/payload-model": "^4.1.1"
40
40
  },
41
41
  "devDependencies": {
42
- "@xylabs/ts-scripts-yarn3": "^6.5.18",
43
- "@xylabs/tsconfig": "^6.5.18",
42
+ "@xylabs/ts-scripts-yarn3": "^7.0.0-rc.23",
43
+ "@xylabs/tsconfig": "^7.0.0-rc.23",
44
44
  "typescript": "^5.8.3"
45
45
  },
46
46
  "publishConfig": {
@@ -1,4 +0,0 @@
1
- export * from './Config.ts';
2
- export * from './Diviner.ts';
3
- export * from './HuriPayload.ts';
4
- //# sourceMappingURL=index.d.ts.map
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes