@xyo-network/bridge-abstract 3.8.0 → 3.8.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.
@@ -1,247 +0,0 @@
1
- import type { Address } from '@xylabs/hex';
2
- import type { Promisable } from '@xylabs/promise';
3
- import type { ModuleManifestPayload } from '@xyo-network/manifest-model';
4
- import type { ModuleFilterOptions, ModuleIdentifier, ModuleIdentifierTransformer, ModuleInstance, ModuleName, ModuleResolver, ModuleResolverInstance, ObjectFilterOptions } from '@xyo-network/module-model';
5
- export interface ModuleProxyResolverOptions {
6
- childAddressMap: Record<Address, ModuleName | null>;
7
- childManifests?: Record<Address, ModuleManifestPayload>;
8
- childStates?: Record<Address, ModuleManifestPayload>;
9
- host: ModuleResolver;
10
- mod: ModuleInstance;
11
- moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
12
- }
13
- export declare class ModuleProxyResolver<T extends ModuleProxyResolverOptions = ModuleProxyResolverOptions> implements ModuleResolverInstance {
14
- private options;
15
- private downResolver;
16
- constructor(options: T);
17
- get priority(): 0;
18
- get root(): ModuleInstance<import("@xylabs/object").BaseParamsFields & {
19
- account?: import("@xyo-network/account").AccountInstance | "random";
20
- addToResolvers?: boolean;
21
- additionalSigners?: import("@xyo-network/account").AccountInstance[];
22
- allowNameResolution?: boolean;
23
- config: import("@xylabs/object").DeepRestrictToStringKeys<{
24
- schema: import("@xyo-network/payload-model").Schema;
25
- readonly archiving?: {
26
- readonly archivists?: string[] | undefined;
27
- readonly queries?: string[] | undefined;
28
- } | undefined;
29
- readonly allowedQueries?: string[] | undefined;
30
- readonly archivist?: ModuleIdentifier | undefined;
31
- readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
32
- readonly labels?: {
33
- [x: string]: string | undefined;
34
- } | undefined;
35
- readonly name?: ModuleName | undefined;
36
- readonly paging?: {
37
- [x: string]: {
38
- size?: number | undefined;
39
- };
40
- } | undefined;
41
- readonly retry?: {
42
- backoff?: number | undefined;
43
- interval?: number | undefined;
44
- retries?: number | undefined;
45
- } | undefined;
46
- readonly security?: {
47
- readonly allowAnonymous?: boolean | undefined;
48
- readonly allowed?: {
49
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
50
- } | undefined;
51
- readonly disallowed?: {
52
- [x: string]: Lowercase<string>[];
53
- } | undefined;
54
- } | undefined;
55
- readonly sign?: boolean | undefined;
56
- readonly storeQueries?: boolean | undefined;
57
- readonly timestamp?: boolean | undefined;
58
- }>;
59
- ephemeralQueryAccountEnabled?: boolean;
60
- moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
61
- }, import("@xyo-network/module-model").ModuleEventData<object>>;
62
- protected get childAddressMap(): Record<Lowercase<string>, string | null>;
63
- protected get host(): ModuleResolver<ModuleInstance<import("@xylabs/object").BaseParamsFields & {
64
- account?: import("@xyo-network/account").AccountInstance | "random";
65
- addToResolvers?: boolean;
66
- additionalSigners?: import("@xyo-network/account").AccountInstance[];
67
- allowNameResolution?: boolean;
68
- config: import("@xylabs/object").DeepRestrictToStringKeys<{
69
- schema: import("@xyo-network/payload-model").Schema;
70
- readonly archiving?: {
71
- readonly archivists?: string[] | undefined;
72
- readonly queries?: string[] | undefined;
73
- } | undefined;
74
- readonly allowedQueries?: string[] | undefined;
75
- readonly archivist?: ModuleIdentifier | undefined;
76
- readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
77
- readonly labels?: {
78
- [x: string]: string | undefined;
79
- } | undefined;
80
- readonly name?: ModuleName | undefined;
81
- readonly paging?: {
82
- [x: string]: {
83
- size?: number | undefined;
84
- };
85
- } | undefined;
86
- readonly retry?: {
87
- backoff?: number | undefined;
88
- interval?: number | undefined;
89
- retries?: number | undefined;
90
- } | undefined;
91
- readonly security?: {
92
- readonly allowAnonymous?: boolean | undefined;
93
- readonly allowed?: {
94
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
95
- } | undefined;
96
- readonly disallowed?: {
97
- [x: string]: Lowercase<string>[];
98
- } | undefined;
99
- } | undefined;
100
- readonly sign?: boolean | undefined;
101
- readonly storeQueries?: boolean | undefined;
102
- readonly timestamp?: boolean | undefined;
103
- }>;
104
- ephemeralQueryAccountEnabled?: boolean;
105
- moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
106
- }, import("@xyo-network/module-model").ModuleEventData<object>>>;
107
- protected get mod(): ModuleInstance<import("@xylabs/object").BaseParamsFields & {
108
- account?: import("@xyo-network/account").AccountInstance | "random";
109
- addToResolvers?: boolean;
110
- additionalSigners?: import("@xyo-network/account").AccountInstance[];
111
- allowNameResolution?: boolean;
112
- config: import("@xylabs/object").DeepRestrictToStringKeys<{
113
- schema: import("@xyo-network/payload-model").Schema;
114
- readonly archiving?: {
115
- readonly archivists?: string[] | undefined;
116
- readonly queries?: string[] | undefined;
117
- } | undefined;
118
- readonly allowedQueries?: string[] | undefined;
119
- readonly archivist?: ModuleIdentifier | undefined;
120
- readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
121
- readonly labels?: {
122
- [x: string]: string | undefined;
123
- } | undefined;
124
- readonly name?: ModuleName | undefined;
125
- readonly paging?: {
126
- [x: string]: {
127
- size?: number | undefined;
128
- };
129
- } | undefined;
130
- readonly retry?: {
131
- backoff?: number | undefined;
132
- interval?: number | undefined;
133
- retries?: number | undefined;
134
- } | undefined;
135
- readonly security?: {
136
- readonly allowAnonymous?: boolean | undefined;
137
- readonly allowed?: {
138
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
139
- } | undefined;
140
- readonly disallowed?: {
141
- [x: string]: Lowercase<string>[];
142
- } | undefined;
143
- } | undefined;
144
- readonly sign?: boolean | undefined;
145
- readonly storeQueries?: boolean | undefined;
146
- readonly timestamp?: boolean | undefined;
147
- }>;
148
- ephemeralQueryAccountEnabled?: boolean;
149
- moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
150
- }, import("@xyo-network/module-model").ModuleEventData<object>>;
151
- addResolver(_resolver: ModuleResolver): this;
152
- childManifest(address: Address): import("@xylabs/object").DeepRestrictToStringKeys<{
153
- schema: "network.xyo.module.manifest";
154
- config: {
155
- accountPath?: string | undefined;
156
- features?: string[] | undefined;
157
- labels?: {
158
- [x: string]: string | undefined;
159
- } | undefined;
160
- language?: string | undefined;
161
- name: string;
162
- os?: string | undefined;
163
- schema: string;
164
- };
165
- lazyStart?: boolean | undefined;
166
- status?: {
167
- address: Address;
168
- children?: {
169
- [x: Lowercase<string>]: string | null;
170
- } | undefined;
171
- } | undefined;
172
- description?: string | undefined;
173
- }> | import("@xylabs/object").DeepRestrictToStringKeys<{
174
- schema: "network.xyo.node.manifest";
175
- config: {
176
- accountPath?: string | undefined;
177
- features?: string[] | undefined;
178
- labels?: {
179
- [x: string]: string | undefined;
180
- } | undefined;
181
- language?: string | undefined;
182
- name: string;
183
- os?: string | undefined;
184
- schema: string;
185
- };
186
- lazyStart?: boolean | undefined;
187
- status?: {
188
- address: Address;
189
- children?: {
190
- [x: Lowercase<string>]: string | null;
191
- } | undefined;
192
- } | undefined;
193
- description?: string | undefined;
194
- }> | undefined;
195
- childState(address: Address): import("@xylabs/object").DeepRestrictToStringKeys<{
196
- schema: "network.xyo.module.manifest";
197
- config: {
198
- accountPath?: string | undefined;
199
- features?: string[] | undefined;
200
- labels?: {
201
- [x: string]: string | undefined;
202
- } | undefined;
203
- language?: string | undefined;
204
- name: string;
205
- os?: string | undefined;
206
- schema: string;
207
- };
208
- lazyStart?: boolean | undefined;
209
- status?: {
210
- address: Address;
211
- children?: {
212
- [x: Lowercase<string>]: string | null;
213
- } | undefined;
214
- } | undefined;
215
- description?: string | undefined;
216
- }> | import("@xylabs/object").DeepRestrictToStringKeys<{
217
- schema: "network.xyo.node.manifest";
218
- config: {
219
- accountPath?: string | undefined;
220
- features?: string[] | undefined;
221
- labels?: {
222
- [x: string]: string | undefined;
223
- } | undefined;
224
- language?: string | undefined;
225
- name: string;
226
- os?: string | undefined;
227
- schema: string;
228
- };
229
- lazyStart?: boolean | undefined;
230
- status?: {
231
- address: Address;
232
- children?: {
233
- [x: Lowercase<string>]: string | null;
234
- } | undefined;
235
- } | undefined;
236
- description?: string | undefined;
237
- }> | undefined;
238
- removeResolver(_resolver: ModuleResolver): this;
239
- /** @deprecated do not pass undefined. If trying to get all, pass '*' */
240
- resolve(): Promise<ModuleInstance[]>;
241
- resolve<T extends ModuleInstance = ModuleInstance>(all: '*', options?: ModuleFilterOptions<T>): Promise<T[]>;
242
- resolve<T extends ModuleInstance = ModuleInstance>(id: ModuleIdentifier, options?: ModuleFilterOptions<T>): Promise<T | undefined>;
243
- resolveIdentifier(id: ModuleIdentifier, _options?: ObjectFilterOptions): Promisable<Address | undefined>;
244
- resolvePrivate<T extends ModuleInstance = ModuleInstance>(all: '*', options?: ObjectFilterOptions<T>): Promise<T[]>;
245
- resolvePrivate<T extends ModuleInstance = ModuleInstance>(id: ModuleIdentifier, options?: ObjectFilterOptions<T>): Promise<T | undefined>;
246
- }
247
- //# sourceMappingURL=ModuleProxyResolver.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ModuleProxyResolver.d.ts","sourceRoot":"","sources":["../../../src/AbstractModuleProxy/ModuleProxyResolver.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AACxE,OAAO,KAAK,EACV,mBAAmB,EACnB,gBAAgB,EAChB,2BAA2B,EAC3B,cAAc,EACd,UAAU,EACV,cAAc,EACd,sBAAsB,EACtB,mBAAmB,EACpB,MAAM,2BAA2B,CAAA;AAMlC,MAAM,WAAW,0BAA0B;IACzC,eAAe,EAAE,MAAM,CAAC,OAAO,EAAE,UAAU,GAAG,IAAI,CAAC,CAAA;IACnD,cAAc,CAAC,EAAE,MAAM,CAAC,OAAO,EAAE,qBAAqB,CAAC,CAAA;IACvD,WAAW,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mB,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC;IAkDxI,iBAAiB,CAAC,EAAE,EAAE,gBAAgB,EAAE,QAAQ,CAAC,EAAE,mBAAmB,GAAG,UAAU,CAAC,OAAO,GAAG,SAAS,CAAC;IAqBlG,cAAc,CAAC,CAAC,SAAS,cAAc,GAAG,cAAc,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC;IACnH,cAAc,CAAC,CAAC,SAAS,cAAc,GAAG,cAAc,EAAE,EAAE,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC;CAOhJ"}
@@ -1,3 +0,0 @@
1
- export * from './AbstractModuleProxy.ts';
2
- export * from './ModuleProxyResolver.ts';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/AbstractModuleProxy/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA;AACxC,cAAc,0BAA0B,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,mCAAmC,CAAA;AACjD,cAAc,gCAAgC,CAAA;AAC9C,cAAc,yBAAyB,CAAA"}
@@ -1,5 +0,0 @@
1
- import type { AccountInstance } from '@xyo-network/account-model';
2
- import type { Module } from '@xyo-network/module-model';
3
- import type { ModuleWrapper } from '@xyo-network/module-wrapper';
4
- export declare const wrapModuleWithType: (mod: Module, account: AccountInstance) => ModuleWrapper;
5
- //# sourceMappingURL=wrapModuleWithType.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"wrapModuleWithType.d.ts","sourceRoot":"","sources":["../../src/wrapModuleWithType.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAKjE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAA;AAQhE,eAAO,MAAM,kBAAkB,QAAS,MAAM,WAAW,eAAe,KAAG,aAiB1E,CAAA"}