@xyo-network/bridge-model 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.
- package/dist/neutral/index.d.ts +865 -12
- package/package.json +7 -7
- package/dist/neutral/Config.d.ts +0 -22
- package/dist/neutral/Config.d.ts.map +0 -1
- package/dist/neutral/EventData.d.ts +0 -5
- package/dist/neutral/EventData.d.ts.map +0 -1
- package/dist/neutral/Events/Exposed.d.ts +0 -9
- package/dist/neutral/Events/Exposed.d.ts.map +0 -1
- package/dist/neutral/Events/QueryFulfillFinished.d.ts +0 -14
- package/dist/neutral/Events/QueryFulfillFinished.d.ts.map +0 -1
- package/dist/neutral/Events/QueryFulfillStarted.d.ts +0 -12
- package/dist/neutral/Events/QueryFulfillStarted.d.ts.map +0 -1
- package/dist/neutral/Events/QuerySendFinished.d.ts +0 -14
- package/dist/neutral/Events/QuerySendFinished.d.ts.map +0 -1
- package/dist/neutral/Events/QuerySendStarted.d.ts +0 -12
- package/dist/neutral/Events/QuerySendStarted.d.ts.map +0 -1
- package/dist/neutral/Events/Unexposed.d.ts +0 -9
- package/dist/neutral/Events/Unexposed.d.ts.map +0 -1
- package/dist/neutral/Events/index.d.ts +0 -7
- package/dist/neutral/Events/index.d.ts.map +0 -1
- package/dist/neutral/Instance.d.ts +0 -11
- package/dist/neutral/Instance.d.ts.map +0 -1
- package/dist/neutral/Module.d.ts +0 -6
- package/dist/neutral/Module.d.ts.map +0 -1
- package/dist/neutral/Params.d.ts +0 -6
- package/dist/neutral/Params.d.ts.map +0 -1
- package/dist/neutral/Queries/Connect.d.ts +0 -10
- package/dist/neutral/Queries/Connect.d.ts.map +0 -1
- package/dist/neutral/Queries/Disconnect.d.ts +0 -10
- package/dist/neutral/Queries/Disconnect.d.ts.map +0 -1
- package/dist/neutral/Queries/Expose.d.ts +0 -15
- package/dist/neutral/Queries/Expose.d.ts.map +0 -1
- package/dist/neutral/Queries/Unexpose.d.ts +0 -8
- package/dist/neutral/Queries/Unexpose.d.ts.map +0 -1
- package/dist/neutral/Queries/index.d.ts +0 -12
- package/dist/neutral/Queries/index.d.ts.map +0 -1
- package/dist/neutral/QueryFunctions.d.ts +0 -11
- package/dist/neutral/QueryFunctions.d.ts.map +0 -1
- package/dist/neutral/RawQueryFunctions.d.ts +0 -10
- package/dist/neutral/RawQueryFunctions.d.ts.map +0 -1
- package/dist/neutral/attachable/AttachableInstance.d.ts +0 -13
- package/dist/neutral/attachable/AttachableInstance.d.ts.map +0 -1
- package/dist/neutral/attachable/asAttachableInstance.d.ts +0 -164
- package/dist/neutral/attachable/asAttachableInstance.d.ts.map +0 -1
- package/dist/neutral/attachable/index.d.ts +0 -4
- package/dist/neutral/attachable/index.d.ts.map +0 -1
- package/dist/neutral/attachable/isAttachableInstance.d.ts +0 -6
- package/dist/neutral/attachable/isAttachableInstance.d.ts.map +0 -1
- package/dist/neutral/index.d.ts.map +0 -1
- package/dist/neutral/typeChecks.d.ts +0 -545
- package/dist/neutral/typeChecks.d.ts.map +0 -1
package/dist/neutral/index.d.ts
CHANGED
|
@@ -1,12 +1,865 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import * as _xylabs_promise from '@xylabs/promise';
|
|
2
|
+
import { Promisable } from '@xylabs/promise';
|
|
3
|
+
import * as _xylabs_object from '@xylabs/object';
|
|
4
|
+
import { EmptyObject, WithAdditional, TypeCheck, IsObjectFactory } from '@xylabs/object';
|
|
5
|
+
import * as _xyo_network_module_model from '@xyo-network/module-model';
|
|
6
|
+
import { Module, ModuleEventArgs, ModuleInstance, ModuleQueryResult, ModuleEventData, ModuleConfig, CacheConfig, AnyConfigSchema, ModuleParams, ModuleResolverInstance, ModuleIdentifier, ModuleQueries, AttachableModuleInstance } from '@xyo-network/module-model';
|
|
7
|
+
import { EventData } from '@xyo-network/module-events';
|
|
8
|
+
import { QueryBoundWitness } from '@xyo-network/boundwitness-model';
|
|
9
|
+
import * as _xyo_network_payload_model from '@xyo-network/payload-model';
|
|
10
|
+
import { Payload, Query } from '@xyo-network/payload-model';
|
|
11
|
+
import { Address } from '@xylabs/hex';
|
|
12
|
+
import * as _xylabs_logger from '@xylabs/logger';
|
|
13
|
+
import { ObjectTypeShape } from '@xylabs/typeof';
|
|
14
|
+
|
|
15
|
+
type ExposedEventArgs<T extends Module = Module> = ModuleEventArgs<T, {
|
|
16
|
+
modules: ModuleInstance[];
|
|
17
|
+
}>;
|
|
18
|
+
interface ExposedEventData<T extends Module = Module> extends EventData {
|
|
19
|
+
exposed: ExposedEventArgs<T>;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
type QueryFulfillFinishedEventArgs<T extends Module = Module> = ModuleEventArgs<T, {
|
|
23
|
+
payloads?: Payload[];
|
|
24
|
+
query: QueryBoundWitness;
|
|
25
|
+
result?: ModuleQueryResult;
|
|
26
|
+
status: 'success' | 'failure';
|
|
27
|
+
}>;
|
|
28
|
+
interface QueryFulfillFinishedEventData<T extends Module = Module> extends EventData {
|
|
29
|
+
queryFulfillFinished: QueryFulfillFinishedEventArgs<T>;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
type QueryFulfillStartedEventArgs<T extends Module = Module> = ModuleEventArgs<T, {
|
|
33
|
+
payloads?: Payload[];
|
|
34
|
+
query: QueryBoundWitness;
|
|
35
|
+
}>;
|
|
36
|
+
interface QueryFulfillStartedEventData<T extends Module = Module> extends EventData {
|
|
37
|
+
queryFulfillStarted: QueryFulfillStartedEventArgs<T>;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
type QuerySendFinishedEventArgs<T extends Module = Module> = ModuleEventArgs<T, {
|
|
41
|
+
payloads?: Payload[];
|
|
42
|
+
query: QueryBoundWitness;
|
|
43
|
+
result?: ModuleQueryResult;
|
|
44
|
+
status: 'success' | 'failure';
|
|
45
|
+
}>;
|
|
46
|
+
interface QuerySendFinishedEventData<T extends Module = Module> extends EventData {
|
|
47
|
+
querySendFinished: QuerySendFinishedEventArgs<T>;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
type QuerySendStartedEventArgs<T extends Module = Module> = ModuleEventArgs<T, {
|
|
51
|
+
payloads?: Payload[];
|
|
52
|
+
query: QueryBoundWitness;
|
|
53
|
+
}>;
|
|
54
|
+
interface QuerySendStartedEventData<T extends Module = Module> extends EventData {
|
|
55
|
+
querySendStarted: QuerySendStartedEventArgs<T>;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
type UnexposedEventArgs<T extends Module = Module> = ModuleEventArgs<T, {
|
|
59
|
+
modules: ModuleInstance[];
|
|
60
|
+
}>;
|
|
61
|
+
interface UnexposedEventData<T extends Module = Module> extends EventData {
|
|
62
|
+
unexposed: UnexposedEventArgs<T>;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
interface BridgeModuleEventData extends QuerySendFinishedEventData, QuerySendStartedEventData, QueryFulfillFinishedEventData, QueryFulfillStartedEventData, ExposedEventData, UnexposedEventData, ModuleEventData {
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
declare const BridgeConfigSchema: "network.xyo.bridge.config";
|
|
69
|
+
type BridgeConfigSchema = typeof BridgeConfigSchema;
|
|
70
|
+
type BridgeClientConfig = {
|
|
71
|
+
cache?: CacheConfig | true;
|
|
72
|
+
discoverRoots?: 'start' | 'lazy';
|
|
73
|
+
maxDepth?: number;
|
|
74
|
+
};
|
|
75
|
+
type BridgeHostConfig = {
|
|
76
|
+
cache?: CacheConfig | true;
|
|
77
|
+
maxDepth?: number;
|
|
78
|
+
};
|
|
79
|
+
type BridgeConfig<TConfig extends Payload | EmptyObject | void = void, TSchema extends string | void = void, TClient extends EmptyObject | void = void, THost extends EmptyObject | void = void> = ModuleConfig<WithAdditional<{
|
|
80
|
+
client?: WithAdditional<BridgeClientConfig, TClient>;
|
|
81
|
+
discoverRoots?: 'start' | 'lazy';
|
|
82
|
+
host?: WithAdditional<BridgeHostConfig, THost>;
|
|
83
|
+
schema: TConfig extends Payload ? TConfig['schema'] : BridgeConfigSchema;
|
|
84
|
+
}, TConfig>, TSchema>;
|
|
85
|
+
|
|
86
|
+
interface BridgeParams<TConfig extends AnyConfigSchema<BridgeConfig> = AnyConfigSchema<BridgeConfig>> extends ModuleParams<TConfig>, ModuleParams<TConfig> {
|
|
87
|
+
resolver?: ModuleResolverInstance;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
interface BridgeModule<TParams extends BridgeParams = BridgeParams, TEventData extends BridgeModuleEventData = BridgeModuleEventData> extends Module<TParams, TEventData> {
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
declare const BridgeConnectQuerySchema: "network.xyo.query.bridge.connect";
|
|
94
|
+
type BridgeConnectQuerySchema = typeof BridgeConnectQuerySchema;
|
|
95
|
+
type BridgeConnectQuery = Query<{
|
|
96
|
+
id?: ModuleIdentifier;
|
|
97
|
+
maxDepth?: number;
|
|
98
|
+
schema: BridgeConnectQuerySchema;
|
|
99
|
+
}>;
|
|
100
|
+
|
|
101
|
+
type BridgeDisconnectQuerySchema = 'network.xyo.query.bridge.disconnect';
|
|
102
|
+
declare const BridgeDisconnectQuerySchema: BridgeDisconnectQuerySchema;
|
|
103
|
+
type BridgeDisconnectQuery = Query<{
|
|
104
|
+
id?: ModuleIdentifier;
|
|
105
|
+
maxDepth?: number;
|
|
106
|
+
schema: BridgeDisconnectQuerySchema;
|
|
107
|
+
}>;
|
|
108
|
+
|
|
109
|
+
declare const BridgeExposeQuerySchema: "network.xyo.query.bridge.expose";
|
|
110
|
+
type BridgeExposeQuerySchema = typeof BridgeExposeQuerySchema;
|
|
111
|
+
interface BridgeExposeOptions {
|
|
112
|
+
maxDepth?: number;
|
|
113
|
+
required?: boolean;
|
|
114
|
+
}
|
|
115
|
+
declare const ModuleFilterPayloadSchema = "network.xyo.module.filter";
|
|
116
|
+
type ModuleFilterPayloadSchema = typeof ModuleFilterPayloadSchema;
|
|
117
|
+
type ModuleFilterPayload = Payload<{
|
|
118
|
+
id: ModuleIdentifier;
|
|
119
|
+
} & BridgeExposeOptions, ModuleFilterPayloadSchema>;
|
|
120
|
+
type BridgeExposeQuery = Query<void, BridgeExposeQuerySchema>;
|
|
121
|
+
|
|
122
|
+
declare const BridgeUnexposeQuerySchema: "network.xyo.query.bridge.unexpose";
|
|
123
|
+
type BridgeUnexposeQuerySchema = typeof BridgeUnexposeQuerySchema;
|
|
124
|
+
interface BridgeUnexposeOptions extends BridgeExposeOptions {
|
|
125
|
+
}
|
|
126
|
+
type BridgeUnexposeQuery = Query<void, BridgeUnexposeQuerySchema>;
|
|
127
|
+
|
|
128
|
+
type BridgeQueries = BridgeConnectQuery | BridgeDisconnectQuery | BridgeExposeQuery | BridgeUnexposeQuery;
|
|
129
|
+
type BridgeModuleQueries = ModuleQueries | BridgeQueries;
|
|
130
|
+
|
|
131
|
+
interface BridgeQueryFunctions {
|
|
132
|
+
connect?: (id: ModuleIdentifier, maxDepth?: number) => Promisable<Address | undefined>;
|
|
133
|
+
disconnect?: (id: ModuleIdentifier, maxDepth?: number) => Promisable<Address | undefined>;
|
|
134
|
+
expose: (id: ModuleIdentifier, options?: BridgeExposeOptions) => Promisable<ModuleInstance[]>;
|
|
135
|
+
unexpose?: (id: ModuleIdentifier, options?: BridgeUnexposeOptions) => Promisable<Address[]>;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
interface BridgeInstance<TParams extends BridgeParams = BridgeParams, TEventData extends BridgeModuleEventData = BridgeModuleEventData> extends BridgeModule<TParams, TEventData>, BridgeQueryFunctions, ModuleInstance<TParams, TEventData> {
|
|
139
|
+
exposed?: () => Promisable<Address[]>;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
interface AttachableBridgeInstance<TParams extends BridgeParams = BridgeParams, TEventData extends BridgeModuleEventData = BridgeModuleEventData> extends BridgeModule<TParams, TEventData>, AttachableModuleInstance<TParams, TEventData>, BridgeInstance<TParams, TEventData> {
|
|
143
|
+
}
|
|
144
|
+
type AttachableBridgeInstanceTypeCheck<T extends AttachableBridgeInstance = AttachableBridgeInstance> = TypeCheck<T>;
|
|
145
|
+
declare class IsAttachableBridgeInstanceFactory<T extends AttachableBridgeInstance = AttachableBridgeInstance> extends IsObjectFactory<T> {
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
declare const asAttachableBridgeInstance: {
|
|
149
|
+
<TType extends AttachableBridgeInstance<BridgeParams<_xylabs_object.DeepRestrictToStringKeys<{
|
|
150
|
+
schema: _xyo_network_payload_model.Schema;
|
|
151
|
+
readonly name?: _xyo_network_module_model.ModuleName | undefined;
|
|
152
|
+
client?: {
|
|
153
|
+
cache?: true | {
|
|
154
|
+
max?: number | undefined;
|
|
155
|
+
maxSize?: number | undefined;
|
|
156
|
+
ttl?: number | undefined;
|
|
157
|
+
} | undefined;
|
|
158
|
+
discoverRoots?: "start" | "lazy" | undefined;
|
|
159
|
+
maxDepth?: number | undefined;
|
|
160
|
+
} | undefined;
|
|
161
|
+
discoverRoots?: "start" | "lazy" | undefined;
|
|
162
|
+
host?: {
|
|
163
|
+
cache?: true | {
|
|
164
|
+
max?: number | undefined;
|
|
165
|
+
maxSize?: number | undefined;
|
|
166
|
+
ttl?: number | undefined;
|
|
167
|
+
} | undefined;
|
|
168
|
+
maxDepth?: number | undefined;
|
|
169
|
+
} | undefined;
|
|
170
|
+
readonly archiving?: {
|
|
171
|
+
readonly archivists?: string[] | undefined;
|
|
172
|
+
readonly queries?: string[] | undefined;
|
|
173
|
+
} | undefined;
|
|
174
|
+
readonly allowedQueries?: string[] | undefined;
|
|
175
|
+
readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
|
|
176
|
+
readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
|
|
177
|
+
readonly labels?: {
|
|
178
|
+
[x: string]: string | undefined;
|
|
179
|
+
} | undefined;
|
|
180
|
+
readonly paging?: {
|
|
181
|
+
[x: string]: {
|
|
182
|
+
size?: number | undefined;
|
|
183
|
+
};
|
|
184
|
+
} | undefined;
|
|
185
|
+
readonly retry?: {
|
|
186
|
+
backoff?: number | undefined;
|
|
187
|
+
interval?: number | undefined;
|
|
188
|
+
retries?: number | undefined;
|
|
189
|
+
} | undefined;
|
|
190
|
+
readonly security?: {
|
|
191
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
192
|
+
readonly allowed?: {
|
|
193
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
194
|
+
} | undefined;
|
|
195
|
+
readonly disallowed?: {
|
|
196
|
+
[x: string]: Lowercase<string>[];
|
|
197
|
+
} | undefined;
|
|
198
|
+
} | undefined;
|
|
199
|
+
readonly sign?: boolean | undefined;
|
|
200
|
+
readonly storeQueries?: boolean | undefined;
|
|
201
|
+
readonly timestamp?: boolean | undefined;
|
|
202
|
+
}>>, BridgeModuleEventData>>(value: _xylabs_promise.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
203
|
+
<TType extends AttachableBridgeInstance<BridgeParams<_xylabs_object.DeepRestrictToStringKeys<{
|
|
204
|
+
schema: _xyo_network_payload_model.Schema;
|
|
205
|
+
readonly name?: _xyo_network_module_model.ModuleName | undefined;
|
|
206
|
+
client?: {
|
|
207
|
+
cache?: true | {
|
|
208
|
+
max?: number | undefined;
|
|
209
|
+
maxSize?: number | undefined;
|
|
210
|
+
ttl?: number | undefined;
|
|
211
|
+
} | undefined;
|
|
212
|
+
discoverRoots?: "start" | "lazy" | undefined;
|
|
213
|
+
maxDepth?: number | undefined;
|
|
214
|
+
} | undefined;
|
|
215
|
+
discoverRoots?: "start" | "lazy" | undefined;
|
|
216
|
+
host?: {
|
|
217
|
+
cache?: true | {
|
|
218
|
+
max?: number | undefined;
|
|
219
|
+
maxSize?: number | undefined;
|
|
220
|
+
ttl?: number | undefined;
|
|
221
|
+
} | undefined;
|
|
222
|
+
maxDepth?: number | undefined;
|
|
223
|
+
} | undefined;
|
|
224
|
+
readonly archiving?: {
|
|
225
|
+
readonly archivists?: string[] | undefined;
|
|
226
|
+
readonly queries?: string[] | undefined;
|
|
227
|
+
} | undefined;
|
|
228
|
+
readonly allowedQueries?: string[] | undefined;
|
|
229
|
+
readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
|
|
230
|
+
readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
|
|
231
|
+
readonly labels?: {
|
|
232
|
+
[x: string]: string | undefined;
|
|
233
|
+
} | undefined;
|
|
234
|
+
readonly paging?: {
|
|
235
|
+
[x: string]: {
|
|
236
|
+
size?: number | undefined;
|
|
237
|
+
};
|
|
238
|
+
} | undefined;
|
|
239
|
+
readonly retry?: {
|
|
240
|
+
backoff?: number | undefined;
|
|
241
|
+
interval?: number | undefined;
|
|
242
|
+
retries?: number | undefined;
|
|
243
|
+
} | undefined;
|
|
244
|
+
readonly security?: {
|
|
245
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
246
|
+
readonly allowed?: {
|
|
247
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
248
|
+
} | undefined;
|
|
249
|
+
readonly disallowed?: {
|
|
250
|
+
[x: string]: Lowercase<string>[];
|
|
251
|
+
} | undefined;
|
|
252
|
+
} | undefined;
|
|
253
|
+
readonly sign?: boolean | undefined;
|
|
254
|
+
readonly storeQueries?: boolean | undefined;
|
|
255
|
+
readonly timestamp?: boolean | undefined;
|
|
256
|
+
}>>, BridgeModuleEventData>>(value: _xylabs_promise.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<AttachableBridgeInstance<BridgeParams<_xylabs_object.DeepRestrictToStringKeys<{
|
|
257
|
+
schema: _xyo_network_payload_model.Schema;
|
|
258
|
+
readonly name?: _xyo_network_module_model.ModuleName | undefined;
|
|
259
|
+
client?: {
|
|
260
|
+
cache?: true | {
|
|
261
|
+
max?: number | undefined;
|
|
262
|
+
maxSize?: number | undefined;
|
|
263
|
+
ttl?: number | undefined;
|
|
264
|
+
} | undefined;
|
|
265
|
+
discoverRoots?: "start" | "lazy" | undefined;
|
|
266
|
+
maxDepth?: number | undefined;
|
|
267
|
+
} | undefined;
|
|
268
|
+
discoverRoots?: "start" | "lazy" | undefined;
|
|
269
|
+
host?: {
|
|
270
|
+
cache?: true | {
|
|
271
|
+
max?: number | undefined;
|
|
272
|
+
maxSize?: number | undefined;
|
|
273
|
+
ttl?: number | undefined;
|
|
274
|
+
} | undefined;
|
|
275
|
+
maxDepth?: number | undefined;
|
|
276
|
+
} | undefined;
|
|
277
|
+
readonly archiving?: {
|
|
278
|
+
readonly archivists?: string[] | undefined;
|
|
279
|
+
readonly queries?: string[] | undefined;
|
|
280
|
+
} | undefined;
|
|
281
|
+
readonly allowedQueries?: string[] | undefined;
|
|
282
|
+
readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
|
|
283
|
+
readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
|
|
284
|
+
readonly labels?: {
|
|
285
|
+
[x: string]: string | undefined;
|
|
286
|
+
} | undefined;
|
|
287
|
+
readonly paging?: {
|
|
288
|
+
[x: string]: {
|
|
289
|
+
size?: number | undefined;
|
|
290
|
+
};
|
|
291
|
+
} | undefined;
|
|
292
|
+
readonly retry?: {
|
|
293
|
+
backoff?: number | undefined;
|
|
294
|
+
interval?: number | undefined;
|
|
295
|
+
retries?: number | undefined;
|
|
296
|
+
} | undefined;
|
|
297
|
+
readonly security?: {
|
|
298
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
299
|
+
readonly allowed?: {
|
|
300
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
301
|
+
} | undefined;
|
|
302
|
+
readonly disallowed?: {
|
|
303
|
+
[x: string]: Lowercase<string>[];
|
|
304
|
+
} | undefined;
|
|
305
|
+
} | undefined;
|
|
306
|
+
readonly sign?: boolean | undefined;
|
|
307
|
+
readonly storeQueries?: boolean | undefined;
|
|
308
|
+
readonly timestamp?: boolean | undefined;
|
|
309
|
+
}>>, BridgeModuleEventData>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
declare const requiredAttachableBridgeInstanceFunctions: ObjectTypeShape;
|
|
313
|
+
declare const isAttachableBridgeInstance: TypeCheck<AttachableBridgeInstance>;
|
|
314
|
+
|
|
315
|
+
interface BridgeRawQueryFunctions {
|
|
316
|
+
connectQuery?: (id: ModuleIdentifier, maxDepth?: number) => Promisable<ModuleQueryResult>;
|
|
317
|
+
disconnectQuery?: (id: ModuleIdentifier, maxDepth?: number) => Promisable<ModuleQueryResult>;
|
|
318
|
+
exposeQuery: (id: ModuleIdentifier, options?: BridgeExposeOptions) => Promisable<ModuleQueryResult>;
|
|
319
|
+
unexposeQuery?: (id: ModuleIdentifier, options?: BridgeUnexposeOptions) => Promisable<ModuleQueryResult>;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
declare const isBridgeInstance: _xylabs_object.TypeCheck<BridgeInstance<BridgeParams<_xylabs_object.DeepRestrictToStringKeys<{
|
|
323
|
+
schema: _xyo_network_payload_model.Schema;
|
|
324
|
+
readonly name?: _xyo_network_module_model.ModuleName | undefined;
|
|
325
|
+
client?: {
|
|
326
|
+
cache?: true | {
|
|
327
|
+
max?: number | undefined;
|
|
328
|
+
maxSize?: number | undefined;
|
|
329
|
+
ttl?: number | undefined;
|
|
330
|
+
} | undefined;
|
|
331
|
+
discoverRoots?: "start" | "lazy" | undefined;
|
|
332
|
+
maxDepth?: number | undefined;
|
|
333
|
+
} | undefined;
|
|
334
|
+
discoverRoots?: "start" | "lazy" | undefined;
|
|
335
|
+
host?: {
|
|
336
|
+
cache?: true | {
|
|
337
|
+
max?: number | undefined;
|
|
338
|
+
maxSize?: number | undefined;
|
|
339
|
+
ttl?: number | undefined;
|
|
340
|
+
} | undefined;
|
|
341
|
+
maxDepth?: number | undefined;
|
|
342
|
+
} | undefined;
|
|
343
|
+
readonly archiving?: {
|
|
344
|
+
readonly archivists?: string[] | undefined;
|
|
345
|
+
readonly queries?: string[] | undefined;
|
|
346
|
+
} | undefined;
|
|
347
|
+
readonly allowedQueries?: string[] | undefined;
|
|
348
|
+
readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
|
|
349
|
+
readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
|
|
350
|
+
readonly labels?: {
|
|
351
|
+
[x: string]: string | undefined;
|
|
352
|
+
} | undefined;
|
|
353
|
+
readonly paging?: {
|
|
354
|
+
[x: string]: {
|
|
355
|
+
size?: number | undefined;
|
|
356
|
+
};
|
|
357
|
+
} | undefined;
|
|
358
|
+
readonly retry?: {
|
|
359
|
+
backoff?: number | undefined;
|
|
360
|
+
interval?: number | undefined;
|
|
361
|
+
retries?: number | undefined;
|
|
362
|
+
} | undefined;
|
|
363
|
+
readonly security?: {
|
|
364
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
365
|
+
readonly allowed?: {
|
|
366
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
367
|
+
} | undefined;
|
|
368
|
+
readonly disallowed?: {
|
|
369
|
+
[x: string]: Lowercase<string>[];
|
|
370
|
+
} | undefined;
|
|
371
|
+
} | undefined;
|
|
372
|
+
readonly sign?: boolean | undefined;
|
|
373
|
+
readonly storeQueries?: boolean | undefined;
|
|
374
|
+
readonly timestamp?: boolean | undefined;
|
|
375
|
+
}>>, BridgeModuleEventData>>;
|
|
376
|
+
declare const isBridgeModule: _xyo_network_module_model.ModuleTypeCheck<BridgeModule<BridgeParams<_xylabs_object.DeepRestrictToStringKeys<{
|
|
377
|
+
schema: _xyo_network_payload_model.Schema;
|
|
378
|
+
readonly name?: _xyo_network_module_model.ModuleName | undefined;
|
|
379
|
+
client?: {
|
|
380
|
+
cache?: true | {
|
|
381
|
+
max?: number | undefined;
|
|
382
|
+
maxSize?: number | undefined;
|
|
383
|
+
ttl?: number | undefined;
|
|
384
|
+
} | undefined;
|
|
385
|
+
discoverRoots?: "start" | "lazy" | undefined;
|
|
386
|
+
maxDepth?: number | undefined;
|
|
387
|
+
} | undefined;
|
|
388
|
+
discoverRoots?: "start" | "lazy" | undefined;
|
|
389
|
+
host?: {
|
|
390
|
+
cache?: true | {
|
|
391
|
+
max?: number | undefined;
|
|
392
|
+
maxSize?: number | undefined;
|
|
393
|
+
ttl?: number | undefined;
|
|
394
|
+
} | undefined;
|
|
395
|
+
maxDepth?: number | undefined;
|
|
396
|
+
} | undefined;
|
|
397
|
+
readonly archiving?: {
|
|
398
|
+
readonly archivists?: string[] | undefined;
|
|
399
|
+
readonly queries?: string[] | undefined;
|
|
400
|
+
} | undefined;
|
|
401
|
+
readonly allowedQueries?: string[] | undefined;
|
|
402
|
+
readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
|
|
403
|
+
readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
|
|
404
|
+
readonly labels?: {
|
|
405
|
+
[x: string]: string | undefined;
|
|
406
|
+
} | undefined;
|
|
407
|
+
readonly paging?: {
|
|
408
|
+
[x: string]: {
|
|
409
|
+
size?: number | undefined;
|
|
410
|
+
};
|
|
411
|
+
} | undefined;
|
|
412
|
+
readonly retry?: {
|
|
413
|
+
backoff?: number | undefined;
|
|
414
|
+
interval?: number | undefined;
|
|
415
|
+
retries?: number | undefined;
|
|
416
|
+
} | undefined;
|
|
417
|
+
readonly security?: {
|
|
418
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
419
|
+
readonly allowed?: {
|
|
420
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
421
|
+
} | undefined;
|
|
422
|
+
readonly disallowed?: {
|
|
423
|
+
[x: string]: Lowercase<string>[];
|
|
424
|
+
} | undefined;
|
|
425
|
+
} | undefined;
|
|
426
|
+
readonly sign?: boolean | undefined;
|
|
427
|
+
readonly storeQueries?: boolean | undefined;
|
|
428
|
+
readonly timestamp?: boolean | undefined;
|
|
429
|
+
}>>, BridgeModuleEventData>>;
|
|
430
|
+
declare const asBridgeModule: {
|
|
431
|
+
<TType extends BridgeModule<BridgeParams<_xylabs_object.DeepRestrictToStringKeys<{
|
|
432
|
+
schema: _xyo_network_payload_model.Schema;
|
|
433
|
+
readonly name?: _xyo_network_module_model.ModuleName | undefined;
|
|
434
|
+
client?: {
|
|
435
|
+
cache?: true | {
|
|
436
|
+
max?: number | undefined;
|
|
437
|
+
maxSize?: number | undefined;
|
|
438
|
+
ttl?: number | undefined;
|
|
439
|
+
} | undefined;
|
|
440
|
+
discoverRoots?: "start" | "lazy" | undefined;
|
|
441
|
+
maxDepth?: number | undefined;
|
|
442
|
+
} | undefined;
|
|
443
|
+
discoverRoots?: "start" | "lazy" | undefined;
|
|
444
|
+
host?: {
|
|
445
|
+
cache?: true | {
|
|
446
|
+
max?: number | undefined;
|
|
447
|
+
maxSize?: number | undefined;
|
|
448
|
+
ttl?: number | undefined;
|
|
449
|
+
} | undefined;
|
|
450
|
+
maxDepth?: number | undefined;
|
|
451
|
+
} | undefined;
|
|
452
|
+
readonly archiving?: {
|
|
453
|
+
readonly archivists?: string[] | undefined;
|
|
454
|
+
readonly queries?: string[] | undefined;
|
|
455
|
+
} | undefined;
|
|
456
|
+
readonly allowedQueries?: string[] | undefined;
|
|
457
|
+
readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
|
|
458
|
+
readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
|
|
459
|
+
readonly labels?: {
|
|
460
|
+
[x: string]: string | undefined;
|
|
461
|
+
} | undefined;
|
|
462
|
+
readonly paging?: {
|
|
463
|
+
[x: string]: {
|
|
464
|
+
size?: number | undefined;
|
|
465
|
+
};
|
|
466
|
+
} | undefined;
|
|
467
|
+
readonly retry?: {
|
|
468
|
+
backoff?: number | undefined;
|
|
469
|
+
interval?: number | undefined;
|
|
470
|
+
retries?: number | undefined;
|
|
471
|
+
} | undefined;
|
|
472
|
+
readonly security?: {
|
|
473
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
474
|
+
readonly allowed?: {
|
|
475
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
476
|
+
} | undefined;
|
|
477
|
+
readonly disallowed?: {
|
|
478
|
+
[x: string]: Lowercase<string>[];
|
|
479
|
+
} | undefined;
|
|
480
|
+
} | undefined;
|
|
481
|
+
readonly sign?: boolean | undefined;
|
|
482
|
+
readonly storeQueries?: boolean | undefined;
|
|
483
|
+
readonly timestamp?: boolean | undefined;
|
|
484
|
+
}>>, BridgeModuleEventData>>(value: _xylabs_promise.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
485
|
+
<TType extends BridgeModule<BridgeParams<_xylabs_object.DeepRestrictToStringKeys<{
|
|
486
|
+
schema: _xyo_network_payload_model.Schema;
|
|
487
|
+
readonly name?: _xyo_network_module_model.ModuleName | undefined;
|
|
488
|
+
client?: {
|
|
489
|
+
cache?: true | {
|
|
490
|
+
max?: number | undefined;
|
|
491
|
+
maxSize?: number | undefined;
|
|
492
|
+
ttl?: number | undefined;
|
|
493
|
+
} | undefined;
|
|
494
|
+
discoverRoots?: "start" | "lazy" | undefined;
|
|
495
|
+
maxDepth?: number | undefined;
|
|
496
|
+
} | undefined;
|
|
497
|
+
discoverRoots?: "start" | "lazy" | undefined;
|
|
498
|
+
host?: {
|
|
499
|
+
cache?: true | {
|
|
500
|
+
max?: number | undefined;
|
|
501
|
+
maxSize?: number | undefined;
|
|
502
|
+
ttl?: number | undefined;
|
|
503
|
+
} | undefined;
|
|
504
|
+
maxDepth?: number | undefined;
|
|
505
|
+
} | undefined;
|
|
506
|
+
readonly archiving?: {
|
|
507
|
+
readonly archivists?: string[] | undefined;
|
|
508
|
+
readonly queries?: string[] | undefined;
|
|
509
|
+
} | undefined;
|
|
510
|
+
readonly allowedQueries?: string[] | undefined;
|
|
511
|
+
readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
|
|
512
|
+
readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
|
|
513
|
+
readonly labels?: {
|
|
514
|
+
[x: string]: string | undefined;
|
|
515
|
+
} | undefined;
|
|
516
|
+
readonly paging?: {
|
|
517
|
+
[x: string]: {
|
|
518
|
+
size?: number | undefined;
|
|
519
|
+
};
|
|
520
|
+
} | undefined;
|
|
521
|
+
readonly retry?: {
|
|
522
|
+
backoff?: number | undefined;
|
|
523
|
+
interval?: number | undefined;
|
|
524
|
+
retries?: number | undefined;
|
|
525
|
+
} | undefined;
|
|
526
|
+
readonly security?: {
|
|
527
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
528
|
+
readonly allowed?: {
|
|
529
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
530
|
+
} | undefined;
|
|
531
|
+
readonly disallowed?: {
|
|
532
|
+
[x: string]: Lowercase<string>[];
|
|
533
|
+
} | undefined;
|
|
534
|
+
} | undefined;
|
|
535
|
+
readonly sign?: boolean | undefined;
|
|
536
|
+
readonly storeQueries?: boolean | undefined;
|
|
537
|
+
readonly timestamp?: boolean | undefined;
|
|
538
|
+
}>>, BridgeModuleEventData>>(value: _xylabs_promise.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<BridgeModule<BridgeParams<_xylabs_object.DeepRestrictToStringKeys<{
|
|
539
|
+
schema: _xyo_network_payload_model.Schema;
|
|
540
|
+
readonly name?: _xyo_network_module_model.ModuleName | undefined;
|
|
541
|
+
client?: {
|
|
542
|
+
cache?: true | {
|
|
543
|
+
max?: number | undefined;
|
|
544
|
+
maxSize?: number | undefined;
|
|
545
|
+
ttl?: number | undefined;
|
|
546
|
+
} | undefined;
|
|
547
|
+
discoverRoots?: "start" | "lazy" | undefined;
|
|
548
|
+
maxDepth?: number | undefined;
|
|
549
|
+
} | undefined;
|
|
550
|
+
discoverRoots?: "start" | "lazy" | undefined;
|
|
551
|
+
host?: {
|
|
552
|
+
cache?: true | {
|
|
553
|
+
max?: number | undefined;
|
|
554
|
+
maxSize?: number | undefined;
|
|
555
|
+
ttl?: number | undefined;
|
|
556
|
+
} | undefined;
|
|
557
|
+
maxDepth?: number | undefined;
|
|
558
|
+
} | undefined;
|
|
559
|
+
readonly archiving?: {
|
|
560
|
+
readonly archivists?: string[] | undefined;
|
|
561
|
+
readonly queries?: string[] | undefined;
|
|
562
|
+
} | undefined;
|
|
563
|
+
readonly allowedQueries?: string[] | undefined;
|
|
564
|
+
readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
|
|
565
|
+
readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
|
|
566
|
+
readonly labels?: {
|
|
567
|
+
[x: string]: string | undefined;
|
|
568
|
+
} | undefined;
|
|
569
|
+
readonly paging?: {
|
|
570
|
+
[x: string]: {
|
|
571
|
+
size?: number | undefined;
|
|
572
|
+
};
|
|
573
|
+
} | undefined;
|
|
574
|
+
readonly retry?: {
|
|
575
|
+
backoff?: number | undefined;
|
|
576
|
+
interval?: number | undefined;
|
|
577
|
+
retries?: number | undefined;
|
|
578
|
+
} | undefined;
|
|
579
|
+
readonly security?: {
|
|
580
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
581
|
+
readonly allowed?: {
|
|
582
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
583
|
+
} | undefined;
|
|
584
|
+
readonly disallowed?: {
|
|
585
|
+
[x: string]: Lowercase<string>[];
|
|
586
|
+
} | undefined;
|
|
587
|
+
} | undefined;
|
|
588
|
+
readonly sign?: boolean | undefined;
|
|
589
|
+
readonly storeQueries?: boolean | undefined;
|
|
590
|
+
readonly timestamp?: boolean | undefined;
|
|
591
|
+
}>>, BridgeModuleEventData>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
592
|
+
};
|
|
593
|
+
declare const asBridgeInstance: {
|
|
594
|
+
<TType extends BridgeInstance<BridgeParams<_xylabs_object.DeepRestrictToStringKeys<{
|
|
595
|
+
schema: _xyo_network_payload_model.Schema;
|
|
596
|
+
readonly name?: _xyo_network_module_model.ModuleName | undefined;
|
|
597
|
+
client?: {
|
|
598
|
+
cache?: true | {
|
|
599
|
+
max?: number | undefined;
|
|
600
|
+
maxSize?: number | undefined;
|
|
601
|
+
ttl?: number | undefined;
|
|
602
|
+
} | undefined;
|
|
603
|
+
discoverRoots?: "start" | "lazy" | undefined;
|
|
604
|
+
maxDepth?: number | undefined;
|
|
605
|
+
} | undefined;
|
|
606
|
+
discoverRoots?: "start" | "lazy" | undefined;
|
|
607
|
+
host?: {
|
|
608
|
+
cache?: true | {
|
|
609
|
+
max?: number | undefined;
|
|
610
|
+
maxSize?: number | undefined;
|
|
611
|
+
ttl?: number | undefined;
|
|
612
|
+
} | undefined;
|
|
613
|
+
maxDepth?: number | undefined;
|
|
614
|
+
} | undefined;
|
|
615
|
+
readonly archiving?: {
|
|
616
|
+
readonly archivists?: string[] | undefined;
|
|
617
|
+
readonly queries?: string[] | undefined;
|
|
618
|
+
} | undefined;
|
|
619
|
+
readonly allowedQueries?: string[] | undefined;
|
|
620
|
+
readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
|
|
621
|
+
readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
|
|
622
|
+
readonly labels?: {
|
|
623
|
+
[x: string]: string | undefined;
|
|
624
|
+
} | undefined;
|
|
625
|
+
readonly paging?: {
|
|
626
|
+
[x: string]: {
|
|
627
|
+
size?: number | undefined;
|
|
628
|
+
};
|
|
629
|
+
} | undefined;
|
|
630
|
+
readonly retry?: {
|
|
631
|
+
backoff?: number | undefined;
|
|
632
|
+
interval?: number | undefined;
|
|
633
|
+
retries?: number | undefined;
|
|
634
|
+
} | undefined;
|
|
635
|
+
readonly security?: {
|
|
636
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
637
|
+
readonly allowed?: {
|
|
638
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
639
|
+
} | undefined;
|
|
640
|
+
readonly disallowed?: {
|
|
641
|
+
[x: string]: Lowercase<string>[];
|
|
642
|
+
} | undefined;
|
|
643
|
+
} | undefined;
|
|
644
|
+
readonly sign?: boolean | undefined;
|
|
645
|
+
readonly storeQueries?: boolean | undefined;
|
|
646
|
+
readonly timestamp?: boolean | undefined;
|
|
647
|
+
}>>, BridgeModuleEventData>>(value: _xylabs_promise.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
648
|
+
<TType extends BridgeInstance<BridgeParams<_xylabs_object.DeepRestrictToStringKeys<{
|
|
649
|
+
schema: _xyo_network_payload_model.Schema;
|
|
650
|
+
readonly name?: _xyo_network_module_model.ModuleName | undefined;
|
|
651
|
+
client?: {
|
|
652
|
+
cache?: true | {
|
|
653
|
+
max?: number | undefined;
|
|
654
|
+
maxSize?: number | undefined;
|
|
655
|
+
ttl?: number | undefined;
|
|
656
|
+
} | undefined;
|
|
657
|
+
discoverRoots?: "start" | "lazy" | undefined;
|
|
658
|
+
maxDepth?: number | undefined;
|
|
659
|
+
} | undefined;
|
|
660
|
+
discoverRoots?: "start" | "lazy" | undefined;
|
|
661
|
+
host?: {
|
|
662
|
+
cache?: true | {
|
|
663
|
+
max?: number | undefined;
|
|
664
|
+
maxSize?: number | undefined;
|
|
665
|
+
ttl?: number | undefined;
|
|
666
|
+
} | undefined;
|
|
667
|
+
maxDepth?: number | undefined;
|
|
668
|
+
} | undefined;
|
|
669
|
+
readonly archiving?: {
|
|
670
|
+
readonly archivists?: string[] | undefined;
|
|
671
|
+
readonly queries?: string[] | undefined;
|
|
672
|
+
} | undefined;
|
|
673
|
+
readonly allowedQueries?: string[] | undefined;
|
|
674
|
+
readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
|
|
675
|
+
readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
|
|
676
|
+
readonly labels?: {
|
|
677
|
+
[x: string]: string | undefined;
|
|
678
|
+
} | undefined;
|
|
679
|
+
readonly paging?: {
|
|
680
|
+
[x: string]: {
|
|
681
|
+
size?: number | undefined;
|
|
682
|
+
};
|
|
683
|
+
} | undefined;
|
|
684
|
+
readonly retry?: {
|
|
685
|
+
backoff?: number | undefined;
|
|
686
|
+
interval?: number | undefined;
|
|
687
|
+
retries?: number | undefined;
|
|
688
|
+
} | undefined;
|
|
689
|
+
readonly security?: {
|
|
690
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
691
|
+
readonly allowed?: {
|
|
692
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
693
|
+
} | undefined;
|
|
694
|
+
readonly disallowed?: {
|
|
695
|
+
[x: string]: Lowercase<string>[];
|
|
696
|
+
} | undefined;
|
|
697
|
+
} | undefined;
|
|
698
|
+
readonly sign?: boolean | undefined;
|
|
699
|
+
readonly storeQueries?: boolean | undefined;
|
|
700
|
+
readonly timestamp?: boolean | undefined;
|
|
701
|
+
}>>, BridgeModuleEventData>>(value: _xylabs_promise.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<BridgeInstance<BridgeParams<_xylabs_object.DeepRestrictToStringKeys<{
|
|
702
|
+
schema: _xyo_network_payload_model.Schema;
|
|
703
|
+
readonly name?: _xyo_network_module_model.ModuleName | undefined;
|
|
704
|
+
client?: {
|
|
705
|
+
cache?: true | {
|
|
706
|
+
max?: number | undefined;
|
|
707
|
+
maxSize?: number | undefined;
|
|
708
|
+
ttl?: number | undefined;
|
|
709
|
+
} | undefined;
|
|
710
|
+
discoverRoots?: "start" | "lazy" | undefined;
|
|
711
|
+
maxDepth?: number | undefined;
|
|
712
|
+
} | undefined;
|
|
713
|
+
discoverRoots?: "start" | "lazy" | undefined;
|
|
714
|
+
host?: {
|
|
715
|
+
cache?: true | {
|
|
716
|
+
max?: number | undefined;
|
|
717
|
+
maxSize?: number | undefined;
|
|
718
|
+
ttl?: number | undefined;
|
|
719
|
+
} | undefined;
|
|
720
|
+
maxDepth?: number | undefined;
|
|
721
|
+
} | undefined;
|
|
722
|
+
readonly archiving?: {
|
|
723
|
+
readonly archivists?: string[] | undefined;
|
|
724
|
+
readonly queries?: string[] | undefined;
|
|
725
|
+
} | undefined;
|
|
726
|
+
readonly allowedQueries?: string[] | undefined;
|
|
727
|
+
readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
|
|
728
|
+
readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
|
|
729
|
+
readonly labels?: {
|
|
730
|
+
[x: string]: string | undefined;
|
|
731
|
+
} | undefined;
|
|
732
|
+
readonly paging?: {
|
|
733
|
+
[x: string]: {
|
|
734
|
+
size?: number | undefined;
|
|
735
|
+
};
|
|
736
|
+
} | undefined;
|
|
737
|
+
readonly retry?: {
|
|
738
|
+
backoff?: number | undefined;
|
|
739
|
+
interval?: number | undefined;
|
|
740
|
+
retries?: number | undefined;
|
|
741
|
+
} | undefined;
|
|
742
|
+
readonly security?: {
|
|
743
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
744
|
+
readonly allowed?: {
|
|
745
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
746
|
+
} | undefined;
|
|
747
|
+
readonly disallowed?: {
|
|
748
|
+
[x: string]: Lowercase<string>[];
|
|
749
|
+
} | undefined;
|
|
750
|
+
} | undefined;
|
|
751
|
+
readonly sign?: boolean | undefined;
|
|
752
|
+
readonly storeQueries?: boolean | undefined;
|
|
753
|
+
readonly timestamp?: boolean | undefined;
|
|
754
|
+
}>>, BridgeModuleEventData>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
755
|
+
};
|
|
756
|
+
declare const withBridgeModule: <R>(mod: any, closure: (mod: BridgeModule<BridgeParams<_xylabs_object.DeepRestrictToStringKeys<{
|
|
757
|
+
schema: _xyo_network_payload_model.Schema;
|
|
758
|
+
readonly name?: _xyo_network_module_model.ModuleName | undefined;
|
|
759
|
+
client?: {
|
|
760
|
+
cache?: true | {
|
|
761
|
+
max?: number | undefined;
|
|
762
|
+
maxSize?: number | undefined;
|
|
763
|
+
ttl?: number | undefined;
|
|
764
|
+
} | undefined;
|
|
765
|
+
discoverRoots?: "start" | "lazy" | undefined;
|
|
766
|
+
maxDepth?: number | undefined;
|
|
767
|
+
} | undefined;
|
|
768
|
+
discoverRoots?: "start" | "lazy" | undefined;
|
|
769
|
+
host?: {
|
|
770
|
+
cache?: true | {
|
|
771
|
+
max?: number | undefined;
|
|
772
|
+
maxSize?: number | undefined;
|
|
773
|
+
ttl?: number | undefined;
|
|
774
|
+
} | undefined;
|
|
775
|
+
maxDepth?: number | undefined;
|
|
776
|
+
} | undefined;
|
|
777
|
+
readonly archiving?: {
|
|
778
|
+
readonly archivists?: string[] | undefined;
|
|
779
|
+
readonly queries?: string[] | undefined;
|
|
780
|
+
} | undefined;
|
|
781
|
+
readonly allowedQueries?: string[] | undefined;
|
|
782
|
+
readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
|
|
783
|
+
readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
|
|
784
|
+
readonly labels?: {
|
|
785
|
+
[x: string]: string | undefined;
|
|
786
|
+
} | undefined;
|
|
787
|
+
readonly paging?: {
|
|
788
|
+
[x: string]: {
|
|
789
|
+
size?: number | undefined;
|
|
790
|
+
};
|
|
791
|
+
} | undefined;
|
|
792
|
+
readonly retry?: {
|
|
793
|
+
backoff?: number | undefined;
|
|
794
|
+
interval?: number | undefined;
|
|
795
|
+
retries?: number | undefined;
|
|
796
|
+
} | undefined;
|
|
797
|
+
readonly security?: {
|
|
798
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
799
|
+
readonly allowed?: {
|
|
800
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
801
|
+
} | undefined;
|
|
802
|
+
readonly disallowed?: {
|
|
803
|
+
[x: string]: Lowercase<string>[];
|
|
804
|
+
} | undefined;
|
|
805
|
+
} | undefined;
|
|
806
|
+
readonly sign?: boolean | undefined;
|
|
807
|
+
readonly storeQueries?: boolean | undefined;
|
|
808
|
+
readonly timestamp?: boolean | undefined;
|
|
809
|
+
}>>, BridgeModuleEventData>) => R) => R | undefined;
|
|
810
|
+
declare const withBridgeInstance: <R>(mod: any, closure: (mod: BridgeInstance<BridgeParams<_xylabs_object.DeepRestrictToStringKeys<{
|
|
811
|
+
schema: _xyo_network_payload_model.Schema;
|
|
812
|
+
readonly name?: _xyo_network_module_model.ModuleName | undefined;
|
|
813
|
+
client?: {
|
|
814
|
+
cache?: true | {
|
|
815
|
+
max?: number | undefined;
|
|
816
|
+
maxSize?: number | undefined;
|
|
817
|
+
ttl?: number | undefined;
|
|
818
|
+
} | undefined;
|
|
819
|
+
discoverRoots?: "start" | "lazy" | undefined;
|
|
820
|
+
maxDepth?: number | undefined;
|
|
821
|
+
} | undefined;
|
|
822
|
+
discoverRoots?: "start" | "lazy" | undefined;
|
|
823
|
+
host?: {
|
|
824
|
+
cache?: true | {
|
|
825
|
+
max?: number | undefined;
|
|
826
|
+
maxSize?: number | undefined;
|
|
827
|
+
ttl?: number | undefined;
|
|
828
|
+
} | undefined;
|
|
829
|
+
maxDepth?: number | undefined;
|
|
830
|
+
} | undefined;
|
|
831
|
+
readonly archiving?: {
|
|
832
|
+
readonly archivists?: string[] | undefined;
|
|
833
|
+
readonly queries?: string[] | undefined;
|
|
834
|
+
} | undefined;
|
|
835
|
+
readonly allowedQueries?: string[] | undefined;
|
|
836
|
+
readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
|
|
837
|
+
readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
|
|
838
|
+
readonly labels?: {
|
|
839
|
+
[x: string]: string | undefined;
|
|
840
|
+
} | undefined;
|
|
841
|
+
readonly paging?: {
|
|
842
|
+
[x: string]: {
|
|
843
|
+
size?: number | undefined;
|
|
844
|
+
};
|
|
845
|
+
} | undefined;
|
|
846
|
+
readonly retry?: {
|
|
847
|
+
backoff?: number | undefined;
|
|
848
|
+
interval?: number | undefined;
|
|
849
|
+
retries?: number | undefined;
|
|
850
|
+
} | undefined;
|
|
851
|
+
readonly security?: {
|
|
852
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
853
|
+
readonly allowed?: {
|
|
854
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
855
|
+
} | undefined;
|
|
856
|
+
readonly disallowed?: {
|
|
857
|
+
[x: string]: Lowercase<string>[];
|
|
858
|
+
} | undefined;
|
|
859
|
+
} | undefined;
|
|
860
|
+
readonly sign?: boolean | undefined;
|
|
861
|
+
readonly storeQueries?: boolean | undefined;
|
|
862
|
+
readonly timestamp?: boolean | undefined;
|
|
863
|
+
}>>, BridgeModuleEventData>) => R) => R | undefined;
|
|
864
|
+
|
|
865
|
+
export { type AttachableBridgeInstance, type AttachableBridgeInstanceTypeCheck, type BridgeClientConfig, type BridgeConfig, BridgeConfigSchema, type BridgeConnectQuery, BridgeConnectQuerySchema, type BridgeDisconnectQuery, BridgeDisconnectQuerySchema, type BridgeExposeOptions, type BridgeExposeQuery, BridgeExposeQuerySchema, type BridgeHostConfig, type BridgeInstance, type BridgeModule, type BridgeModuleEventData, type BridgeModuleQueries, type BridgeParams, type BridgeQueries, type BridgeQueryFunctions, type BridgeRawQueryFunctions, type BridgeUnexposeOptions, type BridgeUnexposeQuery, BridgeUnexposeQuerySchema, type ExposedEventArgs, type ExposedEventData, IsAttachableBridgeInstanceFactory, type ModuleFilterPayload, ModuleFilterPayloadSchema, type QueryFulfillFinishedEventArgs, type QueryFulfillFinishedEventData, type QueryFulfillStartedEventArgs, type QueryFulfillStartedEventData, type QuerySendFinishedEventArgs, type QuerySendFinishedEventData, type QuerySendStartedEventArgs, type QuerySendStartedEventData, type UnexposedEventArgs, type UnexposedEventData, asAttachableBridgeInstance, asBridgeInstance, asBridgeModule, isAttachableBridgeInstance, isBridgeInstance, isBridgeModule, requiredAttachableBridgeInstanceFunctions, withBridgeInstance, withBridgeModule };
|