@xyo-network/witness-model 3.6.0-rc.1 → 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.
- package/dist/neutral/QueryFunctions.d.ts +2 -2
- package/dist/neutral/QueryFunctions.d.ts.map +1 -1
- package/dist/neutral/attachable/asAttachableInstance.d.ts +123 -36
- package/dist/neutral/attachable/asAttachableInstance.d.ts.map +1 -1
- package/dist/neutral/typeChecks.d.ts +385 -95
- package/dist/neutral/typeChecks.d.ts.map +1 -1
- package/package.json +10 -10
- package/src/QueryFunctions.ts +2 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Promisable } from '@xylabs/promise';
|
|
2
2
|
import type { AccountInstance } from '@xyo-network/account-model';
|
|
3
3
|
import type { ModuleQueryResult } from '@xyo-network/module-model';
|
|
4
|
-
import type { Payload } from '@xyo-network/payload-model';
|
|
4
|
+
import type { Payload, WithoutPrivateStorageMeta } from '@xyo-network/payload-model';
|
|
5
5
|
export interface WitnessQueryFunctions<TIn extends Payload = Payload, TOut extends Payload = Payload> {
|
|
6
|
-
observe: (payloads?: TIn[]) => Promisable<TOut[]>;
|
|
6
|
+
observe: (payloads?: TIn[]) => Promisable<WithoutPrivateStorageMeta<TOut>[]>;
|
|
7
7
|
observeQuery: (payloads?: TIn[], account?: AccountInstance) => Promisable<ModuleQueryResult<TOut>>;
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=QueryFunctions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryFunctions.d.ts","sourceRoot":"","sources":["../../src/QueryFunctions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAClE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"QueryFunctions.d.ts","sourceRoot":"","sources":["../../src/QueryFunctions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAClE,OAAO,KAAK,EAAE,OAAO,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAA;AAEpF,MAAM,WAAW,qBAAqB,CAAC,GAAG,SAAS,OAAO,GAAG,OAAO,EAAE,IAAI,SAAS,OAAO,GAAG,OAAO;IAClG,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,KAAK,UAAU,CAAC,yBAAyB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;IAC5E,YAAY,EAAE,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,EAAE,OAAO,CAAC,EAAE,eAAe,KAAK,UAAU,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAA;CACnG"}
|
|
@@ -4,56 +4,143 @@ export declare const asAttachableWitnessInstance: {
|
|
|
4
4
|
addToResolvers?: boolean;
|
|
5
5
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
6
6
|
allowNameResolution?: boolean;
|
|
7
|
-
config: import("@
|
|
8
|
-
schema: "network.
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
config: import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
8
|
+
schema: import("@xyo-network/payload-model").Schema;
|
|
9
|
+
readonly archiving?: {
|
|
10
|
+
readonly archivists?: string[] | undefined;
|
|
11
|
+
readonly queries?: string[] | undefined;
|
|
12
|
+
} | undefined;
|
|
13
|
+
readonly allowedQueries?: string[] | undefined;
|
|
14
|
+
readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
|
|
15
|
+
readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
|
|
16
|
+
readonly labels?: {
|
|
17
|
+
[x: string]: string | undefined;
|
|
18
|
+
} | undefined;
|
|
19
|
+
readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
|
|
20
|
+
readonly paging?: {
|
|
21
|
+
[x: string]: {
|
|
22
|
+
size?: number | undefined;
|
|
23
|
+
};
|
|
24
|
+
} | undefined;
|
|
25
|
+
readonly retry?: {
|
|
26
|
+
backoff?: number | undefined;
|
|
27
|
+
interval?: number | undefined;
|
|
28
|
+
retries?: number | undefined;
|
|
29
|
+
} | undefined;
|
|
30
|
+
readonly security?: {
|
|
31
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
32
|
+
readonly allowed?: {
|
|
33
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
34
|
+
} | undefined;
|
|
35
|
+
readonly disallowed?: {
|
|
36
|
+
[x: string]: Lowercase<string>[];
|
|
37
|
+
} | undefined;
|
|
38
|
+
} | undefined;
|
|
39
|
+
readonly sign?: boolean | undefined;
|
|
40
|
+
readonly storeQueries?: boolean | undefined;
|
|
41
|
+
readonly timestamp?: boolean | undefined;
|
|
42
|
+
}>;
|
|
14
43
|
ephemeralQueryAccountEnabled?: boolean;
|
|
15
44
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
16
|
-
}, {
|
|
17
|
-
schema:
|
|
18
|
-
}
|
|
19
|
-
schema:
|
|
20
|
-
}
|
|
45
|
+
}, import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
46
|
+
schema: import("@xyo-network/payload-model").Schema;
|
|
47
|
+
}>, import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
48
|
+
schema: import("@xyo-network/payload-model").Schema;
|
|
49
|
+
}>, import("../EventData.ts").WitnessModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
21
50
|
<TType extends import("./AttachableInstance.ts").AttachableWitnessInstance<import("@xylabs/object").BaseParamsFields & {
|
|
22
51
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
23
52
|
addToResolvers?: boolean;
|
|
24
53
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
25
54
|
allowNameResolution?: boolean;
|
|
26
|
-
config: import("@
|
|
27
|
-
schema: "network.
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
55
|
+
config: import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
56
|
+
schema: import("@xyo-network/payload-model").Schema;
|
|
57
|
+
readonly archiving?: {
|
|
58
|
+
readonly archivists?: string[] | undefined;
|
|
59
|
+
readonly queries?: string[] | undefined;
|
|
60
|
+
} | undefined;
|
|
61
|
+
readonly allowedQueries?: string[] | undefined;
|
|
62
|
+
readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
|
|
63
|
+
readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
|
|
64
|
+
readonly labels?: {
|
|
65
|
+
[x: string]: string | undefined;
|
|
66
|
+
} | undefined;
|
|
67
|
+
readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
|
|
68
|
+
readonly paging?: {
|
|
69
|
+
[x: string]: {
|
|
70
|
+
size?: number | undefined;
|
|
71
|
+
};
|
|
72
|
+
} | undefined;
|
|
73
|
+
readonly retry?: {
|
|
74
|
+
backoff?: number | undefined;
|
|
75
|
+
interval?: number | undefined;
|
|
76
|
+
retries?: number | undefined;
|
|
77
|
+
} | undefined;
|
|
78
|
+
readonly security?: {
|
|
79
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
80
|
+
readonly allowed?: {
|
|
81
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
82
|
+
} | undefined;
|
|
83
|
+
readonly disallowed?: {
|
|
84
|
+
[x: string]: Lowercase<string>[];
|
|
85
|
+
} | undefined;
|
|
86
|
+
} | undefined;
|
|
87
|
+
readonly sign?: boolean | undefined;
|
|
88
|
+
readonly storeQueries?: boolean | undefined;
|
|
89
|
+
readonly timestamp?: boolean | undefined;
|
|
90
|
+
}>;
|
|
33
91
|
ephemeralQueryAccountEnabled?: boolean;
|
|
34
92
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
35
|
-
}, {
|
|
36
|
-
schema:
|
|
37
|
-
}
|
|
38
|
-
schema:
|
|
39
|
-
}
|
|
93
|
+
}, import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
94
|
+
schema: import("@xyo-network/payload-model").Schema;
|
|
95
|
+
}>, import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
96
|
+
schema: import("@xyo-network/payload-model").Schema;
|
|
97
|
+
}>, import("../EventData.ts").WitnessModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<import("./AttachableInstance.ts").AttachableWitnessInstance<import("@xylabs/object").BaseParamsFields & {
|
|
40
98
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
41
99
|
addToResolvers?: boolean;
|
|
42
100
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
43
101
|
allowNameResolution?: boolean;
|
|
44
|
-
config: import("@
|
|
45
|
-
schema: "network.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
102
|
+
config: import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
103
|
+
schema: import("@xyo-network/payload-model").Schema;
|
|
104
|
+
readonly archiving?: {
|
|
105
|
+
readonly archivists?: string[] | undefined;
|
|
106
|
+
readonly queries?: string[] | undefined;
|
|
107
|
+
} | undefined;
|
|
108
|
+
readonly allowedQueries?: string[] | undefined;
|
|
109
|
+
readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
|
|
110
|
+
readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
|
|
111
|
+
readonly labels?: {
|
|
112
|
+
[x: string]: string | undefined;
|
|
113
|
+
} | undefined;
|
|
114
|
+
readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
|
|
115
|
+
readonly paging?: {
|
|
116
|
+
[x: string]: {
|
|
117
|
+
size?: number | undefined;
|
|
118
|
+
};
|
|
119
|
+
} | undefined;
|
|
120
|
+
readonly retry?: {
|
|
121
|
+
backoff?: number | undefined;
|
|
122
|
+
interval?: number | undefined;
|
|
123
|
+
retries?: number | undefined;
|
|
124
|
+
} | undefined;
|
|
125
|
+
readonly security?: {
|
|
126
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
127
|
+
readonly allowed?: {
|
|
128
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
129
|
+
} | undefined;
|
|
130
|
+
readonly disallowed?: {
|
|
131
|
+
[x: string]: Lowercase<string>[];
|
|
132
|
+
} | undefined;
|
|
133
|
+
} | undefined;
|
|
134
|
+
readonly sign?: boolean | undefined;
|
|
135
|
+
readonly storeQueries?: boolean | undefined;
|
|
136
|
+
readonly timestamp?: boolean | undefined;
|
|
137
|
+
}>;
|
|
51
138
|
ephemeralQueryAccountEnabled?: boolean;
|
|
52
139
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
53
|
-
}, {
|
|
54
|
-
schema:
|
|
55
|
-
}
|
|
56
|
-
schema:
|
|
57
|
-
}
|
|
140
|
+
}, import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
141
|
+
schema: import("@xyo-network/payload-model").Schema;
|
|
142
|
+
}>, import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
143
|
+
schema: import("@xyo-network/payload-model").Schema;
|
|
144
|
+
}>, import("../EventData.ts").WitnessModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
58
145
|
};
|
|
59
146
|
//# 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
|
|
1
|
+
{"version":3,"file":"asAttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/asAttachableInstance.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yEACR,iBAAiB,iCAAiC,gBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yEAA+E,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAAgG,gBAAoB;CAD5N,CAAA"}
|
|
@@ -5,32 +5,90 @@ export declare const isWitnessInstance: import("@xylabs/object").TypeCheck<Witne
|
|
|
5
5
|
addToResolvers?: boolean;
|
|
6
6
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
7
7
|
allowNameResolution?: boolean;
|
|
8
|
-
config: import("@
|
|
9
|
-
schema: "network.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
config: import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
9
|
+
schema: import("@xyo-network/payload-model").Schema;
|
|
10
|
+
readonly archiving?: {
|
|
11
|
+
readonly archivists?: string[] | undefined;
|
|
12
|
+
readonly queries?: string[] | undefined;
|
|
13
|
+
} | undefined;
|
|
14
|
+
readonly allowedQueries?: string[] | undefined;
|
|
15
|
+
readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
|
|
16
|
+
readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
|
|
17
|
+
readonly labels?: {
|
|
18
|
+
[x: string]: string | undefined;
|
|
19
|
+
} | undefined;
|
|
20
|
+
readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
|
|
21
|
+
readonly paging?: {
|
|
22
|
+
[x: string]: {
|
|
23
|
+
size?: number | undefined;
|
|
24
|
+
};
|
|
25
|
+
} | undefined;
|
|
26
|
+
readonly retry?: {
|
|
27
|
+
backoff?: number | undefined;
|
|
28
|
+
interval?: number | undefined;
|
|
29
|
+
retries?: number | undefined;
|
|
30
|
+
} | undefined;
|
|
31
|
+
readonly security?: {
|
|
32
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
33
|
+
readonly allowed?: {
|
|
34
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
35
|
+
} | undefined;
|
|
36
|
+
readonly disallowed?: {
|
|
37
|
+
[x: string]: Lowercase<string>[];
|
|
38
|
+
} | undefined;
|
|
39
|
+
} | undefined;
|
|
40
|
+
readonly sign?: boolean | undefined;
|
|
41
|
+
readonly storeQueries?: boolean | undefined;
|
|
42
|
+
readonly timestamp?: boolean | undefined;
|
|
43
|
+
}>;
|
|
15
44
|
ephemeralQueryAccountEnabled?: boolean;
|
|
16
45
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
17
|
-
}, {
|
|
18
|
-
schema:
|
|
19
|
-
}
|
|
20
|
-
schema:
|
|
21
|
-
}
|
|
46
|
+
}, import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
47
|
+
schema: import("@xyo-network/payload-model").Schema;
|
|
48
|
+
}>, import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
49
|
+
schema: import("@xyo-network/payload-model").Schema;
|
|
50
|
+
}>, import("./EventData.ts").WitnessModuleEventData>>;
|
|
22
51
|
export declare const isWitnessModule: import("@xyo-network/module-model").ModuleTypeCheck<WitnessModule<import("@xylabs/object").BaseParamsFields & {
|
|
23
52
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
24
53
|
addToResolvers?: boolean;
|
|
25
54
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
26
55
|
allowNameResolution?: boolean;
|
|
27
|
-
config: import("@
|
|
28
|
-
schema: "network.
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
56
|
+
config: import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
57
|
+
schema: import("@xyo-network/payload-model").Schema;
|
|
58
|
+
readonly archiving?: {
|
|
59
|
+
readonly archivists?: string[] | undefined;
|
|
60
|
+
readonly queries?: string[] | undefined;
|
|
61
|
+
} | undefined;
|
|
62
|
+
readonly allowedQueries?: string[] | undefined;
|
|
63
|
+
readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
|
|
64
|
+
readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
|
|
65
|
+
readonly labels?: {
|
|
66
|
+
[x: string]: string | undefined;
|
|
67
|
+
} | undefined;
|
|
68
|
+
readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
|
|
69
|
+
readonly paging?: {
|
|
70
|
+
[x: string]: {
|
|
71
|
+
size?: number | undefined;
|
|
72
|
+
};
|
|
73
|
+
} | undefined;
|
|
74
|
+
readonly retry?: {
|
|
75
|
+
backoff?: number | undefined;
|
|
76
|
+
interval?: number | undefined;
|
|
77
|
+
retries?: number | undefined;
|
|
78
|
+
} | undefined;
|
|
79
|
+
readonly security?: {
|
|
80
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
81
|
+
readonly allowed?: {
|
|
82
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
83
|
+
} | undefined;
|
|
84
|
+
readonly disallowed?: {
|
|
85
|
+
[x: string]: Lowercase<string>[];
|
|
86
|
+
} | undefined;
|
|
87
|
+
} | undefined;
|
|
88
|
+
readonly sign?: boolean | undefined;
|
|
89
|
+
readonly storeQueries?: boolean | undefined;
|
|
90
|
+
readonly timestamp?: boolean | undefined;
|
|
91
|
+
}>;
|
|
34
92
|
ephemeralQueryAccountEnabled?: boolean;
|
|
35
93
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
36
94
|
}, import("./EventData.ts").WitnessModuleEventData>>;
|
|
@@ -40,13 +98,42 @@ export declare const asWitnessModule: {
|
|
|
40
98
|
addToResolvers?: boolean;
|
|
41
99
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
42
100
|
allowNameResolution?: boolean;
|
|
43
|
-
config: import("@
|
|
44
|
-
schema: "network.
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
101
|
+
config: import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
102
|
+
schema: import("@xyo-network/payload-model").Schema;
|
|
103
|
+
readonly archiving?: {
|
|
104
|
+
readonly archivists?: string[] | undefined;
|
|
105
|
+
readonly queries?: string[] | undefined;
|
|
106
|
+
} | undefined;
|
|
107
|
+
readonly allowedQueries?: string[] | undefined;
|
|
108
|
+
readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
|
|
109
|
+
readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
|
|
110
|
+
readonly labels?: {
|
|
111
|
+
[x: string]: string | undefined;
|
|
112
|
+
} | undefined;
|
|
113
|
+
readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
|
|
114
|
+
readonly paging?: {
|
|
115
|
+
[x: string]: {
|
|
116
|
+
size?: number | undefined;
|
|
117
|
+
};
|
|
118
|
+
} | undefined;
|
|
119
|
+
readonly retry?: {
|
|
120
|
+
backoff?: number | undefined;
|
|
121
|
+
interval?: number | undefined;
|
|
122
|
+
retries?: number | undefined;
|
|
123
|
+
} | undefined;
|
|
124
|
+
readonly security?: {
|
|
125
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
126
|
+
readonly allowed?: {
|
|
127
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
128
|
+
} | undefined;
|
|
129
|
+
readonly disallowed?: {
|
|
130
|
+
[x: string]: Lowercase<string>[];
|
|
131
|
+
} | undefined;
|
|
132
|
+
} | undefined;
|
|
133
|
+
readonly sign?: boolean | undefined;
|
|
134
|
+
readonly storeQueries?: boolean | undefined;
|
|
135
|
+
readonly timestamp?: boolean | undefined;
|
|
136
|
+
}>;
|
|
50
137
|
ephemeralQueryAccountEnabled?: boolean;
|
|
51
138
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
52
139
|
}, import("./EventData.ts").WitnessModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
@@ -55,13 +142,42 @@ export declare const asWitnessModule: {
|
|
|
55
142
|
addToResolvers?: boolean;
|
|
56
143
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
57
144
|
allowNameResolution?: boolean;
|
|
58
|
-
config: import("@
|
|
59
|
-
schema: "network.
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
145
|
+
config: import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
146
|
+
schema: import("@xyo-network/payload-model").Schema;
|
|
147
|
+
readonly archiving?: {
|
|
148
|
+
readonly archivists?: string[] | undefined;
|
|
149
|
+
readonly queries?: string[] | undefined;
|
|
150
|
+
} | undefined;
|
|
151
|
+
readonly allowedQueries?: string[] | undefined;
|
|
152
|
+
readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
|
|
153
|
+
readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
|
|
154
|
+
readonly labels?: {
|
|
155
|
+
[x: string]: string | undefined;
|
|
156
|
+
} | undefined;
|
|
157
|
+
readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
|
|
158
|
+
readonly paging?: {
|
|
159
|
+
[x: string]: {
|
|
160
|
+
size?: number | undefined;
|
|
161
|
+
};
|
|
162
|
+
} | undefined;
|
|
163
|
+
readonly retry?: {
|
|
164
|
+
backoff?: number | undefined;
|
|
165
|
+
interval?: number | undefined;
|
|
166
|
+
retries?: number | undefined;
|
|
167
|
+
} | undefined;
|
|
168
|
+
readonly security?: {
|
|
169
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
170
|
+
readonly allowed?: {
|
|
171
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
172
|
+
} | undefined;
|
|
173
|
+
readonly disallowed?: {
|
|
174
|
+
[x: string]: Lowercase<string>[];
|
|
175
|
+
} | undefined;
|
|
176
|
+
} | undefined;
|
|
177
|
+
readonly sign?: boolean | undefined;
|
|
178
|
+
readonly storeQueries?: boolean | undefined;
|
|
179
|
+
readonly timestamp?: boolean | undefined;
|
|
180
|
+
}>;
|
|
65
181
|
ephemeralQueryAccountEnabled?: boolean;
|
|
66
182
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
67
183
|
}, import("./EventData.ts").WitnessModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<WitnessModule<import("@xylabs/object").BaseParamsFields & {
|
|
@@ -69,13 +185,42 @@ export declare const asWitnessModule: {
|
|
|
69
185
|
addToResolvers?: boolean;
|
|
70
186
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
71
187
|
allowNameResolution?: boolean;
|
|
72
|
-
config: import("@
|
|
73
|
-
schema: "network.
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
188
|
+
config: import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
189
|
+
schema: import("@xyo-network/payload-model").Schema;
|
|
190
|
+
readonly archiving?: {
|
|
191
|
+
readonly archivists?: string[] | undefined;
|
|
192
|
+
readonly queries?: string[] | undefined;
|
|
193
|
+
} | undefined;
|
|
194
|
+
readonly allowedQueries?: string[] | undefined;
|
|
195
|
+
readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
|
|
196
|
+
readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
|
|
197
|
+
readonly labels?: {
|
|
198
|
+
[x: string]: string | undefined;
|
|
199
|
+
} | undefined;
|
|
200
|
+
readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
|
|
201
|
+
readonly paging?: {
|
|
202
|
+
[x: string]: {
|
|
203
|
+
size?: number | undefined;
|
|
204
|
+
};
|
|
205
|
+
} | undefined;
|
|
206
|
+
readonly retry?: {
|
|
207
|
+
backoff?: number | undefined;
|
|
208
|
+
interval?: number | undefined;
|
|
209
|
+
retries?: number | undefined;
|
|
210
|
+
} | undefined;
|
|
211
|
+
readonly security?: {
|
|
212
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
213
|
+
readonly allowed?: {
|
|
214
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
215
|
+
} | undefined;
|
|
216
|
+
readonly disallowed?: {
|
|
217
|
+
[x: string]: Lowercase<string>[];
|
|
218
|
+
} | undefined;
|
|
219
|
+
} | undefined;
|
|
220
|
+
readonly sign?: boolean | undefined;
|
|
221
|
+
readonly storeQueries?: boolean | undefined;
|
|
222
|
+
readonly timestamp?: boolean | undefined;
|
|
223
|
+
}>;
|
|
79
224
|
ephemeralQueryAccountEnabled?: boolean;
|
|
80
225
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
81
226
|
}, import("./EventData.ts").WitnessModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
@@ -86,70 +231,186 @@ export declare const asWitnessInstance: {
|
|
|
86
231
|
addToResolvers?: boolean;
|
|
87
232
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
88
233
|
allowNameResolution?: boolean;
|
|
89
|
-
config: import("@
|
|
90
|
-
schema: "network.
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
234
|
+
config: import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
235
|
+
schema: import("@xyo-network/payload-model").Schema;
|
|
236
|
+
readonly archiving?: {
|
|
237
|
+
readonly archivists?: string[] | undefined;
|
|
238
|
+
readonly queries?: string[] | undefined;
|
|
239
|
+
} | undefined;
|
|
240
|
+
readonly allowedQueries?: string[] | undefined;
|
|
241
|
+
readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
|
|
242
|
+
readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
|
|
243
|
+
readonly labels?: {
|
|
244
|
+
[x: string]: string | undefined;
|
|
245
|
+
} | undefined;
|
|
246
|
+
readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
|
|
247
|
+
readonly paging?: {
|
|
248
|
+
[x: string]: {
|
|
249
|
+
size?: number | undefined;
|
|
250
|
+
};
|
|
251
|
+
} | undefined;
|
|
252
|
+
readonly retry?: {
|
|
253
|
+
backoff?: number | undefined;
|
|
254
|
+
interval?: number | undefined;
|
|
255
|
+
retries?: number | undefined;
|
|
256
|
+
} | undefined;
|
|
257
|
+
readonly security?: {
|
|
258
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
259
|
+
readonly allowed?: {
|
|
260
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
261
|
+
} | undefined;
|
|
262
|
+
readonly disallowed?: {
|
|
263
|
+
[x: string]: Lowercase<string>[];
|
|
264
|
+
} | undefined;
|
|
265
|
+
} | undefined;
|
|
266
|
+
readonly sign?: boolean | undefined;
|
|
267
|
+
readonly storeQueries?: boolean | undefined;
|
|
268
|
+
readonly timestamp?: boolean | undefined;
|
|
269
|
+
}>;
|
|
96
270
|
ephemeralQueryAccountEnabled?: boolean;
|
|
97
271
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
98
|
-
}, {
|
|
99
|
-
schema:
|
|
100
|
-
}
|
|
101
|
-
schema:
|
|
102
|
-
}
|
|
272
|
+
}, import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
273
|
+
schema: import("@xyo-network/payload-model").Schema;
|
|
274
|
+
}>, import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
275
|
+
schema: import("@xyo-network/payload-model").Schema;
|
|
276
|
+
}>, import("./EventData.ts").WitnessModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
103
277
|
<TType extends WitnessInstance<import("@xylabs/object").BaseParamsFields & {
|
|
104
278
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
105
279
|
addToResolvers?: boolean;
|
|
106
280
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
107
281
|
allowNameResolution?: boolean;
|
|
108
|
-
config: import("@
|
|
109
|
-
schema: "network.
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
282
|
+
config: import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
283
|
+
schema: import("@xyo-network/payload-model").Schema;
|
|
284
|
+
readonly archiving?: {
|
|
285
|
+
readonly archivists?: string[] | undefined;
|
|
286
|
+
readonly queries?: string[] | undefined;
|
|
287
|
+
} | undefined;
|
|
288
|
+
readonly allowedQueries?: string[] | undefined;
|
|
289
|
+
readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
|
|
290
|
+
readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
|
|
291
|
+
readonly labels?: {
|
|
292
|
+
[x: string]: string | undefined;
|
|
293
|
+
} | undefined;
|
|
294
|
+
readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
|
|
295
|
+
readonly paging?: {
|
|
296
|
+
[x: string]: {
|
|
297
|
+
size?: number | undefined;
|
|
298
|
+
};
|
|
299
|
+
} | undefined;
|
|
300
|
+
readonly retry?: {
|
|
301
|
+
backoff?: number | undefined;
|
|
302
|
+
interval?: number | undefined;
|
|
303
|
+
retries?: number | undefined;
|
|
304
|
+
} | undefined;
|
|
305
|
+
readonly security?: {
|
|
306
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
307
|
+
readonly allowed?: {
|
|
308
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
309
|
+
} | undefined;
|
|
310
|
+
readonly disallowed?: {
|
|
311
|
+
[x: string]: Lowercase<string>[];
|
|
312
|
+
} | undefined;
|
|
313
|
+
} | undefined;
|
|
314
|
+
readonly sign?: boolean | undefined;
|
|
315
|
+
readonly storeQueries?: boolean | undefined;
|
|
316
|
+
readonly timestamp?: boolean | undefined;
|
|
317
|
+
}>;
|
|
115
318
|
ephemeralQueryAccountEnabled?: boolean;
|
|
116
319
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
117
|
-
}, {
|
|
118
|
-
schema:
|
|
119
|
-
}
|
|
120
|
-
schema:
|
|
121
|
-
}
|
|
320
|
+
}, import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
321
|
+
schema: import("@xyo-network/payload-model").Schema;
|
|
322
|
+
}>, import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
323
|
+
schema: import("@xyo-network/payload-model").Schema;
|
|
324
|
+
}>, import("./EventData.ts").WitnessModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<WitnessInstance<import("@xylabs/object").BaseParamsFields & {
|
|
122
325
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
123
326
|
addToResolvers?: boolean;
|
|
124
327
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
125
328
|
allowNameResolution?: boolean;
|
|
126
|
-
config: import("@
|
|
127
|
-
schema: "network.
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
329
|
+
config: import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
330
|
+
schema: import("@xyo-network/payload-model").Schema;
|
|
331
|
+
readonly archiving?: {
|
|
332
|
+
readonly archivists?: string[] | undefined;
|
|
333
|
+
readonly queries?: string[] | undefined;
|
|
334
|
+
} | undefined;
|
|
335
|
+
readonly allowedQueries?: string[] | undefined;
|
|
336
|
+
readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
|
|
337
|
+
readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
|
|
338
|
+
readonly labels?: {
|
|
339
|
+
[x: string]: string | undefined;
|
|
340
|
+
} | undefined;
|
|
341
|
+
readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
|
|
342
|
+
readonly paging?: {
|
|
343
|
+
[x: string]: {
|
|
344
|
+
size?: number | undefined;
|
|
345
|
+
};
|
|
346
|
+
} | undefined;
|
|
347
|
+
readonly retry?: {
|
|
348
|
+
backoff?: number | undefined;
|
|
349
|
+
interval?: number | undefined;
|
|
350
|
+
retries?: number | undefined;
|
|
351
|
+
} | undefined;
|
|
352
|
+
readonly security?: {
|
|
353
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
354
|
+
readonly allowed?: {
|
|
355
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
356
|
+
} | undefined;
|
|
357
|
+
readonly disallowed?: {
|
|
358
|
+
[x: string]: Lowercase<string>[];
|
|
359
|
+
} | undefined;
|
|
360
|
+
} | undefined;
|
|
361
|
+
readonly sign?: boolean | undefined;
|
|
362
|
+
readonly storeQueries?: boolean | undefined;
|
|
363
|
+
readonly timestamp?: boolean | undefined;
|
|
364
|
+
}>;
|
|
133
365
|
ephemeralQueryAccountEnabled?: boolean;
|
|
134
366
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
135
|
-
}, {
|
|
136
|
-
schema:
|
|
137
|
-
}
|
|
138
|
-
schema:
|
|
139
|
-
}
|
|
367
|
+
}, import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
368
|
+
schema: import("@xyo-network/payload-model").Schema;
|
|
369
|
+
}>, import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
370
|
+
schema: import("@xyo-network/payload-model").Schema;
|
|
371
|
+
}>, import("./EventData.ts").WitnessModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
140
372
|
};
|
|
141
373
|
export declare const withWitnessModule: <R>(mod: any, closure: (mod: WitnessModule<import("@xylabs/object").BaseParamsFields & {
|
|
142
374
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
143
375
|
addToResolvers?: boolean;
|
|
144
376
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
145
377
|
allowNameResolution?: boolean;
|
|
146
|
-
config: import("@
|
|
147
|
-
schema: "network.
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
378
|
+
config: import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
379
|
+
schema: import("@xyo-network/payload-model").Schema;
|
|
380
|
+
readonly archiving?: {
|
|
381
|
+
readonly archivists?: string[] | undefined;
|
|
382
|
+
readonly queries?: string[] | undefined;
|
|
383
|
+
} | undefined;
|
|
384
|
+
readonly allowedQueries?: string[] | undefined;
|
|
385
|
+
readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
|
|
386
|
+
readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
|
|
387
|
+
readonly labels?: {
|
|
388
|
+
[x: string]: string | undefined;
|
|
389
|
+
} | undefined;
|
|
390
|
+
readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
|
|
391
|
+
readonly paging?: {
|
|
392
|
+
[x: string]: {
|
|
393
|
+
size?: number | undefined;
|
|
394
|
+
};
|
|
395
|
+
} | undefined;
|
|
396
|
+
readonly retry?: {
|
|
397
|
+
backoff?: number | undefined;
|
|
398
|
+
interval?: number | undefined;
|
|
399
|
+
retries?: number | undefined;
|
|
400
|
+
} | undefined;
|
|
401
|
+
readonly security?: {
|
|
402
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
403
|
+
readonly allowed?: {
|
|
404
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
405
|
+
} | undefined;
|
|
406
|
+
readonly disallowed?: {
|
|
407
|
+
[x: string]: Lowercase<string>[];
|
|
408
|
+
} | undefined;
|
|
409
|
+
} | undefined;
|
|
410
|
+
readonly sign?: boolean | undefined;
|
|
411
|
+
readonly storeQueries?: boolean | undefined;
|
|
412
|
+
readonly timestamp?: boolean | undefined;
|
|
413
|
+
}>;
|
|
153
414
|
ephemeralQueryAccountEnabled?: boolean;
|
|
154
415
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
155
416
|
}, import("./EventData.ts").WitnessModuleEventData>) => R) => R | undefined;
|
|
@@ -158,18 +419,47 @@ export declare const withWitnessInstance: <R>(mod: any, closure: (mod: WitnessIn
|
|
|
158
419
|
addToResolvers?: boolean;
|
|
159
420
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
160
421
|
allowNameResolution?: boolean;
|
|
161
|
-
config: import("@
|
|
162
|
-
schema: "network.
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
422
|
+
config: import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
423
|
+
schema: import("@xyo-network/payload-model").Schema;
|
|
424
|
+
readonly archiving?: {
|
|
425
|
+
readonly archivists?: string[] | undefined;
|
|
426
|
+
readonly queries?: string[] | undefined;
|
|
427
|
+
} | undefined;
|
|
428
|
+
readonly allowedQueries?: string[] | undefined;
|
|
429
|
+
readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
|
|
430
|
+
readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
|
|
431
|
+
readonly labels?: {
|
|
432
|
+
[x: string]: string | undefined;
|
|
433
|
+
} | undefined;
|
|
434
|
+
readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
|
|
435
|
+
readonly paging?: {
|
|
436
|
+
[x: string]: {
|
|
437
|
+
size?: number | undefined;
|
|
438
|
+
};
|
|
439
|
+
} | undefined;
|
|
440
|
+
readonly retry?: {
|
|
441
|
+
backoff?: number | undefined;
|
|
442
|
+
interval?: number | undefined;
|
|
443
|
+
retries?: number | undefined;
|
|
444
|
+
} | undefined;
|
|
445
|
+
readonly security?: {
|
|
446
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
447
|
+
readonly allowed?: {
|
|
448
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
449
|
+
} | undefined;
|
|
450
|
+
readonly disallowed?: {
|
|
451
|
+
[x: string]: Lowercase<string>[];
|
|
452
|
+
} | undefined;
|
|
453
|
+
} | undefined;
|
|
454
|
+
readonly sign?: boolean | undefined;
|
|
455
|
+
readonly storeQueries?: boolean | undefined;
|
|
456
|
+
readonly timestamp?: boolean | undefined;
|
|
457
|
+
}>;
|
|
168
458
|
ephemeralQueryAccountEnabled?: boolean;
|
|
169
459
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
170
|
-
}, {
|
|
171
|
-
schema:
|
|
172
|
-
}
|
|
173
|
-
schema:
|
|
174
|
-
}
|
|
460
|
+
}, import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
461
|
+
schema: import("@xyo-network/payload-model").Schema;
|
|
462
|
+
}>, import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
463
|
+
schema: import("@xyo-network/payload-model").Schema;
|
|
464
|
+
}>, import("./EventData.ts").WitnessModuleEventData>) => R) => R | undefined;
|
|
175
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qDAA+F,CAAA;AAC7H,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oDAA2E,CAAA;AAEvG,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uEANO,iBACjC,iCAAiC,gBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uEAEe,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0EAC9B,gBAAoB;CAEP,CAAA;AACtE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wEAPK,iBACjC,iCAAiC,gBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wEAEe,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2EAC9B,gBAAoB;CAGH,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/witness-model",
|
|
3
|
-
"version": "3.6.0-rc.
|
|
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,17 +29,17 @@
|
|
|
29
29
|
"module": "dist/neutral/index.mjs",
|
|
30
30
|
"types": "dist/neutral/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@xylabs/object": "^4.4.
|
|
33
|
-
"@xylabs/promise": "^4.4.
|
|
34
|
-
"@xylabs/typeof": "^4.4.
|
|
35
|
-
"@xyo-network/account-model": "^3.6.0-rc.
|
|
36
|
-
"@xyo-network/module-events": "^3.6.0-rc.
|
|
37
|
-
"@xyo-network/module-model": "^3.6.0-rc.
|
|
38
|
-
"@xyo-network/payload-model": "^3.6.0-rc.
|
|
32
|
+
"@xylabs/object": "^4.4.21",
|
|
33
|
+
"@xylabs/promise": "^4.4.21",
|
|
34
|
+
"@xylabs/typeof": "^4.4.21",
|
|
35
|
+
"@xyo-network/account-model": "^3.6.0-rc.10",
|
|
36
|
+
"@xyo-network/module-events": "^3.6.0-rc.10",
|
|
37
|
+
"@xyo-network/module-model": "^3.6.0-rc.10",
|
|
38
|
+
"@xyo-network/payload-model": "^3.6.0-rc.10"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@xylabs/ts-scripts-yarn3": "^4.2.
|
|
42
|
-
"@xylabs/tsconfig": "^4.2.
|
|
41
|
+
"@xylabs/ts-scripts-yarn3": "^4.2.6",
|
|
42
|
+
"@xylabs/tsconfig": "^4.2.6",
|
|
43
43
|
"typescript": "^5.7.2"
|
|
44
44
|
},
|
|
45
45
|
"publishConfig": {
|
package/src/QueryFunctions.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Promisable } from '@xylabs/promise'
|
|
2
2
|
import type { AccountInstance } from '@xyo-network/account-model'
|
|
3
3
|
import type { ModuleQueryResult } from '@xyo-network/module-model'
|
|
4
|
-
import type { Payload } from '@xyo-network/payload-model'
|
|
4
|
+
import type { Payload, WithoutPrivateStorageMeta } from '@xyo-network/payload-model'
|
|
5
5
|
|
|
6
6
|
export interface WitnessQueryFunctions<TIn extends Payload = Payload, TOut extends Payload = Payload> {
|
|
7
|
-
observe: (payloads?: TIn[]) => Promisable<TOut[]>
|
|
7
|
+
observe: (payloads?: TIn[]) => Promisable<WithoutPrivateStorageMeta<TOut>[]>
|
|
8
8
|
observeQuery: (payloads?: TIn[], account?: AccountInstance) => Promisable<ModuleQueryResult<TOut>>
|
|
9
9
|
}
|