flightdeck 0.2.28 → 0.2.29

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/lib.d.ts CHANGED
@@ -1,787 +1,1800 @@
1
1
  import { __export } from "./chunk-Cl8Af3a2.js";
2
2
  import { z } from "zod";
3
- import { Server } from "node:http";
4
- import { Future } from "atom.io/internal";
5
- import { ChildSocket } from "atom.io/realtime-server";
3
+ import { ChildProcessWithoutNullStreams } from "node:child_process";
6
4
  import { CronJob } from "cron";
7
- import { FilesystemStorage } from "safedeposit";
8
5
 
6
+ //#region ../atom.io/dist/transceivers/set-rtx/index.d.ts
7
+ //#region src/transceivers/set-rtx/set-rtx.d.ts
8
+ type SetUpdateType = `add` | `clear` | `del` | `tx`;
9
+ type SetUpdate = `${SetUpdateType}:${string}`;
10
+ type NumberedSetUpdate = `${number}=${SetUpdate}`;
11
+ interface SetRTXJson<P extends primitive> extends Json.Object {
12
+ members: P[];
13
+ cache: (NumberedSetUpdate | null)[];
14
+ cacheLimit: number;
15
+ cacheIdx: number;
16
+ cacheUpdateNumber: number;
17
+ }
18
+ declare class SetRTX<P extends primitive> extends Set<P> implements Transceiver<NumberedSetUpdate>, Lineage {
19
+ mode: TransceiverMode;
20
+ readonly subject: Subject<SetUpdate>;
21
+ cacheLimit: number;
22
+ cache: (NumberedSetUpdate | null)[];
23
+ cacheIdx: number;
24
+ cacheUpdateNumber: number;
25
+ constructor(values?: Iterable<P>, cacheLimit?: number);
26
+ toJSON(): SetRTXJson<P>;
27
+ static fromJSON<P extends primitive>(json: SetRTXJson<P>): SetRTX<P>;
28
+ add(value: P): this;
29
+ clear(): void;
30
+ delete(value: P): boolean;
31
+ readonly parent: SetRTX<P> | null;
32
+ child: SetRTX<P> | null;
33
+ transactionUpdates: SetUpdate[] | null;
34
+ transaction(run: (child: SetRTX<P>) => boolean): void;
35
+ protected _subscribe(key: string, fn: (update: SetUpdate) => void): () => void;
36
+ subscribe(key: string, fn: (update: NumberedSetUpdate) => void): () => void;
37
+ emit(update: SetUpdate): void;
38
+ private doStep;
39
+ getUpdateNumber(update: NumberedSetUpdate): number;
40
+ do(update: NumberedSetUpdate): number | `OUT_OF_RANGE` | null;
41
+ undoStep(update: SetUpdate): void;
42
+ undo(update: NumberedSetUpdate): number | null;
43
+ }
44
+
45
+ //#endregion
46
+ //#region ../atom.io/dist/main/index.d.ts
47
+ //#endregion
48
+
49
+ type RegularAtomFamilyToken<T, K extends Canonical> = {
50
+ key: string;
51
+ type: `atom_family`;
52
+ __T?: T;
53
+ __K?: K;
54
+ };
55
+ type MutableAtomFamilyToken<T extends Transceiver<any>, J extends Json.Serializable, K extends Canonical> = {
56
+ key: string;
57
+ type: `mutable_atom_family`;
58
+ __T?: T;
59
+ __J?: J;
60
+ __K?: K;
61
+ };
62
+ type AtomFamilyToken<T, K extends Canonical = Canonical> = MutableAtomFamilyToken<T extends Transceiver<any> ? T : never, any, K> | RegularAtomFamilyToken<T, K>;
63
+ //#endregion
64
+ //#region src/main/transaction.d.ts
65
+ type TransactionToken<F extends Func> = {
66
+ key: string;
67
+ type: `transaction`;
68
+ __F?: F;
69
+ };
70
+ type StateCreation<Token extends ReadableToken<any>> = {
71
+ type: `state_creation`;
72
+ token: Token;
73
+ };
74
+ type AtomDisposal<Token extends ReadableToken<any>> = {
75
+ type: `state_disposal`;
76
+ subType: `atom`;
77
+ token: Token;
78
+ value: TokenType<Token>;
79
+ };
80
+ type SelectorDisposal<Token extends ReadableToken<any>> = {
81
+ type: `state_disposal`;
82
+ subType: `selector`;
83
+ token: Token;
84
+ };
85
+ type StateDisposal<Token extends ReadableToken<any>> = AtomDisposal<Token> | SelectorDisposal<Token>;
86
+ type MoleculeCreation = {
87
+ type: `molecule_creation`;
88
+ key: Canonical;
89
+ provenance: Canonical;
90
+ };
91
+ type MoleculeDisposal = {
92
+ type: `molecule_disposal`;
93
+ key: Canonical;
94
+ provenance: stringified<Canonical>[];
95
+ values: [key: string, value: any][];
96
+ };
97
+ type MoleculeTransfer = {
98
+ type: `molecule_transfer`;
99
+ key: Canonical;
100
+ from: Canonical[];
101
+ to: Canonical[];
102
+ };
103
+ type TransactionUpdateContent = KeyedStateUpdate<unknown> | MoleculeCreation | MoleculeDisposal | MoleculeTransfer | StateCreation<ReadableToken<unknown>> | StateDisposal<ReadableToken<unknown>> | TransactionUpdate<Func>;
104
+ type TransactionUpdate<F extends Func> = {
105
+ type: `transaction_update`;
106
+ key: string;
107
+ id: string;
108
+ epoch: number;
109
+ updates: TransactionUpdateContent[];
110
+ params: Parameters<F>;
111
+ output: ReturnType<F>;
112
+ };
113
+ type SetterToolkit = Readonly<{
114
+ get: typeof getState;
115
+ set: typeof setState;
116
+ find: typeof findState;
117
+ json: <T extends Transceiver<any>, J extends Json.Serializable>(state: MutableAtomToken<T, J>) => WritableSelectorToken<J>;
118
+ }>;
119
+ type ActorToolkit = Readonly<{
120
+ get: typeof getState;
121
+ set: typeof setState;
122
+ find: typeof findState;
123
+ json: <T extends Transceiver<any>, J extends Json.Serializable>(state: MutableAtomToken<T, J>) => WritableSelectorToken<J>;
124
+ dispose: typeof disposeState;
125
+ run: typeof runTransaction;
126
+ env: () => EnvironmentData;
127
+ }>;
128
+ declare function runTransaction<F extends Func>(token: TransactionToken<F>, id?: string): (...parameters: Parameters<F>) => ReturnType<F>;
129
+
130
+ //#endregion
131
+ //#region src/main/selector.d.ts
132
+
133
+ type WritableSelectorFamilyToken<T, K extends Canonical> = {
134
+ key: string;
135
+ type: `selector_family`;
136
+ __T?: T;
137
+ __K?: K;
138
+ };
139
+ type ReadonlySelectorFamilyToken<T, K extends Canonical> = {
140
+ key: string;
141
+ type: `readonly_selector_family`;
142
+ __T?: T;
143
+ __K?: K;
144
+ };
145
+ type SelectorFamilyToken<T, K extends Canonical> = ReadonlySelectorFamilyToken<T, K> | WritableSelectorFamilyToken<T, K>;
146
+ //#endregion
147
+ //#region src/main/timeline.d.ts
148
+ type TimelineManageable = AtomFamilyToken<any, any> | AtomToken<any>;
149
+ type AtomOnly<M extends TimelineManageable> = M extends AtomFamilyToken<any, any> ? AtomToken<any> : M extends AtomToken<any> ? M : never;
150
+ type TimelineToken<M> = {
151
+ key: string;
152
+ type: `timeline`;
153
+ __M?: M;
154
+ };
155
+ type TimelineUpdate<ManagedAtom extends TimelineManageable> = TimelineAtomUpdate<ManagedAtom> | TimelineMoleculeCreation | TimelineMoleculeDisposal | TimelineSelectorUpdate<ManagedAtom> | TimelineStateCreation<AtomOnly<ManagedAtom>> | TimelineStateDisposal<AtomOnly<ManagedAtom>> | TimelineTransactionUpdate;
156
+ //#endregion
157
+ //#region src/main/dispose-state.d.ts
158
+ /**
159
+ * @public
160
+ * Disposes of a state in the implicit store
161
+ * @param token - The token of the state to dispose
162
+ * @overload Default
163
+ */
164
+ declare function disposeState(token: ReadableToken<any>): void;
165
+ /**
166
+ * @public
167
+ * Disposes of a state family in the implicit store
168
+ * @param token - The token of the state family to dispose
169
+ * @param key - The unique key of the state to dispose
170
+ */
171
+ declare function disposeState<K extends Canonical>(token: ReadableFamilyToken<any, K>, key: K): void;
172
+
173
+ //#endregion
174
+ //#region src/main/find-state.d.ts
175
+ /**
176
+ * @public
177
+ * Finds a {@link MutableAtomToken} in the store
178
+ * @param token - A {@link MutableAtomFamilyToken}
179
+ * @param key - The key of the state
180
+ * @returns
181
+ * The current value of the state
182
+ * @overload Mutable Atom
183
+ */
184
+ declare function findState<T extends Transceiver<any>, J extends Json.Serializable, K extends Canonical, Key extends K>(token: MutableAtomFamilyToken<T, J, K>, key: Key): MutableAtomToken<T, J, K>;
185
+ /**
186
+ * @public
187
+ * Finds a state in the store
188
+ * @param token - The token of the state family
189
+ * @param key - The key of the state
190
+ * @returns
191
+ * The current value of the state
192
+ * @overload Regular Atom
193
+ */
194
+ declare function findState<T, K extends Canonical, Key extends K>(token: RegularAtomFamilyToken<T, K>, key: Key): RegularAtomToken<T, K>;
195
+ /**
196
+ * @public
197
+ * Finds a state in the store
198
+ * @param token - The token of the state family
199
+ * @param key - The key of the state
200
+ * @returns
201
+ * The current value of the state
202
+ * @overload Writable Selector
203
+ */
204
+ declare function findState<T, K extends Canonical, Key extends K>(token: WritableSelectorFamilyToken<T, K>, key: Key): WritableSelectorToken<T, K>;
205
+ /**
206
+ * @public
207
+ * Finds a state in the store
208
+ * @param token - The token of the state family
209
+ * @param key - The key of the state
210
+ * @returns
211
+ * The current value of the state
212
+ * @overload Readonly Selector
213
+ */
214
+ declare function findState<T, K extends Canonical, Key extends K>(token: ReadonlySelectorFamilyToken<T, K>, key: Key): ReadonlySelectorToken<T, K>;
215
+ /**
216
+ * @public
217
+ * Finds a state in the store
218
+ * @param token - The token of the state family
219
+ * @param key - The key of the state
220
+ * @returns
221
+ * The current value of the state
222
+ * @overload Writable State
223
+ */
224
+ declare function findState<T, K extends Canonical, Key extends K>(token: WritableFamilyToken<T, K>, key: Key): WritableToken<T, K>;
225
+ /**
226
+ * @public
227
+ * Finds a {@link ReadableToken} in the store
228
+ * @param token - A {@link ReadableFamilyToken}
229
+ * @param key - The key of the state
230
+ * @returns
231
+ * The current value of the state
232
+ * @overload Unknown
233
+ * @default
234
+ */
235
+ declare function findState<T, K extends Canonical, Key extends K>(token: ReadableFamilyToken<T, K>, key: Key): ReadableToken<T, K>;
236
+
237
+ //#endregion
238
+ //#region src/main/get-state.d.ts
239
+ /**
240
+ * @public
241
+ * Get the current value of a state
242
+ * @param token - The token of the state to get
243
+ * @return The current value of the state
244
+ * @overload Default
245
+ * @default
246
+ */
247
+ declare function getState<T>(token: ReadableToken<T>): T;
248
+ /**
249
+ * @public
250
+ * Get the current value of a state family
251
+ * @param token - The token of a state family
252
+ * @param key - The unique key of the state to get
253
+ * @return The current value of the state
254
+ * @overload Streamlined
255
+ */
256
+ declare function getState<T, K extends Canonical, Key extends K>(token: ReadableFamilyToken<T, K>, key: Key): T;
257
+
258
+ //#endregion
259
+ //#region src/main/join.d.ts
260
+ interface JoinOptions<ASide extends string, AType extends string, BSide extends string, BType extends string, Cardinality extends `1:1` | `1:n` | `n:n`, Content extends Json.Object | null> extends JunctionSchemaBase<ASide, BSide>, Partial<JunctionEntriesBase<AType, BType, Content>> {
261
+ readonly key: string;
262
+ readonly cardinality: Cardinality;
263
+ readonly isAType: Refinement<string, AType>;
264
+ readonly isBType: Refinement<string, BType>;
265
+ }
266
+ //#endregion
267
+ //#region src/main/logger.d.ts
268
+ declare const LoggerIconDictionary: {
269
+ readonly "⌛": "Timeline event fully captured";
270
+ readonly "⏩": "Timeline redo";
271
+ readonly "⏪": "Timeline undo";
272
+ readonly "⏭️": "Transaction redo";
273
+ readonly "⏮️": "Transaction undo";
274
+ readonly "⏳": "Timeline event partially captured";
275
+ readonly "⏹️": "Time-travel complete";
276
+ readonly "✅": "Realtime transaction success";
277
+ readonly "✨": "Computation complete";
278
+ readonly "❌": "Conflict prevents attempted action";
279
+ readonly "⭕": "Operation start";
280
+ readonly "🔴": "Operation complete";
281
+ readonly "❗": "Operation blocked";
282
+ readonly "🟢": "Operation unblocked";
283
+ readonly "🐞": "Possible bug in AtomIO";
284
+ readonly "👀": "Subscription added";
285
+ readonly "👋": "Greeting";
286
+ readonly "👍": "Realtime acknowledgment";
287
+ readonly "👪": "Family member added";
288
+ readonly "💁": "Notice";
289
+ readonly "💥": "Caught";
290
+ readonly "📁": "Stow update";
291
+ readonly "📃": "Copy mutable";
292
+ readonly "📖": "Read state";
293
+ readonly "📝": "Write state";
294
+ readonly "📢": "Notify subscribers";
295
+ readonly "🔄": "Realtime transaction synchronized";
296
+ readonly "🔌": "Register dependency";
297
+ readonly "🔍": "Discover root";
298
+ readonly "🔥": "Delete state";
299
+ readonly "🔧": "Create mutable atom";
300
+ readonly "🔨": "Create immutable atom";
301
+ readonly "🗑": "Evict cached value";
302
+ readonly "🙈": "Subscription canceled";
303
+ readonly "🚀": "Performance measure";
304
+ readonly "🛄": "Apply transaction";
305
+ readonly "🛠️": "Install atom into store";
306
+ readonly "🛫": "Begin transaction";
307
+ readonly "🛬": "Complete transaction";
308
+ readonly "🧮": "Computing selector";
309
+ readonly "🧹": "Prepare to evict";
310
+ readonly "🪂": "Abort transaction";
311
+ readonly "🤞": "Realtime optimistic update enqueued";
312
+ readonly "👈": "Realtime confirmed update enqueued";
313
+ readonly "🧑‍⚖️": "Realtime update beginning reconciliation";
314
+ readonly "🛎️": "Realtime transaction received";
315
+ readonly "🔭": "Determining realtime perspective";
316
+ readonly "🖌": "Redacting realtime update";
317
+ readonly "👁": "Determining perspective";
318
+ };
319
+ type LoggerIcon = keyof typeof LoggerIconDictionary;
320
+ type TokenDenomination = `atom_family` | `atom` | `continuity` | `molecule_family` | `molecule` | `mutable_atom_family` | `mutable_atom` | `readonly_selector_family` | `readonly_selector` | `selector_family` | `selector` | `state` | `timeline` | `transaction` | `unknown`;
321
+ declare const LOG_LEVELS: readonly ["info", "warn", "error"];
322
+ type LogLevel = (typeof LOG_LEVELS)[number];
323
+ type LogFn = (icon: LoggerIcon, denomination: TokenDenomination, tokenKey: string, message: string, ...rest: unknown[]) => void;
324
+ type LogFilter = (...params: Parameters<LogFn>) => boolean;
325
+ type Logger = Record<LogLevel, LogFn>;
326
+ declare class AtomIOLogger implements Logger {
327
+ logLevel: `error` | `info` | `warn` | null;
328
+ private readonly filter;
329
+ private readonly logger;
330
+ constructor(logLevel: `error` | `info` | `warn` | null, filter?: LogFilter, logger?: Logger);
331
+ error: LogFn;
332
+ info: LogFn;
333
+ warn: LogFn;
334
+ }
335
+
336
+ //#endregion
337
+ //#region src/main/realm.d.ts
338
+ declare const $claim: unique symbol;
339
+ type Claim<K extends Canonical> = K & {
340
+ [$claim]?: true;
341
+ };
342
+ declare class Realm<H extends Hierarchy> {
343
+ store: Store;
344
+ constructor(store?: Store);
345
+ allocate<V extends Vassal<H>, A extends Above<V, H>>(provenance: A, key: V, attachmentStyle?: `all` | `any`): Claim<V>;
346
+ fuse<C extends CompoundFrom<H>, T extends (C extends CompoundTypedKey<infer t, any, any> ? t : never), A extends (C extends CompoundTypedKey<any, infer v, any> ? v : never), B extends (C extends CompoundTypedKey<any, any, infer m> ? m : never)>(type: T, reagentA: SingularTypedKey<A>, reagentB: SingularTypedKey<B>): Claim<CompoundTypedKey<T, A, B>>;
347
+ deallocate<V extends Vassal<H>>(claim: Claim<V>): void;
348
+ claim<V extends Exclude<Vassal<H>, CompoundTypedKey>, A extends Above<V, H>>(newProvenance: A, claim: Claim<V>, exclusive?: `exclusive`): Claim<V>;
349
+ }
350
+ declare class Anarchy {
351
+ store: Store;
352
+ realm: Realm<any>;
353
+ constructor(store?: Store);
354
+ allocate(provenance: Canonical, key: Canonical, attachmentStyle?: `all` | `any`): void;
355
+ deallocate(key: Canonical): void;
356
+ claim(newProvenance: Canonical, key: Canonical, exclusive?: `exclusive`): void;
357
+ }
358
+ declare const T$ = "T$";
359
+ type T$ = typeof T$;
360
+ type TypeTag<T extends string> = `${T$}--${T}`;
361
+ type SingularTypedKey<T extends string = string> = `${T}::${string}`;
362
+ type CompoundTypedKey<A extends string = string, B extends string = string, C extends string = string> = `${TypeTag<A>}==${SingularTypedKey<B>}++${SingularTypedKey<C>}`;
363
+ type TypedKey<A extends string = string, B extends string = string, C extends string = string> = CompoundTypedKey<A, B, C> | SingularTypedKey<A>;
364
+ type Scope = SingularTypedKey[];
365
+ type MutualFealty = {
366
+ above: Scope;
367
+ below: CompoundTypedKey;
368
+ };
369
+ type ExclusiveFealty = {
370
+ above: TypedKey | `root`;
371
+ below: Scope;
372
+ };
373
+ type Fealty = ExclusiveFealty | MutualFealty;
374
+ type Hierarchy<F extends Fealty[] = Fealty[]> = Each<F>;
375
+ type Vassal<H extends Hierarchy> = { [K in keyof H]: H[K] extends MutualFealty ? H[K][`below`] : H[K] extends {
376
+ below: Array<infer V>;
377
+ } ? V extends TypedKey ? V : never : never }[keyof H];
378
+ type Above<TK extends TypedKey, H extends Hierarchy> = { [K in keyof H]: H[K] extends MutualFealty ? TK extends H[K][`below`] ? H[K][`above`] : never : H[K] extends {
379
+ below: Array<infer V>;
380
+ } ? TK extends V ? H[K] extends ExclusiveFealty ? H[K][`above`] : never : never : never }[keyof H];
381
+ type CompoundFrom<H extends Hierarchy> = { [K in keyof H]: H[K] extends MutualFealty ? H[K][`below`] : never }[keyof H];
382
+
383
+ //#endregion
384
+ //#region src/main/set-state.d.ts
385
+ /**
386
+ * @public
387
+ * A function that sets the value of a state.
388
+ * @param oldValue - The current value of the state.
389
+ * @returns
390
+ * The new value of the state.
391
+ */
392
+ type Setter<T, New extends T> = (oldValue: T) => New;
393
+ /**
394
+ * @public
395
+ * Set the value of a state into the implicit store.
396
+ * @param token - An atom or writable selector token.
397
+ * @param value - The new value of the state.
398
+ * @overload Default
399
+ * @default
400
+ */
401
+ declare function setState<T, New extends T>(token: WritableToken<T>, value: New | Setter<T, New>): void;
402
+ /**
403
+ * @public
404
+ * Set the value of a state into the implicit store.
405
+ * @param token - An atom family or writable selector family token.
406
+ * @param key - The unique key of the state to set.
407
+ * @param value - The new value of the state.
408
+ * @overload Streamlined
409
+ */
410
+ declare function setState<T, K extends Canonical, New extends T, Key extends K>(token: WritableFamilyToken<T, K>, key: Key, value: New | Setter<T, New>): void;
411
+
412
+ //#endregion
413
+ //#region src/main/silo.d.ts
414
+
415
+ //#endregion
416
+ //#region src/main/subscribe.d.ts
417
+ type StateUpdate<T> = {
418
+ newValue: T;
419
+ oldValue: T;
420
+ };
421
+ type KeyedStateUpdate<T> = Flat<StateUpdate<T> & {
422
+ key: string;
423
+ type: `atom_update` | `selector_update`;
424
+ family?: FamilyMetadata;
425
+ }>;
426
+ //#endregion
427
+ //#region src/main/validators.d.ts
428
+ type TokenType<Comparison extends ReadableFamilyToken<any, any> | ReadableToken<any>> = Comparison extends ReadableToken<infer RepresentedValue> ? RepresentedValue : Comparison extends ReadableFamilyToken<infer RepresentedValue, any> ? RepresentedValue : never;
429
+ /** @public */
430
+ type RegularAtomToken<T, K extends Canonical = any> = {
431
+ /** The unique identifier of the atom. */
432
+ key: string;
433
+ /** Discriminator. */
434
+ type: `atom`;
435
+ /** Present if the atom belongs to a family. */
436
+ family?: FamilyMetadata<K>;
437
+ /** Never present. This is a marker that preserves the type of the atom's value. */
438
+ __T?: T;
439
+ };
440
+ /** @public */
441
+ type MutableAtomToken<T extends Transceiver<any>, J extends Json.Serializable, K extends Canonical = any> = {
442
+ /** The unique identifier of the atom. */
443
+ key: string;
444
+ /** Discriminator. */
445
+ type: `mutable_atom`;
446
+ /** Present if the atom belongs to a family. */
447
+ family?: FamilyMetadata<K>;
448
+ /** Never present. This is a marker that preserves the JSON form of the atom's transceiver value. */
449
+ __J?: J;
450
+ /** Never present. This is a marker that preserves the type of the atom's transceiver value. */
451
+ __U?: T extends Transceiver<infer Update> ? Update : never;
452
+ };
453
+ /** @public */
454
+ type AtomToken<T, K extends Canonical = any> = MutableAtomToken<T extends Transceiver<any> ? T : never, any, K> | RegularAtomToken<T, K>;
455
+ /** @public */
456
+ type WritableSelectorToken<T, K extends Canonical = any> = {
457
+ /** The unique identifier of the selector. */
458
+ key: string;
459
+ /** Discriminator. */
460
+ type: `selector`;
461
+ /** Present if the selector belongs to a family. */
462
+ family?: FamilyMetadata<K>;
463
+ /** Never present. This is a marker that preserves the type of the selector's value. */
464
+ __T?: T;
465
+ };
466
+ /** @public */
467
+ type ReadonlySelectorToken<T, K extends Canonical = any> = {
468
+ /** The unique identifier of the selector. */
469
+ key: string;
470
+ /** Discriminator. */
471
+ type: `readonly_selector`;
472
+ /** Present if the selector belongs to a family. */
473
+ family?: FamilyMetadata<K>;
474
+ /** Never present. This is a marker that preserves the type of the selector's value. */
475
+ __T?: T;
476
+ };
477
+ /** @public */
478
+ type SelectorToken<T, K extends Canonical = any> = ReadonlySelectorToken<T, K> | WritableSelectorToken<T, K>;
479
+ /**
480
+ * @public
481
+ * These states can be set.
482
+ */
483
+ type WritableToken<T, K extends Canonical = any> = AtomToken<T, K> | WritableSelectorToken<T, K>;
484
+ /**
485
+ * @public
486
+ * These states cannot be set.
487
+ */
488
+ type ReadableToken<T, K extends Canonical = any> = AtomToken<T, K> | SelectorToken<T, K>;
489
+ /**
490
+ * @public
491
+ * States belonging to this family can be set.
492
+ */
493
+ type WritableFamilyToken<T, K extends Canonical> = AtomFamilyToken<T, K> | WritableSelectorFamilyToken<T, K>;
494
+ /**
495
+ * @public
496
+ * States belonging to this family cannot be set.
497
+ */
498
+ type ReadableFamilyToken<T, K extends Canonical> = AtomFamilyToken<T, K> | SelectorFamilyToken<T, K>;
499
+ /**
500
+ * @public
501
+ * Identifies a state's connection to its family.
502
+ */
503
+ type FamilyMetadata<K extends Canonical = any> = {
504
+ /** The family's unique key. */
505
+ key: string;
506
+ /** The family member's unique identifier, in the form of a string. */
507
+ subKey: stringified<K>;
508
+ };
509
+
510
+ //#endregion
511
+ //#region ../atom.io/dist/json/index.d.ts
512
+ //#endregion
513
+ //#region src/json/index.d.ts
514
+ type primitive = boolean | number | string | null;
515
+ declare namespace Json {
516
+ namespace Tree {
517
+ type Array<Element = unknown> = ReadonlyArray<Element>;
518
+ type Object<K extends string = string, V = unknown> = Record<K, V>;
519
+ type Fork = Array | Object;
520
+ type Leaf = primitive;
521
+ type Node = Fork | Leaf;
522
+ }
523
+ type Serializable = primitive | Readonly<{
524
+ [key: string]: Serializable;
525
+ }> | ReadonlyArray<Serializable>;
526
+ type Object<Key extends string = string, Value extends Serializable = Serializable> = Record<Key, Value>;
527
+ type Array<Element extends Serializable = Serializable> = ReadonlyArray<Element>;
528
+ }
529
+ type stringified<J extends Json.Serializable> = J extends string ? `"${J}"` : J extends number ? `${J}` : J extends true ? `true` : J extends false ? `false` : J extends boolean ? `false` | `true` : J extends null ? `null` : string & {
530
+ __json?: J;
531
+ };
532
+ type Canonical = primitive | ReadonlyArray<Canonical>;
533
+ type JsonInterface<T, J extends Json.Serializable = Json.Serializable> = {
534
+ toJson: (t: T) => J;
535
+ fromJson: (json: J) => T;
536
+ };
537
+
538
+ //#endregion
539
+ //#region ../atom.io/dist/internal/index.d.ts
540
+ //#region src/internal/store/circular-buffer.d.ts
541
+ declare class CircularBuffer<T> {
542
+ protected _buffer: T[];
543
+ protected _index: number;
544
+ constructor(array: T[]);
545
+ constructor(length: number);
546
+ get buffer(): ReadonlyArray<T | undefined>;
547
+ get index(): number;
548
+ add(item: T): void;
549
+ copy(): CircularBuffer<T>;
550
+ }
551
+
552
+ //#endregion
553
+ //#region src/internal/store/counterfeit.d.ts
554
+
555
+ //#endregion
556
+ //#region src/internal/utility-types.d.ts
557
+ type Func = (...parameters: any[]) => any;
558
+ type Flat<R extends { [K in PropertyKey]: any }> = { [K in keyof R]: R[K] };
559
+ type Count<N extends number, A extends any[] = []> = [...A, any][`length`] extends N ? A[`length`] : A[`length`] | Count<N, [...A, any]>;
560
+ type Each<E extends any[]> = { [P in Count<E[`length`]>]: E[P] };
561
+ type Refinement<A, B extends A> = (a: A) => a is B;
562
+
563
+ //#endregion
564
+ //#region src/internal/junction.d.ts
565
+ type JunctionEntriesBase<AType extends string, BType extends string, Content extends Json.Object | null> = {
566
+ readonly relations: ([AType, BType[]] | [BType, AType[]])[];
567
+ readonly contents: [string, Content][];
568
+ };
569
+ interface JunctionEntries<AType extends string, BType extends string, Content extends Json.Object | null> extends Json.Object, JunctionEntriesBase<AType, BType, Content> {}
570
+ type JunctionSchemaBase<ASide extends string, BSide extends string> = {
571
+ readonly between: [a: ASide, b: BSide];
572
+ readonly cardinality: `1:1` | `1:n` | `n:n`;
573
+ };
574
+ interface JunctionSchema<ASide extends string, BSide extends string> extends Json.Object, JunctionSchemaBase<ASide, BSide> {}
575
+ type BaseExternalStoreConfiguration = {
576
+ addRelation: (a: string, b: string) => void;
577
+ deleteRelation: (a: string, b: string) => void;
578
+ replaceRelationsSafely: (a: string, bs: string[]) => void;
579
+ replaceRelationsUnsafely: (a: string, bs: string[]) => void;
580
+ getRelatedKeys(key: string): Set<string> | undefined;
581
+ has: (a: string, b?: string) => boolean;
582
+ };
583
+ type ExternalStoreWithContentConfiguration<Content extends Json.Object> = {
584
+ getContent: (contentKey: string) => Content | undefined;
585
+ setContent: (contentKey: string, content: Content) => void;
586
+ deleteContent: (contentKey: string) => void;
587
+ };
588
+ type Empty<Obj extends object> = { [Key in keyof Obj]?: undefined };
589
+ type ExternalStoreConfiguration<Content extends Json.Object | null> = Content extends Json.Object ? BaseExternalStoreConfiguration & ExternalStoreWithContentConfiguration<Content> : BaseExternalStoreConfiguration & Empty<ExternalStoreWithContentConfiguration<Json.Object>>;
590
+ type JunctionAdvancedConfiguration<AType extends string, BType extends string, Content extends Json.Object | null> = {
591
+ warn?: (...args: any[]) => void;
592
+ externalStore?: ExternalStoreConfiguration<Content>;
593
+ isAType?: Refinement<string, AType>;
594
+ isBType?: Refinement<string, BType>;
595
+ isContent?: Refinement<unknown, Content>;
596
+ makeContentKey?: (a: AType, b: BType) => string;
597
+ };
598
+ type JunctionJSON<ASide extends string, AType extends string, BSide extends string, BType extends string, Content extends Json.Object | null> = JunctionEntries<AType, BType, Content> & JunctionSchema<ASide, BSide>;
599
+ declare class Junction<ASide extends string, AType extends string, BSide extends string, BType extends string, Content extends Json.Object | null = null> {
600
+ readonly a: ASide;
601
+ readonly b: BSide;
602
+ readonly cardinality: `1:1` | `1:n` | `n:n`;
603
+ readonly relations: Map<AType | BType, Set<AType> | Set<BType>>;
604
+ readonly contents: Map<string, Content>;
605
+ isAType?: Refinement<string, AType> | null;
606
+ isBType?: Refinement<string, BType> | null;
607
+ isContent: Refinement<unknown, Content> | null;
608
+ makeContentKey: (a: AType, b: BType) => string;
609
+ warn?: (...args: any[]) => void;
610
+ getRelatedKeys(key: AType): Set<BType> | undefined;
611
+ getRelatedKeys(key: BType): Set<AType> | undefined;
612
+ getRelatedKeys(key: AType | BType): Set<AType> | Set<BType> | undefined;
613
+ protected addRelation(a: AType, b: BType): void;
614
+ protected deleteRelation(a: AType, b: BType): void;
615
+ protected replaceRelationsUnsafely(a: AType, bs: BType[]): void;
616
+ protected replaceRelationsUnsafely(b: BType, as: AType[]): void;
617
+ protected replaceRelationsSafely(a: AType, bs: BType[]): void;
618
+ protected replaceRelationsSafely(b: BType, as: AType[]): void;
619
+ protected getContentInternal(contentKey: string): Content | undefined;
620
+ protected setContent(contentKey: string, content: Content): void;
621
+ protected deleteContent(contentKey: string): void;
622
+ constructor(data: JunctionSchema<ASide, BSide> & Partial<JunctionEntries<NoInfer<AType>, NoInfer<BType>, Content>>, config?: JunctionAdvancedConfiguration<AType, BType, Content>);
623
+ toJSON(): JunctionJSON<ASide, AType, BSide, BType, Content>;
624
+ set(a: AType, ...rest: Content extends null ? [b: BType] : [b: BType, content: Content]): this;
625
+ set(relation: { [Key in ASide]: AType } & { [Key in BSide]: BType }, ...rest: Content extends null ? [] | [void?: undefined] : [content: Content]): this;
626
+ delete(a: AType, b?: BType): this;
627
+ delete(b: BType, a?: AType): this;
628
+ delete(relation: { [Key in ASide]: AType } | { [Key in BSide]: BType } | ({ [Key in ASide]: AType } & { [Key in BSide]: BType }), b?: undefined): this;
629
+ getRelatedKey(key: AType): BType | undefined;
630
+ getRelatedKey(key: BType): AType | undefined;
631
+ replaceRelations(a: AType, relations: Content extends null ? BType[] : Record<BType, Content>, config?: {
632
+ reckless: boolean;
633
+ }): this;
634
+ replaceRelations(b: BType, relations: Content extends null ? AType[] : Record<AType, Content>, config?: {
635
+ reckless: boolean;
636
+ }): this;
637
+ getContent(a: AType, b: BType): Content | undefined;
638
+ getRelationEntries(input: Record<ASide, AType>): [BType, Content][];
639
+ getRelationEntries(input: Record<BSide, BType>): [AType, Content][];
640
+ has(a: AType, b?: BType): boolean;
641
+ has(b: BType, a?: AType): boolean;
642
+ }
643
+
644
+ //#endregion
645
+ //#region src/internal/transaction/abort-transaction.d.ts
646
+
647
+ //#endregion
648
+ //#region src/internal/subject.d.ts
649
+ declare class Subject<T> {
650
+ Subscriber: (value: T) => void;
651
+ subscribers: Map<string, this[`Subscriber`]>;
652
+ subscribe(key: string, subscriber: this[`Subscriber`]): () => void;
653
+ private unsubscribe;
654
+ next(value: T): void;
655
+ }
656
+ declare class StatefulSubject<T> extends Subject<T> {
657
+ state: T;
658
+ constructor(initialState: T);
659
+ next(value: T): void;
660
+ }
661
+
662
+ //#endregion
663
+ //#region src/internal/transaction/create-transaction.d.ts
664
+ type Transaction<F extends Func> = {
665
+ key: string;
666
+ type: `transaction`;
667
+ install: (store: Store) => void;
668
+ subject: Subject<TransactionUpdate<F>>;
669
+ run: (parameters: Parameters<F>, id?: string) => ReturnType<F>;
670
+ };
671
+ type TransactionProgress<F extends Func> = {
672
+ phase: `applying` | `building`;
673
+ update: TransactionUpdate<F>;
674
+ toolkit: ActorToolkit;
675
+ };
676
+ type TransactionEpoch = {
677
+ epoch: Map<string, number>;
678
+ actionContinuities: Junction<`continuity`, string, `action`, string>;
679
+ };
680
+
681
+ //#endregion
682
+ //#region src/internal/store/deposit.d.ts
683
+
684
+ //#endregion
685
+ //#region src/internal/molecule.d.ts
686
+ type Molecule<K extends Canonical> = {
687
+ readonly key: K;
688
+ readonly stringKey: stringified<K>;
689
+ readonly dependsOn: `all` | `any`;
690
+ };
691
+ //#endregion
692
+ //#region src/internal/join/join-internal.d.ts
693
+ type JoinStateFamilies<ASide extends string, AType extends string, BSide extends string, BType extends string, Cardinality extends `1:1` | `1:n` | `n:n`, Content extends Json.Object | null> = Cardinality extends `1:1` ? (Content extends Json.Object ? { readonly [A in ASide as `${A}EntryOf${Capitalize<BSide>}`]: ReadonlySelectorFamilyToken<[AType, Content] | null, BType> } & { readonly [B in BSide as `${B}EntryOf${Capitalize<ASide>}`]: ReadonlySelectorFamilyToken<[BType, Content] | null, AType> } : {}) & { readonly [A in ASide as `${A}KeyOf${Capitalize<BSide>}`]: ReadonlySelectorFamilyToken<AType | null, BType> } & { readonly [B in BSide as `${B}KeyOf${Capitalize<ASide>}`]: ReadonlySelectorFamilyToken<BType | null, AType> } : Cardinality extends `1:n` ? (Content extends Json.Object ? { readonly [A in ASide as `${A}EntryOf${Capitalize<BSide>}`]: ReadonlySelectorFamilyToken<[AType, Content] | null, BType> } & { readonly [B in BSide as `${B}EntriesOf${Capitalize<ASide>}`]: ReadonlySelectorFamilyToken<[BType, Content][], AType> } : {}) & { readonly [A in ASide as `${A}KeyOf${Capitalize<BSide>}`]: ReadonlySelectorFamilyToken<AType | null, BType> } & { readonly [B in BSide as `${B}KeysOf${Capitalize<ASide>}`]: ReadonlySelectorFamilyToken<BType[], AType> } : Cardinality extends `n:n` ? (Content extends Json.Object ? { readonly [A in ASide as `${A}EntriesOf${Capitalize<BSide>}`]: ReadonlySelectorFamilyToken<[AType, Content][], BType> } & { readonly [B in BSide as `${B}EntriesOf${Capitalize<ASide>}`]: ReadonlySelectorFamilyToken<[BType, Content][], AType> } : {}) & { readonly [A in ASide as `${A}KeysOf${Capitalize<BSide>}`]: ReadonlySelectorFamilyToken<AType[], BType> } & { readonly [B in BSide as `${B}KeysOf${Capitalize<ASide>}`]: ReadonlySelectorFamilyToken<BType[], AType> } : never;
694
+ declare class Join<ASide extends string, AType extends string, BSide extends string, BType extends string, Cardinality extends `1:1` | `1:n` | `n:n`, Content extends Json.Object | null = null, ContentKey extends CompoundTypedKey<`content`, ASide, BSide> = CompoundTypedKey<`content`, ASide, BSide>> {
695
+ private toolkit;
696
+ options: JoinOptions<ASide, AType, BSide, BType, Cardinality, Content>;
697
+ defaultContent: Content | undefined;
698
+ molecules: Map<string, Molecule<any>>;
699
+ relations: Junction<ASide, AType, BSide, BType, Content>;
700
+ states: JoinStateFamilies<ASide, AType, BSide, BType, Cardinality, Content>;
701
+ core: {
702
+ relatedKeysAtoms: MutableAtomFamilyToken<SetRTX<string>, SetRTXJson<string>, string>;
703
+ };
704
+ transact(toolkit: SetterToolkit, run: (join: Join<ASide, AType, BSide, BType, Cardinality, Content>) => void): void;
705
+ store: Store;
706
+ realm: Anarchy;
707
+ [Symbol.dispose](): void;
708
+ constructor(options: JoinOptions<ASide, AType, BSide, BType, Cardinality, Content>, defaultContent: Content | undefined, store?: Store);
709
+ }
710
+
711
+ //#endregion
712
+ //#region src/internal/join/get-join.d.ts
713
+
714
+ //#endregion
715
+ //#region src/internal/lineage.d.ts
716
+ interface Lineage {
717
+ parent: typeof this | null;
718
+ child: typeof this | null;
719
+ }
720
+ //#endregion
721
+ //#region src/internal/operation.d.ts
722
+ type OperationProgress = {
723
+ open: false;
724
+ } | {
725
+ open: true;
726
+ done: Set<string>;
727
+ prev: Map<string, any>;
728
+ time: number;
729
+ token: WritableToken<any>;
730
+ };
731
+ //#endregion
732
+ //#region src/internal/timeline/create-timeline.d.ts
733
+ type TimelineAtomUpdate<ManagedAtom extends TimelineManageable> = Flat<StateUpdate<TokenType<ManagedAtom>> & {
734
+ key: string;
735
+ type: `atom_update`;
736
+ timestamp: number;
737
+ family?: FamilyMetadata;
738
+ }>;
739
+ type TimelineSelectorUpdate<ManagedAtom extends TimelineManageable> = {
740
+ key: string;
741
+ type: `selector_update`;
742
+ timestamp: number;
743
+ atomUpdates: Omit<TimelineAtomUpdate<ManagedAtom>, `timestamp`>[];
744
+ };
745
+ type TimelineTransactionUpdate = Flat<TransactionUpdate<Func> & {
746
+ key: string;
747
+ type: `transaction_update`;
748
+ timestamp: number;
749
+ }>;
750
+ type TimelineStateCreation<T extends ReadableToken<any>> = Flat<StateCreation<T> & {
751
+ timestamp: number;
752
+ }>;
753
+ type TimelineStateDisposal<T extends ReadableToken<any>> = Flat<StateDisposal<T> & {
754
+ timestamp: number;
755
+ }>;
756
+ type TimelineMoleculeCreation = Flat<MoleculeCreation & {
757
+ timestamp: number;
758
+ }>;
759
+ type TimelineMoleculeDisposal = Flat<MoleculeDisposal & {
760
+ timestamp: number;
761
+ }>;
762
+ type Timeline<ManagedAtom extends TimelineManageable> = {
763
+ type: `timeline`;
764
+ key: string;
765
+ at: number;
766
+ shouldCapture?: (update: TimelineUpdate<ManagedAtom>, timeline: Timeline<ManagedAtom>) => boolean;
767
+ timeTraveling: `into_future` | `into_past` | null;
768
+ history: TimelineUpdate<ManagedAtom>[];
769
+ selectorTime: number | null;
770
+ transactionKey: string | null;
771
+ install: (store: Store) => void;
772
+ subject: Subject<TimelineUpdate<ManagedAtom> | `redo` | `undo`>;
773
+ subscriptions: Map<string, () => void>;
774
+ };
775
+ //#endregion
776
+ //#region src/internal/store/store.d.ts
777
+ declare class Store implements Lineage {
778
+ parent: Store | null;
779
+ child: Store | null;
780
+ valueMap: Map<string, any>;
781
+ defaults: Map<string, any>;
782
+ atoms: Map<string, Atom<any>>;
783
+ selectors: Map<string, WritableSelector<any>>;
784
+ readonlySelectors: Map<string, ReadonlySelector<any>>;
785
+ atomsThatAreDefault: Set<string>;
786
+ selectorAtoms: Junction<`selectorKey`, string, `atomKey`, string>;
787
+ selectorGraph: Junction<`upstreamSelectorKey`, string, `downstreamSelectorKey`, string, {
788
+ source: string;
789
+ }>;
790
+ trackers: Map<string, Tracker<Transceiver<any>>>;
791
+ families: Map<string, MutableAtomFamily<any, any, any> | ReadonlySelectorFamily<any, any> | RegularAtomFamily<any, any> | WritableSelectorFamily<any, any>>;
792
+ joins: Map<string, Join<any, any, any, any, any, any>>;
793
+ transactions: Map<string, Transaction<Func>>;
794
+ transactionMeta: TransactionEpoch | TransactionProgress<Func>;
795
+ timelines: Map<string, Timeline<any>>;
796
+ timelineTopics: Junction<`timelineKey`, string, `topicKey`, string, {
797
+ topicType: `atom_family` | `atom` | `molecule_family` | `molecule`;
798
+ }>;
799
+ disposalTraces: CircularBuffer<{
800
+ key: string;
801
+ trace: string;
802
+ }>;
803
+ molecules: Map<string, Molecule<Canonical>>;
804
+ moleculeJoins: Junction<`moleculeKey`, stringified<Canonical>, `joinKey`, string>;
805
+ moleculeGraph: Junction<`upstreamMoleculeKey`, stringified<Canonical> | `root`, `downstreamMoleculeKey`, stringified<Canonical>, {
806
+ source: stringified<Canonical>;
807
+ }>;
808
+ moleculeData: Junction<`moleculeKey`, stringified<Canonical>, `stateFamilyKey`, string>;
809
+ miscResources: Map<string, Disposable>;
810
+ on: StoreEventCarrier;
811
+ operation: OperationProgress;
812
+ config: {
813
+ name: string;
814
+ lifespan: `ephemeral` | `immortal`;
815
+ };
816
+ loggers: AtomIOLogger[];
817
+ logger: Logger;
818
+ constructor(config: Store[`config`], store?: Store | null);
819
+ }
820
+ type StoreEventCarrier = {
821
+ atomCreation: Subject<AtomToken<unknown>>;
822
+ atomDisposal: Subject<AtomToken<unknown>>;
823
+ selectorCreation: Subject<ReadonlySelectorToken<unknown> | WritableSelectorToken<unknown>>;
824
+ selectorDisposal: Subject<ReadonlySelectorToken<unknown> | WritableSelectorToken<unknown>>;
825
+ timelineCreation: Subject<TimelineToken<unknown>>;
826
+ transactionCreation: Subject<TransactionToken<Func>>;
827
+ transactionApplying: StatefulSubject<TransactionProgress<Func> | null>;
828
+ operationClose: Subject<OperationProgress>;
829
+ moleculeCreation: Subject<MoleculeCreation>;
830
+ moleculeDisposal: Subject<MoleculeDisposal>;
831
+ };
832
+ declare global {
833
+ var ATOM_IO_IMPLICIT_STORE: Store | undefined;
834
+ }
835
+ //#endregion
836
+ //#region src/internal/mutable/transceiver.d.ts
837
+ interface Transceiver<S extends Json.Serializable> {
838
+ do: (update: S) => number | `OUT_OF_RANGE` | null;
839
+ undo: (update: S) => void;
840
+ subscribe: (key: string, fn: (update: S) => void) => () => void;
841
+ cacheUpdateNumber: number;
842
+ getUpdateNumber: (update: S) => number;
843
+ }
844
+ type TransceiverMode = `playback` | `record` | `transaction`;
845
+ //#endregion
846
+ //#region src/internal/mutable/tracker.d.ts
847
+ /**
848
+ * @internal Give the tracker a transceiver state and a store, and it will
849
+ * subscribe to the transceiver's inner value. When the inner value changes,
850
+ * the tracker will update its own state to reflect the change.
851
+ */
852
+ declare class Tracker<Mutable extends Transceiver<any>> {
853
+ private initializeState;
854
+ private unsubscribeFromInnerValue;
855
+ private unsubscribeFromState;
856
+ private observeCore;
857
+ private updateCore;
858
+ mutableState: MutableAtomToken<Mutable, Json.Serializable>;
859
+ latestUpdateState: RegularAtomToken<(Mutable extends Transceiver<infer Signal> ? Signal : never) | null>;
860
+ [Symbol.dispose]: () => void;
861
+ constructor(mutableState: MutableAtomToken<Mutable, Json.Serializable>, store: Store);
862
+ }
863
+
864
+ //#endregion
865
+ //#region src/internal/mutable/tracker-family.d.ts
866
+
867
+ //#endregion
868
+ //#region src/internal/future.d.ts
869
+ /**
870
+ * A Promise whose incoming value can be hot swapped.
871
+ * @internal
872
+ * @private
873
+ * @typeParam T The type of the value that the promise will resolve to.
874
+ *
875
+ * @remarks
876
+ * Can be constructed like a Promise, or from an existing Promise.
877
+ */
878
+ declare class Future<T> extends Promise<T> {
879
+ private fate;
880
+ private resolve;
881
+ private reject;
882
+ done: boolean;
883
+ constructor(executor: Promise<T> | ((resolve: (value: T) => void, reject: (reason?: any) => void) => void));
884
+ private pass;
885
+ private fail;
886
+ use(value: Promise<T> | T): void;
887
+ }
888
+
889
+ //#endregion
890
+ //#region src/internal/caching.d.ts
891
+
892
+ //#endregion
893
+ //#region src/internal/get-environment-data.d.ts
894
+ type EnvironmentData = {
895
+ store: Store;
896
+ };
897
+ //#endregion
898
+ //#region src/internal/index.d.ts
899
+ type AtomIOState = {
900
+ key: string;
901
+ family?: FamilyMetadata;
902
+ install: (store: Store) => void;
903
+ subject: Subject<{
904
+ newValue: any;
905
+ oldValue: any;
906
+ }>;
907
+ };
908
+ type RegularAtom<T> = AtomIOState & {
909
+ type: `atom`;
910
+ default: T | (() => T);
911
+ cleanup?: () => void;
912
+ };
913
+ type MutableAtom<T extends Transceiver<any>, J extends Json.Serializable> = AtomIOState & JsonInterface<T, J> & {
914
+ type: `mutable_atom`;
915
+ default: () => T;
916
+ cleanup?: () => void;
917
+ };
918
+ type Atom<T> = RegularAtom<T> | (T extends Transceiver<any> ? MutableAtom<T, any> : never);
919
+ type WritableSelector<T> = AtomIOState & {
920
+ type: `selector`;
921
+ get: () => T;
922
+ set: (newValue: T | ((oldValue: T) => T)) => void;
923
+ };
924
+ type ReadonlySelector<T> = AtomIOState & {
925
+ type: `readonly_selector`;
926
+ get: () => T;
927
+ };
928
+ type RegularAtomFamily<T, K extends Canonical> = RegularAtomFamilyToken<T, K> & {
929
+ (key: K): RegularAtomToken<T>;
930
+ subject: Subject<StateCreation<AtomToken<T>> | StateDisposal<AtomToken<T>>>;
931
+ install: (store: Store) => void;
932
+ internalRoles: string[] | undefined;
933
+ };
934
+ type MutableAtomFamily<T extends Transceiver<any>, J extends Json.Serializable, K extends Canonical> = JsonInterface<T, J> & MutableAtomFamilyToken<T, J, K> & {
935
+ (key: K): MutableAtomToken<T, J>;
936
+ subject: Subject<StateCreation<MutableAtomToken<T, J>> | StateDisposal<MutableAtomToken<T, J>>>;
937
+ install: (store: Store) => void;
938
+ internalRoles: string[] | undefined;
939
+ };
940
+ type WritableSelectorFamily<T, K extends Canonical> = WritableSelectorFamilyToken<T, K> & ((key: K) => WritableSelectorToken<T>) & {
941
+ default: (key: K) => T;
942
+ subject: Subject<StateCreation<WritableSelectorToken<T>> | StateDisposal<WritableSelectorToken<T>>>;
943
+ install: (store: Store) => void;
944
+ internalRoles: string[] | undefined;
945
+ };
946
+ type ReadonlySelectorFamily<T, K extends Canonical> = ReadonlySelectorFamilyToken<T, K> & ((key: K) => ReadonlySelectorToken<T>) & {
947
+ default: (key: K) => T;
948
+ subject: Subject<StateCreation<ReadonlySelectorToken<T>> | StateDisposal<ReadonlySelectorToken<T>>>;
949
+ install: (store: Store) => void;
950
+ internalRoles: string[] | undefined;
951
+ };
952
+
953
+ //#endregion
954
+ //#region ../atom.io/dist/realtime-server/index.d.ts
955
+ //#endregion
956
+ //#region src/realtime-server/ipc-sockets/custom-socket.d.ts
957
+ type Events = Json.Object<string, Json.Serializable[]>;
958
+ declare class CustomSocket<I extends Events, O extends Events> implements Socket {
959
+ protected listeners: Map<keyof O, Set<(...args: Json.Array) => void>>;
960
+ protected globalListeners: Set<(event: string, ...args: Json.Array) => void>;
961
+ protected handleEvent<Event extends keyof I>(event: string, ...args: I[Event]): void;
962
+ id: string;
963
+ emit: <Event extends keyof I>(event: Event, ...args: I[Event]) => CustomSocket<I, O>;
964
+ constructor(emit: <Event extends keyof I>(event: Event, ...args: I[Event]) => CustomSocket<I, O>);
965
+ on<Event extends keyof O>(event: Event, listener: (...args: O[Event]) => void): this;
966
+ onAny(listener: (event: string, ...args: Json.Array) => void): this;
967
+ off<Event extends keyof O>(event: Event, listener?: (...args: O[Event]) => void): this;
968
+ offAny(listener: (event: string, ...args: Json.Array) => void): this;
969
+ }
970
+
971
+ //#endregion
972
+ //#region src/realtime-server/ipc-sockets/child-socket.d.ts
973
+ declare class ChildSocket<I extends Events, O extends Events> extends CustomSocket<I, O> {
974
+ protected incompleteData: string;
975
+ protected unprocessedEvents: string[];
976
+ protected incompleteLog: string;
977
+ protected unprocessedLogs: string[];
978
+ id: string;
979
+ process: ChildProcessWithoutNullStreams;
980
+ key: string;
981
+ logger: Pick<Console, `error` | `info` | `warn`>;
982
+ protected handleLog(arg: Json.Serializable): void;
983
+ constructor(process: ChildProcessWithoutNullStreams, key: string, logger?: Pick<Console, `error` | `info` | `warn`>);
984
+ }
985
+
986
+ //#endregion
987
+ //#region src/realtime-server/ipc-sockets/parent-socket.d.ts
988
+
989
+ //#endregion
990
+ //#region src/realtime-server/index.d.ts
991
+ type Socket = {
992
+ id: string | undefined;
993
+ on: (event: string, listener: (...args: Json.Serializable[]) => void) => void;
994
+ onAny: (listener: (event: string, ...args: Json.Serializable[]) => void) => void;
995
+ off: (event: string, listener: (...args: Json.Serializable[]) => void) => void;
996
+ offAny: (listener: (event: string, ...args: Json.Serializable[]) => void) => void;
997
+ emit: (event: string, ...args: Json.Serializable[]) => void;
998
+ };
999
+
1000
+ //#endregion
1001
+ //#region ../safedeposit/dist/safedeposit.d.ts
1002
+ //#region src/filesystem-storage.d.ts
1003
+ type FilesystemStorageOptions = {
1004
+ path: string;
1005
+ eagerInit?: boolean;
1006
+ };
1007
+ declare class FilesystemStorage<T extends Record<string, string> = Record<string, string>> implements Storage {
1008
+ rootDir: string;
1009
+ get initialized(): boolean;
1010
+ initialize(): void;
1011
+ constructor(options: FilesystemStorageOptions);
1012
+ getItem<K extends string & keyof T>(key: K): T[K] | null;
1013
+ setItem<K extends string & keyof T>(key: K, value: T[K]): void;
1014
+ removeItem<K extends string & keyof T>(key: K): void;
1015
+ key(index: number): (string & keyof T) | null;
1016
+ clear(): void;
1017
+ get length(): number;
1018
+ }
1019
+
1020
+ //#endregion
9
1021
  //#region gen/lnav-format-schema.gen.d.ts
1022
+ //#endregion
10
1023
  declare const lnavFormatSchema: z.ZodObject<{
11
- regex: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
12
- pattern: z.ZodOptional<z.ZodString>;
13
- "module-format": z.ZodOptional<z.ZodBoolean>;
14
- }, "strict", z.ZodTypeAny, {
15
- pattern?: string | undefined;
16
- "module-format"?: boolean | undefined;
17
- }, {
18
- pattern?: string | undefined;
19
- "module-format"?: boolean | undefined;
20
- }>, z.ZodNever]>>, Record<string, {
21
- pattern?: string | undefined;
22
- "module-format"?: boolean | undefined;
23
- }>, Record<string, {
24
- pattern?: string | undefined;
25
- "module-format"?: boolean | undefined;
26
- }>>>;
27
- json: z.ZodOptional<z.ZodBoolean>;
28
- "convert-to-local-time": z.ZodOptional<z.ZodBoolean>;
29
- "hide-extra": z.ZodOptional<z.ZodBoolean>;
30
- multiline: z.ZodOptional<z.ZodBoolean>;
31
- "timestamp-divisor": z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNumber]>>;
32
- "file-pattern": z.ZodOptional<z.ZodString>;
33
- converter: z.ZodOptional<z.ZodObject<{
34
- type: z.ZodOptional<z.ZodString>;
35
- header: z.ZodOptional<z.ZodObject<{
36
- expr: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNever]>>, Record<string, string>, Record<string, string>>>;
37
- size: z.ZodOptional<z.ZodNumber>;
38
- }, "strict", z.ZodTypeAny, {
39
- expr?: Record<string, string> | undefined;
40
- size?: number | undefined;
41
- }, {
42
- expr?: Record<string, string> | undefined;
43
- size?: number | undefined;
44
- }>>;
45
- command: z.ZodOptional<z.ZodString>;
46
- }, "strict", z.ZodTypeAny, {
47
- type?: string | undefined;
48
- header?: {
49
- expr?: Record<string, string> | undefined;
50
- size?: number | undefined;
51
- } | undefined;
52
- command?: string | undefined;
53
- }, {
54
- type?: string | undefined;
55
- header?: {
56
- expr?: Record<string, string> | undefined;
57
- size?: number | undefined;
58
- } | undefined;
59
- command?: string | undefined;
60
- }>>;
61
- "level-field": z.ZodOptional<z.ZodString>;
62
- "level-pointer": z.ZodOptional<z.ZodString>;
63
- "timestamp-field": z.ZodOptional<z.ZodString>;
64
- "subsecond-field": z.ZodOptional<z.ZodString>;
65
- "subsecond-units": z.ZodOptional<z.ZodEnum<["milli", "micro", "nano"]>>;
66
- "time-field": z.ZodOptional<z.ZodString>;
67
- "body-field": z.ZodOptional<z.ZodString>;
68
- url: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>>;
69
- title: z.ZodOptional<z.ZodString>;
70
- description: z.ZodOptional<z.ZodString>;
71
- "timestamp-format": z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
72
- "module-field": z.ZodOptional<z.ZodString>;
73
- "opid-field": z.ZodOptional<z.ZodString>;
74
- opid: z.ZodOptional<z.ZodObject<{
75
- subid: z.ZodOptional<z.ZodString>;
76
- description: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
77
- format: z.ZodOptional<z.ZodArray<z.ZodObject<{
78
- field: z.ZodOptional<z.ZodString>;
79
- extractor: z.ZodOptional<z.ZodString>;
80
- prefix: z.ZodOptional<z.ZodString>;
81
- suffix: z.ZodOptional<z.ZodString>;
82
- joiner: z.ZodOptional<z.ZodString>;
83
- }, "strict", z.ZodTypeAny, {
84
- field?: string | undefined;
85
- extractor?: string | undefined;
86
- prefix?: string | undefined;
87
- suffix?: string | undefined;
88
- joiner?: string | undefined;
89
- }, {
90
- field?: string | undefined;
91
- extractor?: string | undefined;
92
- prefix?: string | undefined;
93
- suffix?: string | undefined;
94
- joiner?: string | undefined;
95
- }>, "many">>;
96
- }, "strict", z.ZodTypeAny, {
97
- format?: {
98
- field?: string | undefined;
99
- extractor?: string | undefined;
100
- prefix?: string | undefined;
101
- suffix?: string | undefined;
102
- joiner?: string | undefined;
103
- }[] | undefined;
104
- }, {
105
- format?: {
106
- field?: string | undefined;
107
- extractor?: string | undefined;
108
- prefix?: string | undefined;
109
- suffix?: string | undefined;
110
- joiner?: string | undefined;
111
- }[] | undefined;
112
- }>, z.ZodNever]>>, Record<string, {
113
- format?: {
114
- field?: string | undefined;
115
- extractor?: string | undefined;
116
- prefix?: string | undefined;
117
- suffix?: string | undefined;
118
- joiner?: string | undefined;
119
- }[] | undefined;
120
- }>, Record<string, {
121
- format?: {
122
- field?: string | undefined;
123
- extractor?: string | undefined;
124
- prefix?: string | undefined;
125
- suffix?: string | undefined;
126
- joiner?: string | undefined;
127
- }[] | undefined;
128
- }>>>;
129
- "sub-description": z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
130
- format: z.ZodOptional<z.ZodArray<z.ZodObject<{
131
- field: z.ZodOptional<z.ZodString>;
132
- extractor: z.ZodOptional<z.ZodString>;
133
- prefix: z.ZodOptional<z.ZodString>;
134
- suffix: z.ZodOptional<z.ZodString>;
135
- joiner: z.ZodOptional<z.ZodString>;
136
- }, "strict", z.ZodTypeAny, {
137
- field?: string | undefined;
138
- extractor?: string | undefined;
139
- prefix?: string | undefined;
140
- suffix?: string | undefined;
141
- joiner?: string | undefined;
142
- }, {
143
- field?: string | undefined;
144
- extractor?: string | undefined;
145
- prefix?: string | undefined;
146
- suffix?: string | undefined;
147
- joiner?: string | undefined;
148
- }>, "many">>;
149
- }, "strict", z.ZodTypeAny, {
150
- format?: {
151
- field?: string | undefined;
152
- extractor?: string | undefined;
153
- prefix?: string | undefined;
154
- suffix?: string | undefined;
155
- joiner?: string | undefined;
156
- }[] | undefined;
157
- }, {
158
- format?: {
159
- field?: string | undefined;
160
- extractor?: string | undefined;
161
- prefix?: string | undefined;
162
- suffix?: string | undefined;
163
- joiner?: string | undefined;
164
- }[] | undefined;
165
- }>, z.ZodNever]>>, Record<string, {
166
- format?: {
167
- field?: string | undefined;
168
- extractor?: string | undefined;
169
- prefix?: string | undefined;
170
- suffix?: string | undefined;
171
- joiner?: string | undefined;
172
- }[] | undefined;
173
- }>, Record<string, {
174
- format?: {
175
- field?: string | undefined;
176
- extractor?: string | undefined;
177
- prefix?: string | undefined;
178
- suffix?: string | undefined;
179
- joiner?: string | undefined;
180
- }[] | undefined;
181
- }>>>;
1024
+ regex: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
1025
+ pattern: z.ZodOptional<z.ZodString>;
1026
+ "module-format": z.ZodOptional<z.ZodBoolean>;
1027
+ }, "strict", z.ZodTypeAny, {
1028
+ pattern?: string | undefined;
1029
+ "module-format"?: boolean | undefined;
1030
+ }, {
1031
+ pattern?: string | undefined;
1032
+ "module-format"?: boolean | undefined;
1033
+ }>, z.ZodNever]>>, Record<string, {
1034
+ pattern?: string | undefined;
1035
+ "module-format"?: boolean | undefined;
1036
+ }>, Record<string, {
1037
+ pattern?: string | undefined;
1038
+ "module-format"?: boolean | undefined;
1039
+ }>>>;
1040
+ json: z.ZodOptional<z.ZodBoolean>;
1041
+ "convert-to-local-time": z.ZodOptional<z.ZodBoolean>;
1042
+ "hide-extra": z.ZodOptional<z.ZodBoolean>;
1043
+ multiline: z.ZodOptional<z.ZodBoolean>;
1044
+ "timestamp-divisor": z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNumber]>>;
1045
+ "file-pattern": z.ZodOptional<z.ZodString>;
1046
+ converter: z.ZodOptional<z.ZodObject<{
1047
+ type: z.ZodOptional<z.ZodString>;
1048
+ header: z.ZodOptional<z.ZodObject<{
1049
+ expr: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNever]>>, Record<string, string>, Record<string, string>>>;
1050
+ size: z.ZodOptional<z.ZodNumber>;
182
1051
  }, "strict", z.ZodTypeAny, {
183
- description?: Record<string, {
184
- format?: {
185
- field?: string | undefined;
186
- extractor?: string | undefined;
187
- prefix?: string | undefined;
188
- suffix?: string | undefined;
189
- joiner?: string | undefined;
190
- }[] | undefined;
191
- }> | undefined;
192
- subid?: string | undefined;
193
- "sub-description"?: Record<string, {
194
- format?: {
195
- field?: string | undefined;
196
- extractor?: string | undefined;
197
- prefix?: string | undefined;
198
- suffix?: string | undefined;
199
- joiner?: string | undefined;
200
- }[] | undefined;
201
- }> | undefined;
1052
+ expr?: Record<string, string> | undefined;
1053
+ size?: number | undefined;
202
1054
  }, {
203
- description?: Record<string, {
204
- format?: {
205
- field?: string | undefined;
206
- extractor?: string | undefined;
207
- prefix?: string | undefined;
208
- suffix?: string | undefined;
209
- joiner?: string | undefined;
210
- }[] | undefined;
211
- }> | undefined;
212
- subid?: string | undefined;
213
- "sub-description"?: Record<string, {
214
- format?: {
215
- field?: string | undefined;
216
- extractor?: string | undefined;
217
- prefix?: string | undefined;
218
- suffix?: string | undefined;
219
- joiner?: string | undefined;
220
- }[] | undefined;
221
- }> | undefined;
1055
+ expr?: Record<string, string> | undefined;
1056
+ size?: number | undefined;
222
1057
  }>>;
223
- "ordered-by-time": z.ZodOptional<z.ZodBoolean>;
224
- level: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodNumber, z.ZodString]>, z.ZodNever]>>, Record<string, string | number>, Record<string, string | number>>>;
225
- value: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
226
- kind: z.ZodOptional<z.ZodEnum<["string", "integer", "float", "boolean", "json", "struct", "quoted", "xml"]>>;
227
- collate: z.ZodOptional<z.ZodString>;
228
- unit: z.ZodOptional<z.ZodObject<{
229
- field: z.ZodOptional<z.ZodString>;
230
- "scaling-factor": z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
231
- op: z.ZodOptional<z.ZodEnum<["identity", "multiply", "divide"]>>;
232
- value: z.ZodOptional<z.ZodNumber>;
233
- }, "strict", z.ZodTypeAny, {
234
- value?: number | undefined;
235
- op?: "identity" | "multiply" | "divide" | undefined;
236
- }, {
237
- value?: number | undefined;
238
- op?: "identity" | "multiply" | "divide" | undefined;
239
- }>, z.ZodNever]>>, Record<string, {
240
- value?: number | undefined;
241
- op?: "identity" | "multiply" | "divide" | undefined;
242
- }>, Record<string, {
243
- value?: number | undefined;
244
- op?: "identity" | "multiply" | "divide" | undefined;
245
- }>>>;
246
- }, "strict", z.ZodTypeAny, {
247
- field?: string | undefined;
248
- "scaling-factor"?: Record<string, {
249
- value?: number | undefined;
250
- op?: "identity" | "multiply" | "divide" | undefined;
251
- }> | undefined;
252
- }, {
253
- field?: string | undefined;
254
- "scaling-factor"?: Record<string, {
255
- value?: number | undefined;
256
- op?: "identity" | "multiply" | "divide" | undefined;
257
- }> | undefined;
258
- }>>;
259
- identifier: z.ZodOptional<z.ZodBoolean>;
260
- "foreign-key": z.ZodOptional<z.ZodBoolean>;
261
- hidden: z.ZodOptional<z.ZodBoolean>;
262
- "action-list": z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
263
- rewriter: z.ZodOptional<z.ZodString>;
264
- description: z.ZodOptional<z.ZodString>;
265
- }, "strict", z.ZodTypeAny, {
266
- description?: string | undefined;
267
- kind?: "string" | "boolean" | "integer" | "float" | "json" | "struct" | "quoted" | "xml" | undefined;
268
- collate?: string | undefined;
269
- unit?: {
270
- field?: string | undefined;
271
- "scaling-factor"?: Record<string, {
272
- value?: number | undefined;
273
- op?: "identity" | "multiply" | "divide" | undefined;
274
- }> | undefined;
275
- } | undefined;
276
- identifier?: boolean | undefined;
277
- "foreign-key"?: boolean | undefined;
278
- hidden?: boolean | undefined;
279
- "action-list"?: string[] | undefined;
280
- rewriter?: string | undefined;
281
- }, {
282
- description?: string | undefined;
283
- kind?: "string" | "boolean" | "integer" | "float" | "json" | "struct" | "quoted" | "xml" | undefined;
284
- collate?: string | undefined;
285
- unit?: {
286
- field?: string | undefined;
287
- "scaling-factor"?: Record<string, {
288
- value?: number | undefined;
289
- op?: "identity" | "multiply" | "divide" | undefined;
290
- }> | undefined;
291
- } | undefined;
292
- identifier?: boolean | undefined;
293
- "foreign-key"?: boolean | undefined;
294
- hidden?: boolean | undefined;
295
- "action-list"?: string[] | undefined;
296
- rewriter?: string | undefined;
297
- }>, z.ZodNever]>>, Record<string, {
298
- description?: string | undefined;
299
- kind?: "string" | "boolean" | "integer" | "float" | "json" | "struct" | "quoted" | "xml" | undefined;
300
- collate?: string | undefined;
301
- unit?: {
302
- field?: string | undefined;
303
- "scaling-factor"?: Record<string, {
304
- value?: number | undefined;
305
- op?: "identity" | "multiply" | "divide" | undefined;
306
- }> | undefined;
307
- } | undefined;
308
- identifier?: boolean | undefined;
309
- "foreign-key"?: boolean | undefined;
310
- hidden?: boolean | undefined;
311
- "action-list"?: string[] | undefined;
312
- rewriter?: string | undefined;
313
- }>, Record<string, {
314
- description?: string | undefined;
315
- kind?: "string" | "boolean" | "integer" | "float" | "json" | "struct" | "quoted" | "xml" | undefined;
316
- collate?: string | undefined;
317
- unit?: {
318
- field?: string | undefined;
319
- "scaling-factor"?: Record<string, {
320
- value?: number | undefined;
321
- op?: "identity" | "multiply" | "divide" | undefined;
322
- }> | undefined;
323
- } | undefined;
324
- identifier?: boolean | undefined;
325
- "foreign-key"?: boolean | undefined;
326
- hidden?: boolean | undefined;
327
- "action-list"?: string[] | undefined;
328
- rewriter?: string | undefined;
329
- }>>>;
330
- tags: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
331
- paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
332
- glob: z.ZodOptional<z.ZodString>;
333
- }, "strict", z.ZodTypeAny, {
334
- glob?: string | undefined;
335
- }, {
336
- glob?: string | undefined;
337
- }>, "many">>;
338
- pattern: z.ZodOptional<z.ZodString>;
339
- description: z.ZodOptional<z.ZodString>;
340
- level: z.ZodOptional<z.ZodEnum<["trace", "debug5", "debug4", "debug3", "debug2", "debug", "info", "stats", "notice", "warning", "error", "critical", "fatal"]>>;
341
- }, "strict", z.ZodTypeAny, {
342
- level?: "info" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "debug" | "stats" | "notice" | "warning" | "error" | "critical" | "fatal" | undefined;
343
- pattern?: string | undefined;
344
- description?: string | undefined;
345
- paths?: {
346
- glob?: string | undefined;
347
- }[] | undefined;
348
- }, {
349
- level?: "info" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "debug" | "stats" | "notice" | "warning" | "error" | "critical" | "fatal" | undefined;
350
- pattern?: string | undefined;
351
- description?: string | undefined;
352
- paths?: {
353
- glob?: string | undefined;
354
- }[] | undefined;
355
- }>, z.ZodNever]>>, Record<string, {
356
- level?: "info" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "debug" | "stats" | "notice" | "warning" | "error" | "critical" | "fatal" | undefined;
357
- pattern?: string | undefined;
358
- description?: string | undefined;
359
- paths?: {
360
- glob?: string | undefined;
361
- }[] | undefined;
362
- }>, Record<string, {
363
- level?: "info" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "debug" | "stats" | "notice" | "warning" | "error" | "critical" | "fatal" | undefined;
364
- pattern?: string | undefined;
365
- description?: string | undefined;
366
- paths?: {
367
- glob?: string | undefined;
368
- }[] | undefined;
369
- }>>>;
370
- partitions: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
371
- paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
372
- glob: z.ZodOptional<z.ZodString>;
373
- }, "strict", z.ZodTypeAny, {
374
- glob?: string | undefined;
375
- }, {
376
- glob?: string | undefined;
377
- }>, "many">>;
378
- pattern: z.ZodOptional<z.ZodString>;
379
- description: z.ZodOptional<z.ZodString>;
380
- level: z.ZodOptional<z.ZodEnum<["trace", "debug5", "debug4", "debug3", "debug2", "debug", "info", "stats", "notice", "warning", "error", "critical", "fatal"]>>;
381
- }, "strict", z.ZodTypeAny, {
382
- level?: "info" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "debug" | "stats" | "notice" | "warning" | "error" | "critical" | "fatal" | undefined;
383
- pattern?: string | undefined;
384
- description?: string | undefined;
385
- paths?: {
386
- glob?: string | undefined;
387
- }[] | undefined;
388
- }, {
389
- level?: "info" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "debug" | "stats" | "notice" | "warning" | "error" | "critical" | "fatal" | undefined;
390
- pattern?: string | undefined;
391
- description?: string | undefined;
392
- paths?: {
393
- glob?: string | undefined;
394
- }[] | undefined;
395
- }>, z.ZodNever]>>, Record<string, {
396
- level?: "info" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "debug" | "stats" | "notice" | "warning" | "error" | "critical" | "fatal" | undefined;
397
- pattern?: string | undefined;
398
- description?: string | undefined;
399
- paths?: {
400
- glob?: string | undefined;
401
- }[] | undefined;
402
- }>, Record<string, {
403
- level?: "info" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "debug" | "stats" | "notice" | "warning" | "error" | "critical" | "fatal" | undefined;
404
- pattern?: string | undefined;
405
- description?: string | undefined;
406
- paths?: {
407
- glob?: string | undefined;
408
- }[] | undefined;
409
- }>>>;
410
- action: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
411
- label: z.ZodOptional<z.ZodString>;
412
- "capture-output": z.ZodOptional<z.ZodBoolean>;
413
- cmd: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
414
- }, "strict", z.ZodTypeAny, {
415
- label?: string | undefined;
416
- "capture-output"?: boolean | undefined;
417
- cmd?: string[] | undefined;
418
- }, {
419
- label?: string | undefined;
420
- "capture-output"?: boolean | undefined;
421
- cmd?: string[] | undefined;
422
- }>]>, z.ZodNever]>>, Record<string, string | {
423
- label?: string | undefined;
424
- "capture-output"?: boolean | undefined;
425
- cmd?: string[] | undefined;
426
- }>, Record<string, string | {
427
- label?: string | undefined;
428
- "capture-output"?: boolean | undefined;
429
- cmd?: string[] | undefined;
430
- }>>>;
431
- sample: z.ZodOptional<z.ZodArray<z.ZodObject<{
432
- description: z.ZodOptional<z.ZodString>;
433
- line: z.ZodOptional<z.ZodString>;
434
- level: z.ZodOptional<z.ZodEnum<["trace", "debug5", "debug4", "debug3", "debug2", "debug", "info", "stats", "notice", "warning", "error", "critical", "fatal"]>>;
435
- }, "strict", z.ZodTypeAny, {
436
- level?: "info" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "debug" | "stats" | "notice" | "warning" | "error" | "critical" | "fatal" | undefined;
437
- description?: string | undefined;
438
- line?: string | undefined;
439
- }, {
440
- level?: "info" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "debug" | "stats" | "notice" | "warning" | "error" | "critical" | "fatal" | undefined;
441
- description?: string | undefined;
442
- line?: string | undefined;
443
- }>, "many">>;
444
- "line-format": z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
1058
+ command: z.ZodOptional<z.ZodString>;
1059
+ }, "strict", z.ZodTypeAny, {
1060
+ type?: string | undefined;
1061
+ header?: {
1062
+ expr?: Record<string, string> | undefined;
1063
+ size?: number | undefined;
1064
+ } | undefined;
1065
+ command?: string | undefined;
1066
+ }, {
1067
+ type?: string | undefined;
1068
+ header?: {
1069
+ expr?: Record<string, string> | undefined;
1070
+ size?: number | undefined;
1071
+ } | undefined;
1072
+ command?: string | undefined;
1073
+ }>>;
1074
+ "level-field": z.ZodOptional<z.ZodString>;
1075
+ "level-pointer": z.ZodOptional<z.ZodString>;
1076
+ "timestamp-field": z.ZodOptional<z.ZodString>;
1077
+ "subsecond-field": z.ZodOptional<z.ZodString>;
1078
+ "subsecond-units": z.ZodOptional<z.ZodEnum<["milli", "micro", "nano"]>>;
1079
+ "time-field": z.ZodOptional<z.ZodString>;
1080
+ "body-field": z.ZodOptional<z.ZodString>;
1081
+ url: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>>;
1082
+ title: z.ZodOptional<z.ZodString>;
1083
+ description: z.ZodOptional<z.ZodString>;
1084
+ "timestamp-format": z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1085
+ "module-field": z.ZodOptional<z.ZodString>;
1086
+ "opid-field": z.ZodOptional<z.ZodString>;
1087
+ opid: z.ZodOptional<z.ZodObject<{
1088
+ subid: z.ZodOptional<z.ZodString>;
1089
+ description: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
1090
+ format: z.ZodOptional<z.ZodArray<z.ZodObject<{
445
1091
  field: z.ZodOptional<z.ZodString>;
446
- "default-value": z.ZodOptional<z.ZodString>;
447
- "timestamp-format": z.ZodOptional<z.ZodString>;
448
- "min-width": z.ZodOptional<z.ZodNumber>;
449
- "auto-width": z.ZodOptional<z.ZodBoolean>;
450
- "max-width": z.ZodOptional<z.ZodNumber>;
451
- align: z.ZodOptional<z.ZodEnum<["left", "right"]>>;
452
- overflow: z.ZodOptional<z.ZodEnum<["abbrev", "truncate", "dot-dot", "last-word"]>>;
453
- "text-transform": z.ZodOptional<z.ZodEnum<["none", "uppercase", "lowercase", "capitalize"]>>;
1092
+ extractor: z.ZodOptional<z.ZodString>;
454
1093
  prefix: z.ZodOptional<z.ZodString>;
455
1094
  suffix: z.ZodOptional<z.ZodString>;
456
- }, "strict", z.ZodTypeAny, {
457
- "timestamp-format"?: string | undefined;
1095
+ joiner: z.ZodOptional<z.ZodString>;
1096
+ }, "strict", z.ZodTypeAny, {
458
1097
  field?: string | undefined;
1098
+ extractor?: string | undefined;
459
1099
  prefix?: string | undefined;
460
1100
  suffix?: string | undefined;
461
- "default-value"?: string | undefined;
462
- "min-width"?: number | undefined;
463
- "auto-width"?: boolean | undefined;
464
- "max-width"?: number | undefined;
465
- align?: "left" | "right" | undefined;
466
- overflow?: "abbrev" | "truncate" | "dot-dot" | "last-word" | undefined;
467
- "text-transform"?: "none" | "uppercase" | "lowercase" | "capitalize" | undefined;
468
- }, {
469
- "timestamp-format"?: string | undefined;
1101
+ joiner?: string | undefined;
1102
+ }, {
470
1103
  field?: string | undefined;
1104
+ extractor?: string | undefined;
471
1105
  prefix?: string | undefined;
472
1106
  suffix?: string | undefined;
473
- "default-value"?: string | undefined;
474
- "min-width"?: number | undefined;
475
- "auto-width"?: boolean | undefined;
476
- "max-width"?: number | undefined;
477
- align?: "left" | "right" | undefined;
478
- overflow?: "abbrev" | "truncate" | "dot-dot" | "last-word" | undefined;
479
- "text-transform"?: "none" | "uppercase" | "lowercase" | "capitalize" | undefined;
480
- }>]>, "many">>;
481
- "search-table": z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
482
- pattern: z.ZodOptional<z.ZodString>;
483
- glob: z.ZodOptional<z.ZodString>;
484
- level: z.ZodOptional<z.ZodEnum<["trace", "debug5", "debug4", "debug3", "debug2", "debug", "info", "stats", "notice", "warning", "error", "critical", "fatal"]>>;
1107
+ joiner?: string | undefined;
1108
+ }>, "many">>;
485
1109
  }, "strict", z.ZodTypeAny, {
486
- level?: "info" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "debug" | "stats" | "notice" | "warning" | "error" | "critical" | "fatal" | undefined;
487
- pattern?: string | undefined;
488
- glob?: string | undefined;
1110
+ format?: {
1111
+ field?: string | undefined;
1112
+ extractor?: string | undefined;
1113
+ prefix?: string | undefined;
1114
+ suffix?: string | undefined;
1115
+ joiner?: string | undefined;
1116
+ }[] | undefined;
489
1117
  }, {
490
- level?: "info" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "debug" | "stats" | "notice" | "warning" | "error" | "critical" | "fatal" | undefined;
491
- pattern?: string | undefined;
492
- glob?: string | undefined;
1118
+ format?: {
1119
+ field?: string | undefined;
1120
+ extractor?: string | undefined;
1121
+ prefix?: string | undefined;
1122
+ suffix?: string | undefined;
1123
+ joiner?: string | undefined;
1124
+ }[] | undefined;
493
1125
  }>, z.ZodNever]>>, Record<string, {
494
- level?: "info" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "debug" | "stats" | "notice" | "warning" | "error" | "critical" | "fatal" | undefined;
495
- pattern?: string | undefined;
496
- glob?: string | undefined;
1126
+ format?: {
1127
+ field?: string | undefined;
1128
+ extractor?: string | undefined;
1129
+ prefix?: string | undefined;
1130
+ suffix?: string | undefined;
1131
+ joiner?: string | undefined;
1132
+ }[] | undefined;
497
1133
  }>, Record<string, {
498
- level?: "info" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "debug" | "stats" | "notice" | "warning" | "error" | "critical" | "fatal" | undefined;
499
- pattern?: string | undefined;
500
- glob?: string | undefined;
1134
+ format?: {
1135
+ field?: string | undefined;
1136
+ extractor?: string | undefined;
1137
+ prefix?: string | undefined;
1138
+ suffix?: string | undefined;
1139
+ joiner?: string | undefined;
1140
+ }[] | undefined;
501
1141
  }>>>;
502
- highlights: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
503
- pattern: z.ZodOptional<z.ZodString>;
504
- color: z.ZodOptional<z.ZodString>;
505
- "background-color": z.ZodOptional<z.ZodString>;
506
- underline: z.ZodOptional<z.ZodBoolean>;
507
- blink: z.ZodOptional<z.ZodBoolean>;
1142
+ "sub-description": z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
1143
+ format: z.ZodOptional<z.ZodArray<z.ZodObject<{
1144
+ field: z.ZodOptional<z.ZodString>;
1145
+ extractor: z.ZodOptional<z.ZodString>;
1146
+ prefix: z.ZodOptional<z.ZodString>;
1147
+ suffix: z.ZodOptional<z.ZodString>;
1148
+ joiner: z.ZodOptional<z.ZodString>;
1149
+ }, "strict", z.ZodTypeAny, {
1150
+ field?: string | undefined;
1151
+ extractor?: string | undefined;
1152
+ prefix?: string | undefined;
1153
+ suffix?: string | undefined;
1154
+ joiner?: string | undefined;
1155
+ }, {
1156
+ field?: string | undefined;
1157
+ extractor?: string | undefined;
1158
+ prefix?: string | undefined;
1159
+ suffix?: string | undefined;
1160
+ joiner?: string | undefined;
1161
+ }>, "many">>;
508
1162
  }, "strict", z.ZodTypeAny, {
509
- pattern?: string | undefined;
510
- color?: string | undefined;
511
- "background-color"?: string | undefined;
512
- underline?: boolean | undefined;
513
- blink?: boolean | undefined;
1163
+ format?: {
1164
+ field?: string | undefined;
1165
+ extractor?: string | undefined;
1166
+ prefix?: string | undefined;
1167
+ suffix?: string | undefined;
1168
+ joiner?: string | undefined;
1169
+ }[] | undefined;
514
1170
  }, {
515
- pattern?: string | undefined;
516
- color?: string | undefined;
517
- "background-color"?: string | undefined;
518
- underline?: boolean | undefined;
519
- blink?: boolean | undefined;
1171
+ format?: {
1172
+ field?: string | undefined;
1173
+ extractor?: string | undefined;
1174
+ prefix?: string | undefined;
1175
+ suffix?: string | undefined;
1176
+ joiner?: string | undefined;
1177
+ }[] | undefined;
520
1178
  }>, z.ZodNever]>>, Record<string, {
521
- pattern?: string | undefined;
522
- color?: string | undefined;
523
- "background-color"?: string | undefined;
524
- underline?: boolean | undefined;
525
- blink?: boolean | undefined;
1179
+ format?: {
1180
+ field?: string | undefined;
1181
+ extractor?: string | undefined;
1182
+ prefix?: string | undefined;
1183
+ suffix?: string | undefined;
1184
+ joiner?: string | undefined;
1185
+ }[] | undefined;
526
1186
  }>, Record<string, {
527
- pattern?: string | undefined;
528
- color?: string | undefined;
529
- "background-color"?: string | undefined;
530
- underline?: boolean | undefined;
531
- blink?: boolean | undefined;
1187
+ format?: {
1188
+ field?: string | undefined;
1189
+ extractor?: string | undefined;
1190
+ prefix?: string | undefined;
1191
+ suffix?: string | undefined;
1192
+ joiner?: string | undefined;
1193
+ }[] | undefined;
532
1194
  }>>>;
533
- "file-type": z.ZodOptional<z.ZodEnum<["text", "json", "csv"]>>;
534
- "max-unrecognized-lines": z.ZodOptional<z.ZodNumber>;
535
- }, "strict", z.ZodTypeAny, {
536
- level?: Record<string, string | number> | undefined;
537
- value?: Record<string, {
538
- description?: string | undefined;
539
- kind?: "string" | "boolean" | "integer" | "float" | "json" | "struct" | "quoted" | "xml" | undefined;
540
- collate?: string | undefined;
541
- unit?: {
542
- field?: string | undefined;
543
- "scaling-factor"?: Record<string, {
544
- value?: number | undefined;
545
- op?: "identity" | "multiply" | "divide" | undefined;
546
- }> | undefined;
547
- } | undefined;
548
- identifier?: boolean | undefined;
549
- "foreign-key"?: boolean | undefined;
550
- hidden?: boolean | undefined;
551
- "action-list"?: string[] | undefined;
552
- rewriter?: string | undefined;
1195
+ }, "strict", z.ZodTypeAny, {
1196
+ description?: Record<string, {
1197
+ format?: {
1198
+ field?: string | undefined;
1199
+ extractor?: string | undefined;
1200
+ prefix?: string | undefined;
1201
+ suffix?: string | undefined;
1202
+ joiner?: string | undefined;
1203
+ }[] | undefined;
553
1204
  }> | undefined;
554
- regex?: Record<string, {
555
- pattern?: string | undefined;
556
- "module-format"?: boolean | undefined;
1205
+ subid?: string | undefined;
1206
+ "sub-description"?: Record<string, {
1207
+ format?: {
1208
+ field?: string | undefined;
1209
+ extractor?: string | undefined;
1210
+ prefix?: string | undefined;
1211
+ suffix?: string | undefined;
1212
+ joiner?: string | undefined;
1213
+ }[] | undefined;
557
1214
  }> | undefined;
558
- json?: boolean | undefined;
559
- "convert-to-local-time"?: boolean | undefined;
560
- "hide-extra"?: boolean | undefined;
561
- multiline?: boolean | undefined;
562
- "timestamp-divisor"?: number | undefined;
563
- "file-pattern"?: string | undefined;
564
- converter?: {
565
- type?: string | undefined;
566
- header?: {
567
- expr?: Record<string, string> | undefined;
568
- size?: number | undefined;
569
- } | undefined;
570
- command?: string | undefined;
1215
+ }, {
1216
+ description?: Record<string, {
1217
+ format?: {
1218
+ field?: string | undefined;
1219
+ extractor?: string | undefined;
1220
+ prefix?: string | undefined;
1221
+ suffix?: string | undefined;
1222
+ joiner?: string | undefined;
1223
+ }[] | undefined;
1224
+ }> | undefined;
1225
+ subid?: string | undefined;
1226
+ "sub-description"?: Record<string, {
1227
+ format?: {
1228
+ field?: string | undefined;
1229
+ extractor?: string | undefined;
1230
+ prefix?: string | undefined;
1231
+ suffix?: string | undefined;
1232
+ joiner?: string | undefined;
1233
+ }[] | undefined;
1234
+ }> | undefined;
1235
+ }>>;
1236
+ "ordered-by-time": z.ZodOptional<z.ZodBoolean>;
1237
+ level: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodNumber, z.ZodString]>, z.ZodNever]>>, Record<string, string | number>, Record<string, string | number>>>;
1238
+ value: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
1239
+ kind: z.ZodOptional<z.ZodEnum<["string", "integer", "float", "boolean", "json", "struct", "quoted", "xml"]>>;
1240
+ collate: z.ZodOptional<z.ZodString>;
1241
+ unit: z.ZodOptional<z.ZodObject<{
1242
+ field: z.ZodOptional<z.ZodString>;
1243
+ "scaling-factor": z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
1244
+ op: z.ZodOptional<z.ZodEnum<["identity", "multiply", "divide"]>>;
1245
+ value: z.ZodOptional<z.ZodNumber>;
1246
+ }, "strict", z.ZodTypeAny, {
1247
+ value?: number | undefined;
1248
+ op?: "identity" | "multiply" | "divide" | undefined;
1249
+ }, {
1250
+ value?: number | undefined;
1251
+ op?: "identity" | "multiply" | "divide" | undefined;
1252
+ }>, z.ZodNever]>>, Record<string, {
1253
+ value?: number | undefined;
1254
+ op?: "identity" | "multiply" | "divide" | undefined;
1255
+ }>, Record<string, {
1256
+ value?: number | undefined;
1257
+ op?: "identity" | "multiply" | "divide" | undefined;
1258
+ }>>>;
1259
+ }, "strict", z.ZodTypeAny, {
1260
+ field?: string | undefined;
1261
+ "scaling-factor"?: Record<string, {
1262
+ value?: number | undefined;
1263
+ op?: "identity" | "multiply" | "divide" | undefined;
1264
+ }> | undefined;
1265
+ }, {
1266
+ field?: string | undefined;
1267
+ "scaling-factor"?: Record<string, {
1268
+ value?: number | undefined;
1269
+ op?: "identity" | "multiply" | "divide" | undefined;
1270
+ }> | undefined;
1271
+ }>>;
1272
+ identifier: z.ZodOptional<z.ZodBoolean>;
1273
+ "foreign-key": z.ZodOptional<z.ZodBoolean>;
1274
+ hidden: z.ZodOptional<z.ZodBoolean>;
1275
+ "action-list": z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1276
+ rewriter: z.ZodOptional<z.ZodString>;
1277
+ description: z.ZodOptional<z.ZodString>;
1278
+ }, "strict", z.ZodTypeAny, {
1279
+ description?: string | undefined;
1280
+ kind?: "string" | "boolean" | "integer" | "float" | "json" | "struct" | "quoted" | "xml" | undefined;
1281
+ collate?: string | undefined;
1282
+ unit?: {
1283
+ field?: string | undefined;
1284
+ "scaling-factor"?: Record<string, {
1285
+ value?: number | undefined;
1286
+ op?: "identity" | "multiply" | "divide" | undefined;
1287
+ }> | undefined;
571
1288
  } | undefined;
572
- "level-field"?: string | undefined;
573
- "level-pointer"?: string | undefined;
574
- "timestamp-field"?: string | undefined;
575
- "subsecond-field"?: string | undefined;
576
- "subsecond-units"?: "milli" | "micro" | "nano" | undefined;
577
- "time-field"?: string | undefined;
578
- "body-field"?: string | undefined;
579
- url?: string | string[] | undefined;
580
- title?: string | undefined;
1289
+ identifier?: boolean | undefined;
1290
+ "foreign-key"?: boolean | undefined;
1291
+ hidden?: boolean | undefined;
1292
+ "action-list"?: string[] | undefined;
1293
+ rewriter?: string | undefined;
1294
+ }, {
581
1295
  description?: string | undefined;
582
- "timestamp-format"?: string[] | undefined;
583
- "module-field"?: string | undefined;
584
- "opid-field"?: string | undefined;
585
- opid?: {
586
- description?: Record<string, {
587
- format?: {
588
- field?: string | undefined;
589
- extractor?: string | undefined;
590
- prefix?: string | undefined;
591
- suffix?: string | undefined;
592
- joiner?: string | undefined;
593
- }[] | undefined;
594
- }> | undefined;
595
- subid?: string | undefined;
596
- "sub-description"?: Record<string, {
597
- format?: {
598
- field?: string | undefined;
599
- extractor?: string | undefined;
600
- prefix?: string | undefined;
601
- suffix?: string | undefined;
602
- joiner?: string | undefined;
603
- }[] | undefined;
604
- }> | undefined;
1296
+ kind?: "string" | "boolean" | "integer" | "float" | "json" | "struct" | "quoted" | "xml" | undefined;
1297
+ collate?: string | undefined;
1298
+ unit?: {
1299
+ field?: string | undefined;
1300
+ "scaling-factor"?: Record<string, {
1301
+ value?: number | undefined;
1302
+ op?: "identity" | "multiply" | "divide" | undefined;
1303
+ }> | undefined;
605
1304
  } | undefined;
606
- "ordered-by-time"?: boolean | undefined;
607
- tags?: Record<string, {
608
- level?: "info" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "debug" | "stats" | "notice" | "warning" | "error" | "critical" | "fatal" | undefined;
609
- pattern?: string | undefined;
610
- description?: string | undefined;
611
- paths?: {
612
- glob?: string | undefined;
613
- }[] | undefined;
614
- }> | undefined;
615
- partitions?: Record<string, {
616
- level?: "info" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "debug" | "stats" | "notice" | "warning" | "error" | "critical" | "fatal" | undefined;
617
- pattern?: string | undefined;
618
- description?: string | undefined;
619
- paths?: {
620
- glob?: string | undefined;
621
- }[] | undefined;
622
- }> | undefined;
623
- action?: Record<string, string | {
624
- label?: string | undefined;
625
- "capture-output"?: boolean | undefined;
626
- cmd?: string[] | undefined;
627
- }> | undefined;
628
- sample?: {
629
- level?: "info" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "debug" | "stats" | "notice" | "warning" | "error" | "critical" | "fatal" | undefined;
630
- description?: string | undefined;
631
- line?: string | undefined;
1305
+ identifier?: boolean | undefined;
1306
+ "foreign-key"?: boolean | undefined;
1307
+ hidden?: boolean | undefined;
1308
+ "action-list"?: string[] | undefined;
1309
+ rewriter?: string | undefined;
1310
+ }>, z.ZodNever]>>, Record<string, {
1311
+ description?: string | undefined;
1312
+ kind?: "string" | "boolean" | "integer" | "float" | "json" | "struct" | "quoted" | "xml" | undefined;
1313
+ collate?: string | undefined;
1314
+ unit?: {
1315
+ field?: string | undefined;
1316
+ "scaling-factor"?: Record<string, {
1317
+ value?: number | undefined;
1318
+ op?: "identity" | "multiply" | "divide" | undefined;
1319
+ }> | undefined;
1320
+ } | undefined;
1321
+ identifier?: boolean | undefined;
1322
+ "foreign-key"?: boolean | undefined;
1323
+ hidden?: boolean | undefined;
1324
+ "action-list"?: string[] | undefined;
1325
+ rewriter?: string | undefined;
1326
+ }>, Record<string, {
1327
+ description?: string | undefined;
1328
+ kind?: "string" | "boolean" | "integer" | "float" | "json" | "struct" | "quoted" | "xml" | undefined;
1329
+ collate?: string | undefined;
1330
+ unit?: {
1331
+ field?: string | undefined;
1332
+ "scaling-factor"?: Record<string, {
1333
+ value?: number | undefined;
1334
+ op?: "identity" | "multiply" | "divide" | undefined;
1335
+ }> | undefined;
1336
+ } | undefined;
1337
+ identifier?: boolean | undefined;
1338
+ "foreign-key"?: boolean | undefined;
1339
+ hidden?: boolean | undefined;
1340
+ "action-list"?: string[] | undefined;
1341
+ rewriter?: string | undefined;
1342
+ }>>>;
1343
+ tags: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
1344
+ paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
1345
+ glob: z.ZodOptional<z.ZodString>;
1346
+ }, "strict", z.ZodTypeAny, {
1347
+ glob?: string | undefined;
1348
+ }, {
1349
+ glob?: string | undefined;
1350
+ }>, "many">>;
1351
+ pattern: z.ZodOptional<z.ZodString>;
1352
+ description: z.ZodOptional<z.ZodString>;
1353
+ level: z.ZodOptional<z.ZodEnum<["trace", "debug5", "debug4", "debug3", "debug2", "debug", "info", "stats", "notice", "warning", "error", "critical", "fatal"]>>;
1354
+ }, "strict", z.ZodTypeAny, {
1355
+ level?: "info" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "debug" | "stats" | "notice" | "warning" | "error" | "critical" | "fatal" | undefined;
1356
+ pattern?: string | undefined;
1357
+ description?: string | undefined;
1358
+ paths?: {
1359
+ glob?: string | undefined;
1360
+ }[] | undefined;
1361
+ }, {
1362
+ level?: "info" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "debug" | "stats" | "notice" | "warning" | "error" | "critical" | "fatal" | undefined;
1363
+ pattern?: string | undefined;
1364
+ description?: string | undefined;
1365
+ paths?: {
1366
+ glob?: string | undefined;
632
1367
  }[] | undefined;
633
- "line-format"?: (string | {
634
- "timestamp-format"?: string | undefined;
1368
+ }>, z.ZodNever]>>, Record<string, {
1369
+ level?: "info" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "debug" | "stats" | "notice" | "warning" | "error" | "critical" | "fatal" | undefined;
1370
+ pattern?: string | undefined;
1371
+ description?: string | undefined;
1372
+ paths?: {
1373
+ glob?: string | undefined;
1374
+ }[] | undefined;
1375
+ }>, Record<string, {
1376
+ level?: "info" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "debug" | "stats" | "notice" | "warning" | "error" | "critical" | "fatal" | undefined;
1377
+ pattern?: string | undefined;
1378
+ description?: string | undefined;
1379
+ paths?: {
1380
+ glob?: string | undefined;
1381
+ }[] | undefined;
1382
+ }>>>;
1383
+ partitions: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
1384
+ paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
1385
+ glob: z.ZodOptional<z.ZodString>;
1386
+ }, "strict", z.ZodTypeAny, {
1387
+ glob?: string | undefined;
1388
+ }, {
1389
+ glob?: string | undefined;
1390
+ }>, "many">>;
1391
+ pattern: z.ZodOptional<z.ZodString>;
1392
+ description: z.ZodOptional<z.ZodString>;
1393
+ level: z.ZodOptional<z.ZodEnum<["trace", "debug5", "debug4", "debug3", "debug2", "debug", "info", "stats", "notice", "warning", "error", "critical", "fatal"]>>;
1394
+ }, "strict", z.ZodTypeAny, {
1395
+ level?: "info" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "debug" | "stats" | "notice" | "warning" | "error" | "critical" | "fatal" | undefined;
1396
+ pattern?: string | undefined;
1397
+ description?: string | undefined;
1398
+ paths?: {
1399
+ glob?: string | undefined;
1400
+ }[] | undefined;
1401
+ }, {
1402
+ level?: "info" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "debug" | "stats" | "notice" | "warning" | "error" | "critical" | "fatal" | undefined;
1403
+ pattern?: string | undefined;
1404
+ description?: string | undefined;
1405
+ paths?: {
1406
+ glob?: string | undefined;
1407
+ }[] | undefined;
1408
+ }>, z.ZodNever]>>, Record<string, {
1409
+ level?: "info" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "debug" | "stats" | "notice" | "warning" | "error" | "critical" | "fatal" | undefined;
1410
+ pattern?: string | undefined;
1411
+ description?: string | undefined;
1412
+ paths?: {
1413
+ glob?: string | undefined;
1414
+ }[] | undefined;
1415
+ }>, Record<string, {
1416
+ level?: "info" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "debug" | "stats" | "notice" | "warning" | "error" | "critical" | "fatal" | undefined;
1417
+ pattern?: string | undefined;
1418
+ description?: string | undefined;
1419
+ paths?: {
1420
+ glob?: string | undefined;
1421
+ }[] | undefined;
1422
+ }>>>;
1423
+ action: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
1424
+ label: z.ZodOptional<z.ZodString>;
1425
+ "capture-output": z.ZodOptional<z.ZodBoolean>;
1426
+ cmd: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1427
+ }, "strict", z.ZodTypeAny, {
1428
+ label?: string | undefined;
1429
+ "capture-output"?: boolean | undefined;
1430
+ cmd?: string[] | undefined;
1431
+ }, {
1432
+ label?: string | undefined;
1433
+ "capture-output"?: boolean | undefined;
1434
+ cmd?: string[] | undefined;
1435
+ }>]>, z.ZodNever]>>, Record<string, string | {
1436
+ label?: string | undefined;
1437
+ "capture-output"?: boolean | undefined;
1438
+ cmd?: string[] | undefined;
1439
+ }>, Record<string, string | {
1440
+ label?: string | undefined;
1441
+ "capture-output"?: boolean | undefined;
1442
+ cmd?: string[] | undefined;
1443
+ }>>>;
1444
+ sample: z.ZodOptional<z.ZodArray<z.ZodObject<{
1445
+ description: z.ZodOptional<z.ZodString>;
1446
+ line: z.ZodOptional<z.ZodString>;
1447
+ level: z.ZodOptional<z.ZodEnum<["trace", "debug5", "debug4", "debug3", "debug2", "debug", "info", "stats", "notice", "warning", "error", "critical", "fatal"]>>;
1448
+ }, "strict", z.ZodTypeAny, {
1449
+ level?: "info" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "debug" | "stats" | "notice" | "warning" | "error" | "critical" | "fatal" | undefined;
1450
+ description?: string | undefined;
1451
+ line?: string | undefined;
1452
+ }, {
1453
+ level?: "info" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "debug" | "stats" | "notice" | "warning" | "error" | "critical" | "fatal" | undefined;
1454
+ description?: string | undefined;
1455
+ line?: string | undefined;
1456
+ }>, "many">>;
1457
+ "line-format": z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
1458
+ field: z.ZodOptional<z.ZodString>;
1459
+ "default-value": z.ZodOptional<z.ZodString>;
1460
+ "timestamp-format": z.ZodOptional<z.ZodString>;
1461
+ "min-width": z.ZodOptional<z.ZodNumber>;
1462
+ "auto-width": z.ZodOptional<z.ZodBoolean>;
1463
+ "max-width": z.ZodOptional<z.ZodNumber>;
1464
+ align: z.ZodOptional<z.ZodEnum<["left", "right"]>>;
1465
+ overflow: z.ZodOptional<z.ZodEnum<["abbrev", "truncate", "dot-dot", "last-word"]>>;
1466
+ "text-transform": z.ZodOptional<z.ZodEnum<["none", "uppercase", "lowercase", "capitalize"]>>;
1467
+ prefix: z.ZodOptional<z.ZodString>;
1468
+ suffix: z.ZodOptional<z.ZodString>;
1469
+ }, "strict", z.ZodTypeAny, {
1470
+ "timestamp-format"?: string | undefined;
1471
+ field?: string | undefined;
1472
+ prefix?: string | undefined;
1473
+ suffix?: string | undefined;
1474
+ "default-value"?: string | undefined;
1475
+ "min-width"?: number | undefined;
1476
+ "auto-width"?: boolean | undefined;
1477
+ "max-width"?: number | undefined;
1478
+ align?: "left" | "right" | undefined;
1479
+ overflow?: "abbrev" | "truncate" | "dot-dot" | "last-word" | undefined;
1480
+ "text-transform"?: "none" | "uppercase" | "lowercase" | "capitalize" | undefined;
1481
+ }, {
1482
+ "timestamp-format"?: string | undefined;
1483
+ field?: string | undefined;
1484
+ prefix?: string | undefined;
1485
+ suffix?: string | undefined;
1486
+ "default-value"?: string | undefined;
1487
+ "min-width"?: number | undefined;
1488
+ "auto-width"?: boolean | undefined;
1489
+ "max-width"?: number | undefined;
1490
+ align?: "left" | "right" | undefined;
1491
+ overflow?: "abbrev" | "truncate" | "dot-dot" | "last-word" | undefined;
1492
+ "text-transform"?: "none" | "uppercase" | "lowercase" | "capitalize" | undefined;
1493
+ }>]>, "many">>;
1494
+ "search-table": z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
1495
+ pattern: z.ZodOptional<z.ZodString>;
1496
+ glob: z.ZodOptional<z.ZodString>;
1497
+ level: z.ZodOptional<z.ZodEnum<["trace", "debug5", "debug4", "debug3", "debug2", "debug", "info", "stats", "notice", "warning", "error", "critical", "fatal"]>>;
1498
+ }, "strict", z.ZodTypeAny, {
1499
+ level?: "info" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "debug" | "stats" | "notice" | "warning" | "error" | "critical" | "fatal" | undefined;
1500
+ pattern?: string | undefined;
1501
+ glob?: string | undefined;
1502
+ }, {
1503
+ level?: "info" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "debug" | "stats" | "notice" | "warning" | "error" | "critical" | "fatal" | undefined;
1504
+ pattern?: string | undefined;
1505
+ glob?: string | undefined;
1506
+ }>, z.ZodNever]>>, Record<string, {
1507
+ level?: "info" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "debug" | "stats" | "notice" | "warning" | "error" | "critical" | "fatal" | undefined;
1508
+ pattern?: string | undefined;
1509
+ glob?: string | undefined;
1510
+ }>, Record<string, {
1511
+ level?: "info" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "debug" | "stats" | "notice" | "warning" | "error" | "critical" | "fatal" | undefined;
1512
+ pattern?: string | undefined;
1513
+ glob?: string | undefined;
1514
+ }>>>;
1515
+ highlights: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
1516
+ pattern: z.ZodOptional<z.ZodString>;
1517
+ color: z.ZodOptional<z.ZodString>;
1518
+ "background-color": z.ZodOptional<z.ZodString>;
1519
+ underline: z.ZodOptional<z.ZodBoolean>;
1520
+ blink: z.ZodOptional<z.ZodBoolean>;
1521
+ }, "strict", z.ZodTypeAny, {
1522
+ pattern?: string | undefined;
1523
+ color?: string | undefined;
1524
+ "background-color"?: string | undefined;
1525
+ underline?: boolean | undefined;
1526
+ blink?: boolean | undefined;
1527
+ }, {
1528
+ pattern?: string | undefined;
1529
+ color?: string | undefined;
1530
+ "background-color"?: string | undefined;
1531
+ underline?: boolean | undefined;
1532
+ blink?: boolean | undefined;
1533
+ }>, z.ZodNever]>>, Record<string, {
1534
+ pattern?: string | undefined;
1535
+ color?: string | undefined;
1536
+ "background-color"?: string | undefined;
1537
+ underline?: boolean | undefined;
1538
+ blink?: boolean | undefined;
1539
+ }>, Record<string, {
1540
+ pattern?: string | undefined;
1541
+ color?: string | undefined;
1542
+ "background-color"?: string | undefined;
1543
+ underline?: boolean | undefined;
1544
+ blink?: boolean | undefined;
1545
+ }>>>;
1546
+ "file-type": z.ZodOptional<z.ZodEnum<["text", "json", "csv"]>>;
1547
+ "max-unrecognized-lines": z.ZodOptional<z.ZodNumber>;
1548
+ }, "strict", z.ZodTypeAny, {
1549
+ level?: Record<string, string | number> | undefined;
1550
+ value?: Record<string, {
1551
+ description?: string | undefined;
1552
+ kind?: "string" | "boolean" | "integer" | "float" | "json" | "struct" | "quoted" | "xml" | undefined;
1553
+ collate?: string | undefined;
1554
+ unit?: {
1555
+ field?: string | undefined;
1556
+ "scaling-factor"?: Record<string, {
1557
+ value?: number | undefined;
1558
+ op?: "identity" | "multiply" | "divide" | undefined;
1559
+ }> | undefined;
1560
+ } | undefined;
1561
+ identifier?: boolean | undefined;
1562
+ "foreign-key"?: boolean | undefined;
1563
+ hidden?: boolean | undefined;
1564
+ "action-list"?: string[] | undefined;
1565
+ rewriter?: string | undefined;
1566
+ }> | undefined;
1567
+ regex?: Record<string, {
1568
+ pattern?: string | undefined;
1569
+ "module-format"?: boolean | undefined;
1570
+ }> | undefined;
1571
+ json?: boolean | undefined;
1572
+ "convert-to-local-time"?: boolean | undefined;
1573
+ "hide-extra"?: boolean | undefined;
1574
+ multiline?: boolean | undefined;
1575
+ "timestamp-divisor"?: number | undefined;
1576
+ "file-pattern"?: string | undefined;
1577
+ converter?: {
1578
+ type?: string | undefined;
1579
+ header?: {
1580
+ expr?: Record<string, string> | undefined;
1581
+ size?: number | undefined;
1582
+ } | undefined;
1583
+ command?: string | undefined;
1584
+ } | undefined;
1585
+ "level-field"?: string | undefined;
1586
+ "level-pointer"?: string | undefined;
1587
+ "timestamp-field"?: string | undefined;
1588
+ "subsecond-field"?: string | undefined;
1589
+ "subsecond-units"?: "milli" | "micro" | "nano" | undefined;
1590
+ "time-field"?: string | undefined;
1591
+ "body-field"?: string | undefined;
1592
+ url?: string | string[] | undefined;
1593
+ title?: string | undefined;
1594
+ description?: string | undefined;
1595
+ "timestamp-format"?: string[] | undefined;
1596
+ "module-field"?: string | undefined;
1597
+ "opid-field"?: string | undefined;
1598
+ opid?: {
1599
+ description?: Record<string, {
1600
+ format?: {
635
1601
  field?: string | undefined;
1602
+ extractor?: string | undefined;
636
1603
  prefix?: string | undefined;
637
1604
  suffix?: string | undefined;
638
- "default-value"?: string | undefined;
639
- "min-width"?: number | undefined;
640
- "auto-width"?: boolean | undefined;
641
- "max-width"?: number | undefined;
642
- align?: "left" | "right" | undefined;
643
- overflow?: "abbrev" | "truncate" | "dot-dot" | "last-word" | undefined;
644
- "text-transform"?: "none" | "uppercase" | "lowercase" | "capitalize" | undefined;
645
- })[] | undefined;
646
- "search-table"?: Record<string, {
647
- level?: "info" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "debug" | "stats" | "notice" | "warning" | "error" | "critical" | "fatal" | undefined;
648
- pattern?: string | undefined;
649
- glob?: string | undefined;
1605
+ joiner?: string | undefined;
1606
+ }[] | undefined;
650
1607
  }> | undefined;
651
- highlights?: Record<string, {
652
- pattern?: string | undefined;
653
- color?: string | undefined;
654
- "background-color"?: string | undefined;
655
- underline?: boolean | undefined;
656
- blink?: boolean | undefined;
1608
+ subid?: string | undefined;
1609
+ "sub-description"?: Record<string, {
1610
+ format?: {
1611
+ field?: string | undefined;
1612
+ extractor?: string | undefined;
1613
+ prefix?: string | undefined;
1614
+ suffix?: string | undefined;
1615
+ joiner?: string | undefined;
1616
+ }[] | undefined;
657
1617
  }> | undefined;
658
- "file-type"?: "json" | "text" | "csv" | undefined;
659
- "max-unrecognized-lines"?: number | undefined;
1618
+ } | undefined;
1619
+ "ordered-by-time"?: boolean | undefined;
1620
+ tags?: Record<string, {
1621
+ level?: "info" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "debug" | "stats" | "notice" | "warning" | "error" | "critical" | "fatal" | undefined;
1622
+ pattern?: string | undefined;
1623
+ description?: string | undefined;
1624
+ paths?: {
1625
+ glob?: string | undefined;
1626
+ }[] | undefined;
1627
+ }> | undefined;
1628
+ partitions?: Record<string, {
1629
+ level?: "info" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "debug" | "stats" | "notice" | "warning" | "error" | "critical" | "fatal" | undefined;
1630
+ pattern?: string | undefined;
1631
+ description?: string | undefined;
1632
+ paths?: {
1633
+ glob?: string | undefined;
1634
+ }[] | undefined;
1635
+ }> | undefined;
1636
+ action?: Record<string, string | {
1637
+ label?: string | undefined;
1638
+ "capture-output"?: boolean | undefined;
1639
+ cmd?: string[] | undefined;
1640
+ }> | undefined;
1641
+ sample?: {
1642
+ level?: "info" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "debug" | "stats" | "notice" | "warning" | "error" | "critical" | "fatal" | undefined;
1643
+ description?: string | undefined;
1644
+ line?: string | undefined;
1645
+ }[] | undefined;
1646
+ "line-format"?: (string | {
1647
+ "timestamp-format"?: string | undefined;
1648
+ field?: string | undefined;
1649
+ prefix?: string | undefined;
1650
+ suffix?: string | undefined;
1651
+ "default-value"?: string | undefined;
1652
+ "min-width"?: number | undefined;
1653
+ "auto-width"?: boolean | undefined;
1654
+ "max-width"?: number | undefined;
1655
+ align?: "left" | "right" | undefined;
1656
+ overflow?: "abbrev" | "truncate" | "dot-dot" | "last-word" | undefined;
1657
+ "text-transform"?: "none" | "uppercase" | "lowercase" | "capitalize" | undefined;
1658
+ })[] | undefined;
1659
+ "search-table"?: Record<string, {
1660
+ level?: "info" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "debug" | "stats" | "notice" | "warning" | "error" | "critical" | "fatal" | undefined;
1661
+ pattern?: string | undefined;
1662
+ glob?: string | undefined;
1663
+ }> | undefined;
1664
+ highlights?: Record<string, {
1665
+ pattern?: string | undefined;
1666
+ color?: string | undefined;
1667
+ "background-color"?: string | undefined;
1668
+ underline?: boolean | undefined;
1669
+ blink?: boolean | undefined;
1670
+ }> | undefined;
1671
+ "file-type"?: "json" | "text" | "csv" | undefined;
1672
+ "max-unrecognized-lines"?: number | undefined;
660
1673
  }, {
661
- level?: Record<string, string | number> | undefined;
662
- value?: Record<string, {
663
- description?: string | undefined;
664
- kind?: "string" | "boolean" | "integer" | "float" | "json" | "struct" | "quoted" | "xml" | undefined;
665
- collate?: string | undefined;
666
- unit?: {
667
- field?: string | undefined;
668
- "scaling-factor"?: Record<string, {
669
- value?: number | undefined;
670
- op?: "identity" | "multiply" | "divide" | undefined;
671
- }> | undefined;
672
- } | undefined;
673
- identifier?: boolean | undefined;
674
- "foreign-key"?: boolean | undefined;
675
- hidden?: boolean | undefined;
676
- "action-list"?: string[] | undefined;
677
- rewriter?: string | undefined;
678
- }> | undefined;
679
- regex?: Record<string, {
680
- pattern?: string | undefined;
681
- "module-format"?: boolean | undefined;
682
- }> | undefined;
683
- json?: boolean | undefined;
684
- "convert-to-local-time"?: boolean | undefined;
685
- "hide-extra"?: boolean | undefined;
686
- multiline?: boolean | undefined;
687
- "timestamp-divisor"?: number | undefined;
688
- "file-pattern"?: string | undefined;
689
- converter?: {
690
- type?: string | undefined;
691
- header?: {
692
- expr?: Record<string, string> | undefined;
693
- size?: number | undefined;
694
- } | undefined;
695
- command?: string | undefined;
696
- } | undefined;
697
- "level-field"?: string | undefined;
698
- "level-pointer"?: string | undefined;
699
- "timestamp-field"?: string | undefined;
700
- "subsecond-field"?: string | undefined;
701
- "subsecond-units"?: "milli" | "micro" | "nano" | undefined;
702
- "time-field"?: string | undefined;
703
- "body-field"?: string | undefined;
704
- url?: string | string[] | undefined;
705
- title?: string | undefined;
1674
+ level?: Record<string, string | number> | undefined;
1675
+ value?: Record<string, {
706
1676
  description?: string | undefined;
707
- "timestamp-format"?: string[] | undefined;
708
- "module-field"?: string | undefined;
709
- "opid-field"?: string | undefined;
710
- opid?: {
711
- description?: Record<string, {
712
- format?: {
713
- field?: string | undefined;
714
- extractor?: string | undefined;
715
- prefix?: string | undefined;
716
- suffix?: string | undefined;
717
- joiner?: string | undefined;
718
- }[] | undefined;
719
- }> | undefined;
720
- subid?: string | undefined;
721
- "sub-description"?: Record<string, {
722
- format?: {
723
- field?: string | undefined;
724
- extractor?: string | undefined;
725
- prefix?: string | undefined;
726
- suffix?: string | undefined;
727
- joiner?: string | undefined;
728
- }[] | undefined;
729
- }> | undefined;
1677
+ kind?: "string" | "boolean" | "integer" | "float" | "json" | "struct" | "quoted" | "xml" | undefined;
1678
+ collate?: string | undefined;
1679
+ unit?: {
1680
+ field?: string | undefined;
1681
+ "scaling-factor"?: Record<string, {
1682
+ value?: number | undefined;
1683
+ op?: "identity" | "multiply" | "divide" | undefined;
1684
+ }> | undefined;
730
1685
  } | undefined;
731
- "ordered-by-time"?: boolean | undefined;
732
- tags?: Record<string, {
733
- level?: "info" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "debug" | "stats" | "notice" | "warning" | "error" | "critical" | "fatal" | undefined;
734
- pattern?: string | undefined;
735
- description?: string | undefined;
736
- paths?: {
737
- glob?: string | undefined;
738
- }[] | undefined;
739
- }> | undefined;
740
- partitions?: Record<string, {
741
- level?: "info" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "debug" | "stats" | "notice" | "warning" | "error" | "critical" | "fatal" | undefined;
742
- pattern?: string | undefined;
743
- description?: string | undefined;
744
- paths?: {
745
- glob?: string | undefined;
746
- }[] | undefined;
747
- }> | undefined;
748
- action?: Record<string, string | {
749
- label?: string | undefined;
750
- "capture-output"?: boolean | undefined;
751
- cmd?: string[] | undefined;
752
- }> | undefined;
753
- sample?: {
754
- level?: "info" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "debug" | "stats" | "notice" | "warning" | "error" | "critical" | "fatal" | undefined;
755
- description?: string | undefined;
756
- line?: string | undefined;
757
- }[] | undefined;
758
- "line-format"?: (string | {
759
- "timestamp-format"?: string | undefined;
1686
+ identifier?: boolean | undefined;
1687
+ "foreign-key"?: boolean | undefined;
1688
+ hidden?: boolean | undefined;
1689
+ "action-list"?: string[] | undefined;
1690
+ rewriter?: string | undefined;
1691
+ }> | undefined;
1692
+ regex?: Record<string, {
1693
+ pattern?: string | undefined;
1694
+ "module-format"?: boolean | undefined;
1695
+ }> | undefined;
1696
+ json?: boolean | undefined;
1697
+ "convert-to-local-time"?: boolean | undefined;
1698
+ "hide-extra"?: boolean | undefined;
1699
+ multiline?: boolean | undefined;
1700
+ "timestamp-divisor"?: number | undefined;
1701
+ "file-pattern"?: string | undefined;
1702
+ converter?: {
1703
+ type?: string | undefined;
1704
+ header?: {
1705
+ expr?: Record<string, string> | undefined;
1706
+ size?: number | undefined;
1707
+ } | undefined;
1708
+ command?: string | undefined;
1709
+ } | undefined;
1710
+ "level-field"?: string | undefined;
1711
+ "level-pointer"?: string | undefined;
1712
+ "timestamp-field"?: string | undefined;
1713
+ "subsecond-field"?: string | undefined;
1714
+ "subsecond-units"?: "milli" | "micro" | "nano" | undefined;
1715
+ "time-field"?: string | undefined;
1716
+ "body-field"?: string | undefined;
1717
+ url?: string | string[] | undefined;
1718
+ title?: string | undefined;
1719
+ description?: string | undefined;
1720
+ "timestamp-format"?: string[] | undefined;
1721
+ "module-field"?: string | undefined;
1722
+ "opid-field"?: string | undefined;
1723
+ opid?: {
1724
+ description?: Record<string, {
1725
+ format?: {
760
1726
  field?: string | undefined;
1727
+ extractor?: string | undefined;
761
1728
  prefix?: string | undefined;
762
1729
  suffix?: string | undefined;
763
- "default-value"?: string | undefined;
764
- "min-width"?: number | undefined;
765
- "auto-width"?: boolean | undefined;
766
- "max-width"?: number | undefined;
767
- align?: "left" | "right" | undefined;
768
- overflow?: "abbrev" | "truncate" | "dot-dot" | "last-word" | undefined;
769
- "text-transform"?: "none" | "uppercase" | "lowercase" | "capitalize" | undefined;
770
- })[] | undefined;
771
- "search-table"?: Record<string, {
772
- level?: "info" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "debug" | "stats" | "notice" | "warning" | "error" | "critical" | "fatal" | undefined;
773
- pattern?: string | undefined;
774
- glob?: string | undefined;
1730
+ joiner?: string | undefined;
1731
+ }[] | undefined;
775
1732
  }> | undefined;
776
- highlights?: Record<string, {
777
- pattern?: string | undefined;
778
- color?: string | undefined;
779
- "background-color"?: string | undefined;
780
- underline?: boolean | undefined;
781
- blink?: boolean | undefined;
1733
+ subid?: string | undefined;
1734
+ "sub-description"?: Record<string, {
1735
+ format?: {
1736
+ field?: string | undefined;
1737
+ extractor?: string | undefined;
1738
+ prefix?: string | undefined;
1739
+ suffix?: string | undefined;
1740
+ joiner?: string | undefined;
1741
+ }[] | undefined;
782
1742
  }> | undefined;
783
- "file-type"?: "json" | "text" | "csv" | undefined;
784
- "max-unrecognized-lines"?: number | undefined;
1743
+ } | undefined;
1744
+ "ordered-by-time"?: boolean | undefined;
1745
+ tags?: Record<string, {
1746
+ level?: "info" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "debug" | "stats" | "notice" | "warning" | "error" | "critical" | "fatal" | undefined;
1747
+ pattern?: string | undefined;
1748
+ description?: string | undefined;
1749
+ paths?: {
1750
+ glob?: string | undefined;
1751
+ }[] | undefined;
1752
+ }> | undefined;
1753
+ partitions?: Record<string, {
1754
+ level?: "info" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "debug" | "stats" | "notice" | "warning" | "error" | "critical" | "fatal" | undefined;
1755
+ pattern?: string | undefined;
1756
+ description?: string | undefined;
1757
+ paths?: {
1758
+ glob?: string | undefined;
1759
+ }[] | undefined;
1760
+ }> | undefined;
1761
+ action?: Record<string, string | {
1762
+ label?: string | undefined;
1763
+ "capture-output"?: boolean | undefined;
1764
+ cmd?: string[] | undefined;
1765
+ }> | undefined;
1766
+ sample?: {
1767
+ level?: "info" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "debug" | "stats" | "notice" | "warning" | "error" | "critical" | "fatal" | undefined;
1768
+ description?: string | undefined;
1769
+ line?: string | undefined;
1770
+ }[] | undefined;
1771
+ "line-format"?: (string | {
1772
+ "timestamp-format"?: string | undefined;
1773
+ field?: string | undefined;
1774
+ prefix?: string | undefined;
1775
+ suffix?: string | undefined;
1776
+ "default-value"?: string | undefined;
1777
+ "min-width"?: number | undefined;
1778
+ "auto-width"?: boolean | undefined;
1779
+ "max-width"?: number | undefined;
1780
+ align?: "left" | "right" | undefined;
1781
+ overflow?: "abbrev" | "truncate" | "dot-dot" | "last-word" | undefined;
1782
+ "text-transform"?: "none" | "uppercase" | "lowercase" | "capitalize" | undefined;
1783
+ })[] | undefined;
1784
+ "search-table"?: Record<string, {
1785
+ level?: "info" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "debug" | "stats" | "notice" | "warning" | "error" | "critical" | "fatal" | undefined;
1786
+ pattern?: string | undefined;
1787
+ glob?: string | undefined;
1788
+ }> | undefined;
1789
+ highlights?: Record<string, {
1790
+ pattern?: string | undefined;
1791
+ color?: string | undefined;
1792
+ "background-color"?: string | undefined;
1793
+ underline?: boolean | undefined;
1794
+ blink?: boolean | undefined;
1795
+ }> | undefined;
1796
+ "file-type"?: "json" | "text" | "csv" | undefined;
1797
+ "max-unrecognized-lines"?: number | undefined;
785
1798
  }>;
786
1799
  type LnavFormat = z.infer<typeof lnavFormatSchema>;
787
1800
 
@@ -793,95 +1806,82 @@ declare const FLIGHTDECK_UPDATE_PHASES: readonly ["notified", "confirmed"];
793
1806
  type FlightDeckUpdatePhase = (typeof FLIGHTDECK_UPDATE_PHASES)[number];
794
1807
  declare function isVersionNumber(version: string): boolean;
795
1808
  type FlightDeckOptions<S extends string = string> = {
796
- packageName: string;
797
- services: {
798
- [service in S]: {
799
- run: string;
800
- waitFor: boolean;
801
- };
802
- };
803
- scripts: {
804
- download: string;
805
- install: string;
806
- checkAvailability?: string;
807
- };
808
- port?: number | undefined;
809
- flightdeckRootDir?: string | undefined;
810
- jsonLogging?: boolean | undefined;
1809
+ packageName: string;
1810
+ services: { [service in S]: {
1811
+ run: string;
1812
+ waitFor: boolean;
1813
+ } };
1814
+ scripts: {
1815
+ download: string;
1816
+ install: string;
1817
+ checkAvailability?: string;
1818
+ };
1819
+ port?: number | undefined;
1820
+ flightdeckRootDir?: string | undefined;
1821
+ jsonLogging?: boolean | undefined;
811
1822
  };
812
1823
  declare class FlightDeck<S extends string = string> {
813
- readonly options: FlightDeckOptions<S>;
814
- protected safety: number;
815
- protected storage: FilesystemStorage<{
816
- setupPhase: FlightDeckSetupPhase;
817
- updatePhase: FlightDeckUpdatePhase;
818
- updateAwaitedVersion: string;
819
- }>;
820
- protected webhookServer: Server;
821
- protected services: {
822
- [service in S]: ChildSocket<{
823
- timeToStop: [];
824
- updatesReady: [];
825
- }, {
826
- readyToUpdate: [];
827
- alive: [];
828
- }> | null;
829
- };
830
- protected serviceIdx: {
831
- readonly [service in S]: number;
832
- };
833
- defaultServicesReadyToUpdate: {
834
- readonly [service in S]: boolean;
835
- };
836
- servicesReadyToUpdate: {
837
- [service in S]: boolean;
838
- };
839
- autoRespawnDeadServices: boolean;
840
- protected logger: Pick<Console, `error` | `info` | `warn`>;
841
- protected serviceLoggers: {
842
- readonly [service in S]: FlightDeckLogger;
843
- };
844
- protected updateAvailabilityChecker: CronJob | null;
845
- servicesLive: Future<void>[];
846
- servicesDead: Future<void>[];
847
- live: Future<unknown>;
848
- dead: Future<unknown>;
849
- protected restartTimes: number[];
850
- constructor(options: FlightDeckOptions<S>);
851
- protected seekUpdate(version: string): Promise<void>;
852
- protected announceUpdate(): void;
853
- protected tryUpdate(): void;
854
- protected startAllServices(): Future<unknown>;
855
- protected startService(serviceName: S): void;
856
- protected downloadPackage(): void;
857
- protected installPackage(): void;
858
- stopAllServices(): Future<unknown>;
859
- stopService(serviceName: S): void;
1824
+ readonly options: FlightDeckOptions<S>;
1825
+ protected safety: number;
1826
+ protected storage: FilesystemStorage<{
1827
+ setupPhase: FlightDeckSetupPhase;
1828
+ updatePhase: FlightDeckUpdatePhase;
1829
+ updateAwaitedVersion: string;
1830
+ }>;
1831
+ protected services: { [service in S]: ChildSocket<{
1832
+ timeToStop: [];
1833
+ updatesReady: [];
1834
+ }, {
1835
+ readyToUpdate: [];
1836
+ alive: [];
1837
+ }> | null };
1838
+ protected serviceIdx: { readonly [service in S]: number };
1839
+ defaultServicesReadyToUpdate: { readonly [service in S]: boolean };
1840
+ servicesReadyToUpdate: { [service in S]: boolean };
1841
+ autoRespawnDeadServices: boolean;
1842
+ protected logger: Pick<Console, `error` | `info` | `warn`>;
1843
+ protected serviceLoggers: { readonly [service in S]: FlightDeckLogger };
1844
+ protected updateAvailabilityChecker: CronJob | null;
1845
+ servicesLive: Future<void>[];
1846
+ servicesDead: Future<void>[];
1847
+ live: Future<unknown>;
1848
+ dead: Future<unknown>;
1849
+ protected restartTimes: number[];
1850
+ constructor(options: FlightDeckOptions<S>);
1851
+ protected seekUpdate(version: string): Promise<void>;
1852
+ protected announceUpdate(): void;
1853
+ protected tryUpdate(): void;
1854
+ protected startAllServices(): Future<unknown>;
1855
+ protected startService(serviceName: S): void;
1856
+ protected downloadPackage(): void;
1857
+ protected installPackage(): void;
1858
+ stopAllServices(): Future<unknown>;
1859
+ stopService(serviceName: S): void;
860
1860
  }
861
1861
  declare const FLIGHTDECK_INFO = "info";
862
1862
  declare const FLIGHTDECK_WARN = "warn";
863
1863
  declare const FLIGHTDECK_ERROR = "ERR!";
864
1864
  declare const flightDeckLogSchema: z.ZodObject<{
865
- level: z.ZodUnion<[z.ZodLiteral<"info">, z.ZodLiteral<"warn">, z.ZodLiteral<"ERR!">]>;
866
- timestamp: z.ZodNumber;
867
- package: z.ZodString;
868
- service: z.ZodOptional<z.ZodString>;
869
- process: z.ZodNumber;
870
- body: z.ZodString;
1865
+ level: z.ZodUnion<[z.ZodLiteral<"info">, z.ZodLiteral<"warn">, z.ZodLiteral<"ERR!">]>;
1866
+ timestamp: z.ZodNumber;
1867
+ package: z.ZodString;
1868
+ service: z.ZodOptional<z.ZodString>;
1869
+ process: z.ZodNumber;
1870
+ body: z.ZodString;
871
1871
  }, "strip", z.ZodTypeAny, {
872
- level: "info" | "warn" | "ERR!";
873
- timestamp: number;
874
- package: string;
875
- process: number;
876
- body: string;
877
- service?: string | undefined;
1872
+ level: "info" | "warn" | "ERR!";
1873
+ timestamp: number;
1874
+ package: string;
1875
+ process: number;
1876
+ body: string;
1877
+ service?: string | undefined;
878
1878
  }, {
879
- level: "info" | "warn" | "ERR!";
880
- timestamp: number;
881
- package: string;
882
- process: number;
883
- body: string;
884
- service?: string | undefined;
1879
+ level: "info" | "warn" | "ERR!";
1880
+ timestamp: number;
1881
+ package: string;
1882
+ process: number;
1883
+ body: string;
1884
+ service?: string | undefined;
885
1885
  }>;
886
1886
  type FlightDeckLog = z.infer<typeof flightDeckLogSchema>;
887
1887
  declare const LINE_FORMAT = "line-format";
@@ -891,130 +1891,129 @@ type LnavFormatBreakdown = Exclude<LnavFormat[`value`], undefined>;
891
1891
  type MemberOf<T> = T[keyof T];
892
1892
  type LnavFormatValueDefinition = MemberOf<LnavFormatBreakdown>;
893
1893
  type FlightDeckFormat = {
894
- [LINE_FORMAT]: (string | (LnavFormatVisualComponent & {
895
- field: keyof FlightDeckLog | `__level__` | `__timestamp__`;
896
- }))[];
897
- [VALUE]: {
898
- [K in keyof FlightDeckLog]: LnavFormatValueDefinition & {
899
- kind: FlightDeckLog[K] extends number | undefined ? `integer` : FlightDeckLog[K] extends string | undefined ? `string` : never;
900
- };
901
- };
1894
+ [LINE_FORMAT]: (string | (LnavFormatVisualComponent & {
1895
+ field: keyof FlightDeckLog | `__level__` | `__timestamp__`;
1896
+ }))[];
1897
+ [VALUE]: { [K in keyof FlightDeckLog]: LnavFormatValueDefinition & {
1898
+ kind: FlightDeckLog[K] extends number | undefined ? `integer` : FlightDeckLog[K] extends string | undefined ? `string` : never;
1899
+ } };
902
1900
  };
903
1901
  declare const FLIGHTDECK_LNAV_FORMAT: {
904
- readonly title: "FlightDeck Log";
905
- readonly description: "Format for events logged by the FlightDeck process manager.";
906
- readonly "file-type": "json";
907
- readonly "timestamp-field": "timestamp";
908
- readonly "timestamp-divisor": 1000;
909
- readonly "module-field": "package";
910
- readonly "opid-field": "service";
911
- readonly "level-field": "level";
1902
+ readonly title: "FlightDeck Log";
1903
+ readonly description: "Format for events logged by the FlightDeck process manager.";
1904
+ readonly "file-type": "json";
1905
+ readonly "timestamp-field": "timestamp";
1906
+ readonly "timestamp-divisor": 1000;
1907
+ readonly "module-field": "package";
1908
+ readonly "opid-field": "service";
1909
+ readonly "level-field": "level";
1910
+ readonly level: {
1911
+ readonly info: "info";
1912
+ readonly warning: "warn";
1913
+ readonly error: "ERR!";
1914
+ };
1915
+ readonly "line-format": [{
1916
+ readonly field: "level";
1917
+ }, {
1918
+ readonly prefix: " ";
1919
+ readonly field: "__timestamp__";
1920
+ readonly "timestamp-format": "%Y-%m-%dT%H:%M:%S.%L%Z";
1921
+ }, {
1922
+ readonly prefix: " ";
1923
+ readonly field: "process";
1924
+ readonly "min-width": 5;
1925
+ }, {
1926
+ readonly prefix: ":";
1927
+ readonly field: "package";
1928
+ }, {
1929
+ readonly prefix: ":";
1930
+ readonly field: "service";
1931
+ readonly "default-value": "";
1932
+ }, {
1933
+ readonly prefix: ": ";
1934
+ readonly field: "body";
1935
+ }];
1936
+ readonly value: {
1937
+ readonly timestamp: {
1938
+ readonly kind: "integer";
1939
+ };
912
1940
  readonly level: {
913
- readonly info: "info";
914
- readonly warning: "warn";
915
- readonly error: "ERR!";
1941
+ readonly kind: "string";
916
1942
  };
917
- readonly "line-format": [{
918
- readonly field: "level";
919
- }, {
920
- readonly prefix: " ";
921
- readonly field: "__timestamp__";
922
- readonly "timestamp-format": "%Y-%m-%dT%H:%M:%S.%L%Z";
923
- }, {
924
- readonly prefix: " ";
925
- readonly field: "process";
926
- readonly "min-width": 5;
927
- }, {
928
- readonly prefix: ":";
929
- readonly field: "package";
930
- }, {
931
- readonly prefix: ":";
932
- readonly field: "service";
933
- readonly "default-value": "";
934
- }, {
935
- readonly prefix: ": ";
936
- readonly field: "body";
937
- }];
938
- readonly value: {
939
- readonly timestamp: {
940
- readonly kind: "integer";
941
- };
942
- readonly level: {
943
- readonly kind: "string";
944
- };
945
- readonly package: {
946
- readonly kind: "string";
947
- };
948
- readonly service: {
949
- readonly kind: "string";
950
- };
951
- readonly process: {
952
- readonly kind: "integer";
953
- };
954
- readonly body: {
955
- readonly kind: "string";
956
- };
1943
+ readonly package: {
1944
+ readonly kind: "string";
957
1945
  };
1946
+ readonly service: {
1947
+ readonly kind: "string";
1948
+ };
1949
+ readonly process: {
1950
+ readonly kind: "integer";
1951
+ };
1952
+ readonly body: {
1953
+ readonly kind: "string";
1954
+ };
1955
+ };
958
1956
  };
959
1957
  declare class FlightDeckLogger implements Pick<Console, `error` | `info` | `warn`> {
960
- readonly packageName: string;
961
- readonly serviceName?: string;
962
- readonly jsonLogging: boolean;
963
- processCode: number;
964
- constructor(packageName: string, processCode: number, serviceName?: string, options?: {
965
- jsonLogging: boolean;
966
- });
967
- protected log(level: typeof FLIGHTDECK_ERROR | typeof FLIGHTDECK_INFO | typeof FLIGHTDECK_WARN, ...messages: unknown[]): void;
968
- info(...messages: unknown[]): void;
969
- warn(...messages: unknown[]): void;
970
- error(...messages: unknown[]): void;
1958
+ readonly packageName: string;
1959
+ readonly serviceName?: string;
1960
+ readonly jsonLogging: boolean;
1961
+ processCode: number;
1962
+ constructor(packageName: string, processCode: number, serviceName?: string, options?: {
1963
+ jsonLogging: boolean;
1964
+ });
1965
+ protected log(level: typeof FLIGHTDECK_ERROR | typeof FLIGHTDECK_INFO | typeof FLIGHTDECK_WARN, ...messages: unknown[]): void;
1966
+ info(...messages: unknown[]): void;
1967
+ warn(...messages: unknown[]): void;
1968
+ error(...messages: unknown[]): void;
971
1969
  }
972
1970
 
973
1971
  //#endregion
974
1972
  //#region src/klaxon.lib.d.ts
975
-
976
1973
  declare namespace klaxon_lib_d_exports {
977
- export { AlertOptions, ChangesetsPublishResult, ChangesetsPublishedPackage, PackageConfig, ScrambleOptions, ScrambleResult, SecretsConfig, alert, scramble, }
1974
+ export { AlertOptions, ChangesetsPublishResult, ChangesetsPublishedPackage, PackageConfig, ScrambleOptions, ScrambleResult, SecretsConfig, alert, scramble };
978
1975
  }
979
1976
  type AlertOptions = {
980
- secret: string;
981
- endpoint: string;
982
- version: string;
1977
+ secret: string;
1978
+ endpoint: string;
1979
+ version: string;
983
1980
  };
984
- declare function alert({ secret, endpoint, version, }: AlertOptions): Promise<Response>;
1981
+ declare function alert({
1982
+ secret,
1983
+ endpoint,
1984
+ version
1985
+ }: AlertOptions): Promise<Response>;
985
1986
  /**
986
- * @see https://github.com/changesets/action/blob/main/src/run.ts
987
- */
1987
+ * @see https://github.com/changesets/action/blob/main/src/run.ts
1988
+ */
988
1989
  type ChangesetsPublishedPackage = {
989
- name: string;
990
- version: string;
1990
+ name: string;
1991
+ version: string;
991
1992
  };
992
1993
  /**
993
- * @see https://github.com/changesets/action/blob/main/src/run.ts
994
- */
1994
+ * @see https://github.com/changesets/action/blob/main/src/run.ts
1995
+ */
995
1996
  type ChangesetsPublishResult = {
996
- published: true;
997
- publishedPackages: ChangesetsPublishedPackage[];
1997
+ published: true;
1998
+ publishedPackages: ChangesetsPublishedPackage[];
998
1999
  } | {
999
- published: false;
1000
- };
1001
- type PackageConfig<K extends string> = {
1002
- [key in K]: {
1003
- endpoint: string;
1004
- };
1005
- };
1006
- type SecretsConfig<K extends string> = {
1007
- [key in K]: string;
2000
+ published: false;
1008
2001
  };
2002
+ type PackageConfig<K extends string> = { [key in K]: {
2003
+ endpoint: string;
2004
+ } };
2005
+ type SecretsConfig<K extends string> = { [key in K]: string };
1009
2006
  type ScrambleOptions<K extends string = string> = {
1010
- packageConfig: PackageConfig<K>;
1011
- secretsConfig: SecretsConfig<K>;
1012
- publishedPackages: ChangesetsPublishedPackage[];
1013
- };
1014
- type ScrambleResult<K extends string = string> = {
1015
- [key in K]: Response;
2007
+ packageConfig: PackageConfig<K>;
2008
+ secretsConfig: SecretsConfig<K>;
2009
+ publishedPackages: ChangesetsPublishedPackage[];
1016
2010
  };
1017
- declare function scramble<K extends string = string>({ packageConfig, secretsConfig, publishedPackages, }: ScrambleOptions<K>): Promise<ScrambleResult<K>>;
2011
+ type ScrambleResult<K extends string = string> = { [key in K]: Response };
2012
+ declare function scramble<K extends string = string>({
2013
+ packageConfig,
2014
+ secretsConfig,
2015
+ publishedPackages
2016
+ }: ScrambleOptions<K>): Promise<ScrambleResult<K>>;
1018
2017
 
1019
2018
  //#endregion
1020
2019
  export { FLIGHTDECK_ERROR, FLIGHTDECK_INFO, FLIGHTDECK_LNAV_FORMAT, FLIGHTDECK_SETUP_PHASES, FLIGHTDECK_UPDATE_PHASES, FLIGHTDECK_WARN, FlightDeck, FlightDeckFormat, FlightDeckLog, FlightDeckLogger, FlightDeckOptions, FlightDeckSetupPhase, FlightDeckUpdatePhase, klaxon_lib_d_exports as Klaxon, LnavFormatBreakdown, LnavFormatValueDefinition, LnavFormatVisualComponent, MemberOf, flightDeckLogSchema, isVersionNumber };