@xyo-network/diviner-model 3.6.0-rc.7 → 3.6.0-rc.9
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/DivinerQueryFunctions.d.ts +3 -2
- package/dist/neutral/DivinerQueryFunctions.d.ts.map +1 -1
- package/dist/neutral/attachable/asAttachableInstance.d.ts +9 -12
- package/dist/neutral/attachable/asAttachableInstance.d.ts.map +1 -1
- package/dist/neutral/typeChecks.d.ts +20 -30
- package/dist/neutral/typeChecks.d.ts.map +1 -1
- package/package.json +9 -9
- package/src/DivinerQueryFunctions.ts +4 -2
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { RetryConfig } from '@xylabs/retry';
|
|
2
2
|
import type { AccountInstance } from '@xyo-network/account-model';
|
|
3
3
|
import type { ModuleQueryResult } from '@xyo-network/module-model';
|
|
4
|
-
import type { Payload,
|
|
4
|
+
import type { Payload, WithOptionalSources, WithoutPrivateStorageMeta } from '@xyo-network/payload-model';
|
|
5
|
+
export type DivinerDivineResult<T extends Payload> = WithoutPrivateStorageMeta<WithOptionalSources<T>>;
|
|
5
6
|
export interface DivinerQueryFunctions<TIn extends Payload = Payload, TOut extends Payload = Payload> {
|
|
6
|
-
divine: (payloads?: TIn[], retry?: RetryConfig) => Promise<
|
|
7
|
+
divine: (payloads?: TIn[], retry?: RetryConfig) => Promise<DivinerDivineResult<TOut>[]>;
|
|
7
8
|
divineQuery: (payloads?: TIn[], account?: AccountInstance, retry?: RetryConfig) => Promise<ModuleQueryResult<TOut>>;
|
|
8
9
|
}
|
|
9
10
|
//# sourceMappingURL=DivinerQueryFunctions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DivinerQueryFunctions.d.ts","sourceRoot":"","sources":["../../src/DivinerQueryFunctions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAChD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAClE,OAAO,KAAK,EACV,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"DivinerQueryFunctions.d.ts","sourceRoot":"","sources":["../../src/DivinerQueryFunctions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAChD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAClE,OAAO,KAAK,EACV,OAAO,EAAE,mBAAmB,EAAE,yBAAyB,EACxD,MAAM,4BAA4B,CAAA;AAEnC,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,OAAO,IAAI,yBAAyB,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAA;AAEtG,MAAM,WAAW,qBAAqB,CAAC,GAAG,SAAS,OAAO,GAAG,OAAO,EAAE,IAAI,SAAS,OAAO,GAAG,OAAO;IAClG,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,EAAE,KAAK,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,mBAAmB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;IACvF,WAAW,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,EAAE,OAAO,CAAC,EAAE,eAAe,EAAE,KAAK,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAA;CACpH"}
|
|
@@ -4,7 +4,7 @@ export declare const asAttachableDivinerInstance: {
|
|
|
4
4
|
addToResolvers?: boolean;
|
|
5
5
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
6
6
|
allowNameResolution?: boolean;
|
|
7
|
-
config: import("@
|
|
7
|
+
config: import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
8
8
|
schema: import("@xyo-network/payload-model").Schema;
|
|
9
9
|
readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
|
|
10
10
|
readonly archiving?: {
|
|
@@ -13,7 +13,6 @@ export declare const asAttachableDivinerInstance: {
|
|
|
13
13
|
} | undefined;
|
|
14
14
|
readonly allowedQueries?: string[] | undefined;
|
|
15
15
|
readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
|
|
16
|
-
readonly certify?: boolean | undefined;
|
|
17
16
|
readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
|
|
18
17
|
readonly labels?: {
|
|
19
18
|
[x: string]: string | undefined;
|
|
@@ -43,9 +42,9 @@ export declare const asAttachableDivinerInstance: {
|
|
|
43
42
|
}>;
|
|
44
43
|
ephemeralQueryAccountEnabled?: boolean;
|
|
45
44
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
46
|
-
}, import("@
|
|
45
|
+
}, import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
47
46
|
schema: import("@xyo-network/payload-model").Schema;
|
|
48
|
-
}>, import("@
|
|
47
|
+
}>, import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
49
48
|
schema: import("@xyo-network/payload-model").Schema;
|
|
50
49
|
}>, import("../EventData.ts").DivinerModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
51
50
|
<TType extends import("./AttachableInstance.ts").AttachableDivinerInstance<import("@xylabs/object").BaseParamsFields & {
|
|
@@ -53,7 +52,7 @@ export declare const asAttachableDivinerInstance: {
|
|
|
53
52
|
addToResolvers?: boolean;
|
|
54
53
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
55
54
|
allowNameResolution?: boolean;
|
|
56
|
-
config: import("@
|
|
55
|
+
config: import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
57
56
|
schema: import("@xyo-network/payload-model").Schema;
|
|
58
57
|
readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
|
|
59
58
|
readonly archiving?: {
|
|
@@ -62,7 +61,6 @@ export declare const asAttachableDivinerInstance: {
|
|
|
62
61
|
} | undefined;
|
|
63
62
|
readonly allowedQueries?: string[] | undefined;
|
|
64
63
|
readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
|
|
65
|
-
readonly certify?: boolean | undefined;
|
|
66
64
|
readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
|
|
67
65
|
readonly labels?: {
|
|
68
66
|
[x: string]: string | undefined;
|
|
@@ -92,16 +90,16 @@ export declare const asAttachableDivinerInstance: {
|
|
|
92
90
|
}>;
|
|
93
91
|
ephemeralQueryAccountEnabled?: boolean;
|
|
94
92
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
95
|
-
}, import("@
|
|
93
|
+
}, import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
96
94
|
schema: import("@xyo-network/payload-model").Schema;
|
|
97
|
-
}>, import("@
|
|
95
|
+
}>, import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
98
96
|
schema: import("@xyo-network/payload-model").Schema;
|
|
99
97
|
}>, import("../EventData.ts").DivinerModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<import("./AttachableInstance.ts").AttachableDivinerInstance<import("@xylabs/object").BaseParamsFields & {
|
|
100
98
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
101
99
|
addToResolvers?: boolean;
|
|
102
100
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
103
101
|
allowNameResolution?: boolean;
|
|
104
|
-
config: import("@
|
|
102
|
+
config: import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
105
103
|
schema: import("@xyo-network/payload-model").Schema;
|
|
106
104
|
readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
|
|
107
105
|
readonly archiving?: {
|
|
@@ -110,7 +108,6 @@ export declare const asAttachableDivinerInstance: {
|
|
|
110
108
|
} | undefined;
|
|
111
109
|
readonly allowedQueries?: string[] | undefined;
|
|
112
110
|
readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
|
|
113
|
-
readonly certify?: boolean | undefined;
|
|
114
111
|
readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
|
|
115
112
|
readonly labels?: {
|
|
116
113
|
[x: string]: string | undefined;
|
|
@@ -140,9 +137,9 @@ export declare const asAttachableDivinerInstance: {
|
|
|
140
137
|
}>;
|
|
141
138
|
ephemeralQueryAccountEnabled?: boolean;
|
|
142
139
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
143
|
-
}, import("@
|
|
140
|
+
}, import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
144
141
|
schema: import("@xyo-network/payload-model").Schema;
|
|
145
|
-
}>, import("@
|
|
142
|
+
}>, import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
146
143
|
schema: import("@xyo-network/payload-model").Schema;
|
|
147
144
|
}>, import("../EventData.ts").DivinerModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
148
145
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asAttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/asAttachableInstance.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,2BAA2B
|
|
1
|
+
{"version":3,"file":"asAttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/asAttachableInstance.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yEACP,iBAAiB,iCAAiC,gBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yEAA+E,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAAgG,gBAAoB;CAD7N,CAAA"}
|
|
@@ -5,7 +5,7 @@ export declare const isDivinerInstance: import("@xylabs/object").TypeCheck<Divin
|
|
|
5
5
|
addToResolvers?: boolean;
|
|
6
6
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
7
7
|
allowNameResolution?: boolean;
|
|
8
|
-
config: import("@
|
|
8
|
+
config: import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
9
9
|
schema: import("@xyo-network/payload-model").Schema;
|
|
10
10
|
readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
|
|
11
11
|
readonly archiving?: {
|
|
@@ -14,7 +14,6 @@ export declare const isDivinerInstance: import("@xylabs/object").TypeCheck<Divin
|
|
|
14
14
|
} | undefined;
|
|
15
15
|
readonly allowedQueries?: string[] | undefined;
|
|
16
16
|
readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
|
|
17
|
-
readonly certify?: boolean | undefined;
|
|
18
17
|
readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
|
|
19
18
|
readonly labels?: {
|
|
20
19
|
[x: string]: string | undefined;
|
|
@@ -44,9 +43,9 @@ export declare const isDivinerInstance: import("@xylabs/object").TypeCheck<Divin
|
|
|
44
43
|
}>;
|
|
45
44
|
ephemeralQueryAccountEnabled?: boolean;
|
|
46
45
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
47
|
-
}, import("@
|
|
46
|
+
}, import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
48
47
|
schema: import("@xyo-network/payload-model").Schema;
|
|
49
|
-
}>, import("@
|
|
48
|
+
}>, import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
50
49
|
schema: import("@xyo-network/payload-model").Schema;
|
|
51
50
|
}>, import("./EventData.ts").DivinerModuleEventData>>;
|
|
52
51
|
export declare const isDivinerModule: import("@xyo-network/module-model").ModuleTypeCheck<DivinerModule<import("@xylabs/object").BaseParamsFields & {
|
|
@@ -54,7 +53,7 @@ export declare const isDivinerModule: import("@xyo-network/module-model").Module
|
|
|
54
53
|
addToResolvers?: boolean;
|
|
55
54
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
56
55
|
allowNameResolution?: boolean;
|
|
57
|
-
config: import("@
|
|
56
|
+
config: import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
58
57
|
schema: import("@xyo-network/payload-model").Schema;
|
|
59
58
|
readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
|
|
60
59
|
readonly archiving?: {
|
|
@@ -63,7 +62,6 @@ export declare const isDivinerModule: import("@xyo-network/module-model").Module
|
|
|
63
62
|
} | undefined;
|
|
64
63
|
readonly allowedQueries?: string[] | undefined;
|
|
65
64
|
readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
|
|
66
|
-
readonly certify?: boolean | undefined;
|
|
67
65
|
readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
|
|
68
66
|
readonly labels?: {
|
|
69
67
|
[x: string]: string | undefined;
|
|
@@ -100,7 +98,7 @@ export declare const asDivinerModule: {
|
|
|
100
98
|
addToResolvers?: boolean;
|
|
101
99
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
102
100
|
allowNameResolution?: boolean;
|
|
103
|
-
config: import("@
|
|
101
|
+
config: import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
104
102
|
schema: import("@xyo-network/payload-model").Schema;
|
|
105
103
|
readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
|
|
106
104
|
readonly archiving?: {
|
|
@@ -109,7 +107,6 @@ export declare const asDivinerModule: {
|
|
|
109
107
|
} | undefined;
|
|
110
108
|
readonly allowedQueries?: string[] | undefined;
|
|
111
109
|
readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
|
|
112
|
-
readonly certify?: boolean | undefined;
|
|
113
110
|
readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
|
|
114
111
|
readonly labels?: {
|
|
115
112
|
[x: string]: string | undefined;
|
|
@@ -145,7 +142,7 @@ export declare const asDivinerModule: {
|
|
|
145
142
|
addToResolvers?: boolean;
|
|
146
143
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
147
144
|
allowNameResolution?: boolean;
|
|
148
|
-
config: import("@
|
|
145
|
+
config: import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
149
146
|
schema: import("@xyo-network/payload-model").Schema;
|
|
150
147
|
readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
|
|
151
148
|
readonly archiving?: {
|
|
@@ -154,7 +151,6 @@ export declare const asDivinerModule: {
|
|
|
154
151
|
} | undefined;
|
|
155
152
|
readonly allowedQueries?: string[] | undefined;
|
|
156
153
|
readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
|
|
157
|
-
readonly certify?: boolean | undefined;
|
|
158
154
|
readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
|
|
159
155
|
readonly labels?: {
|
|
160
156
|
[x: string]: string | undefined;
|
|
@@ -189,7 +185,7 @@ export declare const asDivinerModule: {
|
|
|
189
185
|
addToResolvers?: boolean;
|
|
190
186
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
191
187
|
allowNameResolution?: boolean;
|
|
192
|
-
config: import("@
|
|
188
|
+
config: import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
193
189
|
schema: import("@xyo-network/payload-model").Schema;
|
|
194
190
|
readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
|
|
195
191
|
readonly archiving?: {
|
|
@@ -198,7 +194,6 @@ export declare const asDivinerModule: {
|
|
|
198
194
|
} | undefined;
|
|
199
195
|
readonly allowedQueries?: string[] | undefined;
|
|
200
196
|
readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
|
|
201
|
-
readonly certify?: boolean | undefined;
|
|
202
197
|
readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
|
|
203
198
|
readonly labels?: {
|
|
204
199
|
[x: string]: string | undefined;
|
|
@@ -236,7 +231,7 @@ export declare const asDivinerInstance: {
|
|
|
236
231
|
addToResolvers?: boolean;
|
|
237
232
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
238
233
|
allowNameResolution?: boolean;
|
|
239
|
-
config: import("@
|
|
234
|
+
config: import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
240
235
|
schema: import("@xyo-network/payload-model").Schema;
|
|
241
236
|
readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
|
|
242
237
|
readonly archiving?: {
|
|
@@ -245,7 +240,6 @@ export declare const asDivinerInstance: {
|
|
|
245
240
|
} | undefined;
|
|
246
241
|
readonly allowedQueries?: string[] | undefined;
|
|
247
242
|
readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
|
|
248
|
-
readonly certify?: boolean | undefined;
|
|
249
243
|
readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
|
|
250
244
|
readonly labels?: {
|
|
251
245
|
[x: string]: string | undefined;
|
|
@@ -275,9 +269,9 @@ export declare const asDivinerInstance: {
|
|
|
275
269
|
}>;
|
|
276
270
|
ephemeralQueryAccountEnabled?: boolean;
|
|
277
271
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
278
|
-
}, import("@
|
|
272
|
+
}, import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
279
273
|
schema: import("@xyo-network/payload-model").Schema;
|
|
280
|
-
}>, import("@
|
|
274
|
+
}>, import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
281
275
|
schema: import("@xyo-network/payload-model").Schema;
|
|
282
276
|
}>, import("./EventData.ts").DivinerModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
283
277
|
<TType extends DivinerInstance<import("@xylabs/object").BaseParamsFields & {
|
|
@@ -285,7 +279,7 @@ export declare const asDivinerInstance: {
|
|
|
285
279
|
addToResolvers?: boolean;
|
|
286
280
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
287
281
|
allowNameResolution?: boolean;
|
|
288
|
-
config: import("@
|
|
282
|
+
config: import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
289
283
|
schema: import("@xyo-network/payload-model").Schema;
|
|
290
284
|
readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
|
|
291
285
|
readonly archiving?: {
|
|
@@ -294,7 +288,6 @@ export declare const asDivinerInstance: {
|
|
|
294
288
|
} | undefined;
|
|
295
289
|
readonly allowedQueries?: string[] | undefined;
|
|
296
290
|
readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
|
|
297
|
-
readonly certify?: boolean | undefined;
|
|
298
291
|
readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
|
|
299
292
|
readonly labels?: {
|
|
300
293
|
[x: string]: string | undefined;
|
|
@@ -324,16 +317,16 @@ export declare const asDivinerInstance: {
|
|
|
324
317
|
}>;
|
|
325
318
|
ephemeralQueryAccountEnabled?: boolean;
|
|
326
319
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
327
|
-
}, import("@
|
|
320
|
+
}, import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
328
321
|
schema: import("@xyo-network/payload-model").Schema;
|
|
329
|
-
}>, import("@
|
|
322
|
+
}>, import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
330
323
|
schema: import("@xyo-network/payload-model").Schema;
|
|
331
324
|
}>, import("./EventData.ts").DivinerModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<DivinerInstance<import("@xylabs/object").BaseParamsFields & {
|
|
332
325
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
333
326
|
addToResolvers?: boolean;
|
|
334
327
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
335
328
|
allowNameResolution?: boolean;
|
|
336
|
-
config: import("@
|
|
329
|
+
config: import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
337
330
|
schema: import("@xyo-network/payload-model").Schema;
|
|
338
331
|
readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
|
|
339
332
|
readonly archiving?: {
|
|
@@ -342,7 +335,6 @@ export declare const asDivinerInstance: {
|
|
|
342
335
|
} | undefined;
|
|
343
336
|
readonly allowedQueries?: string[] | undefined;
|
|
344
337
|
readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
|
|
345
|
-
readonly certify?: boolean | undefined;
|
|
346
338
|
readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
|
|
347
339
|
readonly labels?: {
|
|
348
340
|
[x: string]: string | undefined;
|
|
@@ -372,9 +364,9 @@ export declare const asDivinerInstance: {
|
|
|
372
364
|
}>;
|
|
373
365
|
ephemeralQueryAccountEnabled?: boolean;
|
|
374
366
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
375
|
-
}, import("@
|
|
367
|
+
}, import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
376
368
|
schema: import("@xyo-network/payload-model").Schema;
|
|
377
|
-
}>, import("@
|
|
369
|
+
}>, import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
378
370
|
schema: import("@xyo-network/payload-model").Schema;
|
|
379
371
|
}>, import("./EventData.ts").DivinerModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
380
372
|
};
|
|
@@ -383,7 +375,7 @@ export declare const withDivinerModule: <R>(mod: any, closure: (mod: DivinerModu
|
|
|
383
375
|
addToResolvers?: boolean;
|
|
384
376
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
385
377
|
allowNameResolution?: boolean;
|
|
386
|
-
config: import("@
|
|
378
|
+
config: import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
387
379
|
schema: import("@xyo-network/payload-model").Schema;
|
|
388
380
|
readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
|
|
389
381
|
readonly archiving?: {
|
|
@@ -392,7 +384,6 @@ export declare const withDivinerModule: <R>(mod: any, closure: (mod: DivinerModu
|
|
|
392
384
|
} | undefined;
|
|
393
385
|
readonly allowedQueries?: string[] | undefined;
|
|
394
386
|
readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
|
|
395
|
-
readonly certify?: boolean | undefined;
|
|
396
387
|
readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
|
|
397
388
|
readonly labels?: {
|
|
398
389
|
[x: string]: string | undefined;
|
|
@@ -428,7 +419,7 @@ export declare const withDivinerInstance: <R>(mod: any, closure: (mod: DivinerIn
|
|
|
428
419
|
addToResolvers?: boolean;
|
|
429
420
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
430
421
|
allowNameResolution?: boolean;
|
|
431
|
-
config: import("@
|
|
422
|
+
config: import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
432
423
|
schema: import("@xyo-network/payload-model").Schema;
|
|
433
424
|
readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
|
|
434
425
|
readonly archiving?: {
|
|
@@ -437,7 +428,6 @@ export declare const withDivinerInstance: <R>(mod: any, closure: (mod: DivinerIn
|
|
|
437
428
|
} | undefined;
|
|
438
429
|
readonly allowedQueries?: string[] | undefined;
|
|
439
430
|
readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
|
|
440
|
-
readonly certify?: boolean | undefined;
|
|
441
431
|
readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
|
|
442
432
|
readonly labels?: {
|
|
443
433
|
[x: string]: string | undefined;
|
|
@@ -467,9 +457,9 @@ export declare const withDivinerInstance: <R>(mod: any, closure: (mod: DivinerIn
|
|
|
467
457
|
}>;
|
|
468
458
|
ephemeralQueryAccountEnabled?: boolean;
|
|
469
459
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
470
|
-
}, import("@
|
|
460
|
+
}, import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
471
461
|
schema: import("@xyo-network/payload-model").Schema;
|
|
472
|
-
}>, import("@
|
|
462
|
+
}>, import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
473
463
|
schema: import("@xyo-network/payload-model").Schema;
|
|
474
464
|
}>, import("./EventData.ts").DivinerModuleEventData>) => R) => R | undefined;
|
|
475
465
|
//# 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
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qDAA8F,CAAA;AAC5H,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oDAA0E,CAAA;AAEtG,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uEANO,iBAChC,iCAAiC,gBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uEAEgB,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0EAC7B,gBAAoB;CAEV,CAAA;AACtE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wEAPK,iBAChC,iCAAiC,gBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wEAEgB,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2EAC7B,gBAAoB;CAGN,CAAA;AAC1E,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2EAAsC,CAAA;AACpE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAAwC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/diviner-model",
|
|
3
|
-
"version": "3.6.0-rc.
|
|
3
|
+
"version": "3.6.0-rc.9",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
"module": "dist/neutral/index.mjs",
|
|
30
30
|
"types": "dist/neutral/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@xylabs/hex": "^4.4.
|
|
33
|
-
"@xylabs/object": "^4.4.
|
|
34
|
-
"@xylabs/retry": "^4.4.
|
|
35
|
-
"@xylabs/typeof": "^4.4.
|
|
36
|
-
"@xyo-network/account-model": "^3.6.0-rc.
|
|
37
|
-
"@xyo-network/module-events": "^3.6.0-rc.
|
|
38
|
-
"@xyo-network/module-model": "^3.6.0-rc.
|
|
39
|
-
"@xyo-network/payload-model": "^3.6.0-rc.
|
|
32
|
+
"@xylabs/hex": "^4.4.18",
|
|
33
|
+
"@xylabs/object": "^4.4.18",
|
|
34
|
+
"@xylabs/retry": "^4.4.18",
|
|
35
|
+
"@xylabs/typeof": "^4.4.18",
|
|
36
|
+
"@xyo-network/account-model": "^3.6.0-rc.9",
|
|
37
|
+
"@xyo-network/module-events": "^3.6.0-rc.9",
|
|
38
|
+
"@xyo-network/module-model": "^3.6.0-rc.9",
|
|
39
|
+
"@xyo-network/payload-model": "^3.6.0-rc.9"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@xylabs/ts-scripts-yarn3": "^4.2.4",
|
|
@@ -2,10 +2,12 @@ import type { RetryConfig } from '@xylabs/retry'
|
|
|
2
2
|
import type { AccountInstance } from '@xyo-network/account-model'
|
|
3
3
|
import type { ModuleQueryResult } from '@xyo-network/module-model'
|
|
4
4
|
import type {
|
|
5
|
-
Payload,
|
|
5
|
+
Payload, WithOptionalSources, WithoutPrivateStorageMeta,
|
|
6
6
|
} from '@xyo-network/payload-model'
|
|
7
7
|
|
|
8
|
+
export type DivinerDivineResult<T extends Payload> = WithoutPrivateStorageMeta<WithOptionalSources<T>>
|
|
9
|
+
|
|
8
10
|
export interface DivinerQueryFunctions<TIn extends Payload = Payload, TOut extends Payload = Payload> {
|
|
9
|
-
divine: (payloads?: TIn[], retry?: RetryConfig) => Promise<
|
|
11
|
+
divine: (payloads?: TIn[], retry?: RetryConfig) => Promise<DivinerDivineResult<TOut>[]>
|
|
10
12
|
divineQuery: (payloads?: TIn[], account?: AccountInstance, retry?: RetryConfig) => Promise<ModuleQueryResult<TOut>>
|
|
11
13
|
}
|