@xyo-network/diviner-wrapper 3.9.2 → 3.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +1,12 @@
1
- import * as _xyo_network_diviner_model from '@xyo-network/diviner-model';
2
- import { DivinerModule, DivinerParams, DivinerInstance } from '@xyo-network/diviner-model';
3
- import * as _xylabs_logger from '@xylabs/logger';
4
1
  import * as _xyo_network_module_model from '@xyo-network/module-model';
5
2
  import { ModuleQueryResult } from '@xyo-network/module-model';
6
- import * as _xyo_network_payload_model from '@xyo-network/payload-model';
7
- import { Payload, WithoutPrivateStorageMeta, WithSources } from '@xyo-network/payload-model';
3
+ import * as _xyo_network_diviner_model from '@xyo-network/diviner-model';
4
+ import { DivinerModule, DivinerParams, DivinerInstance } from '@xyo-network/diviner-model';
8
5
  import * as _xylabs_object from '@xylabs/object';
9
6
  import { RetryConfig } from '@xylabs/retry';
10
7
  import { AccountInstance } from '@xyo-network/account-model';
11
8
  import { ModuleWrapper } from '@xyo-network/module-wrapper';
9
+ import { Payload, WithoutPrivateStorageMeta, WithSources } from '@xyo-network/payload-model';
12
10
 
13
11
  declare class DivinerWrapper<TWrappedModule extends DivinerModule<DivinerParams>, TIn extends Payload = Payload, TOut extends Payload = Payload> extends ModuleWrapper<TWrappedModule> implements DivinerInstance<TWrappedModule['params'], TIn, TOut> {
14
12
  static readonly instanceIdentityCheck: _xylabs_object.TypeCheck<DivinerInstance<_xylabs_object.BaseParamsFields & {
@@ -16,137 +14,24 @@ declare class DivinerWrapper<TWrappedModule extends DivinerModule<DivinerParams>
16
14
  addToResolvers?: boolean;
17
15
  additionalSigners?: AccountInstance[];
18
16
  allowNameResolution?: boolean;
19
- config: _xylabs_object.DeepRestrictToStringKeys<{
20
- schema: _xyo_network_payload_model.Schema;
21
- readonly name?: _xyo_network_module_model.ModuleName | undefined;
22
- readonly archiving?: {
23
- readonly archivists?: string[] | undefined;
24
- readonly queries?: string[] | undefined;
25
- } | undefined;
26
- readonly allowedQueries?: string[] | undefined;
27
- readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
28
- readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
29
- readonly labels?: {
30
- [x: string]: string | undefined;
31
- } | undefined;
32
- readonly paging?: {
33
- [x: string]: {
34
- size?: number | undefined;
35
- };
36
- } | undefined;
37
- readonly retry?: {
38
- backoff?: number | undefined;
39
- interval?: number | undefined;
40
- retries?: number | undefined;
41
- } | undefined;
42
- readonly security?: {
43
- readonly allowAnonymous?: boolean | undefined;
44
- readonly allowed?: {
45
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
46
- } | undefined;
47
- readonly disallowed?: {
48
- [x: string]: Lowercase<string>[];
49
- } | undefined;
50
- } | undefined;
51
- readonly sign?: boolean | undefined;
52
- readonly storeQueries?: boolean | undefined;
53
- readonly timestamp?: boolean | undefined;
54
- }>;
17
+ config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_diviner_model.DivinerConfig>;
55
18
  ephemeralQueryAccountEnabled?: boolean;
56
19
  moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
57
- }, _xylabs_object.DeepRestrictToStringKeys<{
58
- schema: _xyo_network_payload_model.Schema;
59
- }>, _xylabs_object.DeepRestrictToStringKeys<{
60
- schema: _xyo_network_payload_model.Schema;
61
- }>, _xyo_network_diviner_model.DivinerModuleEventData<_xyo_network_module_model.ModuleInstance<_xylabs_object.BaseParamsFields & {
20
+ }, Payload, Payload, _xyo_network_diviner_model.DivinerModuleEventData<_xyo_network_module_model.ModuleInstance<_xylabs_object.BaseParamsFields & {
62
21
  account?: AccountInstance | "random";
63
22
  addToResolvers?: boolean;
64
23
  additionalSigners?: AccountInstance[];
65
24
  allowNameResolution?: boolean;
66
- config: _xylabs_object.DeepRestrictToStringKeys<{
67
- schema: _xyo_network_payload_model.Schema;
68
- readonly archiving?: {
69
- readonly archivists?: string[] | undefined;
70
- readonly queries?: string[] | undefined;
71
- } | undefined;
72
- readonly allowedQueries?: string[] | undefined;
73
- readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
74
- readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
75
- readonly labels?: {
76
- [x: string]: string | undefined;
77
- } | undefined;
78
- readonly name?: _xyo_network_module_model.ModuleName | undefined;
79
- readonly paging?: {
80
- [x: string]: {
81
- size?: number | undefined;
82
- };
83
- } | undefined;
84
- readonly retry?: {
85
- backoff?: number | undefined;
86
- interval?: number | undefined;
87
- retries?: number | undefined;
88
- } | undefined;
89
- readonly security?: {
90
- readonly allowAnonymous?: boolean | undefined;
91
- readonly allowed?: {
92
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
93
- } | undefined;
94
- readonly disallowed?: {
95
- [x: string]: Lowercase<string>[];
96
- } | undefined;
97
- } | undefined;
98
- readonly sign?: boolean | undefined;
99
- readonly storeQueries?: boolean | undefined;
100
- readonly timestamp?: boolean | undefined;
101
- }>;
25
+ config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_module_model.ModuleConfig<void, void>>;
102
26
  ephemeralQueryAccountEnabled?: boolean;
103
27
  moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
104
- }, _xyo_network_module_model.ModuleEventData<object>>, _xylabs_object.DeepRestrictToStringKeys<{
105
- schema: _xyo_network_payload_model.Schema;
106
- }>, _xylabs_object.DeepRestrictToStringKeys<{
107
- schema: _xyo_network_payload_model.Schema;
108
- }>>>>;
28
+ }, _xyo_network_module_model.ModuleEventData<object>>, Payload, Payload>>>;
109
29
  static readonly moduleIdentityCheck: _xyo_network_module_model.ModuleTypeCheck<DivinerModule<_xylabs_object.BaseParamsFields & {
110
30
  account?: AccountInstance | "random";
111
31
  addToResolvers?: boolean;
112
32
  additionalSigners?: AccountInstance[];
113
33
  allowNameResolution?: boolean;
114
- config: _xylabs_object.DeepRestrictToStringKeys<{
115
- schema: _xyo_network_payload_model.Schema;
116
- readonly name?: _xyo_network_module_model.ModuleName | undefined;
117
- readonly archiving?: {
118
- readonly archivists?: string[] | undefined;
119
- readonly queries?: string[] | undefined;
120
- } | undefined;
121
- readonly allowedQueries?: string[] | undefined;
122
- readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
123
- readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
124
- readonly labels?: {
125
- [x: string]: string | undefined;
126
- } | undefined;
127
- readonly paging?: {
128
- [x: string]: {
129
- size?: number | undefined;
130
- };
131
- } | undefined;
132
- readonly retry?: {
133
- backoff?: number | undefined;
134
- interval?: number | undefined;
135
- retries?: number | undefined;
136
- } | undefined;
137
- readonly security?: {
138
- readonly allowAnonymous?: boolean | undefined;
139
- readonly allowed?: {
140
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
141
- } | undefined;
142
- readonly disallowed?: {
143
- [x: string]: Lowercase<string>[];
144
- } | undefined;
145
- } | undefined;
146
- readonly sign?: boolean | undefined;
147
- readonly storeQueries?: boolean | undefined;
148
- readonly timestamp?: boolean | undefined;
149
- }>;
34
+ config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_diviner_model.DivinerConfig>;
150
35
  ephemeralQueryAccountEnabled?: boolean;
151
36
  moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
152
37
  }, _xyo_network_diviner_model.DivinerModuleEventData<_xyo_network_module_model.ModuleInstance<_xylabs_object.BaseParamsFields & {
@@ -154,49 +39,10 @@ declare class DivinerWrapper<TWrappedModule extends DivinerModule<DivinerParams>
154
39
  addToResolvers?: boolean;
155
40
  additionalSigners?: AccountInstance[];
156
41
  allowNameResolution?: boolean;
157
- config: _xylabs_object.DeepRestrictToStringKeys<{
158
- schema: _xyo_network_payload_model.Schema;
159
- readonly archiving?: {
160
- readonly archivists?: string[] | undefined;
161
- readonly queries?: string[] | undefined;
162
- } | undefined;
163
- readonly allowedQueries?: string[] | undefined;
164
- readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
165
- readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
166
- readonly labels?: {
167
- [x: string]: string | undefined;
168
- } | undefined;
169
- readonly name?: _xyo_network_module_model.ModuleName | undefined;
170
- readonly paging?: {
171
- [x: string]: {
172
- size?: number | undefined;
173
- };
174
- } | undefined;
175
- readonly retry?: {
176
- backoff?: number | undefined;
177
- interval?: number | undefined;
178
- retries?: number | undefined;
179
- } | undefined;
180
- readonly security?: {
181
- readonly allowAnonymous?: boolean | undefined;
182
- readonly allowed?: {
183
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
184
- } | undefined;
185
- readonly disallowed?: {
186
- [x: string]: Lowercase<string>[];
187
- } | undefined;
188
- } | undefined;
189
- readonly sign?: boolean | undefined;
190
- readonly storeQueries?: boolean | undefined;
191
- readonly timestamp?: boolean | undefined;
192
- }>;
42
+ config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_module_model.ModuleConfig<void, void>>;
193
43
  ephemeralQueryAccountEnabled?: boolean;
194
44
  moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
195
- }, _xyo_network_module_model.ModuleEventData<object>>, _xylabs_object.DeepRestrictToStringKeys<{
196
- schema: _xyo_network_payload_model.Schema;
197
- }>, _xylabs_object.DeepRestrictToStringKeys<{
198
- schema: _xyo_network_payload_model.Schema;
199
- }>>>>;
45
+ }, _xyo_network_module_model.ModuleEventData<object>>, Payload, Payload>>>;
200
46
  static readonly requiredQueries: string[];
201
47
  divine(payloads?: TIn[], _retryConfig?: RetryConfig): Promise<WithoutPrivateStorageMeta<WithSources<TOut>>[]>;
202
48
  divineQuery(payloads?: TIn[], account?: AccountInstance, _retryConfig?: RetryConfig): Promise<ModuleQueryResult<TOut>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/diviner-wrapper",
3
- "version": "3.9.2",
3
+ "version": "3.9.3",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -30,18 +30,18 @@
30
30
  "types": "dist/neutral/index.d.ts",
31
31
  "dependencies": {
32
32
  "@xylabs/retry": "^4.5.1",
33
- "@xyo-network/account-model": "^3.9.2",
34
- "@xyo-network/diviner-model": "^3.9.2",
35
- "@xyo-network/module-model": "^3.9.2",
36
- "@xyo-network/module-wrapper": "^3.9.2",
37
- "@xyo-network/payload-model": "^3.9.2"
33
+ "@xyo-network/account-model": "^3.9.3",
34
+ "@xyo-network/diviner-model": "^3.9.3",
35
+ "@xyo-network/module-model": "^3.9.3",
36
+ "@xyo-network/module-wrapper": "^3.9.3",
37
+ "@xyo-network/payload-model": "^3.9.3"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@xylabs/ts-scripts-yarn3": "^5.0.24",
41
41
  "@xylabs/tsconfig": "^5.0.24",
42
42
  "@xylabs/vitest-extended": "^4.5.1",
43
- "@xyo-network/diviner-identity": "^3.9.2",
44
- "@xyo-network/payload-builder": "^3.9.2",
43
+ "@xyo-network/diviner-identity": "^3.9.3",
44
+ "@xyo-network/payload-builder": "^3.9.3",
45
45
  "typescript": "^5.7.3",
46
46
  "vitest": "^3.0.5"
47
47
  },