@xyo-network/diviner-model 3.18.10 → 4.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.
@@ -1,5 +1,5 @@
1
- import type { EmptyObject } from '@xylabs/object';
2
1
  import type { AnyConfigSchema, ModuleParams } from '@xyo-network/module-model';
3
2
  import type { DivinerConfig } from './Config.ts';
4
- export type DivinerParams<TConfig extends AnyConfigSchema<DivinerConfig> = AnyConfigSchema<DivinerConfig>, TAdditional extends EmptyObject | void = void> = ModuleParams<TConfig, TAdditional>;
3
+ export interface DivinerParams<TConfig extends AnyConfigSchema<DivinerConfig> = AnyConfigSchema<DivinerConfig>> extends ModuleParams<TConfig> {
4
+ }
5
5
  //# sourceMappingURL=Params.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../src/Params.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AACjD,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAE9E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEhD,MAAM,MAAM,aAAa,CACvB,OAAO,SAAS,eAAe,CAAC,aAAa,CAAC,GAAG,eAAe,CAAC,aAAa,CAAC,EAC/E,WAAW,SAAS,WAAW,GAAG,IAAI,GAAG,IAAI,IAC3C,YAAY,CAAC,OAAO,EAAE,WAAW,CAAC,CAAA"}
1
+ {"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../src/Params.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAE9E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEhD,MAAM,WAAW,aAAa,CAC5B,OAAO,SAAS,eAAe,CAAC,aAAa,CAAC,GAAG,eAAe,CAAC,aAAa,CAAC,CAC/E,SAAQ,YAAY,CAAC,OAAO,CAAC;CAAG"}
@@ -1,11 +1,2 @@
1
- export declare const asAttachableDivinerInstance: import("@xylabs/object").AsTypeFunction<import("./AttachableInstance.ts").AttachableDivinerInstance<import("@xylabs/base").BaseParamsFields & {
2
- account?: import("@xyo-network/account-model").AccountInstance | "random";
3
- addToResolvers?: boolean;
4
- additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
5
- allowNameResolution?: boolean;
6
- config: import("@xyo-network/module-model").AnyConfigSchema<import("../Config.ts").DivinerConfig>;
7
- ephemeralQueryAccountEnabled?: boolean;
8
- moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
9
- statusReporter?: import("@xyo-network/module-model").ModuleStatusReporter;
10
- } & import("@xyo-network/module-model").ModuleChildrenParams, import("@xyo-network/payload-model").Payload, import("@xyo-network/payload-model").Payload, import("../EventData.ts").DivinerModuleEventData>>;
1
+ export declare const asAttachableDivinerInstance: import("@xylabs/object").AsTypeFunction<import("./AttachableInstance.ts").AttachableDivinerInstance<import("../Params.ts").DivinerParams<import("@xyo-network/module-model").AnyConfigSchema<import("../Config.ts").DivinerConfig>>, import("@xyo-network/payload-model").Payload, import("@xyo-network/payload-model").Payload, import("../EventData.ts").DivinerModuleEventData>>;
11
2
  //# sourceMappingURL=asAttachableInstance.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"asAttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/asAttachableInstance.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,2BAA2B;;;;;;;;;4MAAsD,CAAA"}
1
+ {"version":3,"file":"asAttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/asAttachableInstance.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,2BAA2B,qXAAsD,CAAA"}
@@ -1,63 +1,9 @@
1
1
  import type { DivinerInstance } from './Instance.ts';
2
2
  import type { DivinerModule } from './Module.ts';
3
- export declare const isDivinerInstance: import("@xylabs/object").TypeCheck<DivinerInstance<import("@xylabs/base").BaseParamsFields & {
4
- account?: import("@xyo-network/account-model").AccountInstance | "random";
5
- addToResolvers?: boolean;
6
- additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
7
- allowNameResolution?: boolean;
8
- config: import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").DivinerConfig>;
9
- ephemeralQueryAccountEnabled?: boolean;
10
- moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
11
- statusReporter?: import("@xyo-network/module-model").ModuleStatusReporter;
12
- } & import("@xyo-network/module-model").ModuleChildrenParams, import("@xyo-network/payload-model").Payload, import("@xyo-network/payload-model").Payload, import("./EventData.ts").DivinerModuleEventData>>;
13
- export declare const isDivinerModule: import("@xyo-network/module-model").ModuleTypeCheck<DivinerModule<import("@xylabs/base").BaseParamsFields & {
14
- account?: import("@xyo-network/account-model").AccountInstance | "random";
15
- addToResolvers?: boolean;
16
- additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
17
- allowNameResolution?: boolean;
18
- config: import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").DivinerConfig>;
19
- ephemeralQueryAccountEnabled?: boolean;
20
- moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
21
- statusReporter?: import("@xyo-network/module-model").ModuleStatusReporter;
22
- } & import("@xyo-network/module-model").ModuleChildrenParams, import("./EventData.ts").DivinerModuleEventData>>;
23
- export declare const asDivinerModule: import("@xylabs/object").AsTypeFunction<DivinerModule<import("@xylabs/base").BaseParamsFields & {
24
- account?: import("@xyo-network/account-model").AccountInstance | "random";
25
- addToResolvers?: boolean;
26
- additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
27
- allowNameResolution?: boolean;
28
- config: import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").DivinerConfig>;
29
- ephemeralQueryAccountEnabled?: boolean;
30
- moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
31
- statusReporter?: import("@xyo-network/module-model").ModuleStatusReporter;
32
- } & import("@xyo-network/module-model").ModuleChildrenParams, import("./EventData.ts").DivinerModuleEventData>>;
33
- export declare const asDivinerInstance: import("@xylabs/object").AsTypeFunction<DivinerInstance<import("@xylabs/base").BaseParamsFields & {
34
- account?: import("@xyo-network/account-model").AccountInstance | "random";
35
- addToResolvers?: boolean;
36
- additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
37
- allowNameResolution?: boolean;
38
- config: import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").DivinerConfig>;
39
- ephemeralQueryAccountEnabled?: boolean;
40
- moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
41
- statusReporter?: import("@xyo-network/module-model").ModuleStatusReporter;
42
- } & import("@xyo-network/module-model").ModuleChildrenParams, import("@xyo-network/payload-model").Payload, import("@xyo-network/payload-model").Payload, import("./EventData.ts").DivinerModuleEventData>>;
43
- export declare const withDivinerModule: <R>(mod: any, closure: (mod: DivinerModule<import("@xylabs/base").BaseParamsFields & {
44
- account?: import("@xyo-network/account-model").AccountInstance | "random";
45
- addToResolvers?: boolean;
46
- additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
47
- allowNameResolution?: boolean;
48
- config: import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").DivinerConfig>;
49
- ephemeralQueryAccountEnabled?: boolean;
50
- moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
51
- statusReporter?: import("@xyo-network/module-model").ModuleStatusReporter;
52
- } & import("@xyo-network/module-model").ModuleChildrenParams, import("./EventData.ts").DivinerModuleEventData>) => R) => R | undefined;
53
- export declare const withDivinerInstance: <R>(mod: any, closure: (mod: DivinerInstance<import("@xylabs/base").BaseParamsFields & {
54
- account?: import("@xyo-network/account-model").AccountInstance | "random";
55
- addToResolvers?: boolean;
56
- additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
57
- allowNameResolution?: boolean;
58
- config: import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").DivinerConfig>;
59
- ephemeralQueryAccountEnabled?: boolean;
60
- moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
61
- statusReporter?: import("@xyo-network/module-model").ModuleStatusReporter;
62
- } & import("@xyo-network/module-model").ModuleChildrenParams, import("@xyo-network/payload-model").Payload, import("@xyo-network/payload-model").Payload, import("./EventData.ts").DivinerModuleEventData>) => R) => R | undefined;
3
+ export declare const isDivinerInstance: import("@xylabs/object").TypeCheck<DivinerInstance<import("./Params.ts").DivinerParams<import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").DivinerConfig>>, import("@xyo-network/payload-model").Payload, import("@xyo-network/payload-model").Payload, import("./EventData.ts").DivinerModuleEventData>>;
4
+ export declare const isDivinerModule: import("@xyo-network/module-model").ModuleTypeCheck<DivinerModule<import("./Params.ts").DivinerParams<import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").DivinerConfig>>, import("./EventData.ts").DivinerModuleEventData>>;
5
+ export declare const asDivinerModule: import("@xylabs/object").AsTypeFunction<DivinerModule<import("./Params.ts").DivinerParams<import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").DivinerConfig>>, import("./EventData.ts").DivinerModuleEventData>>;
6
+ export declare const asDivinerInstance: import("@xylabs/object").AsTypeFunction<DivinerInstance<import("./Params.ts").DivinerParams<import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").DivinerConfig>>, import("@xyo-network/payload-model").Payload, import("@xyo-network/payload-model").Payload, import("./EventData.ts").DivinerModuleEventData>>;
7
+ export declare const withDivinerModule: <R>(mod: any, closure: (mod: DivinerModule<import("./Params.ts").DivinerParams<import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").DivinerConfig>>, import("./EventData.ts").DivinerModuleEventData>) => R) => R | undefined;
8
+ export declare const withDivinerInstance: <R>(mod: any, closure: (mod: DivinerInstance<import("./Params.ts").DivinerParams<import("@xyo-network/module-model").AnyConfigSchema<import("./Config.ts").DivinerConfig>>, import("@xyo-network/payload-model").Payload, import("@xyo-network/payload-model").Payload, import("./EventData.ts").DivinerModuleEventData>) => R) => R | undefined;
63
9
  //# sourceMappingURL=typeChecks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"typeChecks.d.ts","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAGhD,eAAO,MAAM,iBAAiB;;;;;;;;;2MAA8F,CAAA;AAC5H,eAAO,MAAM,eAAe;;;;;;;;;+GAA0E,CAAA;AAEtG,eAAO,MAAM,eAAe;;;;;;;;;+GAA0C,CAAA;AACtE,eAAO,MAAM,iBAAiB;;;;;;;;;2MAA4C,CAAA;AAC1E,eAAO,MAAM,iBAAiB;;;;;;;;;sIAAsC,CAAA;AACpE,eAAO,MAAM,mBAAmB;;;;;;;;;kOAAwC,CAAA"}
1
+ {"version":3,"file":"typeChecks.d.ts","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAGhD,eAAO,MAAM,iBAAiB,iUAA8F,CAAA;AAC5H,eAAO,MAAM,eAAe,oPAA0E,CAAA;AAEtG,eAAO,MAAM,eAAe,wOAA0C,CAAA;AACtE,eAAO,MAAM,iBAAiB,sUAA4C,CAAA;AAC1E,eAAO,MAAM,iBAAiB,oPAAsC,CAAA;AACpE,eAAO,MAAM,mBAAmB,kVAAwC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/diviner-model",
3
- "version": "3.18.10",
3
+ "version": "4.0.0",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -29,18 +29,18 @@
29
29
  "module": "dist/neutral/index.mjs",
30
30
  "types": "dist/types/index.d.ts",
31
31
  "dependencies": {
32
- "@xylabs/events": "^4.11.21",
33
- "@xylabs/hex": "^4.11.21",
34
- "@xylabs/object": "^4.11.21",
35
- "@xylabs/retry": "^4.11.21",
36
- "@xylabs/typeof": "^4.11.21",
37
- "@xyo-network/account-model": "^3.18.10",
38
- "@xyo-network/module-model": "^3.18.10",
39
- "@xyo-network/payload-model": "^3.18.10"
32
+ "@xylabs/events": "^4.12.30",
33
+ "@xylabs/hex": "^4.12.30",
34
+ "@xylabs/object": "^4.12.30",
35
+ "@xylabs/retry": "^4.12.30",
36
+ "@xylabs/typeof": "^4.12.30",
37
+ "@xyo-network/account-model": "^4.0.0",
38
+ "@xyo-network/module-model": "^4.0.0",
39
+ "@xyo-network/payload-model": "^4.0.0"
40
40
  },
41
41
  "devDependencies": {
42
- "@xylabs/ts-scripts-yarn3": "^6.5.8",
43
- "@xylabs/tsconfig": "^6.5.8",
42
+ "@xylabs/ts-scripts-yarn3": "^6.5.12",
43
+ "@xylabs/tsconfig": "^6.5.12",
44
44
  "typescript": "^5.8.3"
45
45
  },
46
46
  "publishConfig": {
package/src/Params.ts CHANGED
@@ -1,9 +1,7 @@
1
- import type { EmptyObject } from '@xylabs/object'
2
1
  import type { AnyConfigSchema, ModuleParams } from '@xyo-network/module-model'
3
2
 
4
3
  import type { DivinerConfig } from './Config.ts'
5
4
 
6
- export type DivinerParams<
5
+ export interface DivinerParams<
7
6
  TConfig extends AnyConfigSchema<DivinerConfig> = AnyConfigSchema<DivinerConfig>,
8
- TAdditional extends EmptyObject | void = void,
9
- > = ModuleParams<TConfig, TAdditional>
7
+ > extends ModuleParams<TConfig> {}