flightdeck 0.2.27 → 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,883 +1,1887 @@
1
- import { Server } from 'node:http';
2
- import { Future } from 'atom.io/internal';
3
- import { ChildSocket } from 'atom.io/realtime-server';
4
- import { CronJob } from 'cron';
5
- import { FilesystemStorage } from 'safedeposit';
6
- import { z } from 'zod';
1
+ import { __export } from "./chunk-Cl8Af3a2.js";
2
+ import { z } from "zod";
3
+ import { ChildProcessWithoutNullStreams } from "node:child_process";
4
+ import { CronJob } from "cron";
7
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
1021
+ //#region gen/lnav-format-schema.gen.d.ts
1022
+ //#endregion
8
1023
  declare const lnavFormatSchema: z.ZodObject<{
9
- regex: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
10
- pattern: z.ZodOptional<z.ZodString>;
11
- "module-format": z.ZodOptional<z.ZodBoolean>;
12
- }, "strict", z.ZodTypeAny, {
13
- pattern?: string | undefined;
14
- "module-format"?: boolean | undefined;
15
- }, {
16
- pattern?: string | undefined;
17
- "module-format"?: boolean | undefined;
18
- }>, z.ZodNever]>>, Record<string, {
19
- pattern?: string | undefined;
20
- "module-format"?: boolean | undefined;
21
- }>, Record<string, {
22
- pattern?: string | undefined;
23
- "module-format"?: boolean | undefined;
24
- }>>>;
25
- json: z.ZodOptional<z.ZodBoolean>;
26
- "convert-to-local-time": z.ZodOptional<z.ZodBoolean>;
27
- "hide-extra": z.ZodOptional<z.ZodBoolean>;
28
- multiline: z.ZodOptional<z.ZodBoolean>;
29
- "timestamp-divisor": z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodNumber]>>;
30
- "file-pattern": z.ZodOptional<z.ZodString>;
31
- converter: z.ZodOptional<z.ZodObject<{
32
- type: z.ZodOptional<z.ZodString>;
33
- header: z.ZodOptional<z.ZodObject<{
34
- expr: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNever]>>, Record<string, string>, Record<string, string>>>;
35
- size: z.ZodOptional<z.ZodNumber>;
36
- }, "strict", z.ZodTypeAny, {
37
- size?: number | undefined;
38
- expr?: Record<string, string> | undefined;
39
- }, {
40
- size?: number | undefined;
41
- expr?: Record<string, string> | undefined;
42
- }>>;
43
- command: z.ZodOptional<z.ZodString>;
44
- }, "strict", z.ZodTypeAny, {
45
- type?: string | undefined;
46
- header?: {
47
- size?: number | undefined;
48
- expr?: Record<string, string> | undefined;
49
- } | undefined;
50
- command?: string | undefined;
51
- }, {
52
- type?: string | undefined;
53
- header?: {
54
- size?: number | undefined;
55
- expr?: Record<string, string> | undefined;
56
- } | undefined;
57
- command?: string | undefined;
58
- }>>;
59
- "level-field": z.ZodOptional<z.ZodString>;
60
- "level-pointer": z.ZodOptional<z.ZodString>;
61
- "timestamp-field": z.ZodOptional<z.ZodString>;
62
- "subsecond-field": z.ZodOptional<z.ZodString>;
63
- "subsecond-units": z.ZodOptional<z.ZodEnum<["milli", "micro", "nano"]>>;
64
- "time-field": z.ZodOptional<z.ZodString>;
65
- "body-field": z.ZodOptional<z.ZodString>;
66
- url: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodString]>>;
67
- title: z.ZodOptional<z.ZodString>;
68
- description: z.ZodOptional<z.ZodString>;
69
- "timestamp-format": z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
70
- "module-field": z.ZodOptional<z.ZodString>;
71
- "opid-field": z.ZodOptional<z.ZodString>;
72
- opid: z.ZodOptional<z.ZodObject<{
73
- subid: z.ZodOptional<z.ZodString>;
74
- description: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
75
- format: z.ZodOptional<z.ZodArray<z.ZodObject<{
76
- field: z.ZodOptional<z.ZodString>;
77
- extractor: z.ZodOptional<z.ZodString>;
78
- prefix: z.ZodOptional<z.ZodString>;
79
- suffix: z.ZodOptional<z.ZodString>;
80
- joiner: z.ZodOptional<z.ZodString>;
81
- }, "strict", z.ZodTypeAny, {
82
- field?: string | undefined;
83
- extractor?: string | undefined;
84
- prefix?: string | undefined;
85
- suffix?: string | undefined;
86
- joiner?: string | undefined;
87
- }, {
88
- field?: string | undefined;
89
- extractor?: string | undefined;
90
- prefix?: string | undefined;
91
- suffix?: string | undefined;
92
- joiner?: string | undefined;
93
- }>, "many">>;
94
- }, "strict", z.ZodTypeAny, {
95
- format?: {
96
- field?: string | undefined;
97
- extractor?: string | undefined;
98
- prefix?: string | undefined;
99
- suffix?: string | undefined;
100
- joiner?: string | undefined;
101
- }[] | undefined;
102
- }, {
103
- format?: {
104
- field?: string | undefined;
105
- extractor?: string | undefined;
106
- prefix?: string | undefined;
107
- suffix?: string | undefined;
108
- joiner?: string | undefined;
109
- }[] | undefined;
110
- }>, z.ZodNever]>>, Record<string, {
111
- format?: {
112
- field?: string | undefined;
113
- extractor?: string | undefined;
114
- prefix?: string | undefined;
115
- suffix?: string | undefined;
116
- joiner?: string | undefined;
117
- }[] | undefined;
118
- }>, Record<string, {
119
- format?: {
120
- field?: string | undefined;
121
- extractor?: string | undefined;
122
- prefix?: string | undefined;
123
- suffix?: string | undefined;
124
- joiner?: string | undefined;
125
- }[] | undefined;
126
- }>>>;
127
- "sub-description": z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
128
- format: z.ZodOptional<z.ZodArray<z.ZodObject<{
129
- field: z.ZodOptional<z.ZodString>;
130
- extractor: z.ZodOptional<z.ZodString>;
131
- prefix: z.ZodOptional<z.ZodString>;
132
- suffix: z.ZodOptional<z.ZodString>;
133
- joiner: z.ZodOptional<z.ZodString>;
134
- }, "strict", z.ZodTypeAny, {
135
- field?: string | undefined;
136
- extractor?: string | undefined;
137
- prefix?: string | undefined;
138
- suffix?: string | undefined;
139
- joiner?: string | undefined;
140
- }, {
141
- field?: string | undefined;
142
- extractor?: string | undefined;
143
- prefix?: string | undefined;
144
- suffix?: string | undefined;
145
- joiner?: string | undefined;
146
- }>, "many">>;
147
- }, "strict", z.ZodTypeAny, {
148
- format?: {
149
- field?: string | undefined;
150
- extractor?: string | undefined;
151
- prefix?: string | undefined;
152
- suffix?: string | undefined;
153
- joiner?: string | undefined;
154
- }[] | undefined;
155
- }, {
156
- format?: {
157
- field?: string | undefined;
158
- extractor?: string | undefined;
159
- prefix?: string | undefined;
160
- suffix?: string | undefined;
161
- joiner?: string | undefined;
162
- }[] | undefined;
163
- }>, z.ZodNever]>>, Record<string, {
164
- format?: {
165
- field?: string | undefined;
166
- extractor?: string | undefined;
167
- prefix?: string | undefined;
168
- suffix?: string | undefined;
169
- joiner?: string | undefined;
170
- }[] | undefined;
171
- }>, Record<string, {
172
- format?: {
173
- field?: string | undefined;
174
- extractor?: string | undefined;
175
- prefix?: string | undefined;
176
- suffix?: string | undefined;
177
- joiner?: string | undefined;
178
- }[] | undefined;
179
- }>>>;
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>;
180
1051
  }, "strict", z.ZodTypeAny, {
181
- description?: Record<string, {
182
- format?: {
183
- field?: string | undefined;
184
- extractor?: string | undefined;
185
- prefix?: string | undefined;
186
- suffix?: string | undefined;
187
- joiner?: string | undefined;
188
- }[] | undefined;
189
- }> | undefined;
190
- subid?: string | undefined;
191
- "sub-description"?: Record<string, {
192
- format?: {
193
- field?: string | undefined;
194
- extractor?: string | undefined;
195
- prefix?: string | undefined;
196
- suffix?: string | undefined;
197
- joiner?: string | undefined;
198
- }[] | undefined;
199
- }> | undefined;
1052
+ expr?: Record<string, string> | undefined;
1053
+ size?: number | undefined;
200
1054
  }, {
201
- description?: Record<string, {
202
- format?: {
203
- field?: string | undefined;
204
- extractor?: string | undefined;
205
- prefix?: string | undefined;
206
- suffix?: string | undefined;
207
- joiner?: string | undefined;
208
- }[] | undefined;
209
- }> | undefined;
210
- subid?: string | undefined;
211
- "sub-description"?: Record<string, {
212
- format?: {
213
- field?: string | undefined;
214
- extractor?: string | undefined;
215
- prefix?: string | undefined;
216
- suffix?: string | undefined;
217
- joiner?: string | undefined;
218
- }[] | undefined;
219
- }> | undefined;
1055
+ expr?: Record<string, string> | undefined;
1056
+ size?: number | undefined;
220
1057
  }>>;
221
- "ordered-by-time": z.ZodOptional<z.ZodBoolean>;
222
- 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>>>;
223
- value: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
224
- kind: z.ZodOptional<z.ZodEnum<["string", "integer", "float", "boolean", "json", "struct", "quoted", "xml"]>>;
225
- collate: z.ZodOptional<z.ZodString>;
226
- unit: z.ZodOptional<z.ZodObject<{
227
- field: z.ZodOptional<z.ZodString>;
228
- "scaling-factor": z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
229
- op: z.ZodOptional<z.ZodEnum<["identity", "multiply", "divide"]>>;
230
- value: z.ZodOptional<z.ZodNumber>;
231
- }, "strict", z.ZodTypeAny, {
232
- value?: number | undefined;
233
- op?: "identity" | "multiply" | "divide" | undefined;
234
- }, {
235
- value?: number | undefined;
236
- op?: "identity" | "multiply" | "divide" | undefined;
237
- }>, z.ZodNever]>>, Record<string, {
238
- value?: number | undefined;
239
- op?: "identity" | "multiply" | "divide" | undefined;
240
- }>, Record<string, {
241
- value?: number | undefined;
242
- op?: "identity" | "multiply" | "divide" | undefined;
243
- }>>>;
244
- }, "strict", z.ZodTypeAny, {
245
- field?: string | undefined;
246
- "scaling-factor"?: Record<string, {
247
- value?: number | undefined;
248
- op?: "identity" | "multiply" | "divide" | undefined;
249
- }> | undefined;
250
- }, {
251
- field?: string | undefined;
252
- "scaling-factor"?: Record<string, {
253
- value?: number | undefined;
254
- op?: "identity" | "multiply" | "divide" | undefined;
255
- }> | undefined;
256
- }>>;
257
- identifier: z.ZodOptional<z.ZodBoolean>;
258
- "foreign-key": z.ZodOptional<z.ZodBoolean>;
259
- hidden: z.ZodOptional<z.ZodBoolean>;
260
- "action-list": z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
261
- rewriter: z.ZodOptional<z.ZodString>;
262
- description: z.ZodOptional<z.ZodString>;
263
- }, "strict", z.ZodTypeAny, {
264
- description?: string | undefined;
265
- kind?: "string" | "boolean" | "integer" | "float" | "json" | "struct" | "quoted" | "xml" | undefined;
266
- collate?: string | undefined;
267
- unit?: {
268
- field?: string | undefined;
269
- "scaling-factor"?: Record<string, {
270
- value?: number | undefined;
271
- op?: "identity" | "multiply" | "divide" | undefined;
272
- }> | undefined;
273
- } | undefined;
274
- identifier?: boolean | undefined;
275
- "foreign-key"?: boolean | undefined;
276
- hidden?: boolean | undefined;
277
- "action-list"?: string[] | undefined;
278
- rewriter?: string | undefined;
279
- }, {
280
- description?: string | undefined;
281
- kind?: "string" | "boolean" | "integer" | "float" | "json" | "struct" | "quoted" | "xml" | undefined;
282
- collate?: string | undefined;
283
- unit?: {
284
- field?: string | undefined;
285
- "scaling-factor"?: Record<string, {
286
- value?: number | undefined;
287
- op?: "identity" | "multiply" | "divide" | undefined;
288
- }> | undefined;
289
- } | undefined;
290
- identifier?: boolean | undefined;
291
- "foreign-key"?: boolean | undefined;
292
- hidden?: boolean | undefined;
293
- "action-list"?: string[] | undefined;
294
- rewriter?: string | undefined;
295
- }>, z.ZodNever]>>, Record<string, {
296
- description?: string | undefined;
297
- kind?: "string" | "boolean" | "integer" | "float" | "json" | "struct" | "quoted" | "xml" | undefined;
298
- collate?: string | undefined;
299
- unit?: {
300
- field?: string | undefined;
301
- "scaling-factor"?: Record<string, {
302
- value?: number | undefined;
303
- op?: "identity" | "multiply" | "divide" | undefined;
304
- }> | undefined;
305
- } | undefined;
306
- identifier?: boolean | undefined;
307
- "foreign-key"?: boolean | undefined;
308
- hidden?: boolean | undefined;
309
- "action-list"?: string[] | undefined;
310
- rewriter?: string | undefined;
311
- }>, Record<string, {
312
- description?: string | undefined;
313
- kind?: "string" | "boolean" | "integer" | "float" | "json" | "struct" | "quoted" | "xml" | undefined;
314
- collate?: string | undefined;
315
- unit?: {
316
- field?: string | undefined;
317
- "scaling-factor"?: Record<string, {
318
- value?: number | undefined;
319
- op?: "identity" | "multiply" | "divide" | undefined;
320
- }> | undefined;
321
- } | undefined;
322
- identifier?: boolean | undefined;
323
- "foreign-key"?: boolean | undefined;
324
- hidden?: boolean | undefined;
325
- "action-list"?: string[] | undefined;
326
- rewriter?: string | undefined;
327
- }>>>;
328
- tags: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
329
- paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
330
- glob: z.ZodOptional<z.ZodString>;
331
- }, "strict", z.ZodTypeAny, {
332
- glob?: string | undefined;
333
- }, {
334
- glob?: string | undefined;
335
- }>, "many">>;
336
- pattern: z.ZodOptional<z.ZodString>;
337
- description: z.ZodOptional<z.ZodString>;
338
- level: z.ZodOptional<z.ZodEnum<["trace", "debug5", "debug4", "debug3", "debug2", "debug", "info", "stats", "notice", "warning", "error", "critical", "fatal"]>>;
339
- }, "strict", z.ZodTypeAny, {
340
- description?: string | undefined;
341
- level?: "error" | "info" | "warning" | "debug" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "stats" | "notice" | "critical" | "fatal" | undefined;
342
- pattern?: string | undefined;
343
- paths?: {
344
- glob?: string | undefined;
345
- }[] | undefined;
346
- }, {
347
- description?: string | undefined;
348
- level?: "error" | "info" | "warning" | "debug" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "stats" | "notice" | "critical" | "fatal" | undefined;
349
- pattern?: string | undefined;
350
- paths?: {
351
- glob?: string | undefined;
352
- }[] | undefined;
353
- }>, z.ZodNever]>>, Record<string, {
354
- description?: string | undefined;
355
- level?: "error" | "info" | "warning" | "debug" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "stats" | "notice" | "critical" | "fatal" | undefined;
356
- pattern?: string | undefined;
357
- paths?: {
358
- glob?: string | undefined;
359
- }[] | undefined;
360
- }>, Record<string, {
361
- description?: string | undefined;
362
- level?: "error" | "info" | "warning" | "debug" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "stats" | "notice" | "critical" | "fatal" | undefined;
363
- pattern?: string | undefined;
364
- paths?: {
365
- glob?: string | undefined;
366
- }[] | undefined;
367
- }>>>;
368
- partitions: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
369
- paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
370
- glob: z.ZodOptional<z.ZodString>;
371
- }, "strict", z.ZodTypeAny, {
372
- glob?: string | undefined;
373
- }, {
374
- glob?: string | undefined;
375
- }>, "many">>;
376
- pattern: z.ZodOptional<z.ZodString>;
377
- description: z.ZodOptional<z.ZodString>;
378
- level: z.ZodOptional<z.ZodEnum<["trace", "debug5", "debug4", "debug3", "debug2", "debug", "info", "stats", "notice", "warning", "error", "critical", "fatal"]>>;
379
- }, "strict", z.ZodTypeAny, {
380
- description?: string | undefined;
381
- level?: "error" | "info" | "warning" | "debug" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "stats" | "notice" | "critical" | "fatal" | undefined;
382
- pattern?: string | undefined;
383
- paths?: {
384
- glob?: string | undefined;
385
- }[] | undefined;
386
- }, {
387
- description?: string | undefined;
388
- level?: "error" | "info" | "warning" | "debug" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "stats" | "notice" | "critical" | "fatal" | undefined;
389
- pattern?: string | undefined;
390
- paths?: {
391
- glob?: string | undefined;
392
- }[] | undefined;
393
- }>, z.ZodNever]>>, Record<string, {
394
- description?: string | undefined;
395
- level?: "error" | "info" | "warning" | "debug" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "stats" | "notice" | "critical" | "fatal" | undefined;
396
- pattern?: string | undefined;
397
- paths?: {
398
- glob?: string | undefined;
399
- }[] | undefined;
400
- }>, Record<string, {
401
- description?: string | undefined;
402
- level?: "error" | "info" | "warning" | "debug" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "stats" | "notice" | "critical" | "fatal" | undefined;
403
- pattern?: string | undefined;
404
- paths?: {
405
- glob?: string | undefined;
406
- }[] | undefined;
407
- }>>>;
408
- action: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodObject<{
409
- label: z.ZodOptional<z.ZodString>;
410
- "capture-output": z.ZodOptional<z.ZodBoolean>;
411
- cmd: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
412
- }, "strict", z.ZodTypeAny, {
413
- label?: string | undefined;
414
- "capture-output"?: boolean | undefined;
415
- cmd?: string[] | undefined;
416
- }, {
417
- label?: string | undefined;
418
- "capture-output"?: boolean | undefined;
419
- cmd?: string[] | undefined;
420
- }>]>, z.ZodNever]>>, Record<string, string | {
421
- label?: string | undefined;
422
- "capture-output"?: boolean | undefined;
423
- cmd?: string[] | undefined;
424
- }>, Record<string, string | {
425
- label?: string | undefined;
426
- "capture-output"?: boolean | undefined;
427
- cmd?: string[] | undefined;
428
- }>>>;
429
- sample: z.ZodOptional<z.ZodArray<z.ZodObject<{
430
- description: z.ZodOptional<z.ZodString>;
431
- line: z.ZodOptional<z.ZodString>;
432
- level: z.ZodOptional<z.ZodEnum<["trace", "debug5", "debug4", "debug3", "debug2", "debug", "info", "stats", "notice", "warning", "error", "critical", "fatal"]>>;
433
- }, "strict", z.ZodTypeAny, {
434
- description?: string | undefined;
435
- level?: "error" | "info" | "warning" | "debug" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "stats" | "notice" | "critical" | "fatal" | undefined;
436
- line?: string | undefined;
437
- }, {
438
- description?: string | undefined;
439
- level?: "error" | "info" | "warning" | "debug" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "stats" | "notice" | "critical" | "fatal" | undefined;
440
- line?: string | undefined;
441
- }>, "many">>;
442
- "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<{
443
1091
  field: z.ZodOptional<z.ZodString>;
444
- "default-value": z.ZodOptional<z.ZodString>;
445
- "timestamp-format": z.ZodOptional<z.ZodString>;
446
- "min-width": z.ZodOptional<z.ZodNumber>;
447
- "auto-width": z.ZodOptional<z.ZodBoolean>;
448
- "max-width": z.ZodOptional<z.ZodNumber>;
449
- align: z.ZodOptional<z.ZodEnum<["left", "right"]>>;
450
- overflow: z.ZodOptional<z.ZodEnum<["abbrev", "truncate", "dot-dot", "last-word"]>>;
451
- "text-transform": z.ZodOptional<z.ZodEnum<["none", "uppercase", "lowercase", "capitalize"]>>;
1092
+ extractor: z.ZodOptional<z.ZodString>;
452
1093
  prefix: z.ZodOptional<z.ZodString>;
453
1094
  suffix: z.ZodOptional<z.ZodString>;
454
- }, "strict", z.ZodTypeAny, {
455
- "timestamp-format"?: string | undefined;
1095
+ joiner: z.ZodOptional<z.ZodString>;
1096
+ }, "strict", z.ZodTypeAny, {
456
1097
  field?: string | undefined;
1098
+ extractor?: string | undefined;
457
1099
  prefix?: string | undefined;
458
1100
  suffix?: string | undefined;
459
- "default-value"?: string | undefined;
460
- "min-width"?: number | undefined;
461
- "auto-width"?: boolean | undefined;
462
- "max-width"?: number | undefined;
463
- align?: "left" | "right" | undefined;
464
- overflow?: "abbrev" | "truncate" | "dot-dot" | "last-word" | undefined;
465
- "text-transform"?: "none" | "uppercase" | "lowercase" | "capitalize" | undefined;
466
- }, {
467
- "timestamp-format"?: string | undefined;
1101
+ joiner?: string | undefined;
1102
+ }, {
468
1103
  field?: string | undefined;
1104
+ extractor?: string | undefined;
469
1105
  prefix?: string | undefined;
470
1106
  suffix?: string | undefined;
471
- "default-value"?: string | undefined;
472
- "min-width"?: number | undefined;
473
- "auto-width"?: boolean | undefined;
474
- "max-width"?: number | undefined;
475
- align?: "left" | "right" | undefined;
476
- overflow?: "abbrev" | "truncate" | "dot-dot" | "last-word" | undefined;
477
- "text-transform"?: "none" | "uppercase" | "lowercase" | "capitalize" | undefined;
478
- }>]>, "many">>;
479
- "search-table": z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
480
- pattern: z.ZodOptional<z.ZodString>;
481
- glob: z.ZodOptional<z.ZodString>;
482
- level: z.ZodOptional<z.ZodEnum<["trace", "debug5", "debug4", "debug3", "debug2", "debug", "info", "stats", "notice", "warning", "error", "critical", "fatal"]>>;
1107
+ joiner?: string | undefined;
1108
+ }>, "many">>;
483
1109
  }, "strict", z.ZodTypeAny, {
484
- level?: "error" | "info" | "warning" | "debug" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "stats" | "notice" | "critical" | "fatal" | undefined;
485
- pattern?: string | undefined;
486
- 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;
487
1117
  }, {
488
- level?: "error" | "info" | "warning" | "debug" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "stats" | "notice" | "critical" | "fatal" | undefined;
489
- pattern?: string | undefined;
490
- 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;
491
1125
  }>, z.ZodNever]>>, Record<string, {
492
- level?: "error" | "info" | "warning" | "debug" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "stats" | "notice" | "critical" | "fatal" | undefined;
493
- pattern?: string | undefined;
494
- 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;
495
1133
  }>, Record<string, {
496
- level?: "error" | "info" | "warning" | "debug" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "stats" | "notice" | "critical" | "fatal" | undefined;
497
- pattern?: string | undefined;
498
- 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;
499
1141
  }>>>;
500
- highlights: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
501
- pattern: z.ZodOptional<z.ZodString>;
502
- color: z.ZodOptional<z.ZodString>;
503
- "background-color": z.ZodOptional<z.ZodString>;
504
- underline: z.ZodOptional<z.ZodBoolean>;
505
- 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">>;
506
1162
  }, "strict", z.ZodTypeAny, {
507
- blink?: boolean | undefined;
508
- pattern?: string | undefined;
509
- color?: string | undefined;
510
- "background-color"?: string | undefined;
511
- underline?: 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;
512
1170
  }, {
513
- blink?: boolean | undefined;
514
- pattern?: string | undefined;
515
- color?: string | undefined;
516
- "background-color"?: string | undefined;
517
- underline?: 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;
518
1178
  }>, z.ZodNever]>>, Record<string, {
519
- blink?: boolean | undefined;
520
- pattern?: string | undefined;
521
- color?: string | undefined;
522
- "background-color"?: string | undefined;
523
- underline?: 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;
524
1186
  }>, Record<string, {
525
- blink?: boolean | undefined;
526
- pattern?: string | undefined;
527
- color?: string | undefined;
528
- "background-color"?: string | undefined;
529
- underline?: 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;
530
1194
  }>>>;
531
- "file-type": z.ZodOptional<z.ZodEnum<["text", "json", "csv"]>>;
532
- "max-unrecognized-lines": z.ZodOptional<z.ZodNumber>;
533
- }, "strict", z.ZodTypeAny, {
534
- value?: Record<string, {
535
- description?: string | undefined;
536
- kind?: "string" | "boolean" | "integer" | "float" | "json" | "struct" | "quoted" | "xml" | undefined;
537
- collate?: string | undefined;
538
- unit?: {
539
- field?: string | undefined;
540
- "scaling-factor"?: Record<string, {
541
- value?: number | undefined;
542
- op?: "identity" | "multiply" | "divide" | undefined;
543
- }> | undefined;
544
- } | undefined;
545
- identifier?: boolean | undefined;
546
- "foreign-key"?: boolean | undefined;
547
- hidden?: boolean | undefined;
548
- "action-list"?: string[] | undefined;
549
- 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;
550
1204
  }> | undefined;
551
- description?: string | undefined;
552
- json?: boolean | undefined;
553
- action?: Record<string, string | {
554
- label?: string | undefined;
555
- "capture-output"?: boolean | undefined;
556
- cmd?: string[] | 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
- level?: Record<string, string | number> | undefined;
559
- regex?: Record<string, {
560
- pattern?: string | undefined;
561
- "module-format"?: boolean | 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;
562
1234
  }> | undefined;
563
- "convert-to-local-time"?: boolean | undefined;
564
- "hide-extra"?: boolean | undefined;
565
- multiline?: boolean | undefined;
566
- "timestamp-divisor"?: number | undefined;
567
- "file-pattern"?: string | undefined;
568
- converter?: {
569
- type?: string | undefined;
570
- header?: {
571
- size?: number | undefined;
572
- expr?: Record<string, string> | undefined;
573
- } | undefined;
574
- command?: string | 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;
575
1288
  } | undefined;
576
- "level-field"?: string | undefined;
577
- "level-pointer"?: string | undefined;
578
- "timestamp-field"?: string | undefined;
579
- "subsecond-field"?: string | undefined;
580
- "subsecond-units"?: "milli" | "micro" | "nano" | undefined;
581
- "time-field"?: string | undefined;
582
- "body-field"?: string | undefined;
583
- url?: string | string[] | undefined;
584
- title?: string | undefined;
585
- "timestamp-format"?: string[] | undefined;
586
- "module-field"?: string | undefined;
587
- "opid-field"?: string | undefined;
588
- opid?: {
589
- description?: Record<string, {
590
- format?: {
591
- field?: string | undefined;
592
- extractor?: string | undefined;
593
- prefix?: string | undefined;
594
- suffix?: string | undefined;
595
- joiner?: string | undefined;
596
- }[] | undefined;
597
- }> | undefined;
598
- subid?: string | undefined;
599
- "sub-description"?: Record<string, {
600
- format?: {
601
- field?: string | undefined;
602
- extractor?: string | undefined;
603
- prefix?: string | undefined;
604
- suffix?: string | undefined;
605
- joiner?: string | undefined;
606
- }[] | undefined;
607
- }> | undefined;
1289
+ identifier?: boolean | undefined;
1290
+ "foreign-key"?: boolean | undefined;
1291
+ hidden?: boolean | undefined;
1292
+ "action-list"?: string[] | undefined;
1293
+ rewriter?: string | undefined;
1294
+ }, {
1295
+ description?: string | 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;
608
1304
  } | undefined;
609
- "ordered-by-time"?: boolean | undefined;
610
- tags?: Record<string, {
611
- description?: string | undefined;
612
- level?: "error" | "info" | "warning" | "debug" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "stats" | "notice" | "critical" | "fatal" | undefined;
613
- pattern?: string | undefined;
614
- paths?: {
615
- glob?: string | undefined;
616
- }[] | undefined;
617
- }> | undefined;
618
- partitions?: Record<string, {
619
- description?: string | undefined;
620
- level?: "error" | "info" | "warning" | "debug" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "stats" | "notice" | "critical" | "fatal" | undefined;
621
- pattern?: string | undefined;
622
- paths?: {
623
- glob?: string | undefined;
624
- }[] | undefined;
625
- }> | undefined;
626
- sample?: {
627
- description?: string | undefined;
628
- level?: "error" | "info" | "warning" | "debug" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "stats" | "notice" | "critical" | "fatal" | undefined;
629
- 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;
1367
+ }[] | 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;
630
1407
  }[] | undefined;
631
- "line-format"?: (string | {
632
- "timestamp-format"?: string | 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?: {
633
1601
  field?: string | undefined;
1602
+ extractor?: string | undefined;
634
1603
  prefix?: string | undefined;
635
1604
  suffix?: string | undefined;
636
- "default-value"?: string | undefined;
637
- "min-width"?: number | undefined;
638
- "auto-width"?: boolean | undefined;
639
- "max-width"?: number | undefined;
640
- align?: "left" | "right" | undefined;
641
- overflow?: "abbrev" | "truncate" | "dot-dot" | "last-word" | undefined;
642
- "text-transform"?: "none" | "uppercase" | "lowercase" | "capitalize" | undefined;
643
- })[] | undefined;
644
- "search-table"?: Record<string, {
645
- level?: "error" | "info" | "warning" | "debug" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "stats" | "notice" | "critical" | "fatal" | undefined;
646
- pattern?: string | undefined;
647
- glob?: string | undefined;
1605
+ joiner?: string | undefined;
1606
+ }[] | undefined;
648
1607
  }> | undefined;
649
- highlights?: Record<string, {
650
- blink?: boolean | undefined;
651
- pattern?: string | undefined;
652
- color?: string | undefined;
653
- "background-color"?: string | undefined;
654
- underline?: 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;
655
1617
  }> | undefined;
656
- "file-type"?: "json" | "text" | "csv" | undefined;
657
- "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;
658
1673
  }, {
659
- value?: Record<string, {
660
- description?: string | undefined;
661
- kind?: "string" | "boolean" | "integer" | "float" | "json" | "struct" | "quoted" | "xml" | undefined;
662
- collate?: string | undefined;
663
- unit?: {
664
- field?: string | undefined;
665
- "scaling-factor"?: Record<string, {
666
- value?: number | undefined;
667
- op?: "identity" | "multiply" | "divide" | undefined;
668
- }> | undefined;
669
- } | undefined;
670
- identifier?: boolean | undefined;
671
- "foreign-key"?: boolean | undefined;
672
- hidden?: boolean | undefined;
673
- "action-list"?: string[] | undefined;
674
- rewriter?: string | undefined;
675
- }> | undefined;
1674
+ level?: Record<string, string | number> | undefined;
1675
+ value?: Record<string, {
676
1676
  description?: string | undefined;
677
- json?: boolean | undefined;
678
- action?: Record<string, string | {
679
- label?: string | undefined;
680
- "capture-output"?: boolean | undefined;
681
- cmd?: string[] | undefined;
682
- }> | undefined;
683
- level?: Record<string, string | number> | undefined;
684
- regex?: Record<string, {
685
- pattern?: string | undefined;
686
- "module-format"?: boolean | undefined;
687
- }> | undefined;
688
- "convert-to-local-time"?: boolean | undefined;
689
- "hide-extra"?: boolean | undefined;
690
- multiline?: boolean | undefined;
691
- "timestamp-divisor"?: number | undefined;
692
- "file-pattern"?: string | undefined;
693
- converter?: {
694
- type?: string | undefined;
695
- header?: {
696
- size?: number | undefined;
697
- expr?: Record<string, string> | undefined;
698
- } | undefined;
699
- command?: string | 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;
700
1685
  } | undefined;
701
- "level-field"?: string | undefined;
702
- "level-pointer"?: string | undefined;
703
- "timestamp-field"?: string | undefined;
704
- "subsecond-field"?: string | undefined;
705
- "subsecond-units"?: "milli" | "micro" | "nano" | undefined;
706
- "time-field"?: string | undefined;
707
- "body-field"?: string | undefined;
708
- url?: string | string[] | undefined;
709
- title?: string | undefined;
710
- "timestamp-format"?: string[] | undefined;
711
- "module-field"?: string | undefined;
712
- "opid-field"?: string | undefined;
713
- opid?: {
714
- description?: Record<string, {
715
- format?: {
716
- field?: string | undefined;
717
- extractor?: string | undefined;
718
- prefix?: string | undefined;
719
- suffix?: string | undefined;
720
- joiner?: string | undefined;
721
- }[] | undefined;
722
- }> | undefined;
723
- subid?: string | undefined;
724
- "sub-description"?: Record<string, {
725
- format?: {
726
- field?: string | undefined;
727
- extractor?: string | undefined;
728
- prefix?: string | undefined;
729
- suffix?: string | undefined;
730
- joiner?: string | undefined;
731
- }[] | undefined;
732
- }> | 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;
733
1707
  } | undefined;
734
- "ordered-by-time"?: boolean | undefined;
735
- tags?: Record<string, {
736
- description?: string | undefined;
737
- level?: "error" | "info" | "warning" | "debug" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "stats" | "notice" | "critical" | "fatal" | undefined;
738
- pattern?: string | undefined;
739
- paths?: {
740
- glob?: string | undefined;
741
- }[] | undefined;
742
- }> | undefined;
743
- partitions?: Record<string, {
744
- description?: string | undefined;
745
- level?: "error" | "info" | "warning" | "debug" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "stats" | "notice" | "critical" | "fatal" | undefined;
746
- pattern?: string | undefined;
747
- paths?: {
748
- glob?: string | undefined;
749
- }[] | undefined;
750
- }> | undefined;
751
- sample?: {
752
- description?: string | undefined;
753
- level?: "error" | "info" | "warning" | "debug" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "stats" | "notice" | "critical" | "fatal" | undefined;
754
- line?: string | undefined;
755
- }[] | undefined;
756
- "line-format"?: (string | {
757
- "timestamp-format"?: string | 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?: {
758
1726
  field?: string | undefined;
1727
+ extractor?: string | undefined;
759
1728
  prefix?: string | undefined;
760
1729
  suffix?: string | undefined;
761
- "default-value"?: string | undefined;
762
- "min-width"?: number | undefined;
763
- "auto-width"?: boolean | undefined;
764
- "max-width"?: number | undefined;
765
- align?: "left" | "right" | undefined;
766
- overflow?: "abbrev" | "truncate" | "dot-dot" | "last-word" | undefined;
767
- "text-transform"?: "none" | "uppercase" | "lowercase" | "capitalize" | undefined;
768
- })[] | undefined;
769
- "search-table"?: Record<string, {
770
- level?: "error" | "info" | "warning" | "debug" | "trace" | "debug5" | "debug4" | "debug3" | "debug2" | "stats" | "notice" | "critical" | "fatal" | undefined;
771
- pattern?: string | undefined;
772
- glob?: string | undefined;
1730
+ joiner?: string | undefined;
1731
+ }[] | undefined;
773
1732
  }> | undefined;
774
- highlights?: Record<string, {
775
- blink?: boolean | undefined;
776
- pattern?: string | undefined;
777
- color?: string | undefined;
778
- "background-color"?: string | undefined;
779
- underline?: 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;
780
1742
  }> | undefined;
781
- "file-type"?: "json" | "text" | "csv" | undefined;
782
- "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;
783
1798
  }>;
784
1799
  type LnavFormat = z.infer<typeof lnavFormatSchema>;
785
1800
 
1801
+ //#endregion
1802
+ //#region src/flightdeck.lib.d.ts
786
1803
  declare const FLIGHTDECK_SETUP_PHASES: readonly ["downloaded", "installed"];
787
1804
  type FlightDeckSetupPhase = (typeof FLIGHTDECK_SETUP_PHASES)[number];
788
1805
  declare const FLIGHTDECK_UPDATE_PHASES: readonly ["notified", "confirmed"];
789
1806
  type FlightDeckUpdatePhase = (typeof FLIGHTDECK_UPDATE_PHASES)[number];
790
1807
  declare function isVersionNumber(version: string): boolean;
791
1808
  type FlightDeckOptions<S extends string = string> = {
792
- packageName: string;
793
- services: {
794
- [service in S]: {
795
- run: string;
796
- waitFor: boolean;
797
- };
798
- };
799
- scripts: {
800
- download: string;
801
- install: string;
802
- checkAvailability?: string;
803
- };
804
- port?: number | undefined;
805
- flightdeckRootDir?: string | undefined;
806
- 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;
807
1822
  };
808
1823
  declare class FlightDeck<S extends string = string> {
809
- readonly options: FlightDeckOptions<S>;
810
- protected safety: number;
811
- protected storage: FilesystemStorage<{
812
- setupPhase: FlightDeckSetupPhase;
813
- updatePhase: FlightDeckUpdatePhase;
814
- updateAwaitedVersion: string;
815
- }>;
816
- protected webhookServer: Server;
817
- protected services: {
818
- [service in S]: ChildSocket<{
819
- timeToStop: [];
820
- updatesReady: [];
821
- }, {
822
- readyToUpdate: [];
823
- alive: [];
824
- }> | null;
825
- };
826
- protected serviceIdx: {
827
- readonly [service in S]: number;
828
- };
829
- defaultServicesReadyToUpdate: {
830
- readonly [service in S]: boolean;
831
- };
832
- servicesReadyToUpdate: {
833
- [service in S]: boolean;
834
- };
835
- autoRespawnDeadServices: boolean;
836
- protected logger: Pick<Console, `error` | `info` | `warn`>;
837
- protected serviceLoggers: {
838
- readonly [service in S]: FlightDeckLogger;
839
- };
840
- protected updateAvailabilityChecker: CronJob | null;
841
- servicesLive: Future<void>[];
842
- servicesDead: Future<void>[];
843
- live: Future<unknown>;
844
- dead: Future<unknown>;
845
- protected restartTimes: number[];
846
- constructor(options: FlightDeckOptions<S>);
847
- protected seekUpdate(version: string): Promise<void>;
848
- protected announceUpdate(): void;
849
- protected tryUpdate(): void;
850
- protected startAllServices(): Future<unknown>;
851
- protected startService(serviceName: S): void;
852
- protected downloadPackage(): void;
853
- protected installPackage(): void;
854
- stopAllServices(): Future<unknown>;
855
- 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;
856
1860
  }
857
1861
  declare const FLIGHTDECK_INFO = "info";
858
1862
  declare const FLIGHTDECK_WARN = "warn";
859
1863
  declare const FLIGHTDECK_ERROR = "ERR!";
860
1864
  declare const flightDeckLogSchema: z.ZodObject<{
861
- level: z.ZodUnion<[z.ZodLiteral<"info">, z.ZodLiteral<"warn">, z.ZodLiteral<"ERR!">]>;
862
- timestamp: z.ZodNumber;
863
- package: z.ZodString;
864
- service: z.ZodOptional<z.ZodString>;
865
- process: z.ZodNumber;
866
- 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;
867
1871
  }, "strip", z.ZodTypeAny, {
868
- process: number;
869
- timestamp: number;
870
- level: "info" | "warn" | "ERR!";
871
- package: string;
872
- body: string;
873
- service?: string | undefined;
1872
+ level: "info" | "warn" | "ERR!";
1873
+ timestamp: number;
1874
+ package: string;
1875
+ process: number;
1876
+ body: string;
1877
+ service?: string | undefined;
874
1878
  }, {
875
- process: number;
876
- timestamp: number;
877
- level: "info" | "warn" | "ERR!";
878
- package: string;
879
- body: string;
880
- service?: string | undefined;
1879
+ level: "info" | "warn" | "ERR!";
1880
+ timestamp: number;
1881
+ package: string;
1882
+ process: number;
1883
+ body: string;
1884
+ service?: string | undefined;
881
1885
  }>;
882
1886
  type FlightDeckLog = z.infer<typeof flightDeckLogSchema>;
883
1887
  declare const LINE_FORMAT = "line-format";
@@ -887,136 +1891,130 @@ type LnavFormatBreakdown = Exclude<LnavFormat[`value`], undefined>;
887
1891
  type MemberOf<T> = T[keyof T];
888
1892
  type LnavFormatValueDefinition = MemberOf<LnavFormatBreakdown>;
889
1893
  type FlightDeckFormat = {
890
- [LINE_FORMAT]: (string | (LnavFormatVisualComponent & {
891
- field: keyof FlightDeckLog | `__level__` | `__timestamp__`;
892
- }))[];
893
- [VALUE]: {
894
- [K in keyof FlightDeckLog]: LnavFormatValueDefinition & {
895
- kind: FlightDeckLog[K] extends number | undefined ? `integer` : FlightDeckLog[K] extends string | undefined ? `string` : never;
896
- };
897
- };
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
+ } };
898
1900
  };
899
1901
  declare const FLIGHTDECK_LNAV_FORMAT: {
900
- readonly title: "FlightDeck Log";
901
- readonly description: "Format for events logged by the FlightDeck process manager.";
902
- readonly "file-type": "json";
903
- readonly "timestamp-field": "timestamp";
904
- readonly "timestamp-divisor": 1000;
905
- readonly "module-field": "package";
906
- readonly "opid-field": "service";
907
- 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
+ };
908
1940
  readonly level: {
909
- readonly info: "info";
910
- readonly warning: "warn";
911
- readonly error: "ERR!";
1941
+ readonly kind: "string";
912
1942
  };
913
- readonly "line-format": [{
914
- readonly field: "level";
915
- }, {
916
- readonly prefix: " ";
917
- readonly field: "__timestamp__";
918
- readonly "timestamp-format": "%Y-%m-%dT%H:%M:%S.%L%Z";
919
- }, {
920
- readonly prefix: " ";
921
- readonly field: "process";
922
- readonly "min-width": 5;
923
- }, {
924
- readonly prefix: ":";
925
- readonly field: "package";
926
- }, {
927
- readonly prefix: ":";
928
- readonly field: "service";
929
- readonly "default-value": "";
930
- }, {
931
- readonly prefix: ": ";
932
- readonly field: "body";
933
- }];
934
- readonly value: {
935
- readonly timestamp: {
936
- readonly kind: "integer";
937
- };
938
- readonly level: {
939
- readonly kind: "string";
940
- };
941
- readonly package: {
942
- readonly kind: "string";
943
- };
944
- readonly service: {
945
- readonly kind: "string";
946
- };
947
- readonly process: {
948
- readonly kind: "integer";
949
- };
950
- readonly body: {
951
- readonly kind: "string";
952
- };
1943
+ readonly package: {
1944
+ readonly kind: "string";
1945
+ };
1946
+ readonly service: {
1947
+ readonly kind: "string";
953
1948
  };
1949
+ readonly process: {
1950
+ readonly kind: "integer";
1951
+ };
1952
+ readonly body: {
1953
+ readonly kind: "string";
1954
+ };
1955
+ };
954
1956
  };
955
1957
  declare class FlightDeckLogger implements Pick<Console, `error` | `info` | `warn`> {
956
- readonly packageName: string;
957
- readonly serviceName?: string;
958
- readonly jsonLogging: boolean;
959
- processCode: number;
960
- constructor(packageName: string, processCode: number, serviceName?: string, options?: {
961
- jsonLogging: boolean;
962
- });
963
- protected log(level: typeof FLIGHTDECK_ERROR | typeof FLIGHTDECK_INFO | typeof FLIGHTDECK_WARN, ...messages: unknown[]): void;
964
- info(...messages: unknown[]): void;
965
- warn(...messages: unknown[]): void;
966
- 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;
967
1969
  }
968
1970
 
1971
+ //#endregion
1972
+ //#region src/klaxon.lib.d.ts
1973
+ declare namespace klaxon_lib_d_exports {
1974
+ export { AlertOptions, ChangesetsPublishResult, ChangesetsPublishedPackage, PackageConfig, ScrambleOptions, ScrambleResult, SecretsConfig, alert, scramble };
1975
+ }
969
1976
  type AlertOptions = {
970
- secret: string;
971
- endpoint: string;
972
- version: string;
1977
+ secret: string;
1978
+ endpoint: string;
1979
+ version: string;
973
1980
  };
974
- declare function alert({ secret, endpoint, version, }: AlertOptions): Promise<Response>;
1981
+ declare function alert({
1982
+ secret,
1983
+ endpoint,
1984
+ version
1985
+ }: AlertOptions): Promise<Response>;
975
1986
  /**
976
1987
  * @see https://github.com/changesets/action/blob/main/src/run.ts
977
1988
  */
978
1989
  type ChangesetsPublishedPackage = {
979
- name: string;
980
- version: string;
1990
+ name: string;
1991
+ version: string;
981
1992
  };
982
1993
  /**
983
1994
  * @see https://github.com/changesets/action/blob/main/src/run.ts
984
1995
  */
985
1996
  type ChangesetsPublishResult = {
986
- published: true;
987
- publishedPackages: ChangesetsPublishedPackage[];
1997
+ published: true;
1998
+ publishedPackages: ChangesetsPublishedPackage[];
988
1999
  } | {
989
- published: false;
990
- };
991
- type PackageConfig<K extends string> = {
992
- [key in K]: {
993
- endpoint: string;
994
- };
995
- };
996
- type SecretsConfig<K extends string> = {
997
- [key in K]: string;
2000
+ published: false;
998
2001
  };
2002
+ type PackageConfig<K extends string> = { [key in K]: {
2003
+ endpoint: string;
2004
+ } };
2005
+ type SecretsConfig<K extends string> = { [key in K]: string };
999
2006
  type ScrambleOptions<K extends string = string> = {
1000
- packageConfig: PackageConfig<K>;
1001
- secretsConfig: SecretsConfig<K>;
1002
- publishedPackages: ChangesetsPublishedPackage[];
1003
- };
1004
- type ScrambleResult<K extends string = string> = {
1005
- [key in K]: Response;
1006
- };
1007
- declare function scramble<K extends string = string>({ packageConfig, secretsConfig, publishedPackages, }: ScrambleOptions<K>): Promise<ScrambleResult<K>>;
1008
-
1009
- type klaxon_lib_AlertOptions = AlertOptions;
1010
- type klaxon_lib_ChangesetsPublishResult = ChangesetsPublishResult;
1011
- type klaxon_lib_ChangesetsPublishedPackage = ChangesetsPublishedPackage;
1012
- type klaxon_lib_PackageConfig<K extends string> = PackageConfig<K>;
1013
- type klaxon_lib_ScrambleOptions<K extends string = string> = ScrambleOptions<K>;
1014
- type klaxon_lib_ScrambleResult<K extends string = string> = ScrambleResult<K>;
1015
- type klaxon_lib_SecretsConfig<K extends string> = SecretsConfig<K>;
1016
- declare const klaxon_lib_alert: typeof alert;
1017
- declare const klaxon_lib_scramble: typeof scramble;
1018
- declare namespace klaxon_lib {
1019
- export { type klaxon_lib_AlertOptions as AlertOptions, type klaxon_lib_ChangesetsPublishResult as ChangesetsPublishResult, type klaxon_lib_ChangesetsPublishedPackage as ChangesetsPublishedPackage, type klaxon_lib_PackageConfig as PackageConfig, type klaxon_lib_ScrambleOptions as ScrambleOptions, type klaxon_lib_ScrambleResult as ScrambleResult, type klaxon_lib_SecretsConfig as SecretsConfig, klaxon_lib_alert as alert, klaxon_lib_scramble as scramble };
1020
- }
2007
+ packageConfig: PackageConfig<K>;
2008
+ secretsConfig: SecretsConfig<K>;
2009
+ publishedPackages: ChangesetsPublishedPackage[];
2010
+ };
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>>;
1021
2017
 
1022
- export { FLIGHTDECK_ERROR, FLIGHTDECK_INFO, FLIGHTDECK_LNAV_FORMAT, FLIGHTDECK_SETUP_PHASES, FLIGHTDECK_UPDATE_PHASES, FLIGHTDECK_WARN, FlightDeck, type FlightDeckFormat, type FlightDeckLog, FlightDeckLogger, type FlightDeckOptions, type FlightDeckSetupPhase, type FlightDeckUpdatePhase, klaxon_lib as Klaxon, type LnavFormatBreakdown, type LnavFormatValueDefinition, type LnavFormatVisualComponent, type MemberOf, flightDeckLogSchema, isVersionNumber };
2018
+ //#endregion
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 };
2020
+ //# sourceMappingURL=lib.d.ts.map