@xyo-network/sentinel-model 3.9.18 → 3.9.19

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.
Files changed (51) hide show
  1. package/dist/neutral/Automation.d.ts +35 -0
  2. package/dist/neutral/Automation.d.ts.map +1 -0
  3. package/dist/neutral/Config.d.ts +15 -0
  4. package/dist/neutral/Config.d.ts.map +1 -0
  5. package/dist/neutral/EventData.d.ts +5 -0
  6. package/dist/neutral/EventData.d.ts.map +1 -0
  7. package/dist/neutral/EventsModels/JobEnd.d.ts +12 -0
  8. package/dist/neutral/EventsModels/JobEnd.d.ts.map +1 -0
  9. package/dist/neutral/EventsModels/JobStart.d.ts +10 -0
  10. package/dist/neutral/EventsModels/JobStart.d.ts.map +1 -0
  11. package/dist/neutral/EventsModels/ReportEnd.d.ts +13 -0
  12. package/dist/neutral/EventsModels/ReportEnd.d.ts.map +1 -0
  13. package/dist/neutral/EventsModels/ReportStart.d.ts +10 -0
  14. package/dist/neutral/EventsModels/ReportStart.d.ts.map +1 -0
  15. package/dist/neutral/EventsModels/TaskEnd.d.ts +14 -0
  16. package/dist/neutral/EventsModels/TaskEnd.d.ts.map +1 -0
  17. package/dist/neutral/EventsModels/TaskStart.d.ts +13 -0
  18. package/dist/neutral/EventsModels/TaskStart.d.ts.map +1 -0
  19. package/dist/neutral/EventsModels/index.d.ts +7 -0
  20. package/dist/neutral/EventsModels/index.d.ts.map +1 -0
  21. package/dist/neutral/Instance.d.ts +10 -0
  22. package/dist/neutral/Instance.d.ts.map +1 -0
  23. package/dist/neutral/Job.d.ts +5 -0
  24. package/dist/neutral/Job.d.ts.map +1 -0
  25. package/dist/neutral/Module.d.ts +8 -0
  26. package/dist/neutral/Module.d.ts.map +1 -0
  27. package/dist/neutral/Params.d.ts +5 -0
  28. package/dist/neutral/Params.d.ts.map +1 -0
  29. package/dist/neutral/Queries/Report.d.ts +7 -0
  30. package/dist/neutral/Queries/Report.d.ts.map +1 -0
  31. package/dist/neutral/Queries/index.d.ts +6 -0
  32. package/dist/neutral/Queries/index.d.ts.map +1 -0
  33. package/dist/neutral/ResolvedTask.d.ts +14 -0
  34. package/dist/neutral/ResolvedTask.d.ts.map +1 -0
  35. package/dist/neutral/Sentinel.d.ts +9 -0
  36. package/dist/neutral/Sentinel.d.ts.map +1 -0
  37. package/dist/neutral/Task.d.ts +15 -0
  38. package/dist/neutral/Task.d.ts.map +1 -0
  39. package/dist/neutral/attachable/AttachableInstance.d.ts +13 -0
  40. package/dist/neutral/attachable/AttachableInstance.d.ts.map +1 -0
  41. package/dist/neutral/attachable/asAttachableInstance.d.ts +65 -0
  42. package/dist/neutral/attachable/asAttachableInstance.d.ts.map +1 -0
  43. package/dist/neutral/attachable/index.d.ts +4 -0
  44. package/dist/neutral/attachable/index.d.ts.map +1 -0
  45. package/dist/neutral/attachable/isAttachableInstance.d.ts +6 -0
  46. package/dist/neutral/attachable/isAttachableInstance.d.ts.map +1 -0
  47. package/dist/neutral/index.d.ts +15 -442
  48. package/dist/neutral/index.d.ts.map +1 -0
  49. package/dist/neutral/typeChecks.d.ts +215 -0
  50. package/dist/neutral/typeChecks.d.ts.map +1 -0
  51. package/package.json +12 -12
@@ -1,442 +1,15 @@
1
- import * as _xylabs_promise from '@xylabs/promise';
2
- import { Promisable } from '@xylabs/promise';
3
- import * as _xylabs_object from '@xylabs/object';
4
- import { WithAdditional, EmptyObject, TypeCheck, IsObjectFactory } from '@xylabs/object';
5
- import * as _xyo_network_module_model from '@xyo-network/module-model';
6
- import { Module, ModuleEventArgs, ModuleEventData, ModuleIdentifier, ModuleConfig, AnyConfigSchema, ModuleParams, ModuleQueryResult, ModuleInstance, AttachableModuleInstance, ModuleQueries } from '@xyo-network/module-model';
7
- import { Address } from '@xylabs/hex';
8
- import { EventData } from '@xyo-network/module-events';
9
- import { Payload, Query } from '@xyo-network/payload-model';
10
- import { BoundWitness } from '@xyo-network/boundwitness-model';
11
- import * as _xyo_network_account_model from '@xyo-network/account-model';
12
- import { AccountInstance } from '@xyo-network/account-model';
13
- import { ObjectTypeShape } from '@xylabs/typeof';
14
- import { ArchivistInstance } from '@xyo-network/archivist-model';
15
- import { DivinerInstance } from '@xyo-network/diviner-model';
16
- import { WitnessInstance } from '@xyo-network/witness-model';
17
-
18
- type JobEndEventArgs<T extends Module = Module> = ModuleEventArgs<T, {
19
- finalResult?: Record<Address, Payload[]>;
20
- inPayloads?: Payload[];
21
- }>;
22
- interface JobEndEventData<T extends Module = Module> extends EventData {
23
- jobEnd: JobEndEventArgs<T>;
24
- }
25
-
26
- type JobStartEventArgs<T extends Module = Module> = ModuleEventArgs<T, {
27
- inPayloads?: Payload[];
28
- }>;
29
- interface JobStartEventData<T extends Module = Module> extends EventData {
30
- jobStart: JobStartEventArgs<T>;
31
- }
32
-
33
- type ReportEndEventArgs<T extends Module = Module> = ModuleEventArgs<T, {
34
- boundwitness?: BoundWitness;
35
- inPayloads?: Payload[];
36
- outPayloads?: Payload[];
37
- }>;
38
- interface ReportEndEventData<T extends Module = Module> extends EventData {
39
- reportEnd: ReportEndEventArgs<T>;
40
- }
41
-
42
- type ReportStartEventArgs<T extends Module = Module> = ModuleEventArgs<T, {
43
- inPayloads?: Payload[];
44
- }>;
45
- interface ReportStartEventData<T extends Module = Module> extends EventData {
46
- reportStart: ReportStartEventArgs<T>;
47
- }
48
-
49
- type TaskEndEventArgs<T extends Module = Module> = ModuleEventArgs<T, {
50
- address: Address;
51
- inPayloads?: Payload[];
52
- name?: string;
53
- outPayloads?: Payload[];
54
- }>;
55
- interface TaskEndEventData<T extends Module = Module> extends EventData {
56
- taskEnd: TaskEndEventArgs<T>;
57
- }
58
-
59
- type TaskStartEventArgs<T extends Module = Module> = ModuleEventArgs<T, {
60
- address: Address;
61
- inPayloads?: Payload[];
62
- name?: string;
63
- }>;
64
- interface TaskStartEventData<T extends Module = Module> extends EventData {
65
- taskStart: TaskStartEventArgs<T>;
66
- }
67
-
68
- interface SentinelModuleEventData<T extends Module = Module> extends TaskEndEventData<T>, TaskStartEventData<T>, JobEndEventData<T>, JobStartEventData<T>, ReportEndEventData<T>, ReportStartEventData<T>, ModuleEventData<T> {
69
- }
70
-
71
- declare const SentinelAutomationSchema: "network.xyo.automation";
72
- type SentinelAutomationSchema = typeof SentinelAutomationSchema;
73
- declare const SentinelIntervalAutomationSchema: "network.xyo.automation.interval";
74
- type SentinelIntervalAutomationSchema = typeof SentinelIntervalAutomationSchema;
75
- declare const SentinelEventAutomationSchema: "network.xyo.automation.event";
76
- type SentinelEventAutomationSchema = typeof SentinelEventAutomationSchema;
77
- type SentinelBaseAutomationPayload<T extends Payload> = Payload<{
78
- type?: 'interval' | 'event';
79
- } & T>;
80
- type SentinelIntervalAutomationPayload = SentinelBaseAutomationPayload<{
81
- end?: number;
82
- frequency?: number;
83
- frequencyUnits?: 'second' | 'minute' | 'hour' | 'day' | 'millis';
84
- remaining?: number;
85
- schema: SentinelIntervalAutomationSchema;
86
- start: number;
87
- type: 'interval';
88
- }>;
89
- declare const isSentinelIntervalAutomation: (x?: unknown | null) => x is SentinelIntervalAutomationPayload;
90
- type SentinelEventAutomationPayload = SentinelBaseAutomationPayload<{
91
- schema: SentinelEventAutomationSchema;
92
- type: 'event';
93
- }>;
94
- type SentinelAutomationPayload = Payload<SentinelIntervalAutomationPayload | SentinelEventAutomationPayload, SentinelAutomationSchema | SentinelIntervalAutomationSchema | SentinelEventAutomationSchema>;
95
-
96
- interface ModuleTask<TEndpoints extends string = string> {
97
- endPoint?: TEndpoints;
98
- input?: boolean | ModuleIdentifier | ModuleIdentifier[];
99
- mod: ModuleIdentifier;
100
- required?: boolean;
101
- }
102
- type ArchivistTask = ModuleTask<'all' | 'clear' | 'commit' | 'delete' | 'get' | 'insert'>;
103
- type DivinerTask = ModuleTask<'divine'>;
104
- type WitnessTask = ModuleTask<'observe'>;
105
- type Task = WitnessTask | DivinerTask | ArchivistTask | ModuleTask;
106
-
107
- declare const SentinelConfigSchema: "network.xyo.sentinel.config";
108
- type SentinelConfigSchema = typeof SentinelConfigSchema;
109
- type SentinelConfig<TConfig extends Payload | void = void, TSchema extends string | void = void> = ModuleConfig<WithAdditional<{
110
- automations?: SentinelAutomationPayload[];
111
- schema: TConfig extends Payload ? TConfig['schema'] : SentinelConfigSchema;
112
- synchronous?: boolean;
113
- tasks: Task[];
114
- throwErrors?: boolean;
115
- }, TConfig>, TSchema>;
116
-
117
- type SentinelParams<TConfig extends AnyConfigSchema<SentinelConfig> = AnyConfigSchema<SentinelConfig>, TAdditionalParams extends EmptyObject | void = void> = ModuleParams<TConfig, TAdditionalParams>;
118
-
119
- interface SentinelModule<TParams extends SentinelParams = SentinelParams, TEventData extends SentinelModuleEventData = SentinelModuleEventData> extends Module<TParams, TEventData> {
120
- }
121
- interface CustomSentinelModule<TParams extends SentinelParams = SentinelParams, TEvents extends SentinelModuleEventData<SentinelModule<TParams>> = SentinelModuleEventData<SentinelModule<TParams>>> extends Module<TParams, TEvents> {
122
- }
123
-
124
- interface Sentinel<TIn extends Payload = Payload, TOut extends Payload = Payload> {
125
- report: (payloads?: TIn[]) => Promisable<TOut[]>;
126
- reportQuery: (payloads?: TIn[], account?: AccountInstance) => Promisable<ModuleQueryResult<TOut>>;
127
- }
128
-
129
- interface SentinelInstance<TParams extends SentinelParams = SentinelParams, TEventData extends SentinelModuleEventData = SentinelModuleEventData> extends SentinelModule<TParams, TEventData>, Sentinel, ModuleInstance<TParams, TEventData> {
130
- }
131
- interface CustomSentinelInstance<TParams extends SentinelParams = SentinelParams, TEvents extends SentinelModuleEventData<SentinelInstance<TParams>> = SentinelModuleEventData<SentinelInstance<TParams>>> extends CustomSentinelModule<TParams, TEvents>, Sentinel, SentinelInstance<TParams, TEvents> {
132
- }
133
-
134
- interface AttachableSentinelInstance<TParams extends SentinelParams = SentinelParams, TEventData extends SentinelModuleEventData = SentinelModuleEventData> extends SentinelModule<TParams, TEventData>, AttachableModuleInstance<TParams, TEventData>, SentinelInstance<TParams, TEventData> {
135
- }
136
- type AttachableSentinelInstanceTypeCheck<T extends AttachableSentinelInstance = AttachableSentinelInstance> = TypeCheck<T>;
137
- declare class IsAttachableSentinelInstanceFactory<T extends AttachableSentinelInstance = AttachableSentinelInstance> extends IsObjectFactory<T> {
138
- }
139
-
140
- declare const asAttachableSentinelInstance: {
141
- <TType extends AttachableSentinelInstance<_xylabs_object.BaseParamsFields & {
142
- account?: _xyo_network_account_model.AccountInstance | "random";
143
- addToResolvers?: boolean;
144
- additionalSigners?: _xyo_network_account_model.AccountInstance[];
145
- allowNameResolution?: boolean;
146
- config: _xyo_network_module_model.AnyConfigSchema<SentinelConfig>;
147
- ephemeralQueryAccountEnabled?: boolean;
148
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
149
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
150
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
151
- }, SentinelModuleEventData<_xyo_network_module_model.Module<_xylabs_object.BaseParamsFields & {
152
- account?: _xyo_network_account_model.AccountInstance | "random";
153
- addToResolvers?: boolean;
154
- additionalSigners?: _xyo_network_account_model.AccountInstance[];
155
- allowNameResolution?: boolean;
156
- config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_module_model.ModuleConfig<void, void>>;
157
- ephemeralQueryAccountEnabled?: boolean;
158
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
159
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
160
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
161
- }, _xyo_network_module_model.ModuleEventData<object>>>>>(value: _xylabs_promise.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
162
- <TType extends AttachableSentinelInstance<_xylabs_object.BaseParamsFields & {
163
- account?: _xyo_network_account_model.AccountInstance | "random";
164
- addToResolvers?: boolean;
165
- additionalSigners?: _xyo_network_account_model.AccountInstance[];
166
- allowNameResolution?: boolean;
167
- config: _xyo_network_module_model.AnyConfigSchema<SentinelConfig>;
168
- ephemeralQueryAccountEnabled?: boolean;
169
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
170
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
171
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
172
- }, SentinelModuleEventData<_xyo_network_module_model.Module<_xylabs_object.BaseParamsFields & {
173
- account?: _xyo_network_account_model.AccountInstance | "random";
174
- addToResolvers?: boolean;
175
- additionalSigners?: _xyo_network_account_model.AccountInstance[];
176
- allowNameResolution?: boolean;
177
- config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_module_model.ModuleConfig<void, void>>;
178
- ephemeralQueryAccountEnabled?: boolean;
179
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
180
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
181
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
182
- }, _xyo_network_module_model.ModuleEventData<object>>>>>(value: _xylabs_promise.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<AttachableSentinelInstance<_xylabs_object.BaseParamsFields & {
183
- account?: _xyo_network_account_model.AccountInstance | "random";
184
- addToResolvers?: boolean;
185
- additionalSigners?: _xyo_network_account_model.AccountInstance[];
186
- allowNameResolution?: boolean;
187
- config: _xyo_network_module_model.AnyConfigSchema<SentinelConfig>;
188
- ephemeralQueryAccountEnabled?: boolean;
189
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
190
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
191
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
192
- }, SentinelModuleEventData<_xyo_network_module_model.Module<_xylabs_object.BaseParamsFields & {
193
- account?: _xyo_network_account_model.AccountInstance | "random";
194
- addToResolvers?: boolean;
195
- additionalSigners?: _xyo_network_account_model.AccountInstance[];
196
- allowNameResolution?: boolean;
197
- config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_module_model.ModuleConfig<void, void>>;
198
- ephemeralQueryAccountEnabled?: boolean;
199
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
200
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
201
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
202
- }, _xyo_network_module_model.ModuleEventData<object>>>>>, config?: _xylabs_object.TypeCheckConfig): TType;
203
- };
204
-
205
- declare const requiredAttachableSentinelInstanceFunctions: ObjectTypeShape;
206
- declare const isAttachableSentinelInstance: TypeCheck<AttachableSentinelInstance>;
207
-
208
- type ResolvedModuleTask<TTask extends ModuleTask = ModuleTask, TInstance extends ModuleInstance = ModuleInstance> = Omit<TTask, 'mod'> & {
209
- mod: TInstance;
210
- };
211
- type ResolvedArchivistTask = ResolvedModuleTask<ArchivistTask, ArchivistInstance>;
212
- type ResolvedDivinerTask = ResolvedModuleTask<DivinerTask, DivinerInstance>;
213
- type ResolvedWitnessTask = ResolvedModuleTask<WitnessTask, WitnessInstance>;
214
- type ResolvedTask = ResolvedArchivistTask | ResolvedDivinerTask | ResolvedWitnessTask | ResolvedModuleTask;
215
-
216
- interface SentinelJob {
217
- tasks: ResolvedTask[][];
218
- }
219
-
220
- declare const SentinelReportQuerySchema: "network.xyo.query.sentinel.report";
221
- type SentinelReportQuerySchema = typeof SentinelReportQuerySchema;
222
- type SentinelReportQuery = Query<{
223
- schema: SentinelReportQuerySchema;
224
- }>;
225
-
226
- type SentinelQueries = SentinelReportQuery;
227
- type SentinelModuleQueries = ModuleQueries | SentinelQueries;
228
-
229
- declare const isSentinelInstance: _xylabs_object.TypeCheck<SentinelInstance<_xylabs_object.BaseParamsFields & {
230
- account?: _xyo_network_account_model.AccountInstance | "random";
231
- addToResolvers?: boolean;
232
- additionalSigners?: _xyo_network_account_model.AccountInstance[];
233
- allowNameResolution?: boolean;
234
- config: _xyo_network_module_model.AnyConfigSchema<SentinelConfig>;
235
- ephemeralQueryAccountEnabled?: boolean;
236
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
237
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
238
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
239
- }, SentinelModuleEventData<_xyo_network_module_model.Module<_xylabs_object.BaseParamsFields & {
240
- account?: _xyo_network_account_model.AccountInstance | "random";
241
- addToResolvers?: boolean;
242
- additionalSigners?: _xyo_network_account_model.AccountInstance[];
243
- allowNameResolution?: boolean;
244
- config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_module_model.ModuleConfig<void, void>>;
245
- ephemeralQueryAccountEnabled?: boolean;
246
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
247
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
248
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
249
- }, _xyo_network_module_model.ModuleEventData<object>>>>>;
250
- declare const isSentinelModule: _xyo_network_module_model.ModuleTypeCheck<SentinelModule<_xylabs_object.BaseParamsFields & {
251
- account?: _xyo_network_account_model.AccountInstance | "random";
252
- addToResolvers?: boolean;
253
- additionalSigners?: _xyo_network_account_model.AccountInstance[];
254
- allowNameResolution?: boolean;
255
- config: _xyo_network_module_model.AnyConfigSchema<SentinelConfig>;
256
- ephemeralQueryAccountEnabled?: boolean;
257
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
258
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
259
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
260
- }, SentinelModuleEventData<_xyo_network_module_model.Module<_xylabs_object.BaseParamsFields & {
261
- account?: _xyo_network_account_model.AccountInstance | "random";
262
- addToResolvers?: boolean;
263
- additionalSigners?: _xyo_network_account_model.AccountInstance[];
264
- allowNameResolution?: boolean;
265
- config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_module_model.ModuleConfig<void, void>>;
266
- ephemeralQueryAccountEnabled?: boolean;
267
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
268
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
269
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
270
- }, _xyo_network_module_model.ModuleEventData<object>>>>>;
271
- declare const asSentinelModule: {
272
- <TType extends SentinelModule<_xylabs_object.BaseParamsFields & {
273
- account?: _xyo_network_account_model.AccountInstance | "random";
274
- addToResolvers?: boolean;
275
- additionalSigners?: _xyo_network_account_model.AccountInstance[];
276
- allowNameResolution?: boolean;
277
- config: _xyo_network_module_model.AnyConfigSchema<SentinelConfig>;
278
- ephemeralQueryAccountEnabled?: boolean;
279
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
280
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
281
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
282
- }, SentinelModuleEventData<_xyo_network_module_model.Module<_xylabs_object.BaseParamsFields & {
283
- account?: _xyo_network_account_model.AccountInstance | "random";
284
- addToResolvers?: boolean;
285
- additionalSigners?: _xyo_network_account_model.AccountInstance[];
286
- allowNameResolution?: boolean;
287
- config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_module_model.ModuleConfig<void, void>>;
288
- ephemeralQueryAccountEnabled?: boolean;
289
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
290
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
291
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
292
- }, _xyo_network_module_model.ModuleEventData<object>>>>>(value: _xylabs_promise.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
293
- <TType extends SentinelModule<_xylabs_object.BaseParamsFields & {
294
- account?: _xyo_network_account_model.AccountInstance | "random";
295
- addToResolvers?: boolean;
296
- additionalSigners?: _xyo_network_account_model.AccountInstance[];
297
- allowNameResolution?: boolean;
298
- config: _xyo_network_module_model.AnyConfigSchema<SentinelConfig>;
299
- ephemeralQueryAccountEnabled?: boolean;
300
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
301
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
302
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
303
- }, SentinelModuleEventData<_xyo_network_module_model.Module<_xylabs_object.BaseParamsFields & {
304
- account?: _xyo_network_account_model.AccountInstance | "random";
305
- addToResolvers?: boolean;
306
- additionalSigners?: _xyo_network_account_model.AccountInstance[];
307
- allowNameResolution?: boolean;
308
- config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_module_model.ModuleConfig<void, void>>;
309
- ephemeralQueryAccountEnabled?: boolean;
310
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
311
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
312
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
313
- }, _xyo_network_module_model.ModuleEventData<object>>>>>(value: _xylabs_promise.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<SentinelModule<_xylabs_object.BaseParamsFields & {
314
- account?: _xyo_network_account_model.AccountInstance | "random";
315
- addToResolvers?: boolean;
316
- additionalSigners?: _xyo_network_account_model.AccountInstance[];
317
- allowNameResolution?: boolean;
318
- config: _xyo_network_module_model.AnyConfigSchema<SentinelConfig>;
319
- ephemeralQueryAccountEnabled?: boolean;
320
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
321
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
322
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
323
- }, SentinelModuleEventData<_xyo_network_module_model.Module<_xylabs_object.BaseParamsFields & {
324
- account?: _xyo_network_account_model.AccountInstance | "random";
325
- addToResolvers?: boolean;
326
- additionalSigners?: _xyo_network_account_model.AccountInstance[];
327
- allowNameResolution?: boolean;
328
- config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_module_model.ModuleConfig<void, void>>;
329
- ephemeralQueryAccountEnabled?: boolean;
330
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
331
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
332
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
333
- }, _xyo_network_module_model.ModuleEventData<object>>>>>, config?: _xylabs_object.TypeCheckConfig): TType;
334
- };
335
- declare const asSentinelInstance: {
336
- <TType extends SentinelInstance<_xylabs_object.BaseParamsFields & {
337
- account?: _xyo_network_account_model.AccountInstance | "random";
338
- addToResolvers?: boolean;
339
- additionalSigners?: _xyo_network_account_model.AccountInstance[];
340
- allowNameResolution?: boolean;
341
- config: _xyo_network_module_model.AnyConfigSchema<SentinelConfig>;
342
- ephemeralQueryAccountEnabled?: boolean;
343
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
344
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
345
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
346
- }, SentinelModuleEventData<_xyo_network_module_model.Module<_xylabs_object.BaseParamsFields & {
347
- account?: _xyo_network_account_model.AccountInstance | "random";
348
- addToResolvers?: boolean;
349
- additionalSigners?: _xyo_network_account_model.AccountInstance[];
350
- allowNameResolution?: boolean;
351
- config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_module_model.ModuleConfig<void, void>>;
352
- ephemeralQueryAccountEnabled?: boolean;
353
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
354
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
355
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
356
- }, _xyo_network_module_model.ModuleEventData<object>>>>>(value: _xylabs_promise.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
357
- <TType extends SentinelInstance<_xylabs_object.BaseParamsFields & {
358
- account?: _xyo_network_account_model.AccountInstance | "random";
359
- addToResolvers?: boolean;
360
- additionalSigners?: _xyo_network_account_model.AccountInstance[];
361
- allowNameResolution?: boolean;
362
- config: _xyo_network_module_model.AnyConfigSchema<SentinelConfig>;
363
- ephemeralQueryAccountEnabled?: boolean;
364
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
365
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
366
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
367
- }, SentinelModuleEventData<_xyo_network_module_model.Module<_xylabs_object.BaseParamsFields & {
368
- account?: _xyo_network_account_model.AccountInstance | "random";
369
- addToResolvers?: boolean;
370
- additionalSigners?: _xyo_network_account_model.AccountInstance[];
371
- allowNameResolution?: boolean;
372
- config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_module_model.ModuleConfig<void, void>>;
373
- ephemeralQueryAccountEnabled?: boolean;
374
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
375
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
376
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
377
- }, _xyo_network_module_model.ModuleEventData<object>>>>>(value: _xylabs_promise.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<SentinelInstance<_xylabs_object.BaseParamsFields & {
378
- account?: _xyo_network_account_model.AccountInstance | "random";
379
- addToResolvers?: boolean;
380
- additionalSigners?: _xyo_network_account_model.AccountInstance[];
381
- allowNameResolution?: boolean;
382
- config: _xyo_network_module_model.AnyConfigSchema<SentinelConfig>;
383
- ephemeralQueryAccountEnabled?: boolean;
384
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
385
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
386
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
387
- }, SentinelModuleEventData<_xyo_network_module_model.Module<_xylabs_object.BaseParamsFields & {
388
- account?: _xyo_network_account_model.AccountInstance | "random";
389
- addToResolvers?: boolean;
390
- additionalSigners?: _xyo_network_account_model.AccountInstance[];
391
- allowNameResolution?: boolean;
392
- config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_module_model.ModuleConfig<void, void>>;
393
- ephemeralQueryAccountEnabled?: boolean;
394
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
395
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
396
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
397
- }, _xyo_network_module_model.ModuleEventData<object>>>>>, config?: _xylabs_object.TypeCheckConfig): TType;
398
- };
399
- declare const withSentinelModule: <R>(mod: any, closure: (mod: SentinelModule<_xylabs_object.BaseParamsFields & {
400
- account?: _xyo_network_account_model.AccountInstance | "random";
401
- addToResolvers?: boolean;
402
- additionalSigners?: _xyo_network_account_model.AccountInstance[];
403
- allowNameResolution?: boolean;
404
- config: _xyo_network_module_model.AnyConfigSchema<SentinelConfig>;
405
- ephemeralQueryAccountEnabled?: boolean;
406
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
407
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
408
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
409
- }, SentinelModuleEventData<_xyo_network_module_model.Module<_xylabs_object.BaseParamsFields & {
410
- account?: _xyo_network_account_model.AccountInstance | "random";
411
- addToResolvers?: boolean;
412
- additionalSigners?: _xyo_network_account_model.AccountInstance[];
413
- allowNameResolution?: boolean;
414
- config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_module_model.ModuleConfig<void, void>>;
415
- ephemeralQueryAccountEnabled?: boolean;
416
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
417
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
418
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
419
- }, _xyo_network_module_model.ModuleEventData<object>>>>) => R) => R | undefined;
420
- declare const withSentinelInstance: <R>(mod: any, closure: (mod: SentinelInstance<_xylabs_object.BaseParamsFields & {
421
- account?: _xyo_network_account_model.AccountInstance | "random";
422
- addToResolvers?: boolean;
423
- additionalSigners?: _xyo_network_account_model.AccountInstance[];
424
- allowNameResolution?: boolean;
425
- config: _xyo_network_module_model.AnyConfigSchema<SentinelConfig>;
426
- ephemeralQueryAccountEnabled?: boolean;
427
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
428
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
429
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
430
- }, SentinelModuleEventData<_xyo_network_module_model.Module<_xylabs_object.BaseParamsFields & {
431
- account?: _xyo_network_account_model.AccountInstance | "random";
432
- addToResolvers?: boolean;
433
- additionalSigners?: _xyo_network_account_model.AccountInstance[];
434
- allowNameResolution?: boolean;
435
- config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_module_model.ModuleConfig<void, void>>;
436
- ephemeralQueryAccountEnabled?: boolean;
437
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
438
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
439
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
440
- }, _xyo_network_module_model.ModuleEventData<object>>>>) => R) => R | undefined;
441
-
442
- export { type ArchivistTask, type AttachableSentinelInstance, type AttachableSentinelInstanceTypeCheck, type CustomSentinelInstance, type CustomSentinelModule, type DivinerTask, IsAttachableSentinelInstanceFactory, type JobEndEventArgs, type JobEndEventData, type JobStartEventArgs, type JobStartEventData, type ModuleTask, type ReportEndEventArgs, type ReportEndEventData, type ReportStartEventArgs, type ReportStartEventData, type ResolvedArchivistTask, type ResolvedDivinerTask, type ResolvedModuleTask, type ResolvedTask, type ResolvedWitnessTask, type Sentinel, type SentinelAutomationPayload, SentinelAutomationSchema, type SentinelBaseAutomationPayload, type SentinelConfig, SentinelConfigSchema, type SentinelEventAutomationPayload, SentinelEventAutomationSchema, type SentinelInstance, type SentinelIntervalAutomationPayload, SentinelIntervalAutomationSchema, type SentinelJob, type SentinelModule, type SentinelModuleEventData, type SentinelModuleQueries, type SentinelParams, type SentinelQueries, type SentinelReportQuery, SentinelReportQuerySchema, type Task, type TaskEndEventArgs, type TaskEndEventData, type TaskStartEventArgs, type TaskStartEventData, type WitnessTask, asAttachableSentinelInstance, asSentinelInstance, asSentinelModule, isAttachableSentinelInstance, isSentinelInstance, isSentinelIntervalAutomation, isSentinelModule, requiredAttachableSentinelInstanceFunctions, withSentinelInstance, withSentinelModule };
1
+ export * from './attachable/index.ts';
2
+ export * from './Automation.ts';
3
+ export * from './Config.ts';
4
+ export * from './EventData.ts';
5
+ export * from './EventsModels/index.ts';
6
+ export * from './Instance.ts';
7
+ export * from './Job.ts';
8
+ export * from './Module.ts';
9
+ export * from './Params.ts';
10
+ export * from './Queries/index.ts';
11
+ export * from './ResolvedTask.ts';
12
+ export * from './Sentinel.ts';
13
+ export * from './Task.ts';
14
+ export * from './typeChecks.ts';
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,yBAAyB,CAAA;AACvC,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA"}