@xyo-network/witness-model 2.88.2 → 2.89.0-rc.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.
- package/dist/browser/Config.d.cts +1 -1
- package/dist/browser/Config.d.cts.map +1 -1
- package/dist/browser/Config.d.mts +1 -1
- package/dist/browser/Config.d.mts.map +1 -1
- package/dist/browser/Config.d.ts +1 -1
- package/dist/browser/Config.d.ts.map +1 -1
- package/dist/browser/Params.d.cts +1 -1
- package/dist/browser/Params.d.cts.map +1 -1
- package/dist/browser/Params.d.mts +1 -1
- package/dist/browser/Params.d.mts.map +1 -1
- package/dist/browser/Params.d.ts +1 -1
- package/dist/browser/Params.d.ts.map +1 -1
- package/dist/browser/index.cjs +1 -1
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.js +1 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/typeChecks.d.cts +28 -12
- package/dist/browser/typeChecks.d.cts.map +1 -1
- package/dist/browser/typeChecks.d.mts +28 -12
- package/dist/browser/typeChecks.d.mts.map +1 -1
- package/dist/browser/typeChecks.d.ts +28 -12
- package/dist/browser/typeChecks.d.ts.map +1 -1
- package/dist/node/Config.d.cts +1 -1
- package/dist/node/Config.d.cts.map +1 -1
- package/dist/node/Config.d.mts +1 -1
- package/dist/node/Config.d.mts.map +1 -1
- package/dist/node/Config.d.ts +1 -1
- package/dist/node/Config.d.ts.map +1 -1
- package/dist/node/Params.d.cts +1 -1
- package/dist/node/Params.d.cts.map +1 -1
- package/dist/node/Params.d.mts +1 -1
- package/dist/node/Params.d.mts.map +1 -1
- package/dist/node/Params.d.ts +1 -1
- package/dist/node/Params.d.ts.map +1 -1
- package/dist/node/index.cjs +1 -1
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.js +1 -1
- package/dist/node/index.js.map +1 -1
- package/dist/node/typeChecks.d.cts +28 -12
- package/dist/node/typeChecks.d.cts.map +1 -1
- package/dist/node/typeChecks.d.mts +28 -12
- package/dist/node/typeChecks.d.mts.map +1 -1
- package/dist/node/typeChecks.d.ts +28 -12
- package/dist/node/typeChecks.d.ts.map +1 -1
- package/package.json +8 -7
- package/src/Config.ts +1 -1
- package/src/Params.ts +1 -1
- package/src/typeChecks.ts +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { WitnessInstance } from './Instance';
|
|
2
2
|
import { WitnessModule } from './Module';
|
|
3
|
-
export declare const isWitnessInstance: import("@
|
|
3
|
+
export declare const isWitnessInstance: import("@xylabs/object").TypeCheck<WitnessInstance<import("@xylabs/object").BaseParamsFields & {
|
|
4
4
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
5
5
|
config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
6
6
|
readonly archivist?: string | undefined;
|
|
@@ -9,6 +9,7 @@ export declare const isWitnessInstance: import("@xyo-network/object").TypeCheck<
|
|
|
9
9
|
readonly paging?: Record<string, {
|
|
10
10
|
size?: number | undefined;
|
|
11
11
|
}> | undefined;
|
|
12
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
12
13
|
schema: "network.xyo.witness.config";
|
|
13
14
|
readonly security?: {
|
|
14
15
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -25,6 +26,7 @@ export declare const isWitnessInstance: import("@xyo-network/object").TypeCheck<
|
|
|
25
26
|
readonly paging?: Record<string, {
|
|
26
27
|
size?: number | undefined;
|
|
27
28
|
}> | undefined;
|
|
29
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
28
30
|
schema: "network.xyo.witness.config";
|
|
29
31
|
readonly security?: {
|
|
30
32
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -45,7 +47,7 @@ export declare const isWitnessInstance: import("@xyo-network/object").TypeCheck<
|
|
|
45
47
|
} & object, {
|
|
46
48
|
schema: string;
|
|
47
49
|
} & object>>;
|
|
48
|
-
export declare const isWitnessModule: import("@xyo-network/module-model").ModuleTypeCheck<WitnessModule<import("@
|
|
50
|
+
export declare const isWitnessModule: import("@xyo-network/module-model").ModuleTypeCheck<WitnessModule<import("@xylabs/object").BaseParamsFields & {
|
|
49
51
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
50
52
|
config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
51
53
|
readonly archivist?: string | undefined;
|
|
@@ -54,6 +56,7 @@ export declare const isWitnessModule: import("@xyo-network/module-model").Module
|
|
|
54
56
|
readonly paging?: Record<string, {
|
|
55
57
|
size?: number | undefined;
|
|
56
58
|
}> | undefined;
|
|
59
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
57
60
|
schema: "network.xyo.witness.config";
|
|
58
61
|
readonly security?: {
|
|
59
62
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -70,6 +73,7 @@ export declare const isWitnessModule: import("@xyo-network/module-model").Module
|
|
|
70
73
|
readonly paging?: Record<string, {
|
|
71
74
|
size?: number | undefined;
|
|
72
75
|
}> | undefined;
|
|
76
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
73
77
|
schema: "network.xyo.witness.config";
|
|
74
78
|
readonly security?: {
|
|
75
79
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -91,7 +95,7 @@ export declare const isWitnessModule: import("@xyo-network/module-model").Module
|
|
|
91
95
|
schema: string;
|
|
92
96
|
} & object>>;
|
|
93
97
|
export declare const asWitnessModule: {
|
|
94
|
-
<TType extends WitnessModule<import("@
|
|
98
|
+
<TType extends WitnessModule<import("@xylabs/object").BaseParamsFields & {
|
|
95
99
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
96
100
|
config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
97
101
|
readonly archivist?: string | undefined;
|
|
@@ -100,6 +104,7 @@ export declare const asWitnessModule: {
|
|
|
100
104
|
readonly paging?: Record<string, {
|
|
101
105
|
size?: number | undefined;
|
|
102
106
|
}> | undefined;
|
|
107
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
103
108
|
schema: "network.xyo.witness.config";
|
|
104
109
|
readonly security?: {
|
|
105
110
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -116,6 +121,7 @@ export declare const asWitnessModule: {
|
|
|
116
121
|
readonly paging?: Record<string, {
|
|
117
122
|
size?: number | undefined;
|
|
118
123
|
}> | undefined;
|
|
124
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
119
125
|
schema: "network.xyo.witness.config";
|
|
120
126
|
readonly security?: {
|
|
121
127
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -135,8 +141,8 @@ export declare const asWitnessModule: {
|
|
|
135
141
|
schema: string;
|
|
136
142
|
} & object, {
|
|
137
143
|
schema: string;
|
|
138
|
-
} & object>>(value: unknown, config?: import("@
|
|
139
|
-
<TType_1 extends WitnessModule<import("@
|
|
144
|
+
} & object>>(value: unknown, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType | undefined;
|
|
145
|
+
<TType_1 extends WitnessModule<import("@xylabs/object").BaseParamsFields & {
|
|
140
146
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
141
147
|
config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
142
148
|
readonly archivist?: string | undefined;
|
|
@@ -145,6 +151,7 @@ export declare const asWitnessModule: {
|
|
|
145
151
|
readonly paging?: Record<string, {
|
|
146
152
|
size?: number | undefined;
|
|
147
153
|
}> | undefined;
|
|
154
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
148
155
|
schema: "network.xyo.witness.config";
|
|
149
156
|
readonly security?: {
|
|
150
157
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -161,6 +168,7 @@ export declare const asWitnessModule: {
|
|
|
161
168
|
readonly paging?: Record<string, {
|
|
162
169
|
size?: number | undefined;
|
|
163
170
|
}> | undefined;
|
|
171
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
164
172
|
schema: "network.xyo.witness.config";
|
|
165
173
|
readonly security?: {
|
|
166
174
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -180,10 +188,10 @@ export declare const asWitnessModule: {
|
|
|
180
188
|
schema: string;
|
|
181
189
|
} & object, {
|
|
182
190
|
schema: string;
|
|
183
|
-
} & object>>(value: unknown, assert: string | (() => string), config?: import("@
|
|
191
|
+
} & object>>(value: unknown, assert: string | (() => string), config?: import("@xylabs/object").TypeCheckConfig | undefined): TType_1;
|
|
184
192
|
};
|
|
185
193
|
export declare const asWitnessInstance: {
|
|
186
|
-
<TType extends WitnessInstance<import("@
|
|
194
|
+
<TType extends WitnessInstance<import("@xylabs/object").BaseParamsFields & {
|
|
187
195
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
188
196
|
config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
189
197
|
readonly archivist?: string | undefined;
|
|
@@ -192,6 +200,7 @@ export declare const asWitnessInstance: {
|
|
|
192
200
|
readonly paging?: Record<string, {
|
|
193
201
|
size?: number | undefined;
|
|
194
202
|
}> | undefined;
|
|
203
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
195
204
|
schema: "network.xyo.witness.config";
|
|
196
205
|
readonly security?: {
|
|
197
206
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -208,6 +217,7 @@ export declare const asWitnessInstance: {
|
|
|
208
217
|
readonly paging?: Record<string, {
|
|
209
218
|
size?: number | undefined;
|
|
210
219
|
}> | undefined;
|
|
220
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
211
221
|
schema: "network.xyo.witness.config";
|
|
212
222
|
readonly security?: {
|
|
213
223
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -227,8 +237,8 @@ export declare const asWitnessInstance: {
|
|
|
227
237
|
schema: string;
|
|
228
238
|
} & object, {
|
|
229
239
|
schema: string;
|
|
230
|
-
} & object>>(value: unknown, config?: import("@
|
|
231
|
-
<TType_1 extends WitnessInstance<import("@
|
|
240
|
+
} & object>>(value: unknown, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType | undefined;
|
|
241
|
+
<TType_1 extends WitnessInstance<import("@xylabs/object").BaseParamsFields & {
|
|
232
242
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
233
243
|
config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
234
244
|
readonly archivist?: string | undefined;
|
|
@@ -237,6 +247,7 @@ export declare const asWitnessInstance: {
|
|
|
237
247
|
readonly paging?: Record<string, {
|
|
238
248
|
size?: number | undefined;
|
|
239
249
|
}> | undefined;
|
|
250
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
240
251
|
schema: "network.xyo.witness.config";
|
|
241
252
|
readonly security?: {
|
|
242
253
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -253,6 +264,7 @@ export declare const asWitnessInstance: {
|
|
|
253
264
|
readonly paging?: Record<string, {
|
|
254
265
|
size?: number | undefined;
|
|
255
266
|
}> | undefined;
|
|
267
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
256
268
|
schema: "network.xyo.witness.config";
|
|
257
269
|
readonly security?: {
|
|
258
270
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -272,9 +284,9 @@ export declare const asWitnessInstance: {
|
|
|
272
284
|
schema: string;
|
|
273
285
|
} & object, {
|
|
274
286
|
schema: string;
|
|
275
|
-
} & object>>(value: unknown, assert: string | (() => string), config?: import("@
|
|
287
|
+
} & object>>(value: unknown, assert: string | (() => string), config?: import("@xylabs/object").TypeCheckConfig | undefined): TType_1;
|
|
276
288
|
};
|
|
277
|
-
export declare const withWitnessModule: <R>(module: any, closure: (module: WitnessModule<import("@
|
|
289
|
+
export declare const withWitnessModule: <R>(module: any, closure: (module: WitnessModule<import("@xylabs/object").BaseParamsFields & {
|
|
278
290
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
279
291
|
config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
280
292
|
readonly archivist?: string | undefined;
|
|
@@ -283,6 +295,7 @@ export declare const withWitnessModule: <R>(module: any, closure: (module: Witne
|
|
|
283
295
|
readonly paging?: Record<string, {
|
|
284
296
|
size?: number | undefined;
|
|
285
297
|
}> | undefined;
|
|
298
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
286
299
|
schema: "network.xyo.witness.config";
|
|
287
300
|
readonly security?: {
|
|
288
301
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -299,6 +312,7 @@ export declare const withWitnessModule: <R>(module: any, closure: (module: Witne
|
|
|
299
312
|
readonly paging?: Record<string, {
|
|
300
313
|
size?: number | undefined;
|
|
301
314
|
}> | undefined;
|
|
315
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
302
316
|
schema: "network.xyo.witness.config";
|
|
303
317
|
readonly security?: {
|
|
304
318
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -319,7 +333,7 @@ export declare const withWitnessModule: <R>(module: any, closure: (module: Witne
|
|
|
319
333
|
} & object, {
|
|
320
334
|
schema: string;
|
|
321
335
|
} & object>) => R) => R | undefined;
|
|
322
|
-
export declare const withWitnessInstance: <R>(module: any, closure: (module: WitnessInstance<import("@
|
|
336
|
+
export declare const withWitnessInstance: <R>(module: any, closure: (module: WitnessInstance<import("@xylabs/object").BaseParamsFields & {
|
|
323
337
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
324
338
|
config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
325
339
|
readonly archivist?: string | undefined;
|
|
@@ -328,6 +342,7 @@ export declare const withWitnessInstance: <R>(module: any, closure: (module: Wit
|
|
|
328
342
|
readonly paging?: Record<string, {
|
|
329
343
|
size?: number | undefined;
|
|
330
344
|
}> | undefined;
|
|
345
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
331
346
|
schema: "network.xyo.witness.config";
|
|
332
347
|
readonly security?: {
|
|
333
348
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -344,6 +359,7 @@ export declare const withWitnessInstance: <R>(module: any, closure: (module: Wit
|
|
|
344
359
|
readonly paging?: Record<string, {
|
|
345
360
|
size?: number | undefined;
|
|
346
361
|
}> | undefined;
|
|
362
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
347
363
|
schema: "network.xyo.witness.config";
|
|
348
364
|
readonly security?: {
|
|
349
365
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeChecks.d.ts","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAGxC,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"typeChecks.d.ts","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAGxC,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAA+F,CAAA;AAC7H,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAA2E,CAAA;AAEvG,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA0C,CAAA;AACtE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA4C,CAAA;AAC1E,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mCAAsC,CAAA;AACpE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mCAAwC,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { WitnessInstance } from './Instance';
|
|
2
2
|
import { WitnessModule } from './Module';
|
|
3
|
-
export declare const isWitnessInstance: import("@
|
|
3
|
+
export declare const isWitnessInstance: import("@xylabs/object").TypeCheck<WitnessInstance<import("@xylabs/object").BaseParamsFields & {
|
|
4
4
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
5
5
|
config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
6
6
|
readonly archivist?: string | undefined;
|
|
@@ -9,6 +9,7 @@ export declare const isWitnessInstance: import("@xyo-network/object").TypeCheck<
|
|
|
9
9
|
readonly paging?: Record<string, {
|
|
10
10
|
size?: number | undefined;
|
|
11
11
|
}> | undefined;
|
|
12
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
12
13
|
schema: "network.xyo.witness.config";
|
|
13
14
|
readonly security?: {
|
|
14
15
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -25,6 +26,7 @@ export declare const isWitnessInstance: import("@xyo-network/object").TypeCheck<
|
|
|
25
26
|
readonly paging?: Record<string, {
|
|
26
27
|
size?: number | undefined;
|
|
27
28
|
}> | undefined;
|
|
29
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
28
30
|
schema: "network.xyo.witness.config";
|
|
29
31
|
readonly security?: {
|
|
30
32
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -45,7 +47,7 @@ export declare const isWitnessInstance: import("@xyo-network/object").TypeCheck<
|
|
|
45
47
|
} & object, {
|
|
46
48
|
schema: string;
|
|
47
49
|
} & object>>;
|
|
48
|
-
export declare const isWitnessModule: import("@xyo-network/module-model").ModuleTypeCheck<WitnessModule<import("@
|
|
50
|
+
export declare const isWitnessModule: import("@xyo-network/module-model").ModuleTypeCheck<WitnessModule<import("@xylabs/object").BaseParamsFields & {
|
|
49
51
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
50
52
|
config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
51
53
|
readonly archivist?: string | undefined;
|
|
@@ -54,6 +56,7 @@ export declare const isWitnessModule: import("@xyo-network/module-model").Module
|
|
|
54
56
|
readonly paging?: Record<string, {
|
|
55
57
|
size?: number | undefined;
|
|
56
58
|
}> | undefined;
|
|
59
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
57
60
|
schema: "network.xyo.witness.config";
|
|
58
61
|
readonly security?: {
|
|
59
62
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -70,6 +73,7 @@ export declare const isWitnessModule: import("@xyo-network/module-model").Module
|
|
|
70
73
|
readonly paging?: Record<string, {
|
|
71
74
|
size?: number | undefined;
|
|
72
75
|
}> | undefined;
|
|
76
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
73
77
|
schema: "network.xyo.witness.config";
|
|
74
78
|
readonly security?: {
|
|
75
79
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -91,7 +95,7 @@ export declare const isWitnessModule: import("@xyo-network/module-model").Module
|
|
|
91
95
|
schema: string;
|
|
92
96
|
} & object>>;
|
|
93
97
|
export declare const asWitnessModule: {
|
|
94
|
-
<TType extends WitnessModule<import("@
|
|
98
|
+
<TType extends WitnessModule<import("@xylabs/object").BaseParamsFields & {
|
|
95
99
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
96
100
|
config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
97
101
|
readonly archivist?: string | undefined;
|
|
@@ -100,6 +104,7 @@ export declare const asWitnessModule: {
|
|
|
100
104
|
readonly paging?: Record<string, {
|
|
101
105
|
size?: number | undefined;
|
|
102
106
|
}> | undefined;
|
|
107
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
103
108
|
schema: "network.xyo.witness.config";
|
|
104
109
|
readonly security?: {
|
|
105
110
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -116,6 +121,7 @@ export declare const asWitnessModule: {
|
|
|
116
121
|
readonly paging?: Record<string, {
|
|
117
122
|
size?: number | undefined;
|
|
118
123
|
}> | undefined;
|
|
124
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
119
125
|
schema: "network.xyo.witness.config";
|
|
120
126
|
readonly security?: {
|
|
121
127
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -135,8 +141,8 @@ export declare const asWitnessModule: {
|
|
|
135
141
|
schema: string;
|
|
136
142
|
} & object, {
|
|
137
143
|
schema: string;
|
|
138
|
-
} & object>>(value: unknown, config?: import("@
|
|
139
|
-
<TType_1 extends WitnessModule<import("@
|
|
144
|
+
} & object>>(value: unknown, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType | undefined;
|
|
145
|
+
<TType_1 extends WitnessModule<import("@xylabs/object").BaseParamsFields & {
|
|
140
146
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
141
147
|
config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
142
148
|
readonly archivist?: string | undefined;
|
|
@@ -145,6 +151,7 @@ export declare const asWitnessModule: {
|
|
|
145
151
|
readonly paging?: Record<string, {
|
|
146
152
|
size?: number | undefined;
|
|
147
153
|
}> | undefined;
|
|
154
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
148
155
|
schema: "network.xyo.witness.config";
|
|
149
156
|
readonly security?: {
|
|
150
157
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -161,6 +168,7 @@ export declare const asWitnessModule: {
|
|
|
161
168
|
readonly paging?: Record<string, {
|
|
162
169
|
size?: number | undefined;
|
|
163
170
|
}> | undefined;
|
|
171
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
164
172
|
schema: "network.xyo.witness.config";
|
|
165
173
|
readonly security?: {
|
|
166
174
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -180,10 +188,10 @@ export declare const asWitnessModule: {
|
|
|
180
188
|
schema: string;
|
|
181
189
|
} & object, {
|
|
182
190
|
schema: string;
|
|
183
|
-
} & object>>(value: unknown, assert: string | (() => string), config?: import("@
|
|
191
|
+
} & object>>(value: unknown, assert: string | (() => string), config?: import("@xylabs/object").TypeCheckConfig | undefined): TType_1;
|
|
184
192
|
};
|
|
185
193
|
export declare const asWitnessInstance: {
|
|
186
|
-
<TType extends WitnessInstance<import("@
|
|
194
|
+
<TType extends WitnessInstance<import("@xylabs/object").BaseParamsFields & {
|
|
187
195
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
188
196
|
config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
189
197
|
readonly archivist?: string | undefined;
|
|
@@ -192,6 +200,7 @@ export declare const asWitnessInstance: {
|
|
|
192
200
|
readonly paging?: Record<string, {
|
|
193
201
|
size?: number | undefined;
|
|
194
202
|
}> | undefined;
|
|
203
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
195
204
|
schema: "network.xyo.witness.config";
|
|
196
205
|
readonly security?: {
|
|
197
206
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -208,6 +217,7 @@ export declare const asWitnessInstance: {
|
|
|
208
217
|
readonly paging?: Record<string, {
|
|
209
218
|
size?: number | undefined;
|
|
210
219
|
}> | undefined;
|
|
220
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
211
221
|
schema: "network.xyo.witness.config";
|
|
212
222
|
readonly security?: {
|
|
213
223
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -227,8 +237,8 @@ export declare const asWitnessInstance: {
|
|
|
227
237
|
schema: string;
|
|
228
238
|
} & object, {
|
|
229
239
|
schema: string;
|
|
230
|
-
} & object>>(value: unknown, config?: import("@
|
|
231
|
-
<TType_1 extends WitnessInstance<import("@
|
|
240
|
+
} & object>>(value: unknown, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType | undefined;
|
|
241
|
+
<TType_1 extends WitnessInstance<import("@xylabs/object").BaseParamsFields & {
|
|
232
242
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
233
243
|
config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
234
244
|
readonly archivist?: string | undefined;
|
|
@@ -237,6 +247,7 @@ export declare const asWitnessInstance: {
|
|
|
237
247
|
readonly paging?: Record<string, {
|
|
238
248
|
size?: number | undefined;
|
|
239
249
|
}> | undefined;
|
|
250
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
240
251
|
schema: "network.xyo.witness.config";
|
|
241
252
|
readonly security?: {
|
|
242
253
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -253,6 +264,7 @@ export declare const asWitnessInstance: {
|
|
|
253
264
|
readonly paging?: Record<string, {
|
|
254
265
|
size?: number | undefined;
|
|
255
266
|
}> | undefined;
|
|
267
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
256
268
|
schema: "network.xyo.witness.config";
|
|
257
269
|
readonly security?: {
|
|
258
270
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -272,9 +284,9 @@ export declare const asWitnessInstance: {
|
|
|
272
284
|
schema: string;
|
|
273
285
|
} & object, {
|
|
274
286
|
schema: string;
|
|
275
|
-
} & object>>(value: unknown, assert: string | (() => string), config?: import("@
|
|
287
|
+
} & object>>(value: unknown, assert: string | (() => string), config?: import("@xylabs/object").TypeCheckConfig | undefined): TType_1;
|
|
276
288
|
};
|
|
277
|
-
export declare const withWitnessModule: <R>(module: any, closure: (module: WitnessModule<import("@
|
|
289
|
+
export declare const withWitnessModule: <R>(module: any, closure: (module: WitnessModule<import("@xylabs/object").BaseParamsFields & {
|
|
278
290
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
279
291
|
config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
280
292
|
readonly archivist?: string | undefined;
|
|
@@ -283,6 +295,7 @@ export declare const withWitnessModule: <R>(module: any, closure: (module: Witne
|
|
|
283
295
|
readonly paging?: Record<string, {
|
|
284
296
|
size?: number | undefined;
|
|
285
297
|
}> | undefined;
|
|
298
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
286
299
|
schema: "network.xyo.witness.config";
|
|
287
300
|
readonly security?: {
|
|
288
301
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -299,6 +312,7 @@ export declare const withWitnessModule: <R>(module: any, closure: (module: Witne
|
|
|
299
312
|
readonly paging?: Record<string, {
|
|
300
313
|
size?: number | undefined;
|
|
301
314
|
}> | undefined;
|
|
315
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
302
316
|
schema: "network.xyo.witness.config";
|
|
303
317
|
readonly security?: {
|
|
304
318
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -319,7 +333,7 @@ export declare const withWitnessModule: <R>(module: any, closure: (module: Witne
|
|
|
319
333
|
} & object, {
|
|
320
334
|
schema: string;
|
|
321
335
|
} & object>) => R) => R | undefined;
|
|
322
|
-
export declare const withWitnessInstance: <R>(module: any, closure: (module: WitnessInstance<import("@
|
|
336
|
+
export declare const withWitnessInstance: <R>(module: any, closure: (module: WitnessInstance<import("@xylabs/object").BaseParamsFields & {
|
|
323
337
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
324
338
|
config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
325
339
|
readonly archivist?: string | undefined;
|
|
@@ -328,6 +342,7 @@ export declare const withWitnessInstance: <R>(module: any, closure: (module: Wit
|
|
|
328
342
|
readonly paging?: Record<string, {
|
|
329
343
|
size?: number | undefined;
|
|
330
344
|
}> | undefined;
|
|
345
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
331
346
|
schema: "network.xyo.witness.config";
|
|
332
347
|
readonly security?: {
|
|
333
348
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -344,6 +359,7 @@ export declare const withWitnessInstance: <R>(module: any, closure: (module: Wit
|
|
|
344
359
|
readonly paging?: Record<string, {
|
|
345
360
|
size?: number | undefined;
|
|
346
361
|
}> | undefined;
|
|
362
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
347
363
|
schema: "network.xyo.witness.config";
|
|
348
364
|
readonly security?: {
|
|
349
365
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeChecks.d.ts","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAGxC,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"typeChecks.d.ts","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAGxC,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAA+F,CAAA;AAC7H,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAA2E,CAAA;AAEvG,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA0C,CAAA;AACtE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA4C,CAAA;AAC1E,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mCAAsC,CAAA;AACpE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mCAAwC,CAAA"}
|
package/package.json
CHANGED
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xylabs/
|
|
14
|
-
"@
|
|
15
|
-
"@xyo-network/module-
|
|
16
|
-
"@xyo-network/
|
|
17
|
-
"@xyo-network/payload-model": "~2.
|
|
13
|
+
"@xylabs/object": "^2.88.5",
|
|
14
|
+
"@xylabs/promise": "^2.13.29",
|
|
15
|
+
"@xyo-network/module-events": "~2.89.0-rc.1",
|
|
16
|
+
"@xyo-network/module-model": "~2.89.0-rc.1",
|
|
17
|
+
"@xyo-network/payload-model": "~2.89.0-rc.1"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@xylabs/ts-scripts-yarn3": "^3.2.42",
|
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
|
|
61
61
|
},
|
|
62
62
|
"sideEffects": false,
|
|
63
|
-
"version": "2.
|
|
64
|
-
"type": "module"
|
|
63
|
+
"version": "2.89.0-rc.1",
|
|
64
|
+
"type": "module",
|
|
65
|
+
"stableVersion": "2.88.3"
|
|
65
66
|
}
|
package/src/Config.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { EmptyObject, WithAdditional } from '@xylabs/object'
|
|
1
2
|
import { ModuleConfig } from '@xyo-network/module-model'
|
|
2
|
-
import { EmptyObject, WithAdditional } from '@xyo-network/object'
|
|
3
3
|
import { Payload } from '@xyo-network/payload-model'
|
|
4
4
|
|
|
5
5
|
export const WitnessConfigSchema = 'network.xyo.witness.config'
|
package/src/Params.ts
CHANGED
package/src/typeChecks.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { AsObjectFactory } from '@xylabs/object'
|
|
1
2
|
import { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from '@xyo-network/module-model'
|
|
2
|
-
import { AsObjectFactory } from '@xyo-network/object'
|
|
3
3
|
|
|
4
4
|
import { WitnessInstance } from './Instance'
|
|
5
5
|
import { WitnessModule } from './Module'
|