@xyo-network/diviner-wrapper 3.5.2 → 3.6.0-rc.10
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.
|
@@ -3,55 +3,144 @@ import type { AccountInstance } from '@xyo-network/account-model';
|
|
|
3
3
|
import type { DivinerInstance, DivinerModule, DivinerParams } from '@xyo-network/diviner-model';
|
|
4
4
|
import type { ModuleQueryResult } from '@xyo-network/module-model';
|
|
5
5
|
import { ModuleWrapper } from '@xyo-network/module-wrapper';
|
|
6
|
-
import type { Payload,
|
|
6
|
+
import type { Payload, WithoutPrivateStorageMeta, WithSources } from '@xyo-network/payload-model';
|
|
7
7
|
export declare class DivinerWrapper<TWrappedModule extends DivinerModule<DivinerParams>, TIn extends Payload = Payload, TOut extends Payload = Payload> extends ModuleWrapper<TWrappedModule> implements DivinerInstance<TWrappedModule['params'], TIn, TOut> {
|
|
8
8
|
static instanceIdentityCheck: import("@xylabs/object").TypeCheck<DivinerInstance<import("@xylabs/object").BaseParamsFields & {
|
|
9
9
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
10
10
|
addToResolvers?: boolean;
|
|
11
11
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
12
12
|
allowNameResolution?: boolean;
|
|
13
|
-
config: import("@
|
|
14
|
-
schema: "network.
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
config: import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
14
|
+
schema: import("@xyo-network/payload-model").Schema;
|
|
15
|
+
readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
|
|
16
|
+
readonly archiving?: {
|
|
17
|
+
readonly archivists?: string[] | undefined;
|
|
18
|
+
readonly queries?: string[] | undefined;
|
|
19
|
+
} | undefined;
|
|
20
|
+
readonly allowedQueries?: string[] | undefined;
|
|
21
|
+
readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
|
|
22
|
+
readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
|
|
23
|
+
readonly labels?: {
|
|
24
|
+
[x: string]: string | undefined;
|
|
25
|
+
} | undefined;
|
|
26
|
+
readonly paging?: {
|
|
27
|
+
[x: string]: {
|
|
28
|
+
size?: number | undefined;
|
|
29
|
+
};
|
|
30
|
+
} | undefined;
|
|
31
|
+
readonly retry?: {
|
|
32
|
+
backoff?: number | undefined;
|
|
33
|
+
interval?: number | undefined;
|
|
34
|
+
retries?: number | undefined;
|
|
35
|
+
} | undefined;
|
|
36
|
+
readonly security?: {
|
|
37
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
38
|
+
readonly allowed?: {
|
|
39
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
40
|
+
} | undefined;
|
|
41
|
+
readonly disallowed?: {
|
|
42
|
+
[x: string]: Lowercase<string>[];
|
|
43
|
+
} | undefined;
|
|
44
|
+
} | undefined;
|
|
45
|
+
readonly sign?: boolean | undefined;
|
|
46
|
+
readonly storeQueries?: boolean | undefined;
|
|
47
|
+
readonly timestamp?: boolean | undefined;
|
|
48
|
+
}>;
|
|
20
49
|
ephemeralQueryAccountEnabled?: boolean;
|
|
21
50
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
22
|
-
}, {
|
|
23
|
-
schema:
|
|
24
|
-
}
|
|
25
|
-
schema:
|
|
26
|
-
}
|
|
51
|
+
}, import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
52
|
+
schema: import("@xyo-network/payload-model").Schema;
|
|
53
|
+
}>, import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
54
|
+
schema: import("@xyo-network/payload-model").Schema;
|
|
55
|
+
}>, import("@xyo-network/diviner-model").DivinerModuleEventData<import("@xyo-network/module-model").ModuleInstance<import("@xylabs/object").BaseParamsFields & {
|
|
27
56
|
account?: AccountInstance | "random";
|
|
28
57
|
addToResolvers?: boolean;
|
|
29
58
|
additionalSigners?: AccountInstance[];
|
|
30
59
|
allowNameResolution?: boolean;
|
|
31
|
-
config: import("@
|
|
32
|
-
schema: "network.
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
60
|
+
config: import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
61
|
+
schema: import("@xyo-network/payload-model").Schema;
|
|
62
|
+
readonly archiving?: {
|
|
63
|
+
readonly archivists?: string[] | undefined;
|
|
64
|
+
readonly queries?: string[] | undefined;
|
|
65
|
+
} | undefined;
|
|
66
|
+
readonly allowedQueries?: string[] | undefined;
|
|
67
|
+
readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
|
|
68
|
+
readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
|
|
69
|
+
readonly labels?: {
|
|
70
|
+
[x: string]: string | undefined;
|
|
71
|
+
} | undefined;
|
|
72
|
+
readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
|
|
73
|
+
readonly paging?: {
|
|
74
|
+
[x: string]: {
|
|
75
|
+
size?: number | undefined;
|
|
76
|
+
};
|
|
77
|
+
} | undefined;
|
|
78
|
+
readonly retry?: {
|
|
79
|
+
backoff?: number | undefined;
|
|
80
|
+
interval?: number | undefined;
|
|
81
|
+
retries?: number | undefined;
|
|
82
|
+
} | undefined;
|
|
83
|
+
readonly security?: {
|
|
84
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
85
|
+
readonly allowed?: {
|
|
86
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
87
|
+
} | undefined;
|
|
88
|
+
readonly disallowed?: {
|
|
89
|
+
[x: string]: Lowercase<string>[];
|
|
90
|
+
} | undefined;
|
|
91
|
+
} | undefined;
|
|
92
|
+
readonly sign?: boolean | undefined;
|
|
93
|
+
readonly storeQueries?: boolean | undefined;
|
|
94
|
+
readonly timestamp?: boolean | undefined;
|
|
95
|
+
}>;
|
|
36
96
|
ephemeralQueryAccountEnabled?: boolean;
|
|
37
97
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
38
|
-
}, import("@xyo-network/module-model").ModuleEventData<object>>, {
|
|
39
|
-
schema:
|
|
40
|
-
}
|
|
41
|
-
schema:
|
|
42
|
-
}
|
|
98
|
+
}, import("@xyo-network/module-model").ModuleEventData<object>>, import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
99
|
+
schema: import("@xyo-network/payload-model").Schema;
|
|
100
|
+
}>, import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
101
|
+
schema: import("@xyo-network/payload-model").Schema;
|
|
102
|
+
}>>>>;
|
|
43
103
|
static moduleIdentityCheck: import("@xyo-network/module-model").ModuleTypeCheck<DivinerModule<import("@xylabs/object").BaseParamsFields & {
|
|
44
104
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
45
105
|
addToResolvers?: boolean;
|
|
46
106
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
47
107
|
allowNameResolution?: boolean;
|
|
48
|
-
config: import("@
|
|
49
|
-
schema: "network.
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
108
|
+
config: import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
109
|
+
schema: import("@xyo-network/payload-model").Schema;
|
|
110
|
+
readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
|
|
111
|
+
readonly archiving?: {
|
|
112
|
+
readonly archivists?: string[] | undefined;
|
|
113
|
+
readonly queries?: string[] | undefined;
|
|
114
|
+
} | undefined;
|
|
115
|
+
readonly allowedQueries?: string[] | undefined;
|
|
116
|
+
readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
|
|
117
|
+
readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
|
|
118
|
+
readonly labels?: {
|
|
119
|
+
[x: string]: string | undefined;
|
|
120
|
+
} | undefined;
|
|
121
|
+
readonly paging?: {
|
|
122
|
+
[x: string]: {
|
|
123
|
+
size?: number | undefined;
|
|
124
|
+
};
|
|
125
|
+
} | undefined;
|
|
126
|
+
readonly retry?: {
|
|
127
|
+
backoff?: number | undefined;
|
|
128
|
+
interval?: number | undefined;
|
|
129
|
+
retries?: number | undefined;
|
|
130
|
+
} | undefined;
|
|
131
|
+
readonly security?: {
|
|
132
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
133
|
+
readonly allowed?: {
|
|
134
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
135
|
+
} | undefined;
|
|
136
|
+
readonly disallowed?: {
|
|
137
|
+
[x: string]: Lowercase<string>[];
|
|
138
|
+
} | undefined;
|
|
139
|
+
} | undefined;
|
|
140
|
+
readonly sign?: boolean | undefined;
|
|
141
|
+
readonly storeQueries?: boolean | undefined;
|
|
142
|
+
readonly timestamp?: boolean | undefined;
|
|
143
|
+
}>;
|
|
55
144
|
ephemeralQueryAccountEnabled?: boolean;
|
|
56
145
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
57
146
|
}, import("@xyo-network/diviner-model").DivinerModuleEventData<import("@xyo-network/module-model").ModuleInstance<import("@xylabs/object").BaseParamsFields & {
|
|
@@ -59,20 +148,51 @@ export declare class DivinerWrapper<TWrappedModule extends DivinerModule<Diviner
|
|
|
59
148
|
addToResolvers?: boolean;
|
|
60
149
|
additionalSigners?: AccountInstance[];
|
|
61
150
|
allowNameResolution?: boolean;
|
|
62
|
-
config: import("@
|
|
63
|
-
schema: "network.
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
151
|
+
config: import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
152
|
+
schema: import("@xyo-network/payload-model").Schema;
|
|
153
|
+
readonly archiving?: {
|
|
154
|
+
readonly archivists?: string[] | undefined;
|
|
155
|
+
readonly queries?: string[] | undefined;
|
|
156
|
+
} | undefined;
|
|
157
|
+
readonly allowedQueries?: string[] | undefined;
|
|
158
|
+
readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
|
|
159
|
+
readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
|
|
160
|
+
readonly labels?: {
|
|
161
|
+
[x: string]: string | undefined;
|
|
162
|
+
} | undefined;
|
|
163
|
+
readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
|
|
164
|
+
readonly paging?: {
|
|
165
|
+
[x: string]: {
|
|
166
|
+
size?: number | undefined;
|
|
167
|
+
};
|
|
168
|
+
} | undefined;
|
|
169
|
+
readonly retry?: {
|
|
170
|
+
backoff?: number | undefined;
|
|
171
|
+
interval?: number | undefined;
|
|
172
|
+
retries?: number | undefined;
|
|
173
|
+
} | undefined;
|
|
174
|
+
readonly security?: {
|
|
175
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
176
|
+
readonly allowed?: {
|
|
177
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
178
|
+
} | undefined;
|
|
179
|
+
readonly disallowed?: {
|
|
180
|
+
[x: string]: Lowercase<string>[];
|
|
181
|
+
} | undefined;
|
|
182
|
+
} | undefined;
|
|
183
|
+
readonly sign?: boolean | undefined;
|
|
184
|
+
readonly storeQueries?: boolean | undefined;
|
|
185
|
+
readonly timestamp?: boolean | undefined;
|
|
186
|
+
}>;
|
|
67
187
|
ephemeralQueryAccountEnabled?: boolean;
|
|
68
188
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
69
|
-
}, import("@xyo-network/module-model").ModuleEventData<object>>, {
|
|
70
|
-
schema:
|
|
71
|
-
}
|
|
72
|
-
schema:
|
|
73
|
-
}
|
|
189
|
+
}, import("@xyo-network/module-model").ModuleEventData<object>>, import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
190
|
+
schema: import("@xyo-network/payload-model").Schema;
|
|
191
|
+
}>, import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
192
|
+
schema: import("@xyo-network/payload-model").Schema;
|
|
193
|
+
}>>>>;
|
|
74
194
|
static requiredQueries: string[];
|
|
75
|
-
divine(payloads?: TIn[], _retryConfig?: RetryConfig): Promise<
|
|
195
|
+
divine(payloads?: TIn[], _retryConfig?: RetryConfig): Promise<WithoutPrivateStorageMeta<WithSources<TOut>>[]>;
|
|
76
196
|
divineQuery(payloads?: TIn[], account?: AccountInstance, _retryConfig?: RetryConfig): Promise<ModuleQueryResult<TOut>>;
|
|
77
197
|
}
|
|
78
198
|
//# sourceMappingURL=DivinerWrapper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DivinerWrapper.d.ts","sourceRoot":"","sources":["../../src/DivinerWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAChD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,KAAK,EAEV,eAAe,EACf,aAAa,EACb,aAAa,EACd,MAAM,4BAA4B,CAAA;AAMnC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAClE,OAAO,EAA8B,aAAa,EAAE,MAAM,6BAA6B,CAAA;AACvF,OAAO,KAAK,EACV,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"DivinerWrapper.d.ts","sourceRoot":"","sources":["../../src/DivinerWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAChD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,KAAK,EAEV,eAAe,EACf,aAAa,EACb,aAAa,EACd,MAAM,4BAA4B,CAAA;AAMnC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAClE,OAAO,EAA8B,aAAa,EAAE,MAAM,6BAA6B,CAAA;AACvF,OAAO,KAAK,EACV,OAAO,EAAE,yBAAyB,EAAE,WAAW,EAChD,MAAM,4BAA4B,CAAA;AAGnC,qBAAa,cAAc,CAAC,cAAc,SAAS,aAAa,CAAC,aAAa,CAAC,EAAE,GAAG,SAAS,OAAO,GAAG,OAAO,EAAE,IAAI,SAAS,OAAO,GAAG,OAAO,CAC5I,SAAQ,aAAa,CAAC,cAAc,CACpC,YAAW,eAAe,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC;IAC/D,OAAgB,qBAAqB;yBAd1B,4BACA;;mCAGe,4BAA4B;;uBACQ,gBAAgB;2BAElD,4BACvB;yBAEN,CAAC,SAAS,2BACF;8BAAoD,CAAC;mCAAmC,CAAC;gCAC5F,CAAC;;mCACsC,CAAC;8BAClB,CAAC,SAAS,2BACjC;kCACM,CAAC,SAAS,gBAAgB;2BAA+C,CAAC;;;2BAEK,CAAC;;wBACrE,CAAC;;;0BACA,CAAC;uBAAuB,CAAC;wBAGnB,CAAC;uBAAyC,CAAC;;6BAC3D,CAAC;uCAAuC,CAAC;gCAC/B,CAAC;;;mCAG8D,CAAC;;;;yBAA6H,CAAC;iCAAoD,CAAC;8BAAiD,CAAC;;;8CAAqH,2BAA2B;;uBAA2G,4BAA4B;;uBAAqF,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAdzoB;IACzD,OAAgB,mBAAmB;yBAa24B,4BAA4B;;mCAA2F,4BAA4B;;uBAA2E,gBAAgB;2BAAoD,4BAA4B;yBAA+B,CAAC,SAAS,2BAA2B;8BAAoD,CAAC;mCAAmC,CAAC;gCAAoD,CAAC;;mCAA8E,CAAC;8BAAkD,CAAC,SAAS,2BAA2B;kCAA8D,CAAC,SAAS,gBAAgB;2BAA+C,CAAC;;;2BAA+F,CAAC;;wBAAmD,CAAC;;;0BAAkF,CAAC;uBAAuB,CAAC;wBAA0C,CAAC;uBAAyC,CAAC;;6BAAsE,CAAC;uCAAuC,CAAC;gCAAmD,CAAC;;;mCAAwI,CAAC;;;;yBAA6H,CAAC;iCAAoD,CAAC;8BAAiD,CAAC;;;8CAAqH,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAb5qF;IACrD,OAAgB,eAAe,WAAuD;IAEhF,MAAM,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,EAAE,YAAY,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,yBAAyB,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC;IAK7G,WAAW,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,EAAE,OAAO,CAAC,EAAE,eAAe,EAAE,YAAY,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;CAI7H"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/DivinerWrapper.ts"],"sourcesContent":["import type { RetryConfig } from '@xylabs/retry'\nimport type { AccountInstance } from '@xyo-network/account-model'\nimport type {\n DivinerDivineQuery,\n DivinerInstance,\n DivinerModule,\n DivinerParams,\n} from '@xyo-network/diviner-model'\nimport {\n DivinerDivineQuerySchema,\n isDivinerInstance,\n isDivinerModule,\n} from '@xyo-network/diviner-model'\nimport type { ModuleQueryResult } from '@xyo-network/module-model'\nimport { constructableModuleWrapper, ModuleWrapper } from '@xyo-network/module-wrapper'\nimport type {\n Payload,
|
|
1
|
+
{"version":3,"sources":["../../src/DivinerWrapper.ts"],"sourcesContent":["import type { RetryConfig } from '@xylabs/retry'\nimport type { AccountInstance } from '@xyo-network/account-model'\nimport type {\n DivinerDivineQuery,\n DivinerInstance,\n DivinerModule,\n DivinerParams,\n} from '@xyo-network/diviner-model'\nimport {\n DivinerDivineQuerySchema,\n isDivinerInstance,\n isDivinerModule,\n} from '@xyo-network/diviner-model'\nimport type { ModuleQueryResult } from '@xyo-network/module-model'\nimport { constructableModuleWrapper, ModuleWrapper } from '@xyo-network/module-wrapper'\nimport type {\n Payload, WithoutPrivateStorageMeta, WithSources,\n} from '@xyo-network/payload-model'\n\nconstructableModuleWrapper()\nexport class DivinerWrapper<TWrappedModule extends DivinerModule<DivinerParams>, TIn extends Payload = Payload, TOut extends Payload = Payload>\n extends ModuleWrapper<TWrappedModule>\n implements DivinerInstance<TWrappedModule['params'], TIn, TOut> {\n static override instanceIdentityCheck = isDivinerInstance\n static override moduleIdentityCheck = isDivinerModule\n static override requiredQueries = [DivinerDivineQuerySchema, ...super.requiredQueries]\n\n async divine(payloads?: TIn[], _retryConfig?: RetryConfig): Promise<WithoutPrivateStorageMeta<WithSources<TOut>>[]> {\n const queryPayload: DivinerDivineQuery = { schema: DivinerDivineQuerySchema }\n return await this.sendQuery(queryPayload, payloads)\n }\n\n async divineQuery(payloads?: TIn[], account?: AccountInstance, _retryConfig?: RetryConfig): Promise<ModuleQueryResult<TOut>> {\n const queryPayload: DivinerDivineQuery = { schema: DivinerDivineQuerySchema }\n return await this.sendQueryRaw(queryPayload, payloads, account)\n }\n}\n"],"mappings":";;;;AAQA,SACEA,0BACAC,mBACAC,uBACK;AAEP,SAASC,4BAA4BC,qBAAqB;AAK1DC,2BAAAA;AACO,IAAMC,iBAAN,cACGC,cAAAA;EAbV,OAaUA;;;EAER,OAAgBC,wBAAwBC;EACxC,OAAgBC,sBAAsBC;EACtC,OAAgBC,kBAAkB;IAACC;OAA6B,MAAMD;;EAEtE,MAAME,OAAOC,UAAkBC,cAAqF;AAClH,UAAMC,eAAmC;MAAEC,QAAQL;IAAyB;AAC5E,WAAO,MAAM,KAAKM,UAAUF,cAAcF,QAAAA;EAC5C;EAEA,MAAMK,YAAYL,UAAkBM,SAA2BL,cAA8D;AAC3H,UAAMC,eAAmC;MAAEC,QAAQL;IAAyB;AAC5E,WAAO,MAAM,KAAKS,aAAaL,cAAcF,UAAUM,OAAAA;EACzD;AACF;","names":["DivinerDivineQuerySchema","isDivinerInstance","isDivinerModule","constructableModuleWrapper","ModuleWrapper","constructableModuleWrapper","DivinerWrapper","ModuleWrapper","instanceIdentityCheck","isDivinerInstance","moduleIdentityCheck","isDivinerModule","requiredQueries","DivinerDivineQuerySchema","divine","payloads","_retryConfig","queryPayload","schema","sendQuery","divineQuery","account","sendQueryRaw"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/diviner-wrapper",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.0-rc.10",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -29,23 +29,24 @@
|
|
|
29
29
|
"module": "dist/neutral/index.mjs",
|
|
30
30
|
"types": "dist/neutral/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@xylabs/retry": "^4.4.
|
|
33
|
-
"@xyo-network/account-model": "^3.
|
|
34
|
-
"@xyo-network/diviner-model": "^3.
|
|
35
|
-
"@xyo-network/module-model": "^3.
|
|
36
|
-
"@xyo-network/module-wrapper": "^3.
|
|
37
|
-
"@xyo-network/payload-model": "^3.
|
|
32
|
+
"@xylabs/retry": "^4.4.21",
|
|
33
|
+
"@xyo-network/account-model": "^3.6.0-rc.10",
|
|
34
|
+
"@xyo-network/diviner-model": "^3.6.0-rc.10",
|
|
35
|
+
"@xyo-network/module-model": "^3.6.0-rc.10",
|
|
36
|
+
"@xyo-network/module-wrapper": "^3.6.0-rc.10",
|
|
37
|
+
"@xyo-network/payload-model": "^3.6.0-rc.10"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@xylabs/ts-scripts-yarn3": "^4.2.
|
|
41
|
-
"@xylabs/tsconfig": "^4.2.
|
|
42
|
-
"@xylabs/vitest-extended": "^4.4.
|
|
43
|
-
"@xyo-network/diviner-identity": "^3.
|
|
44
|
-
"@xyo-network/payload-builder": "^3.
|
|
40
|
+
"@xylabs/ts-scripts-yarn3": "^4.2.6",
|
|
41
|
+
"@xylabs/tsconfig": "^4.2.6",
|
|
42
|
+
"@xylabs/vitest-extended": "^4.4.21",
|
|
43
|
+
"@xyo-network/diviner-identity": "^3.6.0-rc.10",
|
|
44
|
+
"@xyo-network/payload-builder": "^3.6.0-rc.10",
|
|
45
45
|
"typescript": "^5.7.2",
|
|
46
|
-
"vitest": "^2.1.
|
|
46
|
+
"vitest": "^2.1.8"
|
|
47
47
|
},
|
|
48
48
|
"publishConfig": {
|
|
49
49
|
"access": "public"
|
|
50
|
-
}
|
|
50
|
+
},
|
|
51
|
+
"stableVersion": "3.5.2"
|
|
51
52
|
}
|
package/src/DivinerWrapper.ts
CHANGED
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
import type { ModuleQueryResult } from '@xyo-network/module-model'
|
|
15
15
|
import { constructableModuleWrapper, ModuleWrapper } from '@xyo-network/module-wrapper'
|
|
16
16
|
import type {
|
|
17
|
-
Payload,
|
|
17
|
+
Payload, WithoutPrivateStorageMeta, WithSources,
|
|
18
18
|
} from '@xyo-network/payload-model'
|
|
19
19
|
|
|
20
20
|
constructableModuleWrapper()
|
|
@@ -25,7 +25,7 @@ export class DivinerWrapper<TWrappedModule extends DivinerModule<DivinerParams>,
|
|
|
25
25
|
static override moduleIdentityCheck = isDivinerModule
|
|
26
26
|
static override requiredQueries = [DivinerDivineQuerySchema, ...super.requiredQueries]
|
|
27
27
|
|
|
28
|
-
async divine(payloads?: TIn[], _retryConfig?: RetryConfig): Promise<
|
|
28
|
+
async divine(payloads?: TIn[], _retryConfig?: RetryConfig): Promise<WithoutPrivateStorageMeta<WithSources<TOut>>[]> {
|
|
29
29
|
const queryPayload: DivinerDivineQuery = { schema: DivinerDivineQuerySchema }
|
|
30
30
|
return await this.sendQuery(queryPayload, payloads)
|
|
31
31
|
}
|