zapmyco 0.1.0

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.
@@ -0,0 +1,2502 @@
1
+ import { C as FinalResult, E as TokenUsage, S as ArtifactType, T as TaskResult, _ as AgentRegistration, a as IAgent, b as CapabilityCategory, c as TaskGraph, d as GoalConstraints, f as GoalType, g as ProgressPayload, h as ProgressEventType, i as AgentStatus, l as TaskStatus, m as ProgressEvent, n as AgentExecuteRequest, o as IStreamingAgent, p as ProjectContext, r as AgentHealthStatus, s as SubTask, t as AgentExecuteOptions, u as Goal, v as AgentRegistrationStatus, w as TaskError, x as Artifact, y as Capability } from "./agent-PR6zGvgA.mjs";
2
+ import { EventEmitter } from "node:events";
3
+ import { Agent, AgentEvent, AgentTool, AgentTool as AgentTool$1, AgentToolResult } from "@mariozechner/pi-agent-core";
4
+ import { EventEmitter as EventEmitter$1 } from "eventemitter3";
5
+ import { KnownProvider } from "@mariozechner/pi-ai";
6
+
7
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/types/schema.d.mts
8
+ interface TSchema {}
9
+ interface TSchemaOptions {
10
+ /**
11
+ * Allows for additional, unlisted properties to be included, typically for extensibility.
12
+ */
13
+ [key: PropertyKey]: unknown;
14
+ /**
15
+ * Specifies the URI of a JSON Schema that the current schema adheres to.
16
+ */
17
+ $schema?: string;
18
+ /**
19
+ * A URI that serves as a unique identifier for the schema.
20
+ */
21
+ $id?: string;
22
+ /**
23
+ * A short explanation about the purpose of the data described by the schema.
24
+ */
25
+ title?: string;
26
+ /**
27
+ * A detailed explanation of the data described by the schema.
28
+ */
29
+ description?: string;
30
+ /**
31
+ * A default value for the data, used when no value is provided.
32
+ */
33
+ default?: unknown;
34
+ /**
35
+ * Provides one or more examples of valid data conforming to the schema.
36
+ */
37
+ examples?: unknown;
38
+ /**
39
+ * Indicates that the data should only be readable and not modified.
40
+ */
41
+ readOnly?: boolean;
42
+ /**
43
+ * Indicates that the data should only be writable and not read back.
44
+ */
45
+ writeOnly?: boolean;
46
+ /**
47
+ * A schema to apply conditionally: if the data validates against this schema, 'then' applies.
48
+ */
49
+ if?: TSchema;
50
+ /**
51
+ * A schema to apply if the data validates against the 'if' schema.
52
+ */
53
+ then?: TSchema;
54
+ /**
55
+ * A schema to apply if the data does not validate against the 'if' schema.
56
+ */
57
+ else?: TSchema;
58
+ }
59
+ interface TObjectOptions extends TSchemaOptions {
60
+ /**
61
+ * Defines whether additional properties are allowed beyond those explicitly defined in `properties`.
62
+ */
63
+ additionalProperties?: TSchema | boolean;
64
+ /**
65
+ * The minimum number of properties required in the object.
66
+ */
67
+ minProperties?: number;
68
+ /**
69
+ * The maximum number of properties allowed in the object.
70
+ */
71
+ maxProperties?: number;
72
+ /**
73
+ * Defines conditional requirements for properties.
74
+ */
75
+ dependencies?: Record<string, boolean | TSchema | string[]>;
76
+ /**
77
+ * Specifies properties that *must* be present if a given property is present.
78
+ */
79
+ dependentRequired?: Record<string, string[]>;
80
+ /**
81
+ * Defines schemas that apply if a specific property is present.
82
+ */
83
+ dependentSchemas?: Record<string, TSchema>;
84
+ /**
85
+ * Maps regular expressions to schemas properties matching a pattern must validate against the schema.
86
+ */
87
+ patternProperties?: Record<string, TSchema>;
88
+ /**
89
+ * A schema that all property names within the object must validate against.
90
+ */
91
+ propertyNames?: TSchema;
92
+ }
93
+ //#endregion
94
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/action/_optional.d.mts
95
+ /** Represents a operation to apply Optional to a property */
96
+ interface TOptionalAddAction<Type extends TSchema = TSchema> extends TSchema {
97
+ '~kind': 'OptionalAddAction';
98
+ type: Type;
99
+ }
100
+ /** Represents a operation to remove Optional from a property */
101
+ interface TOptionalRemoveAction<Type extends TSchema = TSchema> extends TSchema {
102
+ '~kind': 'OptionalRemoveAction';
103
+ type: Type;
104
+ }
105
+ //#endregion
106
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/action/_readonly.d.mts
107
+ /** Represents an operation to apply Readonly to a property. */
108
+ interface TReadonlyAddAction<Type extends TSchema = TSchema> extends TSchema {
109
+ '~kind': 'ReadonlyAddAction';
110
+ type: Type;
111
+ }
112
+ /** Represents an action to remove Readonly from a property. */
113
+ interface TReadonlyRemoveAction<Type extends TSchema = TSchema> extends TSchema {
114
+ '~kind': 'ReadonlyRemoveAction';
115
+ type: Type;
116
+ }
117
+ //#endregion
118
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/types/deferred.d.mts
119
+ /** Represents a deferred action. */
120
+ interface TDeferred<Action extends string = string, Types extends TSchema[] = TSchema[]> extends TSchema {
121
+ '~kind': 'Deferred';
122
+ action: Action;
123
+ parameters: Types;
124
+ options: TSchemaOptions;
125
+ }
126
+ //#endregion
127
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/types/_codec.d.mts
128
+ type StaticCodec<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Type extends TSchema, Decoded extends unknown> = (Direction extends 'Decode' ? Decoded : StaticType<Stack, Direction, Context, This, Omit<Type, '~codec'>>);
129
+ type TDecodeCallback<Type extends TSchema, Decoded = unknown> = (input: StaticType<[], 'Decode', {}, {}, Type>) => Decoded;
130
+ type TEncodeCallback<Type extends TSchema, Decoded = unknown> = (input: Decoded) => StaticType<[], 'Decode', {}, {}, Type>;
131
+ type TCodec<Type extends TSchema = TSchema, Decoded extends unknown = unknown> = Type & {
132
+ '~codec': {
133
+ encode: TDecodeCallback<Type, Decoded>;
134
+ decode: TEncodeCallback<Type, Decoded>;
135
+ };
136
+ };
137
+ //#endregion
138
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/types/any.d.mts
139
+ type StaticAny = any;
140
+ /** Represents a Any type. */
141
+ interface TAny extends TSchema {
142
+ '~kind': 'Any';
143
+ }
144
+ //#endregion
145
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/types/_immutable.d.mts
146
+ /** Adds Immutable to the given type. */
147
+ type TImmutableAdd<Type extends TSchema = TSchema> = ('~immutable' extends keyof Type ? Type : TImmutable<Type>);
148
+ type TImmutable<Type extends TSchema = TSchema> = (Type & {
149
+ '~immutable': true;
150
+ });
151
+ //#endregion
152
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/types/array.d.mts
153
+ type StaticArray<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Array extends TSchema, Item extends TSchema, Result extends readonly unknown[] = (Array extends TImmutable ? readonly StaticType<Stack, Direction, Context, This, Item>[] : StaticType<Stack, Direction, Context, This, Item>[])> = Result;
154
+ /** Represents an Array type. */
155
+ interface TArray<Type extends TSchema = TSchema> extends TSchema {
156
+ '~kind': 'Array';
157
+ type: 'array';
158
+ items: Type;
159
+ }
160
+ //#endregion
161
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/types/async_iterator.d.mts
162
+ type StaticAsyncIterator<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Type extends TSchema, Result = AsyncIterableIterator<StaticType<Stack, Direction, Context, This, Type>>> = Result;
163
+ /** Represents a AsyncIterator. */
164
+ interface TAsyncIterator<Type extends TSchema = TSchema> extends TSchema {
165
+ '~kind': 'AsyncIterator';
166
+ type: 'asyncIterator';
167
+ iteratorItems: Type;
168
+ }
169
+ //#endregion
170
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/schema/types/schema.d.mts
171
+ type XSchemaObject = object;
172
+ type XSchemaBoolean = boolean;
173
+ type XSchema = XSchemaObject | XSchemaBoolean;
174
+ //#endregion
175
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/schema/types/_guard.d.mts
176
+ interface XGuardInterface<Value extends unknown = unknown> {
177
+ check(value: unknown): value is Value;
178
+ errors(value: unknown): object[];
179
+ }
180
+ interface XGuard<Value extends unknown = unknown> {
181
+ '~guard': XGuardInterface<Value>;
182
+ }
183
+ //#endregion
184
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/schema/types/additionalItems.d.mts
185
+ interface XAdditionalItems<AdditionalItems extends XSchema = XSchema> {
186
+ additionalItems: AdditionalItems;
187
+ }
188
+ //#endregion
189
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/schema/types/additionalProperties.d.mts
190
+ interface XAdditionalProperties<AdditionalProperties extends XSchema = XSchema> {
191
+ additionalProperties: AdditionalProperties;
192
+ }
193
+ //#endregion
194
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/schema/types/allOf.d.mts
195
+ interface XAllOf<AllOf extends XSchema[] = XSchema[]> {
196
+ allOf: AllOf;
197
+ }
198
+ //#endregion
199
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/schema/types/anyOf.d.mts
200
+ interface XAnyOf<AnyOf extends XSchema[] = XSchema[]> {
201
+ anyOf: AnyOf;
202
+ }
203
+ //#endregion
204
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/schema/types/const.d.mts
205
+ interface XConst<Const extends unknown = unknown> {
206
+ const: Const;
207
+ }
208
+ //#endregion
209
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/schema/types/else.d.mts
210
+ interface XElse<Else extends XSchema = XSchema> {
211
+ else: Else;
212
+ }
213
+ //#endregion
214
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/schema/types/enum.d.mts
215
+ interface XEnum<Enum extends unknown[] = unknown[]> {
216
+ enum: Enum;
217
+ }
218
+ //#endregion
219
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/schema/types/if.d.mts
220
+ interface XIf<If extends XSchema = XSchema> {
221
+ if: If;
222
+ }
223
+ //#endregion
224
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/schema/types/items.d.mts
225
+ interface XItems<Items extends (XSchema | XSchema[]) = (XSchema | XSchema[])> {
226
+ items: Items;
227
+ }
228
+ //#endregion
229
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/schema/types/maxItems.d.mts
230
+ interface XMaxItems<MaxItems extends number = number> {
231
+ maxItems: MaxItems;
232
+ }
233
+ //#endregion
234
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/schema/types/minItems.d.mts
235
+ interface XMinItems<MinItems extends number = number> {
236
+ minItems: MinItems;
237
+ }
238
+ //#endregion
239
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/schema/types/oneOf.d.mts
240
+ interface XOneOf<OneOf extends XSchema[] = XSchema[]> {
241
+ oneOf: OneOf;
242
+ }
243
+ //#endregion
244
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/schema/types/patternProperties.d.mts
245
+ interface XPatternProperties<PatternProperties extends Record<PropertyKey, XSchema> = Record<PropertyKey, XSchema>> {
246
+ patternProperties: PatternProperties;
247
+ }
248
+ //#endregion
249
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/schema/types/prefixItems.d.mts
250
+ interface XPrefixItems<PrefixItems extends XSchema[] = XSchema[]> {
251
+ prefixItems: PrefixItems;
252
+ }
253
+ //#endregion
254
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/schema/types/properties.d.mts
255
+ interface XProperties<Properties extends Record<PropertyKey, XSchema> = Record<PropertyKey, XSchema>> {
256
+ properties: Properties;
257
+ }
258
+ //#endregion
259
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/schema/types/ref.d.mts
260
+ interface XRef<Ref extends string = string> {
261
+ $ref: Ref;
262
+ }
263
+ //#endregion
264
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/schema/types/required.d.mts
265
+ interface XRequired<Required extends string[] = string[]> {
266
+ required: Required;
267
+ }
268
+ //#endregion
269
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/schema/types/then.d.mts
270
+ interface XThen<Then extends XSchema = XSchema> {
271
+ then: Then;
272
+ }
273
+ //#endregion
274
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/schema/types/type.d.mts
275
+ interface XType<Type extends string | string[] = string | string[]> {
276
+ type: Type;
277
+ }
278
+ //#endregion
279
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/schema/types/unevaluatedProperties.d.mts
280
+ interface XUnevaluatedProperties<UnevaluatedProperties extends XSchema = XSchema> {
281
+ unevaluatedProperties: UnevaluatedProperties;
282
+ }
283
+ //#endregion
284
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/types/base.d.mts
285
+ type StaticBase<Value extends unknown> = Value;
286
+ /**
287
+ * @deprecated Use Type.Refine() + Type.Unsafe() instead.
288
+ *
289
+ *
290
+ * **Reason:** It is noted that JavaScript class instances do not behave like
291
+ * plain objects during structural clone or when the TB compositor needs to
292
+ * assign dynamic modifier properties (such as '~optional').
293
+ *
294
+ * Because the TypeBox compositor needs to transform schematics via object clone /
295
+ * property spread, these operations can result in class instance types losing
296
+ * methods on the prototype (via clone), which can lead to unexpected structures being
297
+ * returned. This has led to special-case (non-clone) handling for Base which needs
298
+ * to be removed as it has proven orthogonal to the TypeBox 1.x design.
299
+ *
300
+ * The Base type was introduced in 1.x to try integrate / embed Standard Schema into JSON
301
+ * Schema; however, support for integrated Standard Schema embedding will not be continued
302
+ * in TypeBox. This type will be removed in the next minor revision of TypeBox.
303
+ *
304
+ * ```typescript
305
+ * // (Deprecated)
306
+ * class DateType extends Type.Base<Date> { Check(value) { return value instanceof Date } }
307
+ *
308
+ * // (Future)
309
+ * const DateType = Type.Refine(Type.Unsafe<Date>({}), value => value instanceof Date)
310
+ * ```
311
+ */
312
+ declare class Base<Value extends unknown = unknown> implements TSchema, XGuard<Value> {
313
+ readonly '~kind': 'Base';
314
+ readonly '~guard': XGuardInterface<Value>;
315
+ constructor();
316
+ /** Checks a value or returns false if invalid */
317
+ Check(_value: unknown): _value is Value;
318
+ /** Returns errors for a value. Return an empty array if valid. */
319
+ Errors(_value: unknown): object[];
320
+ /** Converts a value into this type */
321
+ Convert(value: unknown): unknown;
322
+ /** Cleans a value according to this type */
323
+ Clean(value: unknown): unknown;
324
+ /** Returns a default value for this type */
325
+ Default(value: unknown): unknown;
326
+ /** Creates a new instance of this type */
327
+ Create(): Value;
328
+ /** Clones this type */
329
+ Clone(): Base;
330
+ }
331
+ //#endregion
332
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/types/bigint.d.mts
333
+ declare const BigIntPattern = "-?(?:0|[1-9][0-9]*)n";
334
+ type StaticBigInt = bigint;
335
+ /** Represents a BigInt type. */
336
+ interface TBigInt extends TSchema {
337
+ '~kind': 'BigInt';
338
+ type: 'bigint';
339
+ }
340
+ //#endregion
341
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/types/boolean.d.mts
342
+ type StaticBoolean = boolean;
343
+ /** Represents a Boolean type. */
344
+ interface TBoolean extends TSchema {
345
+ '~kind': 'Boolean';
346
+ type: 'boolean';
347
+ }
348
+ //#endregion
349
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/types/_optional.d.mts
350
+ /** Removes Optional from the given type. */
351
+ type TOptionalRemove<Type extends TSchema, Result extends TSchema = (Type extends TOptional<infer Type extends TSchema> ? Type : Type)> = Result;
352
+ /** Adds Optional to the given type. */
353
+ type TOptionalAdd<Type extends TSchema = TSchema, Result extends TSchema = ('~optional' extends keyof Type ? Type : TOptional<Type>)> = Result;
354
+ type TOptional<Type extends TSchema = TSchema> = (Type & {
355
+ '~optional': true;
356
+ });
357
+ //#endregion
358
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/types/_readonly.d.mts
359
+ /** Removes a Readonly property modifier from the given type. */
360
+ type TReadonlyRemove<Type extends TSchema, Result extends TSchema = (Type extends TReadonly<infer Type extends TSchema> ? Type : Type)> = Result;
361
+ /** Adds a Readonly property modifier to the given type. */
362
+ type TReadonlyAdd<Type extends TSchema = TSchema> = ('~readonly' extends keyof Type ? Type : TReadonly<Type>);
363
+ type TReadonly<Type extends TSchema = TSchema> = (Type & {
364
+ '~readonly': true;
365
+ });
366
+ //#endregion
367
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/types/rest.d.mts
368
+ /** Represents a Rest instruction. */
369
+ interface TRest<Type extends TSchema = TSchema> extends TSchema {
370
+ '~kind': 'Rest';
371
+ type: 'rest';
372
+ items: Type;
373
+ }
374
+ //#endregion
375
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/types/tuple.d.mts
376
+ type StaticLast<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Type extends TSchema, Result extends unknown[]> = (Type extends TRest<infer RestType extends TSchema> ? RestType extends TArray<infer ArrayType extends TSchema> ? [...Result, ...TStaticElement<Stack, Direction, Context, This, ArrayType>[0][]] : [...Result, never] : [...Result, ...TStaticElement<Stack, Direction, Context, This, Type>]);
377
+ type TStaticElement<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Type extends TSchema, IsReadonly extends boolean = (Type extends TReadonly ? true : false), IsOptional extends boolean = (Type extends TOptional ? true : false), Inferred extends unknown = StaticType<Stack, Direction, Context, This, Type>, Result extends [unknown?] = ([IsReadonly, IsOptional] extends [true, true] ? [Readonly<Inferred>?] : [IsReadonly, IsOptional] extends [false, true] ? [Inferred?] : [IsReadonly, IsOptional] extends [true, false] ? [Readonly<Inferred>] : [Inferred])> = Result;
378
+ type TStaticElements<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Types extends TSchema[], Result extends unknown[] = []> = (Types extends [infer Last extends TSchema] ? StaticLast<Stack, Direction, Context, This, Last, Result> : Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TStaticElements<Stack, Direction, Context, This, Right, [...Result, ...TStaticElement<Stack, Direction, Context, This, Left>]> : Result);
379
+ type StaticTuple<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Tuple extends TSchema, Items extends TSchema[], Elements extends unknown[] = TStaticElements<Stack, Direction, Context, This, Items>, Result extends readonly unknown[] = (Tuple extends TImmutable ? readonly [...Elements] : Elements)> = Result;
380
+ /** Represents a Tuple type. */
381
+ interface TTuple<Types extends TSchema[] = TSchema[]> extends TSchema {
382
+ '~kind': 'Tuple';
383
+ type: 'array';
384
+ additionalItems: false;
385
+ items: Types;
386
+ minItems: Types['length'];
387
+ }
388
+ //#endregion
389
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/types/unknown.d.mts
390
+ type StaticUnknown = unknown;
391
+ /** Represents an Unknown type. */
392
+ interface TUnknown extends TSchema {
393
+ '~kind': 'Unknown';
394
+ }
395
+ //#endregion
396
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/types/parameter.d.mts
397
+ /** Represents a Generic parameter. */
398
+ interface TParameter<Name extends string = string, Extends extends TSchema = TSchema, Equals extends TSchema = TSchema> extends TSchema {
399
+ '~kind': 'Parameter';
400
+ name: Name;
401
+ extends: Extends;
402
+ equals: Equals;
403
+ }
404
+ //#endregion
405
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/types/object.d.mts
406
+ type StaticObject<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, _This extends TProperties, Properties extends TProperties, Result = (keyof Properties extends never ? object : StaticProperties<Stack, Direction, Context, Properties, Properties>)> = Result;
407
+ /** Represents an Object type. */
408
+ interface TObject<Properties extends TProperties = TProperties> extends TSchema {
409
+ '~kind': 'Object';
410
+ type: 'object';
411
+ properties: Properties;
412
+ required: TRequiredArray<Properties>;
413
+ }
414
+ //#endregion
415
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/types/ref.d.mts
416
+ type CyclicStackLength<Stack extends unknown[], MaxLength extends number, Buffer extends unknown[] = []> = (Stack extends [infer Left, ...infer Right] ? Buffer['length'] extends MaxLength ? false : CyclicStackLength<Right, MaxLength, [...Buffer, Left]> : true);
417
+ type CyclicGuard<Stack extends unknown[], Ref extends string> = (Ref extends Stack[number] ? CyclicStackLength<Stack, 2> : true);
418
+ type StaticGuardedRef<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Ref extends string, Type extends TSchema> = (CyclicGuard<Stack, Ref> extends true ? StaticType<[...Stack, Ref], Direction, Context, This, Type> : any);
419
+ type StaticRef<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Ref extends string, Target extends TSchema = (Ref extends keyof Context ? Context[Ref] : TUnknown), Result extends unknown = (Target extends TObject ? StaticType<[], Direction, Context, This, Target> : StaticGuardedRef<Stack, Direction, Context, This, Ref, Target>)> = Result;
420
+ /** Represents a type reference. */
421
+ interface TRef<Ref extends string = string> extends TSchema {
422
+ '~kind': 'Ref';
423
+ $ref: Ref;
424
+ }
425
+ //#endregion
426
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/types/generic.d.mts
427
+ /** Represents a callable Generic type. */
428
+ interface TGeneric<Parameters extends TParameter[] = TParameter[], Expression extends TSchema = TSchema> extends TSchema {
429
+ '~kind': 'Generic';
430
+ type: 'generic';
431
+ parameters: Parameters;
432
+ expression: Expression;
433
+ }
434
+ //#endregion
435
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/types/never.d.mts
436
+ declare const NeverPattern = "(?!)";
437
+ type StaticNever = never;
438
+ /** Represents a Never type. */
439
+ interface TNever extends TSchema {
440
+ '~kind': 'Never';
441
+ not: {};
442
+ }
443
+ //#endregion
444
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/types/union.d.mts
445
+ type StaticUnion<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Types extends TSchema[], Result extends unknown = never> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? StaticUnion<Stack, Direction, Context, This, Right, Result | StaticType<Stack, Direction, Context, This, Left>> : Result);
446
+ /** Represents a logical Union type. */
447
+ interface TUnion<Types extends TSchema[] = TSchema[]> extends TSchema {
448
+ '~kind': 'Union';
449
+ anyOf: Types;
450
+ }
451
+ //#endregion
452
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/types/cyclic.d.mts
453
+ type StaticCyclic<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Defs extends TProperties, Ref extends string, Result extends unknown = (Ref extends keyof Defs ? StaticType<[...Stack, Ref], Direction, Defs, This, Defs[Ref]> : never)> = Result;
454
+ /** Represents a Cyclic type. */
455
+ interface TCyclic<Defs extends TProperties = TProperties, Ref extends string = string> extends TSchema {
456
+ '~kind': 'Cyclic';
457
+ $defs: Defs;
458
+ $ref: Ref;
459
+ }
460
+ //#endregion
461
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/helpers/union.d.mts
462
+ type TUnionToIntersect<U> = (U extends unknown ? (arg: U) => 0 : never) extends ((arg: infer I) => 0) ? I : never;
463
+ type TUnionLast<U> = TUnionToIntersect<U extends unknown ? (x: U) => 0 : never> extends ((x: infer L) => 0) ? L : never;
464
+ type TUnionToTuple<U, Result extends unknown[] = [], R = TUnionLast<U>> = [U] extends [never] ? Result : TUnionToTuple<Exclude<U, R>, [Extract<U, R>, ...Result]>;
465
+ //#endregion
466
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/types/enum.d.mts
467
+ type StaticEnum<Values extends TEnumValue[]> = (Values[number]);
468
+ type TEnumValue = string | number | null;
469
+ /** Represents an Enum type. */
470
+ interface TEnum<Values extends TEnumValue[] = TEnumValue[]> extends TSchema {
471
+ '~kind': 'Enum';
472
+ enum: Values;
473
+ }
474
+ //#endregion
475
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/types/identifier.d.mts
476
+ /** Represents a Identifier. */
477
+ interface TIdentifier<Name extends string = string> extends TSchema {
478
+ '~kind': 'Identifier';
479
+ type: 'identifier';
480
+ name: Name;
481
+ }
482
+ //#endregion
483
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/types/infer.d.mts
484
+ /** Represents an Infer instruction. */
485
+ interface TInfer<Name extends string = string, Extends extends TSchema = TSchema> extends TSchema {
486
+ '~kind': 'Infer';
487
+ type: 'infer';
488
+ name: Name;
489
+ extends: Extends;
490
+ }
491
+ //#endregion
492
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/types/integer.d.mts
493
+ declare const IntegerPattern = "-?(?:0|[1-9][0-9]*)";
494
+ type StaticInteger = number;
495
+ /** Represents an integer type. */
496
+ interface TInteger extends TSchema {
497
+ '~kind': 'Integer';
498
+ type: 'integer';
499
+ }
500
+ //#endregion
501
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/types/intersect.d.mts
502
+ type StaticIntersect<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Types extends TSchema[], Result extends unknown = unknown> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? StaticIntersect<Stack, Direction, Context, This, Right, Result & StaticType<Stack, Direction, Context, This, Left>> : Result);
503
+ /** Represents a logical Intersect type. */
504
+ interface TIntersect<Types extends TSchema[] = TSchema[]> extends TSchema {
505
+ '~kind': 'Intersect';
506
+ allOf: Types;
507
+ }
508
+ //#endregion
509
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/types/iterator.d.mts
510
+ type StaticIterator<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Type extends TSchema, Result = IterableIterator<StaticType<Stack, Direction, Context, This, Type>>> = Result;
511
+ /** Represents an Iterator. */
512
+ interface TIterator<Type extends TSchema = TSchema> extends TSchema {
513
+ '~kind': 'Iterator';
514
+ type: 'iterator';
515
+ iteratorItems: Type;
516
+ }
517
+ //#endregion
518
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/types/literal.d.mts
519
+ type StaticLiteral<Value extends TLiteralValue> = (Value);
520
+ type TLiteralTypeName<Value extends TLiteralValue> = (Value extends bigint ? 'bigint' : Value extends boolean ? 'boolean' : Value extends number ? 'number' : Value extends string ? 'string' : never);
521
+ type TLiteralValue = string | number | boolean | bigint;
522
+ /** Represents a Literal type. */
523
+ interface TLiteral<Value extends TLiteralValue = TLiteralValue> extends TSchema {
524
+ '~kind': 'Literal';
525
+ type: TLiteralTypeName<Value>;
526
+ const: Value;
527
+ }
528
+ //#endregion
529
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/types/null.d.mts
530
+ type StaticNull = null;
531
+ /** Represents a Null type. */
532
+ interface TNull extends TSchema {
533
+ '~kind': 'Null';
534
+ type: 'null';
535
+ }
536
+ //#endregion
537
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/types/number.d.mts
538
+ declare const NumberPattern = "-?(?:0|[1-9][0-9]*)(?:.[0-9]+)?";
539
+ type StaticNumber = number;
540
+ /** Represents a Number type. */
541
+ interface TNumber extends TSchema {
542
+ '~kind': 'Number';
543
+ type: 'number';
544
+ }
545
+ //#endregion
546
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/types/symbol.d.mts
547
+ type StaticSymbol = symbol;
548
+ /** Represents a Symbol type. */
549
+ interface TSymbol extends TSchema {
550
+ '~kind': 'Symbol';
551
+ type: 'symbol';
552
+ }
553
+ //#endregion
554
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/types/promise.d.mts
555
+ type StaticPromise<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Type extends TSchema, Result = Promise<StaticType<Stack, Direction, Context, This, Type>>> = Result;
556
+ /** Represents a Promise type. */
557
+ interface TPromise<Type extends TSchema = TSchema> extends TSchema {
558
+ '~kind': 'Promise';
559
+ type: 'promise';
560
+ item: Type;
561
+ }
562
+ //#endregion
563
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/types/string.d.mts
564
+ declare const StringPattern = ".*";
565
+ type StaticString = string;
566
+ /** Represents a String type. */
567
+ interface TString extends TSchema {
568
+ '~kind': 'String';
569
+ type: 'string';
570
+ }
571
+ //#endregion
572
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/system/unreachable/unreachable.d.mts
573
+ type TUnreachable = never;
574
+ //#endregion
575
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/system/memory/assign.d.mts
576
+ type ObjectLike = Record<PropertyKey, any>;
577
+ /**
578
+ * Performs an Object assign using the Left and Right object types. We track this operation as it
579
+ * creates a new GC handle per assignment.
580
+ */
581
+ type TAssign<Left extends ObjectLike, Right extends ObjectLike, Assigned extends ObjectLike = Omit<Left, keyof Right> & Right> = { [Key in keyof Assigned]: Assigned[Key] } & {};
582
+ //#endregion
583
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/script/mapping.d.mts
584
+ type TPatternBigIntMapping<Input extends '-?(?:0|[1-9][0-9]*)n'> = (TBigInt);
585
+ type TPatternStringMapping<Input extends '.*'> = (TString);
586
+ type TPatternNumberMapping<Input extends '-?(?:0|[1-9][0-9]*)(?:.[0-9]+)?'> = (TNumber);
587
+ type TPatternIntegerMapping<Input extends '-?(?:0|[1-9][0-9]*)'> = (TInteger);
588
+ type TPatternNeverMapping<Input extends '(?!)'> = (TNever);
589
+ type TPatternTextMapping<Input extends string, Result extends TSchema = TLiteral<Input>> = Result;
590
+ type TPatternBaseMapping<Input extends unknown> = (Input);
591
+ type TPatternGroupMapping<Input extends [unknown, unknown, unknown]> = (Input extends ['(', infer Body extends TSchema[], ')'] ? TUnion<Body> : never);
592
+ type TPatternUnionMapping<Input extends [unknown, unknown, unknown] | [unknown] | []> = (Input extends [infer Term extends TSchema[], '|', infer Union extends TSchema[]] ? [...Term, ...Union] : Input extends [infer Term extends TSchema[]] ? [...Term] : []);
593
+ type TPatternTermMapping<Input extends [unknown, unknown]> = (Input extends [infer Left extends TSchema, infer Right extends TSchema[]] ? [Left, ...Right] : never);
594
+ type TPatternBodyMapping<Input extends unknown> = (Input);
595
+ type TPatternMapping<Input extends [unknown, unknown, unknown]> = (Input extends ['^', infer Body extends TSchema[], '$'] ? Body : never);
596
+ //#endregion
597
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/script/token/internal/take.d.mts
598
+ type TTakeVariant<Variant extends string, Input extends string> = (Input extends `${Variant}${infer Rest extends string}` ? [Variant, Rest] : []);
599
+ /** Takes one of the given variants or fail */
600
+ type TTake<Variants extends string[], Input extends string> = (Variants extends [infer ValueLeft extends string, ...infer ValueRight extends string[]] ? TTakeVariant<ValueLeft, Input> extends [infer Take extends string, infer Rest extends string] ? [Take, Rest] : TTake<ValueRight, Input> : []);
601
+ /** Takes one of the given variants or fail */
602
+ declare function Take<Variants extends string[], Input extends string>(variants: [...Variants], input: Input): TTake<Variants, Input>;
603
+ //#endregion
604
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/script/token/internal/char.d.mts
605
+ declare const WhiteSpace = " ";
606
+ declare const NewLine = "\n";
607
+ declare const TabSpace = "\t";
608
+ type TWhiteSpace = typeof WhiteSpace;
609
+ type TNewLine = typeof NewLine;
610
+ type TTabSpace = typeof TabSpace;
611
+ //#endregion
612
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/script/token/internal/trim.d.mts
613
+ type LineComment = typeof LineComment;
614
+ type OpenComment = typeof OpenComment;
615
+ type CloseComment = typeof CloseComment;
616
+ declare const LineComment = "//";
617
+ declare const OpenComment = "/*";
618
+ declare const CloseComment = "*/";
619
+ type TDiscardMultiLineComment<Input extends string> = (Input extends `${string}${CloseComment}${infer Rest extends string}` ? Rest : '');
620
+ type TDiscardLineComment<Input extends string> = (Input extends `${string}${TNewLine}${infer Rest extends string}` ? TTrimWhitespace<`${TNewLine}${Rest}`> : '');
621
+ type W4 = `${W3}${W3}`;
622
+ type W3 = `${W2}${W2}`;
623
+ type W2 = `${W1}${W1}`;
624
+ type W1 = `${W0}${W0}`;
625
+ type W0 = ` `;
626
+ type TTrimWhitespace<Input extends string> = (Input extends `${OpenComment}${infer Rest extends string}` ? TTrimWhitespace<TDiscardMultiLineComment<Rest>> : Input extends `${LineComment}${infer Rest extends string}` ? TTrimWhitespace<TDiscardLineComment<Rest>> : Input extends `${W4}${infer Rest extends string}` ? TTrimWhitespace<Rest> : Input extends `${W3}${infer Rest extends string}` ? TTrimWhitespace<Rest> : Input extends `${W1}${infer Rest extends string}` ? TTrimWhitespace<Rest> : Input extends `${W0}${infer Rest extends string}` ? TTrimWhitespace<Rest> : Input);
627
+ type TTrim<Input extends string> = (Input extends `${OpenComment}${infer Rest extends string}` ? TTrim<TDiscardMultiLineComment<Rest>> : Input extends `${LineComment}${infer Rest extends string}` ? TTrim<TDiscardLineComment<Rest>> : Input extends `${TNewLine}${infer Rest extends string}` ? TTrim<Rest> : Input extends `${TTabSpace}${infer Rest extends string}` ? TTrim<Rest> : Input extends `${W4}${infer Rest extends string}` ? TTrim<Rest> : Input extends `${W3}${infer Rest extends string}` ? TTrim<Rest> : Input extends `${W1}${infer Rest extends string}` ? TTrim<Rest> : Input extends `${W0}${infer Rest extends string}` ? TTrim<Rest> : Input);
628
+ //#endregion
629
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/script/token/const.d.mts
630
+ type TTakeConst<Const extends string, Input extends string> = (TTake<[Const], Input>);
631
+ /** Matches if next is the given Const value */
632
+ type TConst<Const extends string, Input extends string> = (Const extends '' ? ['', Input] : Const extends `${infer First extends string}${string}` ? (First extends TNewLine ? TTakeConst<Const, TTrimWhitespace<Input>> : First extends TWhiteSpace ? TTakeConst<Const, Input> : TTakeConst<Const, TTrim<Input>>) : never);
633
+ //#endregion
634
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/script/token/until.d.mts
635
+ type TTakeOne<Input extends string> = (Input extends `${infer Left extends string}${infer Right extends string}` ? [Left, Right] : []);
636
+ type TIsInputMatchSentinal<End extends string[], Input extends string> = (End extends [infer Left extends string, ...infer Right extends string[]] ? Input extends `${Left}${string}` ? true : TIsInputMatchSentinal<Right, Input> : false);
637
+ /** Match Input until but not including End. No match if End not found. */
638
+ type TUntil<End extends string[], Input extends string, Result extends string = ''> = (TTakeOne<Input> extends [infer One extends string, infer Rest extends string] ? TIsInputMatchSentinal<End, Input> extends true ? [Result, Input] : TUntil<End, Rest, `${Result}${One}`> : []);
639
+ //#endregion
640
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/script/token/until_1.d.mts
641
+ /** Match Input until but not including End. No match if End not found or match is zero-length. */
642
+ type TUntil_1<End extends string[], Input extends string> = (TUntil<End, Input> extends [infer Until extends string, infer UntilRest extends string] ? Until extends '' ? [] : [Until, UntilRest] : []);
643
+ //#endregion
644
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/script/parser.d.mts
645
+ type TPatternBigInt<Input extends string> = TConst<'-?(?:0|[1-9][0-9]*)n', Input> extends [infer _0 extends '-?(?:0|[1-9][0-9]*)n', infer Input extends string] ? [TPatternBigIntMapping<_0>, Input] : [];
646
+ type TPatternString<Input extends string> = TConst<'.*', Input> extends [infer _0 extends '.*', infer Input extends string] ? [TPatternStringMapping<_0>, Input] : [];
647
+ type TPatternNumber<Input extends string> = TConst<'-?(?:0|[1-9][0-9]*)(?:.[0-9]+)?', Input> extends [infer _0 extends '-?(?:0|[1-9][0-9]*)(?:.[0-9]+)?', infer Input extends string] ? [TPatternNumberMapping<_0>, Input] : [];
648
+ type TPatternInteger<Input extends string> = TConst<'-?(?:0|[1-9][0-9]*)', Input> extends [infer _0 extends '-?(?:0|[1-9][0-9]*)', infer Input extends string] ? [TPatternIntegerMapping<_0>, Input] : [];
649
+ type TPatternNever<Input extends string> = TConst<'(?!)', Input> extends [infer _0 extends '(?!)', infer Input extends string] ? [TPatternNeverMapping<_0>, Input] : [];
650
+ type TPatternText<Input extends string> = TUntil_1<['-?(?:0|[1-9][0-9]*)n', '.*', '-?(?:0|[1-9][0-9]*)(?:.[0-9]+)?', '-?(?:0|[1-9][0-9]*)', '(?!)', '(', ')', '$', '|'], Input> extends [infer _0 extends string, infer Input extends string] ? [TPatternTextMapping<_0>, Input] : [];
651
+ type TPatternBase<Input extends string> = (TPatternBigInt<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TPatternString<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TPatternNumber<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TPatternInteger<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TPatternNever<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TPatternGroup<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TPatternText<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends unknown, infer Input extends string] ? [TPatternBaseMapping<_0>, Input] : [];
652
+ type TPatternGroup<Input extends string> = (TConst<'(', Input> extends [infer _0, infer Input extends string] ? (TPatternBody<Input> extends [infer _1, infer Input extends string] ? (TConst<')', Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown], infer Input extends string] ? [TPatternGroupMapping<_0>, Input] : [];
653
+ type TPatternUnion<Input extends string> = ((TPatternTerm<Input> extends [infer _0, infer Input extends string] ? (TConst<'|', Input> extends [infer _1, infer Input extends string] ? (TPatternUnion<Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TPatternTerm<Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : []) extends [infer _0, infer Input extends string] ? [_0, Input] : [[], Input] extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown, unknown] | [unknown] | [], infer Input extends string] ? [TPatternUnionMapping<_0>, Input] : [];
654
+ type TPatternTerm<Input extends string> = (TPatternBase<Input> extends [infer _0, infer Input extends string] ? (TPatternBody<Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0 extends [unknown, unknown], infer Input extends string] ? [TPatternTermMapping<_0>, Input] : [];
655
+ type TPatternBody<Input extends string> = (TPatternUnion<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TPatternTerm<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends unknown, infer Input extends string] ? [TPatternBodyMapping<_0>, Input] : [];
656
+ type TPattern<Input extends string> = (TConst<'^', Input> extends [infer _0, infer Input extends string] ? (TPatternBody<Input> extends [infer _1, infer Input extends string] ? (TConst<'$', Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown], infer Input extends string] ? [TPatternMapping<_0>, Input] : [];
657
+ //#endregion
658
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/patterns/pattern.d.mts
659
+ /** Parses a Pattern into a sequence of TemplateLiteral types. A result of [] indicates failure to parse. */
660
+ type TParsePatternIntoTypes<Pattern extends string, Parsed extends [TSchema[], string] | [] = TPattern<Pattern>, Result extends TSchema[] = (Parsed extends [infer Types extends TSchema[], string] ? Types : [])> = Result;
661
+ //#endregion
662
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/template_literal/static.d.mts
663
+ type TFromLiteral$5<Template extends string, Value extends TLiteralValue> = `${Template}${Value}`;
664
+ type TFromBigInt<Template extends string> = `${Template}${bigint}`;
665
+ type TFromString<Template extends string> = `${Template}${string}`;
666
+ type TFromNumber<Template extends string> = `${Template}${number}`;
667
+ type TFromInteger<Template extends string> = `${Template}${number}`;
668
+ type TFromUnion$8<Template extends string, Types extends TSchema[], Result extends string = never> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TFromUnion$8<Template, Right, Result | TFromType$18<'', Left>> : `${Template}${Result}`);
669
+ type TFromType$18<Template extends string, Type extends TSchema, Result extends string = (Type extends TUnion<infer Types extends TSchema[]> ? TFromUnion$8<Template, Types> : Type extends TLiteral<infer Value extends TLiteralValue> ? TFromLiteral$5<Template, Value> : Type extends TBigInt ? TFromBigInt<Template> : Type extends TString ? TFromString<Template> : Type extends TNumber ? TFromNumber<Template> : Type extends TInteger ? TFromInteger<Template> : never)> = Result;
670
+ type TFromSpan<Template extends string, Types extends TSchema[]> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TFromSpan<TFromType$18<Template, Left>, Right> : Template);
671
+ type TTemplateLiteralStatic<Pattern extends string, Types extends TSchema[] = TParsePatternIntoTypes<Pattern>> = TFromSpan<'', Types>;
672
+ //#endregion
673
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/enum/enum_to_union.d.mts
674
+ type TFromEnumValue<Value extends TEnumValue, Result extends TSchema = (Value extends string | number ? TLiteral<Value> : Value extends null ? TNull : TNever)> = Result;
675
+ type TEnumValuesToVariants<Values extends TEnumValue[], Result extends TSchema[] = []> = (Values extends [infer Left extends TEnumValue, ...infer Right extends TEnumValue[]] ? TEnumValuesToVariants<Right, [...Result, TFromEnumValue<Left>]> : Result);
676
+ type TEnumValuesToUnion<Values extends TEnumValue[], Variants extends TSchema[] = TEnumValuesToVariants<Values>, Results extends TSchema = TUnion<Variants>> = Results;
677
+ type TEnumToUnion<Type extends TEnum, Result extends TSchema = TEnumValuesToUnion<Type['enum']>> = Result;
678
+ //#endregion
679
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/template_literal/encode.d.mts
680
+ type TJoinString<Input extends string[], Result extends string = ''> = (Input extends [infer Left extends string, ...infer Right extends string[]] ? Result extends '' ? TJoinString<Right, Left> : TJoinString<Right, `${Result}|${Left}`> : Result);
681
+ type TUnwrapTemplateLiteralPattern<Pattern extends string> = (Pattern extends `^${infer Pattern extends string}$` ? Pattern : never);
682
+ type TEncodeLiteral<Value extends TLiteralValue, Right extends TSchema[], Pattern extends string> = (TEncodeTypes<Right, `${Pattern}${Value}`>);
683
+ type TEncodeBigInt<Right extends TSchema[], Pattern extends string> = (TEncodeTypes<Right, `${Pattern}${typeof BigIntPattern}`>);
684
+ type TEncodeInteger<Right extends TSchema[], Pattern extends string> = (TEncodeTypes<Right, `${Pattern}${typeof IntegerPattern}`>);
685
+ type TEncodeNumber<Right extends TSchema[], Pattern extends string> = (TEncodeTypes<Right, `${Pattern}${typeof NumberPattern}`>);
686
+ type TEncodeBoolean<Right extends TSchema[], Pattern extends string> = (TEncodeType<TUnion<[TLiteral<'false'>, TLiteral<'true'>]>, Right, Pattern>);
687
+ type TEncodeString<Right extends TSchema[], Pattern extends string> = (TEncodeTypes<Right, `${Pattern}${typeof StringPattern}`>);
688
+ type TEncodeTemplateLiteral<TemplatePattern extends string, Right extends TSchema[], Pattern extends string> = (TEncodeTypes<Right, `${Pattern}${TUnwrapTemplateLiteralPattern<TemplatePattern>}`>);
689
+ type TEncodeTemplateLiteralDeferred<Types extends TSchema[], Right extends TSchema[], Pattern extends string, TemplateLiteral extends TSchema = TTemplateLiteralAction<Types>, Result extends TSchema = TEncodeType<TemplateLiteral, Right, Pattern>> = Result;
690
+ type TEncodeEnum<Types extends TEnumValue[], Right extends TSchema[], Pattern extends string, Variants extends TSchema[] = TEnumValuesToVariants<Types>> = TEncodeUnion<Variants, Right, Pattern>;
691
+ type TEncodeUnion<Types extends TSchema[], Right extends TSchema[], Pattern extends string, Result extends string[] = []> = Types extends [infer Head extends TSchema, ...infer Tail extends TSchema[]] ? TEncodeUnion<Tail, Right, Pattern, [...Result, TEncodeType<Head, [], ''>]> : TEncodeTypes<Right, `${Pattern}(${TJoinString<Result>})`>;
692
+ type TEncodeType<Type extends TSchema, Right extends TSchema[], Pattern extends string> = (Type extends TEnum<infer Values extends TEnumValue[]> ? TEncodeEnum<Values, Right, Pattern> : Type extends TInteger ? TEncodeInteger<Right, Pattern> : Type extends TLiteral<infer Value extends TLiteralValue> ? TEncodeLiteral<Value, Right, Pattern> : Type extends TBigInt ? TEncodeBigInt<Right, Pattern> : Type extends TBoolean ? TEncodeBoolean<Right, Pattern> : Type extends TNumber ? TEncodeNumber<Right, Pattern> : Type extends TString ? TEncodeString<Right, Pattern> : Type extends TTemplateLiteral<infer TemplatePattern extends string> ? TEncodeTemplateLiteral<TemplatePattern, Right, Pattern> : Type extends TTemplateLiteralDeferred<infer Types extends TSchema[]> ? TEncodeTemplateLiteralDeferred<Types, Right, Pattern> : Type extends TUnion<infer Types extends TSchema[]> ? TEncodeUnion<Types, Right, Pattern> : typeof NeverPattern);
693
+ type TEncodeTypes<Types extends TSchema[], Pattern extends string> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TEncodeType<Left, Right, Pattern> : Pattern);
694
+ type TEncodePattern<Types extends TSchema[], Encoded extends string = TEncodeTypes<Types, ''>, Result extends string = `^${Encoded}$`> = Result;
695
+ /** Encodes a TemplateLiteral type sequence into a TemplateLiteral */
696
+ type TTemplateLiteralEncode<Types extends TSchema[], Pattern extends string = TEncodePattern<Types>, Result extends TSchema = TTemplateLiteral<Pattern>> = Result;
697
+ //#endregion
698
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/template_literal/instantiate.d.mts
699
+ type TTemplateLiteralAction<Types extends TSchema[], Result extends TSchema = (TCanInstantiate<Types> extends true ? TTemplateLiteralEncode<Types> : TTemplateLiteralDeferred<Types>)> = Result;
700
+ type TTemplateLiteralInstantiate<Context extends TProperties, State extends TState, Types extends TSchema[], InstantiatedTypes extends TSchema[] = TInstantiateTypes<Context, State, Types>> = TTemplateLiteralAction<InstantiatedTypes>;
701
+ //#endregion
702
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/types/template_literal.d.mts
703
+ type StaticTemplateLiteral<Pattern extends string> = (TTemplateLiteralStatic<Pattern>);
704
+ /** Represents a TemplateLiteral type. */
705
+ interface TTemplateLiteral<Pattern extends string = string> extends TSchema {
706
+ '~kind': 'TemplateLiteral';
707
+ type: 'string';
708
+ pattern: Pattern;
709
+ }
710
+ /** Creates a deferred TemplateLiteral action. */
711
+ type TTemplateLiteralDeferred<Types extends TSchema[] = TSchema[]> = (TDeferred<'TemplateLiteral', [Types]>);
712
+ //#endregion
713
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/template_literal/is_finite.d.mts
714
+ type TFromLiteral$4<_Value extends TLiteralValue> = true;
715
+ type TFromTypesReduce<Types extends TSchema[]> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TFromType$17<Left> extends true ? TFromTypesReduce<Right> : false : true);
716
+ type TFromTypes$4<Types extends TSchema[], Result extends boolean = (Types extends [] ? false : TFromTypesReduce<Types>)> = Result;
717
+ type TFromType$17<Type extends TSchema> = Type extends TUnion<infer Types extends TSchema[]> ? TFromTypes$4<Types> : Type extends TLiteral<infer Value extends TLiteralValue> ? TFromLiteral$4<Value> : false;
718
+ /** Returns true if the given TemplateLiteral types yields a finite variant set */
719
+ type TIsTemplateLiteralFinite<Types extends TSchema[], Result extends boolean = TFromTypes$4<Types>> = Result;
720
+ //#endregion
721
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/template_literal/decode.d.mts
722
+ type TFromLiteralPush<Variants extends string[], Value extends TLiteralValue, Result extends string[] = []> = Variants extends [infer Left extends string, ...infer Right extends string[]] ? TFromLiteralPush<Right, Value, [...Result, `${Left}${Value}`]> : Result;
723
+ type TFromLiteral$3<Variants extends string[], Value extends TLiteralValue> = Variants extends [] ? [`${Value}`] : TFromLiteralPush<Variants, Value>;
724
+ type TFromUnion$7<Variants extends string[], Types extends TSchema[], Result extends string[] = []> = Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TFromUnion$7<Variants, Right, [...Result, ...TFromType$16<Variants, Left>]> : Result;
725
+ type TFromType$16<Variants extends string[], Type extends TSchema, Result extends string[] = (Type extends TUnion<infer Types extends TSchema[]> ? TFromUnion$7<Variants, Types> : Type extends TLiteral<infer Value extends TLiteralValue> ? TFromLiteral$3<Variants, Value> : TUnreachable)> = Result;
726
+ type TDecodeFromSpan<Variants extends string[], Types extends TSchema[]> = Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TDecodeFromSpan<TFromType$16<Variants, Left>, Right> : Variants;
727
+ type TVariantsToLiterals<Variants extends string[], Result extends TSchema[] = []> = Variants extends [infer Left extends string, ...infer Right extends string[]] ? TVariantsToLiterals<Right, [...Result, TLiteral<Left>]> : Result;
728
+ type TDecodeTypesAsUnion<Types extends TSchema[], Variants extends string[] = TDecodeFromSpan<[], Types>, Literals extends TSchema[] = TVariantsToLiterals<Variants>, Result extends TSchema = TUnion<Literals>> = Result;
729
+ type TDecodeTypes<Types extends TSchema[], Result extends TSchema = (Types extends [] ? TUnreachable : Types extends [infer Type extends TLiteral] ? Type : TDecodeTypesAsUnion<Types>)> = Result;
730
+ /** Decodes a TemplateLiteral into a Type. */
731
+ type TTemplateLiteralDecodeUnsafe<Pattern extends string, Types extends TSchema[] = TParsePatternIntoTypes<Pattern>, Result extends TSchema = (Types extends [] ? TString : TIsTemplateLiteralFinite<Types> extends true ? TDecodeTypes<Types> : TTemplateLiteral<Pattern>)> = Result;
732
+ /** Decodes a TemplateLiteral pattern but returns TString if the pattern in non-finite. */
733
+ type TTemplateLiteralDecode<Pattern extends string, Decoded extends TSchema = TTemplateLiteralDecodeUnsafe<Pattern>, Result extends TSchema = (Decoded extends TTemplateLiteral ? TString : Decoded)> = Result;
734
+ //#endregion
735
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/record/from_key_any.d.mts
736
+ type TFromAnyKey<Value extends TSchema, Result extends TSchema = TRecord<typeof StringKey, Value>> = Result;
737
+ //#endregion
738
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/record/from_key_boolean.d.mts
739
+ type TFromBooleanKey<Value extends TSchema, Result extends TSchema = TObject<{
740
+ true: Value;
741
+ false: Value;
742
+ }>> = Result;
743
+ //#endregion
744
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/record/from_key_enum.d.mts
745
+ type TFromEnumKey<Values extends TEnumValue[], Value extends TSchema, UnionKey extends TSchema = TEnumValuesToUnion<Values>, Result extends TSchema = TFromKey<UnionKey, Value>> = Result;
746
+ //#endregion
747
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/record/from_key_integer.d.mts
748
+ type TFromIntegerKey<_Key extends TInteger, Value extends TSchema, Result extends TSchema = TRecord<typeof IntegerKey, Value>> = Result;
749
+ //#endregion
750
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/tuple/to_object.d.mts
751
+ type TTupleElementsToProperties<Types extends TSchema[], Result extends TProperties = {}> = (Types extends [...infer Left extends TSchema[], infer Right extends TSchema] ? TTupleElementsToProperties<Left, { [_ in Left['length']]: Right } & Result> : { [Key in keyof Result]: Result[Key] });
752
+ type TTupleToObject<Type extends TTuple, Properties extends TProperties = TTupleElementsToProperties<Type['items']>, Result extends TSchema = TObject<Properties>> = Result;
753
+ //#endregion
754
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/evaluate/composite.d.mts
755
+ type TIsReadonlyProperty<Left extends TSchema, Right extends TSchema> = (Left extends TReadonly<Left> ? Right extends TReadonly<Right> ? true : false : false);
756
+ type TIsOptionalProperty<Left extends TSchema, Right extends TSchema> = (Left extends TOptional<Left> ? Right extends TOptional<Right> ? true : false : false);
757
+ type TCompositeProperty<Left extends TSchema, Right extends TSchema, IsReadonly extends boolean = TIsReadonlyProperty<Left, Right>, IsOptional extends boolean = TIsOptionalProperty<Left, Right>, Evaluated extends TSchema = TEvaluateIntersect<[Left, Right]>, Property extends TSchema = TReadonlyRemove<TOptionalRemove<Evaluated>>> = ([IsReadonly, IsOptional] extends [true, true] ? TReadonlyAdd<TOptionalAdd<Property>> : [IsReadonly, IsOptional] extends [true, false] ? TReadonlyAdd<Property> : [IsReadonly, IsOptional] extends [false, true] ? TOptionalAdd<Property> : Property);
758
+ type TCompositePropertyKey<Left extends TProperties, Right extends TProperties, Key extends PropertyKey, Result extends TSchema = (Key extends keyof Left ? Key extends keyof Right ? TCompositeProperty<Left[Key], Right[Key]> : Left[Key] : Key extends keyof Right ? Right[Key] : TNever)> = Result;
759
+ type TCompositeProperties<Left extends TProperties, Right extends TProperties, Result extends TProperties = { [Key in keyof (Right & Left)]: TCompositePropertyKey<Left, Right, Key> }> = Result;
760
+ type TGetProperties<Type extends TSchema, Result extends TProperties = (Type extends TObject<infer Properties extends TProperties> ? Properties : Type extends TTuple<infer Types extends TSchema[]> ? TTupleElementsToProperties<Types> : TUnreachable)> = Result;
761
+ type TComposite<Left extends TSchema, Right extends TSchema, LeftProperties extends TProperties = TGetProperties<Left>, RightProperties extends TProperties = TGetProperties<Right>, Properties extends TProperties = TCompositeProperties<LeftProperties, RightProperties>, Result extends TSchema = TObject<Properties>> = Result;
762
+ //#endregion
763
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/evaluate/narrow.d.mts
764
+ type TNarrow<Left extends TSchema, Right extends TSchema, Result extends TCompareResult = TCompare<Left, Right>> = (Result extends typeof ResultLeftInside ? Left : Result extends typeof ResultRightInside ? Right : Result extends typeof ResultEqual ? Right : TNever);
765
+ //#endregion
766
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/evaluate/distribute.d.mts
767
+ type TIsObjectLike<Type extends TSchema> = Type extends TObject | TTuple ? true : false;
768
+ type TIsUnionOperand<Left extends TSchema, Right extends TSchema, IsUnionLeft extends boolean = (Left extends TUnion ? true : false), IsUnionRight extends boolean = (Right extends TUnion ? true : false), Result extends boolean = (IsUnionLeft extends true ? true : IsUnionRight extends true ? true : false)> = Result;
769
+ type TDistributeOperation<Left extends TSchema, Right extends TSchema, EvaluatedLeft extends TSchema = TEvaluateType<Left>, EvaluatedRight extends TSchema = TEvaluateType<Right>, IsUnionOperand extends boolean = TIsUnionOperand<EvaluatedLeft, EvaluatedRight>, IsObjectLeft extends boolean = TIsObjectLike<EvaluatedLeft>, IsObjectRight extends boolean = TIsObjectLike<EvaluatedRight>, Result extends TSchema = ([IsUnionOperand] extends [true] ? TEvaluateIntersect<[EvaluatedLeft, EvaluatedRight]> : [IsObjectLeft, IsObjectRight] extends [true, true] ? TComposite<EvaluatedLeft, EvaluatedRight> : [IsObjectLeft, IsObjectRight] extends [true, false] ? EvaluatedLeft : [IsObjectLeft, IsObjectRight] extends [false, true] ? EvaluatedRight : TNarrow<EvaluatedLeft, EvaluatedRight>)> = Result;
770
+ type TDistributeType<Type extends TSchema, Distribution extends TSchema[], Result extends TSchema[] = []> = (Distribution extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TDistributeType<Type, Right, [...Result, TDistributeOperation<Type, Left>]> : Result extends [] ? [Type] : Result);
771
+ type TDistributeUnion<Types extends TSchema[], Distribution extends TSchema[], Result extends TSchema[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TDistributeUnion<Right, Distribution, [...Result, ...TDistribute$1<[Left], Distribution>]> : Result);
772
+ type TDistribute$1<Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? Left extends TUnion<infer UnionTypes extends TSchema[]> ? TDistribute$1<Right, TDistributeUnion<UnionTypes, Result>> : TDistribute$1<Right, TDistributeType<Left, Result>> : Result);
773
+ //#endregion
774
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/evaluate/evaluate.d.mts
775
+ type TEvaluateIntersect<Types extends TSchema[], Distribution extends TSchema[] = TDistribute$1<Types>, Result extends TSchema = TBroaden<Distribution>> = Result;
776
+ type TEvaluateUnion<Types extends TSchema[], Result extends TSchema = TBroaden<Types>> = Result;
777
+ type TEvaluateType<Type extends TSchema, Result extends TSchema = (Type extends TIntersect<infer Types extends TSchema[]> ? TEvaluateIntersect<Types> : Type extends TUnion<infer Types extends TSchema[]> ? TEvaluateUnion<Types> : Type)> = Result;
778
+ type TEvaluateUnionFast<Types extends TSchema[], Result extends TSchema = (Types extends [infer Type extends TSchema] ? Type : Types extends [] ? TNever : TUnion<Types>)> = Result;
779
+ //#endregion
780
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/record/from_key_intersect.d.mts
781
+ type TFromIntersectKey<Types extends TSchema[], Value extends TSchema, EvaluatedKey extends TSchema = TEvaluateIntersect<Types>, Result extends TSchema = TFromKey<EvaluatedKey, Value>> = Result;
782
+ //#endregion
783
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/record/from_key_literal.d.mts
784
+ type TFromLiteralKey<Key extends TLiteralValue, Value extends TSchema, Result extends TSchema = (Key extends string | number ? TObject<{ [_ in Key]: Value }> : Key extends false ? TObject<{
785
+ false: Value;
786
+ }> : Key extends true ? TObject<{
787
+ true: Value;
788
+ }> : TObject<{}>)> = Result;
789
+ //#endregion
790
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/record/from_key_number.d.mts
791
+ type TFromNumberKey<Key extends TNumber, Value extends TSchema, Result extends TSchema = TRecord<typeof NumberKey, Value>> = Result;
792
+ //#endregion
793
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/record/from_key_string.d.mts
794
+ type TFromStringKey<_Key extends TSchema, Value extends TSchema, Result extends TSchema = TRecord<typeof StringKey, Value>> = Result;
795
+ //#endregion
796
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/record/from_key_template_literal.d.mts
797
+ type TFromTemplateKey<Pattern extends string, Value extends TSchema, Types extends TSchema[] = TParsePatternIntoTypes<Pattern>, Finite extends boolean = TIsTemplateLiteralFinite<Types>, Result extends TSchema = (Finite extends true ? TFromKey<TTemplateLiteralDecode<Pattern>, Value> : TRecord<Pattern, Value>)> = Result;
798
+ //#endregion
799
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/evaluate/flatten.d.mts
800
+ type TFlattenType<Type extends TSchema, Result extends TSchema[] = (Type extends TUnion<infer Types extends TSchema[]> ? TFlatten<Types> : [Type])> = Result;
801
+ type TFlatten<Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TFlatten<Right, [...Result, ...TFlattenType<Left>]> : Result);
802
+ //#endregion
803
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/record/from_key_union.d.mts
804
+ type TStringOrNumberCheck<Types extends TSchema[]> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? Left extends TString | TNumber | TInteger ? true : TStringOrNumberCheck<Right> : false);
805
+ type TTryBuildRecord<Types extends TSchema[], Value extends TSchema, Result extends TSchema | undefined = (TStringOrNumberCheck<Types> extends true ? TRecord<typeof StringKey, Value> : undefined)> = Result;
806
+ type TCreateProperties<Variants extends TSchema[], Value extends TSchema, Result extends TProperties = {}> = (Variants extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? Left extends TLiteral<string | number> ? TCreateProperties<Right, Value, Result & { [_ in Left['const']]: Value }> : TCreateProperties<Right, Value, Result> : { [Key in keyof Result]: Result[Key] });
807
+ type TCreateObject<Variants extends TSchema[], Value extends TSchema, Properties extends TProperties = TCreateProperties<Variants, Value>, Result extends TSchema = TObject<Properties>> = Result;
808
+ type TFromUnionKey<Types extends TSchema[], Value extends TSchema, Flattened extends TSchema[] = TFlatten<Types>, Record extends TSchema | undefined = TTryBuildRecord<Flattened, Value>, Result extends TSchema = (Record extends TSchema ? Record : TCreateObject<Flattened, Value>)> = Result;
809
+ //#endregion
810
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/record/from_key.d.mts
811
+ type TFromKey<Key extends TSchema, Value extends TSchema, Result extends TSchema = (Key extends TAny ? TFromAnyKey<Value> : Key extends TBoolean ? TFromBooleanKey<Value> : Key extends TEnum<infer Values extends TEnumValue[]> ? TFromEnumKey<Values, Value> : Key extends TInteger ? TFromIntegerKey<Key, Value> : Key extends TIntersect<infer Types extends TSchema[]> ? TFromIntersectKey<Types, Value> : Key extends TLiteral<infer LiteralValue extends TLiteralValue> ? TFromLiteralKey<LiteralValue, Value> : Key extends TNumber ? TFromNumberKey<Key, Value> : Key extends TString ? TFromStringKey<Key, Value> : Key extends TTemplateLiteral<infer Pattern extends string> ? TFromTemplateKey<Pattern, Value> : Key extends TUnion<infer Types extends TSchema[]> ? TFromUnionKey<Types, Value> : TObject<{}>)> = Result;
812
+ //#endregion
813
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/record/instantiate.d.mts
814
+ type TRecordAction<Key extends TSchema, Value extends TSchema, Result extends TSchema = (TCanInstantiate<[Key]> extends true ? TFromKey<Key, Value> : TRecordDeferred<Key, Value>)> = Result;
815
+ type TRecordInstantiate<Context extends TProperties, State extends TState, Key extends TSchema, Value extends TSchema, InstantiatedKey extends TSchema = TInstantiateType<Context, State, Key>, InstantiatedValue extends TSchema = TInstantiateType<Context, State, Value>> = TRecordAction<InstantiatedKey, InstantiatedValue>;
816
+ //#endregion
817
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/types/record.d.mts
818
+ type StaticPropertyKey<Key extends string, Result extends PropertyKey = (Key extends TStringKey ? string : Key extends TIntegerKey ? number : Key extends TNumberKey ? number : Key extends `^${string}$` ? TTemplateLiteralStatic<Key> : string)> = Result;
819
+ type StaticRecord<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Key extends string, Value extends TSchema, StaticKey extends PropertyKey = StaticPropertyKey<Key>, StaticValue extends unknown = StaticType<Stack, Direction, Context, This, Value>, Result extends Record$1<PropertyKey, unknown> = Record$1<StaticKey, StaticValue>> = Result;
820
+ type TStringKey = typeof StringKey;
821
+ type TIntegerKey = typeof IntegerKey;
822
+ type TNumberKey = typeof NumberKey;
823
+ declare const IntegerKey = "^-?(?:0|[1-9][0-9]*)$";
824
+ declare const NumberKey = "^-?(?:0|[1-9][0-9]*)(?:.[0-9]+)?$";
825
+ declare const StringKey = "^.*$";
826
+ interface TRecord<Key extends string = string, Value extends TSchema = TSchema> extends TSchema {
827
+ '~kind': 'Record';
828
+ type: 'object';
829
+ patternProperties: { [_ in Key]: Value };
830
+ }
831
+ /** Represents a deferred Record action. */
832
+ type TRecordDeferred<Key extends TSchema = TSchema, Value extends TSchema = TSchema> = (TDeferred<'Record', [Key, Value]>);
833
+ /** Creates a Record type. */
834
+ declare function Record$1<Key extends TSchema, Value extends TSchema>(key: Key, value: Value, options?: TObjectOptions): TRecordAction<Key, Value>;
835
+ /** Returns the raw string pattern used for the Record key */
836
+ type TRecordPattern<Type extends TRecord, Result extends string = Extract<keyof Type['patternProperties'], string>> = Result;
837
+ /** Returns the Record key as a TypeBox type */
838
+ type TRecordKey<Type extends TRecord, Pattern extends string = TRecordPattern<Type>, Result extends TSchema = (Pattern extends typeof StringKey ? TString : Pattern extends typeof IntegerKey ? TInteger : Pattern extends typeof NumberKey ? TNumber : TTemplateLiteralDecodeUnsafe<Pattern>)> = Result;
839
+ //#endregion
840
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/types/this.d.mts
841
+ type StaticThis<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties> = (StaticType<Stack, Direction, Context, This, TObject<This>>);
842
+ /** Represents a This type. */
843
+ interface TThis extends TSchema {
844
+ '~kind': 'This';
845
+ $ref: '#';
846
+ }
847
+ //#endregion
848
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/types/undefined.d.mts
849
+ type StaticUndefined = undefined;
850
+ /** Represents a Undefined type. */
851
+ interface TUndefined extends TSchema {
852
+ '~kind': 'Undefined';
853
+ type: 'undefined';
854
+ }
855
+ //#endregion
856
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/types/unsafe.d.mts
857
+ type StaticUnsafe<Type extends unknown> = Type;
858
+ /** Represents an Unsafe type. */
859
+ interface TUnsafe<Type extends unknown = unknown> extends TSchema {
860
+ '~unsafe': Type;
861
+ }
862
+ //#endregion
863
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/types/void.d.mts
864
+ type StaticVoid = void;
865
+ /** Represents a Void type. */
866
+ interface TVoid extends TSchema {
867
+ '~kind': 'Void';
868
+ type: 'void';
869
+ }
870
+ //#endregion
871
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/extends/result.d.mts
872
+ type TResult = TExtendsUnion$1 | TExtendsTrue | TExtendsFalse;
873
+ interface TExtendsUnion$1<Inferred extends TProperties = TProperties> {
874
+ '~kind': 'ExtendsUnion';
875
+ inferred: Inferred;
876
+ }
877
+ interface TExtendsTrue<Inferred extends TProperties = TProperties> {
878
+ '~kind': 'ExtendsTrue';
879
+ inferred: Inferred;
880
+ }
881
+ interface TExtendsFalse {
882
+ type: 'ExtendsFalse';
883
+ }
884
+ type TExtendsTrueLike<Inferred extends TProperties = TProperties> = TExtendsUnion$1<Inferred> | TExtendsTrue<Inferred>;
885
+ //#endregion
886
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/extends/extends_right.d.mts
887
+ type TExtendsRightInfer<Inferred extends TProperties, Name extends string, Left extends TSchema, Right extends TSchema, Result extends Result.TResult = (TExtendsLeft<Inferred, Left, Right> extends Result.TExtendsTrueLike<infer CheckInferred extends TProperties> ? Result.TExtendsTrue<TAssign<TAssign<Inferred, CheckInferred>, { [_ in Name]: Left }>> : Result.TExtendsFalse)> = Result;
888
+ type TExtendsRightAny<Inferred extends TProperties, _Left extends TSchema, Result extends Result.TResult = Result.TExtendsTrue<Inferred>> = Result;
889
+ type TExtendsRightEnum<Inferred extends TProperties, Left extends TSchema, Right extends TEnumValue[], Union extends TSchema = TEnumValuesToUnion<Right>> = TExtendsLeft<Inferred, Left, Union>;
890
+ type TExtendsRightIntersect<Inferred extends TProperties, Left extends TSchema, Right extends TSchema[]> = (Right extends [infer Head extends TSchema, ...infer Tail extends TSchema[]] ? TExtendsLeft<Inferred, Left, Head> extends TExtendsTrueLike<infer Inferred extends TProperties> ? TExtendsRightIntersect<Inferred, Left, Tail> : TExtendsFalse : TExtendsTrue<Inferred>);
891
+ type TExtendsRightTemplateLiteral<Inferred extends TProperties, Left extends TSchema, Right extends string, Decoded extends TSchema = TTemplateLiteralDecode<Right>> = TExtendsLeft<Inferred, Left, Decoded>;
892
+ type TExtendsRightUnion<Inferred extends TProperties, Left extends TSchema, Right extends TSchema[]> = (Right extends [infer Head extends TSchema, ...infer Tail extends TSchema[]] ? TExtendsLeft<Inferred, Left, Head> extends TExtendsTrueLike<infer Inferred extends TProperties> ? TExtendsTrue<Inferred> : TExtendsRightUnion<Inferred, Left, Tail> : TExtendsFalse);
893
+ type TExtendsRight<Inferred extends TProperties, Left extends TSchema, Right extends TSchema> = (Right extends TAny ? TExtendsRightAny<Inferred, Left> : Right extends TEnum<infer Values extends TEnumValue[]> ? TExtendsRightEnum<Inferred, Left, Values> : Right extends TInfer<infer Name extends string, infer Type extends TSchema> ? TExtendsRightInfer<Inferred, Name, Left, Type> : Right extends TTemplateLiteral<infer Pattern extends string> ? TExtendsRightTemplateLiteral<Inferred, Left, Pattern> : Right extends TIntersect<infer Types extends TSchema[]> ? TExtendsRightIntersect<Inferred, Left, Types> : Right extends TUnion<infer Types extends TSchema[]> ? TExtendsRightUnion<Inferred, Left, Types> : Right extends TUnknown ? TExtendsTrue<Inferred> : TExtendsFalse);
894
+ //#endregion
895
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/extends/any.d.mts
896
+ type TExtendsAny<Inferred extends TProperties, Left extends TAny, Right extends TSchema> = (Right extends TInfer ? TExtendsRight<Inferred, Left, Right> : Right extends TAny ? TExtendsTrue<Inferred> : Right extends TUnknown ? TExtendsTrue<Inferred> : TExtendsUnion$1<Inferred>);
897
+ //#endregion
898
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/extends/array.d.mts
899
+ type TExtendsImmutable<Left extends TSchema, Right extends TSchema, IsImmutableLeft extends boolean = (Left extends TImmutable ? true : false), IsImmutableRight extends boolean = (Right extends TImmutable ? true : false), Result extends boolean = ([IsImmutableLeft, IsImmutableRight] extends [true, true] ? true : [IsImmutableLeft, IsImmutableRight] extends [false, true] ? true : [IsImmutableLeft, IsImmutableRight] extends [true, false] ? false : true)> = Result;
900
+ type TExtendsArray<Inferred extends TProperties, ArrayLeft extends TSchema, Left extends TSchema, Right extends TSchema> = (Right extends TArray<infer Type extends TSchema> ? TExtendsImmutable<ArrayLeft, Right> extends true ? TExtendsLeft<Inferred, Left, Type> : TExtendsFalse : TExtendsRight<Inferred, ArrayLeft, Right>);
901
+ //#endregion
902
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/extends/async_iterator.d.mts
903
+ type TExtendsAsyncIterator<Inferred extends TProperties, Left extends TSchema, Right extends TSchema> = (Right extends TAsyncIterator<infer Type extends TSchema> ? TExtendsLeft<Inferred, Left, Type> : TExtendsRight<Inferred, TAsyncIterator<Left>, Right>);
904
+ //#endregion
905
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/extends/bigint.d.mts
906
+ type TExtendsBigInt<Inferred extends TProperties, Left extends TBigInt, Right extends TSchema> = (Right extends TBigInt ? TExtendsTrue<Inferred> : TExtendsRight<Inferred, Left, Right>);
907
+ //#endregion
908
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/extends/boolean.d.mts
909
+ type TExtendsBoolean<Inferred extends TProperties, Left extends TBoolean, Right extends TSchema> = (Right extends TBoolean ? TExtendsTrue<Inferred> : TExtendsRight<Inferred, Left, Right>);
910
+ //#endregion
911
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/extends/parameters.d.mts
912
+ type TParameterCompare<Inferred extends TProperties, Left extends TSchema, LeftRest extends TSchema[], Right extends TSchema, RightRest extends TSchema[], CheckLeft extends TSchema = (Right extends TInfer ? Left : Right), CheckRight extends TSchema = (Right extends TInfer ? Right : Left), IsLeftOptional extends boolean = (Left extends TOptional ? true : false), IsRightOptional extends boolean = (Right extends TOptional ? true : false)> = ([IsLeftOptional, IsRightOptional] extends [false, true] ? TExtendsFalse : TExtendsLeft<Inferred, CheckLeft, CheckRight> extends TExtendsTrueLike<infer Inferred extends TProperties> ? TExtendsParameters<Inferred, LeftRest, RightRest> : TExtendsFalse);
913
+ type TParameterRight<Inferred extends TProperties, Left extends TSchema, LeftRest extends TSchema[], RightRest extends TSchema[]> = (RightRest extends [infer Head extends TSchema, ...infer Tail extends TSchema[]] ? TParameterCompare<Inferred, Left, LeftRest, Head, Tail> : Left extends TOptional ? TExtendsTrue<Inferred> : TExtendsFalse);
914
+ type TParameterLeft<Inferred extends TProperties, LeftRest extends TSchema[], RightRest extends TSchema[]> = (LeftRest extends [infer Head extends TSchema, ...infer Tail extends TSchema[]] ? TParameterRight<Inferred, Head, Tail, RightRest> : TExtendsTrue<Inferred>);
915
+ type TExtendsParameters<Inferred extends TProperties, Left extends TSchema[], Right extends TSchema[]> = TParameterLeft<Inferred, Left, Right>;
916
+ //#endregion
917
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/extends/return_type.d.mts
918
+ type TExtendsReturnType<Inferred extends TProperties, Left extends TSchema, Right extends TSchema> = (Right extends TVoid ? TExtendsTrue<Inferred> : TExtendsLeft<Inferred, Left, Right>);
919
+ //#endregion
920
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/extends/constructor.d.mts
921
+ type TExtendsConstructor<Inferred extends TProperties, Parameters extends TSchema[], InstanceType extends TSchema, Right extends TSchema> = (Right extends TAny ? TExtendsTrue<Inferred> : Right extends TUnknown ? TExtendsTrue<Inferred> : Right extends TConstructor ? TExtendsParameters<Inferred, Parameters, Right['parameters']> extends TExtendsTrueLike<infer Inferred extends TProperties> ? TExtendsReturnType<Inferred, InstanceType, Right['instanceType']> : TExtendsFalse : TExtendsFalse);
922
+ //#endregion
923
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/extends/enum.d.mts
924
+ type TExtendsEnum<Inferred extends TProperties, Left extends TEnum, Right extends TSchema> = (TExtendsLeft<Inferred, TEnumToUnion<Left>, Right>);
925
+ //#endregion
926
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/extends/function.d.mts
927
+ type TExtendsFunction<Inferred extends TProperties, Parameters extends TSchema[], ReturnType extends TSchema, Right extends TSchema> = (Right extends TAny ? TExtendsTrue<Inferred> : Right extends TUnknown ? TExtendsTrue<Inferred> : Right extends TFunction ? TExtendsParameters<Inferred, Parameters, Right['parameters']> extends TExtendsTrueLike<infer Inferred extends TProperties> ? TExtendsReturnType<Inferred, ReturnType, Right['returnType']> : TExtendsFalse : TExtendsFalse);
928
+ //#endregion
929
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/extends/integer.d.mts
930
+ type TExtendsInteger<Inferred extends TProperties, Left extends TInteger, Right extends TSchema> = (Right extends TInteger ? TExtendsTrue<Inferred> : Right extends TNumber ? TExtendsTrue<Inferred> : TExtendsRight<Inferred, Left, Right>);
931
+ //#endregion
932
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/extends/intersect.d.mts
933
+ type TExtendsIntersect<Inferred extends TProperties, Left extends TSchema[], Right extends TSchema, Evaluated extends TSchema = TEvaluateIntersect<Left>> = TExtendsLeft<Inferred, Evaluated, Right>;
934
+ //#endregion
935
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/extends/iterator.d.mts
936
+ type TExtendsIterator<Inferred extends TProperties, Left extends TSchema, Right extends TSchema> = (Right extends TIterator<infer Type extends TSchema> ? TExtendsLeft<Inferred, Left, Type> : TExtendsRight<Inferred, TIterator<Left>, Right>);
937
+ //#endregion
938
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/extends/literal.d.mts
939
+ type TExtendsLiteralValue<Inferred extends TProperties, Left extends TLiteralValue, Right extends TLiteralValue> = (Left extends Right ? TExtendsTrue<Inferred> : TExtendsFalse);
940
+ type TExtendsLiteralBigInt<Inferred extends TProperties, Left extends bigint, Right extends TSchema> = (Right extends TLiteral<infer Value extends bigint> ? TExtendsLiteralValue<Inferred, Left, Value> : Right extends TBigInt ? TExtendsTrue<Inferred> : TExtendsRight<Inferred, TLiteral<Left>, Right>);
941
+ type TExtendsLiteralBoolean<Inferred extends TProperties, Left extends boolean, Right extends TSchema> = (Right extends TLiteral<infer Value extends boolean> ? TExtendsLiteralValue<Inferred, Left, Value> : Right extends TBoolean ? TExtendsTrue<Inferred> : TExtendsRight<Inferred, TLiteral<Left>, Right>);
942
+ type TExtendsLiteralNumber<Inferred extends TProperties, Left extends number, Right extends TSchema> = (Right extends TLiteral<infer Value extends number> ? TExtendsLiteralValue<Inferred, Left, Value> : Right extends TNumber ? TExtendsTrue<Inferred> : TExtendsRight<Inferred, TLiteral<Left>, Right>);
943
+ type TExtendsLiteralString<Inferred extends TProperties, Left extends string, Right extends TSchema> = (Right extends TLiteral<infer Value extends string> ? TExtendsLiteralValue<Inferred, Left, Value> : Right extends TString ? TExtendsTrue<Inferred> : TExtendsRight<Inferred, TLiteral<Left>, Right>);
944
+ type TExtendsLiteral<Inferred extends TProperties, Left extends TLiteral, Right extends TSchema> = (Left extends TLiteral<infer Value extends bigint> ? TExtendsLiteralBigInt<Inferred, Value, Right> : Left extends TLiteral<infer Value extends boolean> ? TExtendsLiteralBoolean<Inferred, Value, Right> : Left extends TLiteral<infer Value extends number> ? TExtendsLiteralNumber<Inferred, Value, Right> : Left extends TLiteral<infer Value extends string> ? TExtendsLiteralString<Inferred, Value, Right> : TUnreachable);
945
+ //#endregion
946
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/extends/never.d.mts
947
+ type TExtendsNever<Inferred extends TProperties, Left extends TNever, Right extends TSchema> = (Right extends TInfer ? TExtendsRight<Inferred, Left, Right> : TExtendsTrue<Inferred>);
948
+ //#endregion
949
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/extends/null.d.mts
950
+ type TExtendsNull<Inferred extends TProperties, Left extends TNull, Right extends TSchema> = (Right extends TNull ? TExtendsTrue<Inferred> : TExtendsRight<Inferred, Left, Right>);
951
+ //#endregion
952
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/extends/number.d.mts
953
+ type TExtendsNumber<Inferred extends TProperties, Left extends TNumber, Right extends TSchema> = (Right extends TNumber ? TExtendsTrue<Inferred> : TExtendsRight<Inferred, Left, Right>);
954
+ //#endregion
955
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/extends/object.d.mts
956
+ type TExtendsPropertyOptional<Inferred extends TProperties, Left extends TSchema, Right extends TSchema> = (Left extends TOptional<Left> ? Right extends TOptional<Right> ? TExtendsTrue<Inferred> : TExtendsFalse : TExtendsTrue<Inferred>);
957
+ type TExtendsProperty<Inferred extends TProperties, Left extends TSchema, Right extends TSchema> = (Right extends TInfer<string, TNever> ? TExtendsFalse : TExtendsLeft<Inferred, Left, Right> extends TExtendsTrueLike<infer Inferred extends TProperties> ? TExtendsPropertyOptional<Inferred, Left, Right> : TExtendsFalse);
958
+ type TExtractInferredProperties<Keys extends PropertyKey[], Properties extends Record<PropertyKey, Result.TResult>, Result extends TProperties = {}> = (Keys extends [infer Left extends PropertyKey, ...infer Right extends PropertyKey[]] ? Left extends keyof Properties ? Properties[Left] extends Result.TExtendsTrueLike<infer Inferred extends TProperties> ? TExtractInferredProperties<Right, Properties, Result & Inferred> : TExtractInferredProperties<Right, Properties, Result> : TUnreachable : Result);
959
+ type TExtendsPropertiesComparer<Inferred extends TProperties, Left extends TProperties, Right extends TProperties, Properties extends Record<PropertyKey, TExtendsTrue | TExtendsFalse> = { [RightKey in keyof Right]: (RightKey extends keyof Left ? TExtendsProperty<{}, Left[RightKey], Right[RightKey]> : Right[RightKey] extends TOptional<Right[RightKey]> ? Right[RightKey] extends TInfer ? TExtendsTrue<TAssign<Inferred, { [_ in Right[RightKey]['name']]: Right[RightKey]['extends'] }>> : TExtendsTrue<Inferred> : TExtendsFalse) }, Checked extends boolean = (Properties[keyof Right] extends TExtendsTrueLike ? true : false), Extracted extends TProperties = (Checked extends true ? TExtractInferredProperties<TUnionToTuple<keyof Properties>, Properties> : {})> = (Checked extends true ? TExtendsTrue<Extracted> : TExtendsFalse);
960
+ type TExtendsProperties<Inferred extends TProperties, Left extends TProperties, Right extends TProperties, Compared extends TResult = TExtendsPropertiesComparer<Inferred, Left, Right>> = (Compared extends TExtendsTrueLike<infer ComparedInferred extends TProperties> ? TExtendsTrue<TAssign<Inferred, ComparedInferred>> : TExtendsFalse);
961
+ type TExtendsObjectToObject<Inferred extends TProperties, Left extends TProperties, Right extends TProperties> = (TExtendsProperties<Inferred, Left, Right>);
962
+ type TExtendsObject<Inferred extends TProperties, Left extends TProperties, Right extends TSchema> = (Right extends TObject<infer Properties extends TProperties> ? TExtendsObjectToObject<Inferred, Left, Properties> : TExtendsRight<Inferred, TObject<Left>, Right>);
963
+ //#endregion
964
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/extends/promise.d.mts
965
+ type TExtendsPromise<Inferred extends TProperties, Left extends TSchema, Right extends TSchema> = (Right extends TPromise<infer Type extends TSchema> ? TExtendsLeft<Inferred, Left, Type> : TExtendsRight<Inferred, TPromise<Left>, Right>);
966
+ //#endregion
967
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/extends/string.d.mts
968
+ type TExtendsString<Inferred extends TProperties, Left extends TString, Right extends TSchema> = (Right extends TString ? TExtendsTrue<Inferred> : TExtendsRight<Inferred, Left, Right>);
969
+ //#endregion
970
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/extends/symbol.d.mts
971
+ type TExtendsSymbol<Inferred extends TProperties, Left extends TSymbol, Right extends TSchema> = (Right extends TSymbol ? TExtendsTrue<Inferred> : TExtendsRight<Inferred, Left, Right>);
972
+ //#endregion
973
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/extends/template_literal.d.mts
974
+ type TExtendsTemplateLiteral<Inferred extends TProperties, Left extends string, Right extends TSchema, Decoded extends TSchema = TTemplateLiteralDecode<Left>> = TExtendsLeft<Inferred, Decoded, Right>;
975
+ //#endregion
976
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/extends/inference.d.mts
977
+ interface TInferable<Name extends string = string, Type extends TSchema = TSchema> {
978
+ '~kind': 'Inferrable';
979
+ name: Name;
980
+ type: Type;
981
+ }
982
+ type TTryRestInferable<Type extends TSchema, Result extends TInferable | undefined = (Type extends TRest<infer RestType extends TSchema> ? RestType extends TInfer<infer Name extends string, infer Type extends TSchema> ? Type extends TArray<infer Type extends TSchema> ? TInferable<Name, Type> : Type extends TUnknown ? TInferable<Name, Type> : undefined : TUnreachable : undefined)> = Result;
983
+ type TTryInferable<Type extends TSchema, Result extends TInferable | undefined = (Type extends TInfer<infer Name extends string, infer Type extends TSchema> ? TInferable<Name, Type> : undefined)> = Result;
984
+ type TryInferResults<Rest extends TSchema[], Right extends TSchema, Result extends TSchema[] = []> = (Rest extends [infer Head extends TSchema, ...infer Tail extends TSchema[]] ? TExtendsLeft<{}, Head, Right> extends Result.TExtendsTrueLike ? TryInferResults<Tail, Right, [...Result, Head]> : undefined : Result);
985
+ declare function TryInferResults<Rest extends TSchema[], Right extends TSchema>(rest: [...Rest], right: Right, result?: TSchema[]): TryInferResults<Rest, Right>;
986
+ type TInferTupleResult<Inferred extends TProperties, Name extends string, Left extends TSchema[], Right extends TSchema, Results extends TSchema[] | undefined = TryInferResults<Left, Right>> = (Results extends [...infer Results extends TSchema[]] ? TExtendsTrue<TAssign<Inferred, { [_ in Name]: TTuple<Results> }>> : TExtendsFalse);
987
+ type TInferUnionResult<Inferred extends TProperties, Name extends string, Left extends TSchema[], Right extends TSchema, Results extends TSchema[] | undefined = TryInferResults<Left, Right>> = (Results extends [...infer Results extends TSchema[]] ? TExtendsTrue<TAssign<Inferred, { [_ in Name]: TUnion<Results> }>> : TExtendsFalse);
988
+ //#endregion
989
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/extends/tuple.d.mts
990
+ type TReverse<Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TReverse<Right, [Left, ...Result]> : Result);
991
+ type TApplyReverse<Types extends TSchema[], Reversed extends boolean> = Reversed extends true ? TReverse<Types> : Types;
992
+ type TReversed<Types extends TSchema[], First extends TSchema | undefined = (Types extends [infer Left extends TSchema, ...infer _ extends TSchema[]] ? Left : undefined), Inferable extends TSchema | undefined = (First extends TSchema ? TTryRestInferable<First> : undefined), Result extends boolean = (Inferable extends TSchema ? true : false)> = Result;
993
+ type TElementsCompare<Inferred extends TProperties, Reversed extends boolean, Left extends TSchema, LeftRest extends TSchema[], Right extends TSchema, RightRest extends TSchema[]> = (TExtendsLeft<Inferred, Left, Right> extends TExtendsTrueLike<infer CheckInferred extends TProperties> ? TElements<CheckInferred, Reversed, LeftRest, RightRest> : TExtendsFalse);
994
+ type TElementsLeft<Inferred extends TProperties, Reversed extends boolean, LeftRest extends TSchema[], Right extends TSchema, RightRest extends TSchema[], Inferable extends TInferable | undefined = TTryRestInferable<Right>> = (Inferable extends TInferable ? TInferTupleResult<Inferred, Inferable['name'], TApplyReverse<LeftRest, Reversed>, Inferable['type']> : LeftRest extends [infer Head extends TSchema, ...infer Tail extends TSchema[]] ? TElementsCompare<Inferred, Reversed, Head, Tail, Right, RightRest> : TExtendsFalse);
995
+ type TElementsRight<Inferred extends TProperties, Reversed extends boolean, LeftRest extends TSchema[], RightRest extends TSchema[]> = (RightRest extends [infer Head extends TSchema, ...infer Tail extends TSchema[]] ? TElementsLeft<Inferred, Reversed, LeftRest, Head, Tail> : LeftRest['length'] extends 0 ? TExtendsTrue<Inferred> : TExtendsFalse);
996
+ type TElements<Inferred extends TProperties, Reversed extends boolean, LeftRest extends TSchema[], RightRest extends TSchema[]> = TElementsRight<Inferred, Reversed, LeftRest, RightRest>;
997
+ type TExtendsTupleToTuple<Inferred extends TProperties, Left extends TSchema[], Right extends TSchema[], InstantiatedRight extends TSchema[] = TInstantiateElements<Inferred, {
998
+ callstack: [];
999
+ }, Right>, Reversed extends boolean = TReversed<InstantiatedRight>> = TElements<Inferred, Reversed, TApplyReverse<Left, Reversed>, TApplyReverse<InstantiatedRight, Reversed>>;
1000
+ type TExtendsTupleToArray<Inferred extends TProperties, Left extends TSchema[], Right extends TSchema, Inferrable extends TInferable | undefined = TTryInferable<Right>> = (Inferrable extends TInferable ? TInferUnionResult<Inferred, Inferrable['name'], Left, Inferrable['type']> : Left extends [infer Head extends TSchema, ...infer Tail extends TSchema[]] ? TExtendsLeft<Inferred, Head, Right> extends TExtendsTrueLike<infer Inferred extends TProperties> ? TExtendsTupleToArray<Inferred, Tail, Right> : TExtendsFalse : TExtendsTrue<Inferred>);
1001
+ type TExtendsTuple<Inferred extends TProperties, Left extends TSchema[], Right extends TSchema, InstantiatedLeft extends TSchema[] = TInstantiateElements<Inferred, {
1002
+ callstack: [];
1003
+ }, Left>> = (Right extends TTuple<infer Types extends TSchema[]> ? TExtendsTupleToTuple<Inferred, InstantiatedLeft, Types> : Right extends TArray<infer Type extends TSchema> ? TExtendsTupleToArray<Inferred, InstantiatedLeft, Type> : TExtendsRight<Inferred, TTuple<InstantiatedLeft>, Right>);
1004
+ //#endregion
1005
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/extends/undefined.d.mts
1006
+ type TExtendsUndefined<Inferred extends TProperties, Left extends TUndefined, Right extends TSchema> = (Right extends TVoid ? TExtendsTrue<Inferred> : Right extends TUndefined ? TExtendsTrue<Inferred> : TExtendsRight<Inferred, Left, Right>);
1007
+ //#endregion
1008
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/extends/union.d.mts
1009
+ type TExtendsUnionSome<Inferred extends TProperties, Type extends TSchema, UnionTypes extends TSchema[]> = (UnionTypes extends [infer Head extends TSchema, ...infer Tail extends TSchema[]] ? TExtendsLeft<Inferred, Type, Head> extends TExtendsTrueLike<infer Inferred extends TProperties> ? TExtendsTrue<Inferred> : TExtendsUnionSome<Inferred, Type, Tail> : TExtendsFalse);
1010
+ type TExtendsUnionLeft<Inferred extends TProperties, Left extends TSchema[], Right extends TSchema[]> = (Left extends [infer Head extends TSchema, ...infer Tail extends TSchema[]] ? TExtendsUnionSome<Inferred, Head, Right> extends TExtendsTrueLike<infer Inferred extends TProperties> ? TExtendsUnionLeft<Inferred, Tail, Right> : TExtendsFalse : TExtendsTrue<Inferred>);
1011
+ type TExtendsUnion<Inferred extends TProperties, Left extends TSchema[], Right extends TSchema, Inferrable extends TInferable | undefined = TTryInferable<Right>> = (Inferrable extends TInferable<infer Name extends string, infer Type extends TSchema> ? TInferUnionResult<Inferred, Name, Left, Type> : Right extends TUnion<infer Types extends TSchema[]> ? TExtendsUnionLeft<Inferred, Left, Types> : TExtendsUnionLeft<Inferred, Left, [Right]>);
1012
+ //#endregion
1013
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/extends/unknown.d.mts
1014
+ type TExtendsUnknown<Inferred extends TProperties, Left extends TUnknown, Right extends TSchema> = (Right extends TInfer ? TExtendsRight<Inferred, Left, Right> : Right extends TAny ? TExtendsTrue<Inferred> : Right extends TUnknown ? TExtendsTrue<Inferred> : TExtendsFalse);
1015
+ //#endregion
1016
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/extends/void.d.mts
1017
+ type TExtendsVoid<Inferred extends TProperties, Left extends TVoid, Right extends TSchema> = (Right extends TVoid ? TExtendsTrue<Inferred> : TExtendsRight<Inferred, Left, Right>);
1018
+ //#endregion
1019
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/extends/extends_left.d.mts
1020
+ type TExtendsLeft<Inferred extends TProperties, Left extends TSchema, Right extends TSchema> = (Left extends TAny ? TExtendsAny<Inferred, Left, Right> : Left extends TArray<infer Items extends TSchema> ? TExtendsArray<Inferred, Left, Items, Right> : Left extends TAsyncIterator<infer Type extends TSchema> ? TExtendsAsyncIterator<Inferred, Type, Right> : Left extends TBigInt ? TExtendsBigInt<Inferred, Left, Right> : Left extends TBoolean ? TExtendsBoolean<Inferred, Left, Right> : Left extends TConstructor<infer Parameters extends TSchema[], infer InstanceType extends TSchema> ? TExtendsConstructor<Inferred, Parameters, InstanceType, Right> : Left extends TEnum<infer Values extends TEnumValue[]> ? TExtendsEnum<Inferred, TEnum<Values>, Right> : Left extends TFunction<infer Parameters extends TSchema[], infer ReturnType extends TSchema> ? TExtendsFunction<Inferred, Parameters, ReturnType, Right> : Left extends TInteger ? TExtendsInteger<Inferred, Left, Right> : Left extends TIntersect<infer Types extends TSchema[]> ? TExtendsIntersect<Inferred, Types, Right> : Left extends TIterator<infer Type extends TSchema> ? TExtendsIterator<Inferred, Type, Right> : Left extends TLiteral ? TExtendsLiteral<Inferred, Left, Right> : Left extends TNever ? TExtendsNever<Inferred, Left, Right> : Left extends TNull ? TExtendsNull<Inferred, Left, Right> : Left extends TNumber ? TExtendsNumber<Inferred, Left, Right> : Left extends TObject<infer Properties extends TProperties> ? TExtendsObject<Inferred, Properties, Right> : Left extends TPromise<infer Type extends TSchema> ? TExtendsPromise<Inferred, Type, Right> : Left extends TString ? TExtendsString<Inferred, Left, Right> : Left extends TSymbol ? TExtendsSymbol<Inferred, Left, Right> : Left extends TTemplateLiteral<infer Pattern extends string> ? TExtendsTemplateLiteral<Inferred, Pattern, Right> : Left extends TTuple<infer Types extends TSchema[]> ? TExtendsTuple<Inferred, Types, Right> : Left extends TUndefined ? TExtendsUndefined<Inferred, Left, Right> : Left extends TUnion<infer Types extends TSchema[]> ? TExtendsUnion<Inferred, Types, Right> : Left extends TUnknown ? TExtendsUnknown<Inferred, Left, Right> : Left extends TVoid ? TExtendsVoid<Inferred, Left, Right> : TExtendsFalse);
1021
+ //#endregion
1022
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/interface/instantiate.d.mts
1023
+ type TInterfaceOperation<Heritage extends TSchema[], Properties extends TProperties, Result extends TSchema = TEvaluateIntersect<[...Heritage, TObject<Properties>]>> = Result;
1024
+ type TInterfaceAction<Heritage extends TSchema[], Properties extends TProperties, Result extends TSchema = (TCanInstantiate<Heritage> extends true ? TInterfaceOperation<Heritage, Properties> : TInterfaceDeferred<Heritage, Properties>)> = Result;
1025
+ type TInterfaceInstantiate<Context extends TProperties, State extends TState, Heritage extends TSchema[], Properties extends TProperties, InstantiatedHeritage extends TSchema[] = TInstantiateTypes<Context, {
1026
+ callstack: [];
1027
+ }, Heritage>, InstantiatedProperties extends TProperties = TInstantiateProperties<Context, {
1028
+ callstack: [];
1029
+ }, Properties>> = TInterfaceAction<InstantiatedHeritage, InstantiatedProperties>;
1030
+ //#endregion
1031
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/action/interface.d.mts
1032
+ /** Creates a deferred Interface action. */
1033
+ type TInterfaceDeferred<Heritage extends TSchema[] = TSchema[], Properties extends TProperties = TProperties> = (TDeferred<'Interface', [Heritage, Properties]>);
1034
+ //#endregion
1035
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/cyclic/check.d.mts
1036
+ type TFromRef$3<Stack extends string[], Context extends TProperties, Ref extends string> = Ref extends Stack[number] ? true : TFromType$15<[...Stack, Ref], Context, Context[Ref]>;
1037
+ type TFromProperties$2<Stack extends string[], Context extends TProperties, Properties extends TProperties, Types extends TSchema[] = TPropertyValues<Properties>> = TFromTypes$3<Stack, Context, Types>;
1038
+ type TFromTypes$3<Stack extends string[], Context extends TProperties, Types extends TSchema[]> = Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TFromType$15<Stack, Context, Left> extends true ? true : TFromTypes$3<Stack, Context, Right> : false;
1039
+ type TFromType$15<Stack extends string[], Context extends TProperties, Type extends TSchema> = (Type extends TRef<infer Ref extends string> ? TFromRef$3<Stack, Context, Ref> : Type extends TArray<infer Type extends TSchema> ? TFromType$15<Stack, Context, Type> : Type extends TAsyncIterator<infer Type extends TSchema> ? TFromType$15<Stack, Context, Type> : Type extends TConstructor<infer Parameters extends TSchema[], infer InstanceType extends TSchema> ? TFromTypes$3<Stack, Context, [...Parameters, InstanceType]> : Type extends TFunction<infer Parameters extends TSchema[], infer ReturnType extends TSchema> ? TFromTypes$3<Stack, Context, [...Parameters, ReturnType]> : Type extends TInterfaceDeferred<TSchema[], infer Properties extends TProperties> ? TFromProperties$2<Stack, Context, Properties> : Type extends TIntersect<infer Types extends TSchema[]> ? TFromTypes$3<Stack, Context, Types> : Type extends TIterator<infer Type extends TSchema> ? TFromType$15<Stack, Context, Type> : Type extends TObject<infer Properties extends TProperties> ? TFromProperties$2<Stack, Context, Properties> : Type extends TPromise<infer Type extends TSchema> ? TFromType$15<Stack, Context, Type> : Type extends TUnion<infer Types extends TSchema[]> ? TFromTypes$3<Stack, Context, Types> : Type extends TTuple<infer Types extends TSchema[]> ? TFromTypes$3<Stack, Context, Types> : Type extends TRecord<string, infer Type extends TSchema> ? TFromType$15<Stack, Context, Type> : false);
1040
+ /** Performs a cyclic check on the given type. Initial key stack can be empty, but faster if specified */
1041
+ type TCyclicCheck<Stack extends string[], Context extends TProperties, Type extends TSchema, Result extends boolean = TFromType$15<Stack, Context, Type>> = Result;
1042
+ //#endregion
1043
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/cyclic/candidates.d.mts
1044
+ type TResolveCandidateKeys<Context extends TProperties, Keys extends string[], Result extends string[] = []> = (Keys extends [infer Left extends string, ...infer Right extends string[]] ? Left extends keyof Context ? TCyclicCheck<[Left], Context, Context[Left]> extends true ? TResolveCandidateKeys<Context, Right, [...Result, Left]> : TResolveCandidateKeys<Context, Right, Result> : TUnreachable : Result);
1045
+ /** Returns keys for context types that need to be transformed to TCyclic. */
1046
+ type TCyclicCandidates<Context extends TProperties, Keys extends string[] = TPropertyKeys<Context>, Result extends string[] = TResolveCandidateKeys<Context, Keys>> = Result;
1047
+ //#endregion
1048
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/cyclic/dependencies.d.mts
1049
+ type TFromRef$2<Context extends TProperties, Ref extends string, Dependencies extends string[]> = Ref extends Dependencies[number] ? Dependencies : Ref extends keyof Context ? TFromType$14<Context, Context[Ref], [...Dependencies, Ref]> : TUnreachable;
1050
+ type TFromProperties$1<Context extends TProperties, Properties extends TProperties, Dependencies extends string[], Types extends TSchema[] = TPropertyValues<Properties>> = TFromTypes$2<Context, Types, Dependencies>;
1051
+ type TFromTypes$2<Context extends TProperties, Types extends TSchema[], Dependencies extends string[]> = Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TFromTypes$2<Context, Right, TFromType$14<Context, Left, Dependencies>> : Dependencies;
1052
+ type TFromType$14<Context extends TProperties, Type extends TSchema, Result extends string[]> = (Type extends TRef<infer Ref extends string> ? TFromRef$2<Context, Ref, Result> : Type extends TArray<infer Type extends TSchema> ? TFromType$14<Context, Type, Result> : Type extends TAsyncIterator<infer Type extends TSchema> ? TFromType$14<Context, Type, Result> : Type extends TConstructor<infer Parameters extends TSchema[], infer InstanceType extends TSchema> ? TFromTypes$2<Context, [...Parameters, InstanceType], Result> : Type extends TFunction<infer Parameters extends TSchema[], infer ReturnType extends TSchema> ? TFromTypes$2<Context, [...Parameters, ReturnType], Result> : Type extends TInterfaceDeferred<TSchema[], infer Properties extends TProperties> ? TFromProperties$1<Context, Properties, Result> : Type extends TIntersect<infer Types extends TSchema[]> ? TFromTypes$2<Context, Types, Result> : Type extends TIterator<infer Type extends TSchema> ? TFromType$14<Context, Type, Result> : Type extends TObject<infer Properties extends TProperties> ? TFromProperties$1<Context, Properties, Result> : Type extends TPromise<infer Type extends TSchema> ? TFromType$14<Context, Type, Result> : Type extends TUnion<infer Types extends TSchema[]> ? TFromTypes$2<Context, Types, Result> : Type extends TTuple<infer Types extends TSchema[]> ? TFromTypes$2<Context, Types, Result> : Type extends TRecord<string, infer Type extends TSchema> ? TFromType$14<Context, Type, Result> : Result);
1053
+ /** Returns dependent cyclic keys for the given type. This function is used to dead-type-eliminate (DTE) for initializing TCyclic types. */
1054
+ type TCyclicDependencies<Context extends TProperties, Key extends string, Type extends TSchema, Result extends string[] = TFromType$14<Context, Type, [Key]>> = Result;
1055
+ //#endregion
1056
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/cyclic/extends.d.mts
1057
+ type TFromRef$1<_Ref extends string> = (TAny);
1058
+ type TFromProperties<Properties extends TProperties, Result extends TProperties = { [Key in keyof Properties]: TFromType$13<Properties[Key]> }> = { [Key in keyof Result]: Result[Key] };
1059
+ type TFromTypes$1<Types extends TSchema[], Result extends TSchema[] = []> = Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TFromTypes$1<Right, [...Result, TFromType$13<Left>]> : Result;
1060
+ type TFromType$13<Type extends TSchema> = (Type extends TRef<infer Ref extends string> ? TFromRef$1<Ref> : Type extends TArray<infer Type extends TSchema> ? TArray<TFromType$13<Type>> : Type extends TAsyncIterator<infer Type extends TSchema> ? TAsyncIterator<TFromType$13<Type>> : Type extends TConstructor<infer Parameters extends TSchema[], infer InstanceType extends TSchema> ? TFunction<TFromTypes$1<Parameters>, TFromType$13<InstanceType>> : Type extends TFunction<infer Parameters extends TSchema[], infer ReturnType extends TSchema> ? TFunction<TFromTypes$1<Parameters>, TFromType$13<ReturnType>> : Type extends TIntersect<infer Types extends TSchema[]> ? TIntersect<TFromTypes$1<Types>> : Type extends TIterator<infer Type extends TSchema> ? TIterator<TFromType$13<Type>> : Type extends TObject<infer Properties extends TProperties> ? TObject<TFromProperties<Properties>> : Type extends TPromise<infer Type extends TSchema> ? TPromise<TFromType$13<Type>> : Type extends TRecord<infer Pattern extends string, infer Value extends TSchema> ? TRecord<Pattern, TFromType$13<Value>> : Type extends TUnion<infer Types extends TSchema[]> ? TUnion<TFromTypes$1<Types>> : Type extends TTuple<infer Types extends TSchema[]> ? TTuple<TFromTypes$1<Types>> : Type);
1061
+ type TCyclicAnyFromParameters<Defs extends TProperties, Ref extends string> = (Ref extends keyof Defs ? TFromType$13<Defs[Ref]> : TUnknown);
1062
+ /** Transforms TCyclic TRef's into TAny's. This function is used prior to TExtends checks to enable cyclics to be structurally checked and terminated (with TAny) at first point of recursion, what would otherwise be a recursive TRef.*/
1063
+ type TCyclicExtends<Type extends TCyclic, Result extends TSchema = TCyclicAnyFromParameters<Type['$defs'], Type['$ref']>> = Result;
1064
+ //#endregion
1065
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/cyclic/instantiate.d.mts
1066
+ type TCyclicInterface<Context extends TProperties, Heritage extends TSchema[], Properties extends TProperties, InstantiatedHeritage extends TSchema[] = TInstantiateTypes<Context, {
1067
+ callstack: [];
1068
+ }, Heritage>, instantiatedProperties extends TProperties = TInstantiateProperties<{}, {
1069
+ callstack: [];
1070
+ }, Properties>, EvaluatedInterface extends TSchema = TEvaluateIntersect<[...InstantiatedHeritage, TObject<instantiatedProperties>]>> = EvaluatedInterface;
1071
+ type TCyclicDefinitions<Context extends TProperties, Dependencies extends string[], Result extends TProperties = { [Key in Extract<keyof Context, Dependencies[number]>]: Context[Key] extends TInterfaceDeferred<infer Heritage extends TSchema[], infer Properties extends TProperties> ? TCyclicInterface<Context, Heritage, Properties> : Context[Key] }> = Result;
1072
+ type TInstantiateCyclic<Context extends TProperties, Ref extends string, Type extends TSchema, Dependencies extends string[] = TCyclicDependencies<Context, Ref, Type>, Definitions extends TProperties = TCyclicDefinitions<Context, Dependencies>, Result extends TSchema = TCyclic<Definitions, Ref>> = Result;
1073
+ //#endregion
1074
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/cyclic/target.d.mts
1075
+ type TResolve$1<Defs extends TProperties, Ref extends string> = (Ref extends keyof Defs ? Defs[Ref] extends TRef<infer Ref extends string> ? TResolve$1<Defs, Ref> : Defs[Ref] : TNever);
1076
+ /** Returns the target Type from the Defs or Never if target is non-resolvable */
1077
+ type TCyclicTarget<Defs extends TProperties, Ref extends string, Result extends TSchema = TResolve$1<Defs, Ref>> = Result;
1078
+ //#endregion
1079
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/extends/extends.d.mts
1080
+ type TCanonical<Type extends TSchema> = (Type extends TCyclic ? TCyclicExtends<Type> : Type extends TUnsafe ? TUnknown : Type);
1081
+ /** Performs a structural extends check on left and right types and yields inferred types on right if specified. */
1082
+ type TExtends<Inferred extends TProperties, Left extends TSchema, Right extends TSchema, CanonicalLeft extends TSchema = TCanonical<Left>, CanonicalRight extends TSchema = TCanonical<Right>> = TExtendsLeft<Inferred, CanonicalLeft, CanonicalRight>;
1083
+ //#endregion
1084
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/evaluate/compare.d.mts
1085
+ declare const ResultEqual = "equal";
1086
+ declare const ResultDisjoint = "disjoint";
1087
+ declare const ResultLeftInside = "left-inside";
1088
+ declare const ResultRightInside = "right-inside";
1089
+ type TCompareResult = typeof ResultEqual | typeof ResultDisjoint | typeof ResultLeftInside | typeof ResultRightInside;
1090
+ /** Compares left and right types and determines their set relationship */
1091
+ type TCompare<Left extends TSchema, Right extends TSchema, Extends extends [TResult, TResult] = [Left extends TUnknown ? TExtendsFalse : TExtends<{}, Left, Right>, Left extends TUnknown ? TExtendsTrue : TExtends<{}, Right, Left>]> = (Extends extends [TExtendsTrueLike, TExtendsTrueLike] ? typeof ResultEqual : Extends extends [TExtendsTrueLike, TExtendsFalse] ? typeof ResultLeftInside : Extends extends [TExtendsFalse, TExtendsTrueLike] ? typeof ResultRightInside : typeof ResultDisjoint);
1092
+ //#endregion
1093
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/evaluate/broaden.d.mts
1094
+ type TBroadFilter<Type extends TSchema, Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TCompare<Type, Left> extends typeof ResultRightInside ? TBroadFilter<Type, Right, [...Result]> : TBroadFilter<Type, Right, [...Result, Left]> : Result);
1095
+ type TIsBroadestType<Type extends TSchema, Types extends TSchema[]> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TCompare<Type, Left> extends typeof ResultLeftInside | typeof ResultEqual ? false : TIsBroadestType<Type, Right> : true);
1096
+ type TBroadenType<Type extends TSchema, Types extends TSchema[], Evaluated extends TSchema = TEvaluateType<Type>, Result extends TSchema[] = (Evaluated extends TAny ? [Evaluated] : TIsBroadestType<Evaluated, Types> extends true ? [...TBroadFilter<Evaluated, Types>, Evaluated] : Types)> = Result;
1097
+ type TBroadenTypes<Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? (Left extends TObject ? TBroadenTypes<Right, [...Result, Left]> : Left extends TNever ? TBroadenTypes<Right, Result> : TBroadenTypes<Right, TBroadenType<Left, Result>>) : Result);
1098
+ type TBroaden<Types extends TSchema[], Broadened extends TSchema[] = TBroadenTypes<Types>, Flattened extends TSchema[] = TFlatten<Broadened>, Result extends TSchema = (Flattened extends [] ? TNever : Flattened extends [infer Type extends TSchema] ? Type : TUnion<Flattened>)> = Result;
1099
+ //#endregion
1100
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/evaluate/instantiate.d.mts
1101
+ type TEvaluateAction<Type extends TSchema, Result extends TSchema = TEvaluateType<Type>> = Result;
1102
+ type TEvaluateInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>> = TEvaluateAction<InstantiatedType>;
1103
+ //#endregion
1104
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/call/distribute_arguments.d.mts
1105
+ type TCollectDistributionNames<Expression extends TSchema, Result extends string[] = []> = (Expression extends TDeferred<'Conditional', [infer Left extends TSchema, infer _Right extends TSchema, infer True extends TSchema, infer False extends TSchema]> ? Left extends TRef ? TCollectDistributionNames<True, TCollectDistributionNames<False, [...Result, Left['$ref']]>> : TCollectDistributionNames<True, TCollectDistributionNames<False, Result>> : Expression extends TDeferred<'Mapped', [infer _Identifier extends TSchema, infer Type extends TSchema, infer _As extends TSchema, infer _Property extends TSchema]> ? (Type extends TDeferred<'KeyOf', [infer Ref extends TRef]> ? [...Result, Ref['$ref']] : Result) : Result);
1106
+ type TBuildDistributionArray<Parameters extends TParameter[], Names extends string[], Result extends boolean[] = []> = (Parameters extends [infer Left extends TParameter, ...infer Right extends TParameter[]] ? Left['name'] extends Names[number] ? TBuildDistributionArray<Right, Names, [...Result, true]> : TBuildDistributionArray<Right, Names, [...Result, false]> : Result);
1107
+ type TZipDistributionArray<Arguments extends TSchema[], DistributionArray extends boolean[], Result extends [boolean, TSchema][] = []> = (Arguments extends [infer ArgumentLeft extends TSchema, ...infer ArgumentRight extends TSchema[]] ? DistributionArray extends [infer BooleanLeft extends boolean, ...infer BooleanRight extends boolean[]] ? TZipDistributionArray<ArgumentRight, BooleanRight, [...Result, [BooleanLeft, ArgumentLeft]]> : Result : Result);
1108
+ type TExpand<Type extends TSchema> = (Type extends TUnion<infer Types extends TSchema[]> ? [...Types] : [Type]);
1109
+ type TAppend<Current extends TSchema[][], Type extends TSchema, Result extends TSchema[][] = []> = (Current extends [infer Left extends TSchema[], ...infer Right extends TSchema[][]] ? TAppend<Right, Type, [...Result, [...Left, Type]]> : Result);
1110
+ type TCross<Current extends TSchema[][], Variants extends TSchema[], Result extends TSchema[][] = []> = (Variants extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TCross<Current, Right, [...Result, ...TAppend<Current, Left>]> : Result);
1111
+ type TDistribute<ZippedArguments extends [boolean, TSchema][], Result extends TSchema[][] = [[]]> = (ZippedArguments extends [infer Left extends [boolean, TSchema], ...infer Right extends [boolean, TSchema][]] ? Left[0] extends true ? TDistribute<Right, TCross<Result, TExpand<Left[1]>>> : TDistribute<Right, TCross<Result, [Left[1]]>> : Result);
1112
+ type TDistributeArguments<Parameters extends TParameter[], Arguments extends TSchema[], Expression extends TSchema, DistributionNames extends string[] = TCollectDistributionNames<Expression>, DistributionArray extends boolean[] = TBuildDistributionArray<Parameters, DistributionNames>, ZippedArguments extends [boolean, TSchema][] = TZipDistributionArray<Arguments, DistributionArray>, Result extends TSchema[][] = (Expression extends TDeferred<'Conditional', TSchema[]> ? TDistribute<ZippedArguments> : Expression extends TDeferred<'Mapped', TSchema[]> ? TDistribute<ZippedArguments> : [Arguments])> = Result;
1113
+ //#endregion
1114
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/call/resolve_target.d.mts
1115
+ type TFromNotResolvable = (['(not-resolvable)', TNever]);
1116
+ type TFromNotGeneric = (['(not-generic)', TNever]);
1117
+ type TFromGeneric<Name extends string, Parameters extends TParameter[], Expression extends TSchema> = ([Name, TGeneric<Parameters, Expression>]);
1118
+ type TFromRef<Context extends TProperties, Ref extends string, Arguments extends TSchema[]> = (Ref extends keyof Context ? TFromType$12<Context, Ref, Context[Ref], Arguments> : TFromNotResolvable);
1119
+ type TFromType$12<Context extends TProperties, Name extends string, Type extends TSchema, Arguments extends TSchema[]> = (Type extends TGeneric<infer Parameters extends TParameter[], infer Expression extends TSchema> ? TFromGeneric<Name, Parameters, Expression> : Type extends TRef<infer Ref extends string> ? TFromRef<Context, Ref, Arguments> : TFromNotGeneric);
1120
+ /** Resolves a named generic target from the context, or returns TNever if it cannot be resolved or is not generic. */
1121
+ type TResolveTarget<Context extends TProperties, Target extends TSchema, Arguments extends TSchema[], Result extends [string, TSchema] = TFromType$12<Context, '(anonymous)', Target, Arguments>> = Result;
1122
+ //#endregion
1123
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/call/resolve_arguments.d.mts
1124
+ type TBindArgument<Context extends TProperties, State extends TState, Name extends string, Extends extends TSchema, Type extends TSchema, InstantiatedArgument extends TSchema = TInstantiateType<Context, State, Type>> = TAssign<Context, { [_ in Name]: InstantiatedArgument }>;
1125
+ type TBindArguments<Context extends TProperties, State extends TState, ParameterLeft extends TParameter, ParameterRight extends TParameter[], Arguments extends TSchema[], InstantiatedExtends extends TSchema = TInstantiateType<Context, State, ParameterLeft['extends']>, InstantiatedEquals extends TSchema = TInstantiateType<Context, State, ParameterLeft['equals']>> = (Arguments extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TBindParameters<TBindArgument<Context, State, ParameterLeft['name'], InstantiatedExtends, Left>, State, ParameterRight, Right> : TBindParameters<TBindArgument<Context, State, ParameterLeft['name'], InstantiatedExtends, InstantiatedEquals>, State, ParameterRight, []>);
1126
+ type TBindParameters<Context extends TProperties, State extends TState, Parameters extends TParameter[], Arguments extends TSchema[]> = (Parameters extends [infer Left extends TParameter, ...infer Right extends TParameter[]] ? TBindArguments<Context, State, Left, Right, Arguments> : Context);
1127
+ type TResolveArgumentsContext<Context extends TProperties, State extends TState, Parameters extends TParameter[], Arguments extends TSchema[], Result extends TProperties = TBindParameters<Context, State, Parameters, Arguments>> = Result;
1128
+ //#endregion
1129
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/call/instantiate.d.mts
1130
+ type TPeek<State extends TState, Result extends string = (State['callstack'] extends [...infer _ extends string[], infer Top extends string] ? Top : '')> = Result;
1131
+ type TIsTailCall<State extends TState, Name extends string, Result extends boolean = (TPeek<State> extends Name ? true : false)> = Result;
1132
+ type TCallDispatch<Context extends TProperties, State extends TState, Target extends TRef, Parameters extends TParameter[], Expression extends TSchema, Arguments extends TSchema[], ArgumentsContext extends TProperties = TResolveArgumentsContext<Context, State, Parameters, Arguments>, ReturnType extends TSchema = TInstantiateType<ArgumentsContext, {
1133
+ callstack: [...State['callstack'], Target['$ref']];
1134
+ }, Expression>> = TInstantiateType<Context, State, ReturnType>;
1135
+ type TCallDistributed<Context extends TProperties, State extends TState, Target extends TRef, Parameters extends TParameter[], Expression extends TSchema, DistributedArguments extends TSchema[][], Result extends TSchema[] = []> = (DistributedArguments extends [infer Arguments extends TSchema[], ...infer DistributedArguments extends TSchema[][]] ? TCallDispatch<Context, State, Target, Parameters, Expression, Arguments> extends infer ReturnType extends TSchema ? TCallDistributed<Context, State, Target, Parameters, Expression, DistributedArguments, [...Result, ReturnType]> : never : Result);
1136
+ type TCallImmediate<Context extends TProperties, State extends TState, Target extends TRef, Parameters extends TParameter[], Expression extends TSchema, InstantiatedArguments extends TSchema[], DistributedArguments extends TSchema[][] = TDistributeArguments<Parameters, InstantiatedArguments, Expression>, ReturnTypes extends TSchema[] = TCallDistributed<Context, State, Target, Parameters, Expression, DistributedArguments>, Result extends TSchema = (ReturnTypes['length'] extends 1 ? ReturnTypes[0] : TEvaluateUnion<ReturnTypes>)> = Result;
1137
+ type TCallInstantiate<Context extends TProperties, State extends TState, Target extends TSchema, Arguments extends TSchema[], InstantiatedArguments extends TSchema[] = TInstantiateTypes<Context, State, Arguments>, Resolved extends [string, TSchema] = TResolveTarget<Context, Target, Arguments>, Name extends string = Resolved[0], Type extends TSchema = Resolved[1], Result extends TSchema = (Type extends TGeneric<infer Parameters extends TParameter[], infer Expression extends TSchema> ? TIsTailCall<State, Name> extends true ? TCallConstruct<TRef<Name>, InstantiatedArguments> : TCallImmediate<Context, State, TRef<Name>, Parameters, Expression, InstantiatedArguments> : TCallConstruct<Target, InstantiatedArguments>)> = Result;
1138
+ //#endregion
1139
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/types/call.d.mts
1140
+ /** Represents a deferred generic Call */
1141
+ interface TCall<Target extends TSchema = TSchema, Arguments extends TSchema[] = TSchema[]> extends TSchema {
1142
+ '~kind': 'Call';
1143
+ target: Target;
1144
+ arguments: Arguments;
1145
+ }
1146
+ type TCallConstruct<Target extends TSchema, Arguments extends TSchema[], Result extends TSchema = TCall<Target, Arguments>> = Result;
1147
+ //#endregion
1148
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/intrinsics/mapping.d.mts
1149
+ interface TMappingType {
1150
+ input: string;
1151
+ output: string;
1152
+ }
1153
+ type TApplyMapping<Mapping extends TMappingType, Value extends string> = ((Mapping & {
1154
+ input: Value;
1155
+ })['output']);
1156
+ //#endregion
1157
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/intrinsics/from_literal.d.mts
1158
+ type TFromLiteral$2<Mapping extends TMappingType, Value extends TLiteralValue> = (Value extends string ? TLiteral<TApplyMapping<Mapping, Value>> : TLiteral<Value>);
1159
+ //#endregion
1160
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.d.mts
1161
+ type TFromTemplateLiteral$2<Mapping extends TMappingType, Pattern extends string, Decoded extends TSchema = TTemplateLiteralDecode<Pattern>, Result extends TSchema = TFromType$11<Mapping, Decoded>> = Result;
1162
+ //#endregion
1163
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/intrinsics/from_union.d.mts
1164
+ type TFromUnion$6<Mapping extends TMappingType, Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TFromUnion$6<Mapping, Right, [...Result, TFromType$11<Mapping, Left>]> : TUnion<Result>);
1165
+ //#endregion
1166
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/intrinsics/from_type.d.mts
1167
+ type TFromType$11<Mapping extends TMappingType, Type extends TSchema> = (Type extends TLiteral<infer Value extends TLiteralValue> ? TFromLiteral$2<Mapping, Value> : Type extends TTemplateLiteral<infer Pattern extends string> ? TFromTemplateLiteral$2<Mapping, Pattern> : Type extends TUnion<infer Types extends TSchema[]> ? TFromUnion$6<Mapping, Types> : Type);
1168
+ //#endregion
1169
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/action/capitalize.d.mts
1170
+ /** Creates a deferred Capitalize action. */
1171
+ type TCapitalizeDeferred<Type extends TSchema> = (TDeferred<'Capitalize', [Type]>);
1172
+ //#endregion
1173
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/action/lowercase.d.mts
1174
+ /** Creates a deferred Lowercase action. */
1175
+ type TLowercaseDeferred<Type extends TSchema> = (TDeferred<'Lowercase', [Type]>);
1176
+ //#endregion
1177
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/action/uncapitalize.d.mts
1178
+ /** Creates a deferred Uncapitalize action. */
1179
+ type TUncapitalizeDeferred<Type extends TSchema> = (TDeferred<'Uncapitalize', [Type]>);
1180
+ //#endregion
1181
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/action/uppercase.d.mts
1182
+ /** Creates a deferred Uppercase action. */
1183
+ type TUppercaseDeferred<Type extends TSchema> = (TDeferred<'Uppercase', [Type]>);
1184
+ //#endregion
1185
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/intrinsics/instantiate.d.mts
1186
+ interface TCapitalizeMapping extends TMappingType {
1187
+ output: Capitalize<this['input']>;
1188
+ }
1189
+ interface TLowercaseMapping extends TMappingType {
1190
+ output: Lowercase<this['input']>;
1191
+ }
1192
+ interface TUncapitalizeMapping extends TMappingType {
1193
+ output: Uncapitalize<this['input']>;
1194
+ }
1195
+ interface TUppercaseMapping extends TMappingType {
1196
+ output: Uppercase<this['input']>;
1197
+ }
1198
+ type TCapitalizeAction<Type extends TSchema, Result extends TSchema = (TCanInstantiate<[Type]> extends true ? TFromType$11<TCapitalizeMapping, Type> : TCapitalizeDeferred<Type>)> = Result;
1199
+ type TLowercaseAction<Type extends TSchema, Result extends TSchema = (TCanInstantiate<[Type]> extends true ? TFromType$11<TLowercaseMapping, Type> : TLowercaseDeferred<Type>)> = Result;
1200
+ type TUncapitalizeAction<Type extends TSchema, Result extends TSchema = (TCanInstantiate<[Type]> extends true ? TFromType$11<TUncapitalizeMapping, Type> : TUncapitalizeDeferred<Type>)> = Result;
1201
+ type TUppercaseAction<Type extends TSchema, Result extends TSchema = (TCanInstantiate<[Type]> extends true ? TFromType$11<TUppercaseMapping, Type> : TUppercaseDeferred<Type>)> = Result;
1202
+ type TCapitalizeInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>> = TCapitalizeAction<InstantiatedType>;
1203
+ type TLowercaseInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>> = TLowercaseAction<InstantiatedType>;
1204
+ type TUncapitalizeInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>> = TUncapitalizeAction<InstantiatedType>;
1205
+ type TUppercaseInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>> = TUppercaseAction<InstantiatedType>;
1206
+ //#endregion
1207
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/action/conditional.d.mts
1208
+ /** Creates a deferred Conditional action. */
1209
+ type TConditionalDeferred<Left extends TSchema, Right extends TSchema, True extends TSchema, False extends TSchema> = (TDeferred<'Conditional', [Left, Right, True, False]>);
1210
+ //#endregion
1211
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/conditional/instantiate.d.mts
1212
+ type TConditionalOperation<Context extends TProperties, State extends TState, Left extends TSchema, Right extends TSchema, True extends TSchema, False extends TSchema, ExtendsResult extends ExtendsResult.TResult = TExtends<Context, Left, Right>> = (ExtendsResult extends ExtendsResult.TExtendsUnion<infer InferredContext extends TProperties> ? TUnion<[TInstantiateType<InferredContext, State, True>, TInstantiateType<Context, State, False>]> : ExtendsResult extends ExtendsResult.TExtendsTrue<infer InferredContext extends TProperties> ? TInstantiateType<InferredContext, State, True> : TInstantiateType<Context, State, False>);
1213
+ type TConditionalAction<Context extends TProperties, State extends TState, Left extends TSchema, Right extends TSchema, True extends TSchema, False extends TSchema, Result extends TSchema = (TCanInstantiate<[Left, Right]> extends true ? TConditionalOperation<Context, State, Left, Right, True, False> : TConditionalDeferred<Left, Right, True, False>)> = Result;
1214
+ type TConditionalInstantiate<Context extends TProperties, State extends TState, Left extends TSchema, Right extends TSchema, True extends TSchema, False extends TSchema, InstaniatedLeft extends TSchema = TInstantiateType<Context, State, Left>, InstaniatedRight extends TSchema = TInstantiateType<Context, State, Right>> = TConditionalAction<Context, State, InstaniatedLeft, InstaniatedRight, True, False>;
1215
+ //#endregion
1216
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/action/constructor_parameters.d.mts
1217
+ /** Creates a deferred ConstructorParameters action. */
1218
+ type TConstructorParametersDeferred<Type extends TSchema> = (TDeferred<'ConstructorParameters', [Type]>);
1219
+ //#endregion
1220
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.d.mts
1221
+ type TConstructorParametersOperation<Type extends TSchema, Parameters extends TSchema[] = (Type extends TConstructor ? Type['parameters'] : []), InstantiatedParameters extends TSchema[] = TInstantiateElements<{}, {
1222
+ callstack: [];
1223
+ }, Parameters>, Result extends TSchema = TTuple<InstantiatedParameters>> = Result;
1224
+ type TConstructorParametersAction<Type extends TSchema, Result extends TSchema = (TCanInstantiate<[Type]> extends true ? TConstructorParametersOperation<Type> : TConstructorParametersDeferred<Type>)> = Result;
1225
+ type TConstructorParametersInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>> = TConstructorParametersAction<InstantiatedType>;
1226
+ //#endregion
1227
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/action/exclude.d.mts
1228
+ /** Creates a deferred Exclude action. */
1229
+ type TExcludeDeferred<Left extends TSchema, Right extends TSchema> = (TDeferred<'Exclude', [Left, Right]>);
1230
+ //#endregion
1231
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/exclude/operation.d.mts
1232
+ type TExcludeUnionLeft<Types extends TSchema[], Right extends TSchema, Result extends TSchema[] = []> = (Types extends [infer Head extends TSchema, ...infer Tail extends TSchema[]] ? TExcludeUnionLeft<Tail, Right, [...Result, ...TExcludeTypeLeft<Head, Right>]> : Result);
1233
+ type TExcludeTypeLeft<Left extends TSchema, Right extends TSchema, Check extends TResult = TExtends<{}, Left, Right>, Result extends TSchema[] = (Check extends TExtendsTrueLike<infer _> ? [] : [Left])> = Result;
1234
+ type TExcludeOperation<Left extends TSchema, Right extends TSchema, Remaining extends TSchema[] = (Left extends TEnum<infer Values extends TEnumValue[]> ? TExcludeUnionLeft<TEnumValuesToVariants<Values>, Right> : Left extends TUnion<infer Types extends TSchema[]> ? TExcludeUnionLeft<TFlatten<Types>, Right> : TExcludeTypeLeft<Left, Right>), Result extends TSchema = TEvaluateUnion<Remaining>> = Result;
1235
+ //#endregion
1236
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/exclude/instantiate.d.mts
1237
+ type TExcludeAction<Left extends TSchema, Right extends TSchema, Result extends TSchema = (TCanInstantiate<[Left, Right]> extends true ? TExcludeOperation<Left, Right> : TExcludeDeferred<Left, Right>)> = Result;
1238
+ type TExcludeInstantiate<Context extends TProperties, State extends TState, Left extends TSchema, Right extends TSchema, InstantiatedLeft extends TSchema = TInstantiateType<Context, State, Left>, InstantiatedRight extends TSchema = TInstantiateType<Context, State, Right>> = TExcludeAction<InstantiatedLeft, InstantiatedRight>;
1239
+ //#endregion
1240
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/action/extract.d.mts
1241
+ /** Creates a deferred Extract action. */
1242
+ type TExtractDeferred<Left extends TSchema, Right extends TSchema> = (TDeferred<'Extract', [Left, Right]>);
1243
+ //#endregion
1244
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/extract/operation.d.mts
1245
+ type TExtractUnionLeft<Types extends TSchema[], Right extends TSchema, Result extends TSchema[] = []> = (Types extends [infer Head extends TSchema, ...infer Tail extends TSchema[]] ? TExtractUnionLeft<Tail, Right, [...Result, ...TExtractTypeLeft<Head, Right>]> : Result);
1246
+ type TExtractTypeLeft<Left extends TSchema, Right extends TSchema, Check extends TResult = TExtends<{}, Left, Right>, Result extends TSchema[] = (Check extends TExtendsTrueLike<infer _> ? [Left] : [])> = Result;
1247
+ type TExtractOperation<Left extends TSchema, Right extends TSchema, Remaining extends TSchema[] = (Left extends TEnum<infer Values extends TEnumValue[]> ? TExtractUnionLeft<TEnumValuesToVariants<Values>, Right> : Left extends TUnion<infer Types extends TSchema[]> ? TExtractUnionLeft<TFlatten<Types>, Right> : TExtractTypeLeft<Left, Right>), Result extends TSchema = TEvaluateUnion<Remaining>> = Result;
1248
+ //#endregion
1249
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/extract/instantiate.d.mts
1250
+ type TExtractAction<Left extends TSchema, Right extends TSchema, Result extends TSchema = (TCanInstantiate<[Left, Right]> extends true ? TExtractOperation<Left, Right> : TExtractDeferred<Left, Right>)> = Result;
1251
+ type TExtractInstantiate<Context extends TProperties, State extends TState, Left extends TSchema, Right extends TSchema, InstantiatedLeft extends TSchema = TInstantiateType<Context, State, Left>, InstantiatedRight extends TSchema = TInstantiateType<Context, State, Right>> = TExtractAction<InstantiatedLeft, InstantiatedRight>;
1252
+ //#endregion
1253
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/action/indexed.d.mts
1254
+ /** Creates a deferred Index action. */
1255
+ type TIndexDeferred<Type extends TSchema, Indexer extends TSchema> = (TDeferred<'Index', [Type, Indexer]>);
1256
+ //#endregion
1257
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/object/from_cyclic.d.mts
1258
+ type TFromCyclic$4<Defs extends TProperties, Ref extends string, Target extends TSchema = TCyclicTarget<Defs, Ref>, Result extends TProperties = TFromType$10<Target>> = Result;
1259
+ //#endregion
1260
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/object/from_intersect.d.mts
1261
+ type TCollapseIntersectProperties<Left extends TProperties, Right extends TProperties, LeftKeys extends keyof Left = Exclude<keyof Left, keyof Right>, RightKeys extends keyof Right = Exclude<keyof Right, keyof Left>, SharedKeys extends keyof Left & keyof Right = Extract<keyof Left, keyof Right>, LeftProperties extends TProperties = { [Key in LeftKeys]: Left[Key] }, RightProperties extends TProperties = { [Key in RightKeys]: Right[Key] }, SharedProperties extends TProperties = { [Key in SharedKeys]: TEvaluateIntersect<[Left[Key], Right[Key]]> }, Unique extends TProperties = TAssign<LeftProperties, RightProperties>, Shared extends TProperties = TAssign<Unique, SharedProperties>> = Shared;
1262
+ type TFromIntersect$4<Types extends TSchema[], Result extends TProperties = {}> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TFromIntersect$4<Right, TCollapseIntersectProperties<Result, TFromType$10<Left>>> : { [Key in keyof Result]: Result[Key] });
1263
+ //#endregion
1264
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/object/from_object.d.mts
1265
+ type TFromObject$5<Properties extends TProperties> = (Properties);
1266
+ //#endregion
1267
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/object/from_tuple.d.mts
1268
+ type TFromTuple$3<Types extends TSchema[], Object extends TSchema = TTupleToObject<TTuple<Types>>, Result extends TSchema = TFromType$10<Object>> = Result;
1269
+ //#endregion
1270
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/object/from_union.d.mts
1271
+ type TCollapseUnionProperties<Left extends TProperties, Right extends TProperties, SharedKeys extends PropertyKey = keyof Left & keyof Right, Result extends TProperties = { [Key in SharedKeys]: TEvaluateUnion<[Left[Key], Right[Key]]> }> = Result;
1272
+ type TReduceVariants<Types extends TSchema[], Result extends TProperties> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TReduceVariants<Right, TCollapseUnionProperties<Result, TFromType$10<Left>>> : Result);
1273
+ type TFromUnion$5<Types extends TSchema[]> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TReduceVariants<Right, TFromType$10<Left>> : TUnreachable);
1274
+ //#endregion
1275
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/object/from_type.d.mts
1276
+ type TFromType$10<Type extends TSchema, Result extends TProperties = (Type extends TCyclic<infer Defs extends TProperties, infer Ref extends string> ? TFromCyclic$4<Defs, Ref> : Type extends TIntersect<infer Types extends TSchema[]> ? TFromIntersect$4<Types> : Type extends TUnion<infer Types extends TSchema[]> ? TFromUnion$5<Types> : Type extends TTuple<infer Types extends TSchema[]> ? TFromTuple$3<Types> : Type extends TObject<infer Properties extends TProperties> ? TFromObject$5<Properties> : {})> = Result;
1277
+ //#endregion
1278
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/object/collapse.d.mts
1279
+ type TCollapseToObject<Type extends TSchema, Properties extends TProperties = TFromType$10<Type>, Result extends TSchema = TObject<Properties>> = Result;
1280
+ //#endregion
1281
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/helpers/keys.d.mts
1282
+ type TConvertToIntegerKey<Value extends TLiteralValue, Normal extends string = `${Value}`, Result extends TLiteralValue = (Normal extends ` ${infer _ extends number}` ? Normal : Normal extends `${infer _ extends number} ` ? Normal : Normal extends `0${infer _ extends number}` ? Normal : Normal extends `-${infer _ extends number}` ? Normal : Normal extends `${infer Value extends number}` ? Value : Value)> = Result;
1283
+ //#endregion
1284
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/indexed/from_array.d.mts
1285
+ type TNormalizeLiteral<Value extends TLiteralValue, Result extends TSchema = TLiteral<TConvertToIntegerKey<Value>>> = Result;
1286
+ type TNormalizeIndexerTypes<Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TNormalizeIndexerTypes<Right, [...Result, TNormalizeIndexer<Left>]> : Result);
1287
+ type TNormalizeIndexer<Type extends TSchema, Result extends TSchema = (Type extends TIntersect<infer Types extends TSchema[]> ? TIntersect<TNormalizeIndexerTypes<Types>> : Type extends TUnion<infer Types extends TSchema[]> ? TUnion<TNormalizeIndexerTypes<Types>> : Type extends TLiteral<infer Value extends TLiteralValue> ? TNormalizeLiteral<Value> : Type)> = Result;
1288
+ type TFromArray$2<Type extends TSchema, Indexer extends TSchema, NormalizedIndexer extends TSchema = TNormalizeIndexer<Indexer>, Check extends TResult = TExtends<{}, NormalizedIndexer, TNumber>, Result extends TSchema = (Check extends TExtendsTrueLike ? Type : Indexer extends TLiteral<infer _ extends 'length'> ? TNumber : TNever)> = Result;
1289
+ //#endregion
1290
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/indexable/from_cyclic.d.mts
1291
+ type TFromCyclic$3<Defs extends TProperties, Ref extends string, Target extends TSchema = TCyclicTarget<Defs, Ref>, Result extends string[] = TFromType$9<Target>> = Result;
1292
+ //#endregion
1293
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/indexable/from_union.d.mts
1294
+ type TFromUnion$4<Types extends TSchema[], Result extends string[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TFromUnion$4<Right, [...Result, ...TFromType$9<Left>]> : Result);
1295
+ //#endregion
1296
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/indexable/from_enum.d.mts
1297
+ type TFromEnum<Values extends TEnumValue[], Variants extends TSchema[] = TEnumValuesToVariants<Values>, Result extends string[] = TFromUnion$4<Variants>> = Result;
1298
+ //#endregion
1299
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/indexable/from_intersect.d.mts
1300
+ type TFromIntersect$3<Types extends TSchema[], Evaluated extends TSchema = TEvaluateIntersect<Types>, Result extends string[] = TFromType$9<Evaluated>> = Result;
1301
+ //#endregion
1302
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/indexable/from_literal.d.mts
1303
+ type TFromLiteral$1<Value extends TLiteralValue, Result extends string[] = [`${Value}`]> = Result;
1304
+ //#endregion
1305
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/indexable/from_template_literal.d.mts
1306
+ type TFromTemplateLiteral$1<Pattern extends string, Decoded extends TSchema = TTemplateLiteralDecode<Pattern>, Result extends string[] = TFromType$9<Decoded>> = Result;
1307
+ //#endregion
1308
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/indexable/from_type.d.mts
1309
+ type TFromType$9<Indexer extends TSchema, Result extends string[] = (Indexer extends TCyclic<infer Defs extends TProperties, infer Ref extends string> ? TFromCyclic$3<Defs, Ref> : Indexer extends TEnum<infer Values extends TEnumValue[]> ? TFromEnum<Values> : Indexer extends TIntersect<infer Types extends TSchema[]> ? TFromIntersect$3<Types> : Indexer extends TLiteral<infer Value extends TLiteralValue> ? TFromLiteral$1<Value> : Indexer extends TTemplateLiteral<infer Pattern extends string> ? TFromTemplateLiteral$1<Pattern> : Indexer extends TUnion<infer Types extends TSchema[]> ? TFromUnion$4<Types> : [])> = Result;
1310
+ //#endregion
1311
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/indexable/to_indexable_keys.d.mts
1312
+ type TToIndexableKeys<Indexer extends TSchema, Result extends string[] = TFromType$9<Indexer>> = Result;
1313
+ //#endregion
1314
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/this/expand_this.d.mts
1315
+ type TFromTypes<Properties extends TProperties, Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TFromTypes<Properties, Right, [...Result, TFromType$8<Properties, Left>]> : Result);
1316
+ type TFromType$8<Properties extends TProperties, Type extends TSchema> = (Type extends TArray<infer Type extends TSchema> ? TArray<TFromType$8<Properties, Type>> : Type extends TAsyncIterator<infer Type extends TSchema> ? TAsyncIterator<TFromType$8<Properties, Type>> : Type extends TConstructor<infer Parameters extends TSchema[], infer InstanceType extends TSchema> ? TConstructor<TFromTypes<Properties, Parameters>, TFromType$8<Properties, InstanceType>> : Type extends TFunction<infer Parameters extends TSchema[], infer ReturnType extends TSchema> ? TFunction<TFromTypes<Properties, Parameters>, TFromType$8<Properties, ReturnType>> : Type extends TIterator<infer Type extends TSchema> ? TIterator<TFromType$8<Properties, Type>> : Type extends TPromise<infer Type extends TSchema> ? TPromise<TFromType$8<Properties, Type>> : Type extends TTuple<infer Types extends TSchema[]> ? TTuple<TFromTypes<Properties, Types>> : Type extends TUnion<infer Types extends TSchema[]> ? TUnion<TFromTypes<Properties, Types>> : Type extends TIntersect<infer Types extends TSchema[]> ? TIntersect<TFromTypes<Properties, Types>> : Type extends TThis ? TObject<Properties> : Type);
1317
+ type TExpandThis<Properties extends TProperties, Type extends TSchema, Result extends TSchema = TFromType$8<Properties, Type>> = Result;
1318
+ //#endregion
1319
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/indexed/from_object.d.mts
1320
+ type TIndexProperty<Properties extends TProperties, Key extends string, CanonicalKey extends string = (keyof Properties extends string | number ? `${keyof Properties}` : never), SelectedType extends TSchema = (Key extends CanonicalKey ? Properties[Key] : TNever), Result extends TSchema = TExpandThis<Properties, SelectedType>> = Result;
1321
+ type TIndexProperties<Properties extends TProperties, Keys extends string[], Result extends TSchema[] = []> = (Keys extends [infer Left extends string, ...infer Right extends string[]] ? TIndexProperties<Properties, Right, [...Result, TIndexProperty<Properties, Left>]> : Result);
1322
+ type TFromIndexer<Properties extends TProperties, Indexer extends TSchema, Keys extends string[] = TToIndexableKeys<Indexer>, Variants extends TSchema[] = TIndexProperties<Properties, Keys>, Result extends TSchema = TEvaluateUnion<Variants>> = Result;
1323
+ type TNumericKeys<Keys extends string[], Result extends string[] = []> = (Keys extends [infer Left extends string, ...infer Right extends string[]] ? Left extends `${infer _ extends number}` ? TNumericKeys<Right, [...Result, Left]> : TNumericKeys<Right, Result> : Result);
1324
+ type TFromIndexerNumber<Properties extends TProperties, Keys extends string[] = TPropertyKeys<Properties>, NumericKeys extends string[] = TNumericKeys<Keys>, Variants extends TSchema[] = TIndexProperties<Properties, NumericKeys>, Result extends TSchema = TEvaluateUnion<Variants>> = Result;
1325
+ type TFromObject$4<Properties extends TProperties, Indexer extends TSchema, Result extends TSchema = (Indexer extends TNumber ? TFromIndexerNumber<Properties> : TFromIndexer<Properties, Indexer>)> = Result;
1326
+ //#endregion
1327
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/indexed/array_indexer.d.mts
1328
+ type TConvertLiteral<Value extends TLiteralValue, Result extends TSchema = TLiteral<TConvertToIntegerKey<Value>>> = Result;
1329
+ type TArrayIndexerTypes<Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TArrayIndexerTypes<Right, [...Result, TFormatArrayIndexer<Left>]> : Result);
1330
+ /** Formats embedded integer-like strings on an Indexer to be number values inline with TS indexing | coercion behaviors. */
1331
+ type TFormatArrayIndexer<Type extends TSchema, Result extends TSchema = (Type extends TIntersect<infer Types extends TSchema[]> ? TIntersect<TArrayIndexerTypes<Types>> : Type extends TUnion<infer Types extends TSchema[]> ? TUnion<TArrayIndexerTypes<Types>> : Type extends TLiteral<infer Value extends TLiteralValue> ? TConvertLiteral<Value> : Type)> = Result;
1332
+ //#endregion
1333
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/indexed/from_tuple.d.mts
1334
+ type TIndexElementsWithIndexer<Types extends TSchema[], Indexer extends TSchema, Result extends TSchema[] = []> = (Types extends [...infer Left extends TSchema[], infer Right extends TSchema] ? TExtends<{}, TLiteral<Left['length']>, Indexer> extends TExtendsTrueLike ? TIndexElementsWithIndexer<Left, Indexer, [Right, ...Result]> : TIndexElementsWithIndexer<Left, Indexer, Result> : Result);
1335
+ type TFromTupleWithIndexer<Types extends TSchema[], Indexer extends TSchema, ArrayIndexer extends TSchema = TFormatArrayIndexer<Indexer>, Elements extends TSchema[] = TIndexElementsWithIndexer<Types, ArrayIndexer>, Result extends TSchema = TEvaluateUnionFast<Elements>> = Result;
1336
+ type TFromTupleWithoutIndexer<Types extends TSchema[], Result extends TSchema = TEvaluateUnionFast<Types>> = Result;
1337
+ type TFromTuple$2<Types extends TSchema[], Indexer extends TSchema, Result extends TSchema = (Indexer extends TLiteral<infer _ extends 'length'> ? TLiteral<Types['length']> : Indexer extends TNumber | TInteger ? TFromTupleWithoutIndexer<Types> : TFromTupleWithIndexer<Types, Indexer>)> = Result;
1338
+ //#endregion
1339
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/indexed/from_type.d.mts
1340
+ type TFromType$7<Type extends TSchema, Indexer extends TSchema> = (Type extends TArray<infer Type extends TSchema> ? TFromArray$2<Type, Indexer> : Type extends TObject<infer Properties extends TProperties> ? TFromObject$4<Properties, Indexer> : Type extends TTuple<infer Types extends TSchema[]> ? TFromTuple$2<Types, Indexer> : TNever);
1341
+ //#endregion
1342
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/indexed/instantiate.d.mts
1343
+ type TNormalizeType$1<Type extends TSchema, Result extends TSchema = (Type extends TCyclic | TIntersect | TUnion ? TCollapseToObject<Type> : Type)> = Result;
1344
+ type TIndexAction<Type extends TSchema, Indexer extends TSchema, Result extends TSchema = (TCanInstantiate<[Type, Indexer]> extends true ? TFromType$7<TNormalizeType$1<Type>, Indexer> : TIndexDeferred<Type, Indexer>)> = Result;
1345
+ type TIndexInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, Indexer extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>, InstantiatedIndexer extends TSchema = TInstantiateType<Context, State, Indexer>> = TIndexAction<InstantiatedType, InstantiatedIndexer>;
1346
+ //#endregion
1347
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/action/instance_type.d.mts
1348
+ /** Creates a deferred InstanceType action. */
1349
+ type TInstanceTypeDeferred<Type extends TSchema> = (TDeferred<'InstanceType', [Type]>);
1350
+ //#endregion
1351
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/instance_type/instantiate.d.mts
1352
+ type TInstanceTypeOperation<Type extends TSchema> = (Type extends TConstructor ? Type['instanceType'] : TNever);
1353
+ type TInstanceTypeAction<Type extends TSchema, Result extends TSchema = (TCanInstantiate<[Type]> extends true ? TInstanceTypeOperation<Type> : TInstanceTypeDeferred<Type>)> = Result;
1354
+ type TInstanceTypeInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>> = TInstanceTypeAction<InstantiatedType>;
1355
+ //#endregion
1356
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/action/keyof.d.mts
1357
+ /** Creates a deferred KeyOf action. */
1358
+ type TKeyOfDeferred<Type extends TSchema> = (TDeferred<'KeyOf', [Type]>);
1359
+ //#endregion
1360
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/keyof/from_any.d.mts
1361
+ type TFromAny<Result = TUnion<[TNumber, TString, TSymbol]>> = Result;
1362
+ //#endregion
1363
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/keyof/from_array.d.mts
1364
+ type TFromArray$1<_Type extends TSchema> = TNumber;
1365
+ //#endregion
1366
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/keyof/from_object.d.mts
1367
+ type TFromPropertyKeys<Keys extends PropertyKey[], Result extends TSchema[] = []> = (Keys extends [infer Left extends PropertyKey, ...infer Right extends PropertyKey[]] ? Left extends TLiteralValue ? TFromPropertyKeys<Right, [...Result, TLiteral<Left>]> : TUnreachable : Result);
1368
+ type TFromObject$3<Properties extends TProperties, PropertyKeys extends PropertyKey[] = TUnionToTuple<keyof Properties>, Variants extends TSchema[] = TFromPropertyKeys<PropertyKeys>, Result extends TSchema = TEvaluateUnionFast<Variants>> = Result;
1369
+ //#endregion
1370
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/keyof/from_record.d.mts
1371
+ type TFromRecord<Type extends TRecord, Result extends TSchema = TRecordKey<Type>> = Result;
1372
+ //#endregion
1373
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/keyof/from_tuple.d.mts
1374
+ type TFromTuple$1<Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [...infer Left extends TSchema[], infer _ extends TSchema] ? TFromTuple$1<Left, [TLiteral<Left['length']>, ...Result]> : TEvaluateUnionFast<Result>);
1375
+ //#endregion
1376
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/keyof/from_type.d.mts
1377
+ type TFromType$6<Type extends TSchema> = (Type extends TAny ? TFromAny : Type extends TArray<infer Type extends TSchema> ? TFromArray$1<Type> : Type extends TObject<infer Properties extends TProperties> ? TFromObject$3<Properties> : Type extends TRecord ? TFromRecord<Type> : Type extends TTuple<infer Types extends TSchema[]> ? TFromTuple$1<Types> : TNever);
1378
+ //#endregion
1379
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/keyof/instantiate.d.mts
1380
+ type TNormalizeType<Type extends TSchema, Result extends TSchema = (Type extends TCyclic | TIntersect | TUnion ? TCollapseToObject<Type> : Type)> = Result;
1381
+ type TKeyOfAction<Type extends TSchema, Result extends TSchema = (TCanInstantiate<[Type]> extends true ? TFromType$6<TNormalizeType<Type>> : TKeyOfDeferred<Type>)> = Result;
1382
+ type TKeyOfInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>> = TKeyOfAction<InstantiatedType>;
1383
+ //#endregion
1384
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/action/mapped.d.mts
1385
+ /** Creates a deferred Mapped action. */
1386
+ type TMappedDeferred<Identifier extends TIdentifier, Type extends TSchema, As extends TSchema, Property extends TSchema> = (TDeferred<'Mapped', [Identifier, Type, As, Property]>);
1387
+ //#endregion
1388
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/mapped/mapped_variants.d.mts
1389
+ type TFromTemplateLiteral<Pattern extends string, Decoded extends TSchema = TTemplateLiteralDecode<Pattern>, Result extends TSchema[] = TFromType$5<Decoded>> = Result;
1390
+ type TFromUnion$3<Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TFromUnion$3<Right, [...Result, ...TFromType$5<Left>]> : Result);
1391
+ type TFromLiteral<Value extends TLiteralValue, Result extends TSchema[] = (Value extends number ? [TLiteral<`${Value}`>] : [TLiteral<Value>])> = Result;
1392
+ type TFromType$5<Type extends TSchema, Result extends TSchema[] = (Type extends TEnum<infer Values extends TEnumValue[]> ? TFromUnion$3<TEnumValuesToVariants<Values>> : Type extends TLiteral<infer Value extends number> ? TFromLiteral<Value> : Type extends TTemplateLiteral<infer Pattern extends string> ? TFromTemplateLiteral<Pattern> : Type extends TUnion<infer Types extends TSchema[]> ? TFromUnion$3<Types> : [Type])> = Result;
1393
+ type TMappedVariants<Type extends TSchema, Result extends TSchema[] = TFromType$5<Type>> = Result;
1394
+ //#endregion
1395
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/mapped/mapped_operation.d.mts
1396
+ type TCanonicalAs<InstantiatedAs extends TSchema, Result extends TSchema = (InstantiatedAs extends TTemplateLiteral<infer Pattern extends string> ? TTemplateLiteralDecode<Pattern> : InstantiatedAs)> = Result;
1397
+ type TMappedVariant<Context extends TProperties, State extends TState, Identifier extends TIdentifier, Variant extends TSchema, As extends TSchema, Property extends TSchema, VariantContext extends TProperties = TAssign<Context, { [_ in Identifier['name']]: Variant }>, InstantiatedAs extends TSchema = TInstantiateType<VariantContext, State, As>, CanonicalAs extends TSchema = TCanonicalAs<InstantiatedAs>, InstantiatedProperty extends TSchema = TInstantiateType<VariantContext, State, Property>, Result extends TProperties = (CanonicalAs extends TLiteral<string | number> ? { [_ in CanonicalAs['const']]: InstantiatedProperty } : {})> = Result;
1398
+ type TMappedProperties<Context extends TProperties, State extends TState, Identifier extends TIdentifier, Variants extends TSchema[], As extends TSchema, Property extends TSchema, Result extends TProperties[] = []> = (Variants extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TMappedProperties<Context, State, Identifier, Right, As, Property, [...Result, TMappedVariant<Context, State, Identifier, Left, As, Property>]> : Result);
1399
+ type TReduceProperties<Properties extends TProperties[], Result extends TSchema[] = []> = (Properties extends [infer Left extends TProperties, ...infer Right extends TProperties[]] ? TReduceProperties<Right, [...Result, TObject<Left>]> : Result);
1400
+ type TMappedOperation<Context extends TProperties, State extends TState, Identifier extends TIdentifier, Type extends TSchema, As extends TSchema, Property extends TSchema, Variants extends TSchema[] = TMappedVariants<Type>, MappedProperties extends TProperties[] = TMappedProperties<Context, State, Identifier, Variants, As, Property>, MappedObjects extends TSchema[] = TReduceProperties<MappedProperties>, Result extends TSchema = TEvaluateIntersect<MappedObjects>> = Result;
1401
+ //#endregion
1402
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/mapped/instantiate.d.mts
1403
+ type TMappedAction<Context extends TProperties, State extends TState, Identifier extends TIdentifier, Type extends TSchema, As extends TSchema, Property extends TSchema, Result extends TSchema = (TCanInstantiate<[Type]> extends true ? TMappedOperation<Context, State, Identifier, Type, As, Property> : TMappedDeferred<Identifier, Type, As, Property>)> = Result;
1404
+ type TMappedInstantiate<Context extends TProperties, State extends TState, Identifier extends TIdentifier, Type extends TSchema, As extends TSchema, Property extends TSchema, InstaniatedType extends TSchema = TInstantiateType<Context, State, Type>> = TMappedAction<Context, State, Identifier, InstaniatedType, As, Property>;
1405
+ //#endregion
1406
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/module/instantiate.d.mts
1407
+ type TInstantiateCyclics<Context extends TProperties, CyclicKeys extends string[], Result extends TProperties = { [Key in Extract<keyof Context, CyclicKeys[number]>]: TInstantiateCyclic<Context, Key, Context[Key]> }> = Result;
1408
+ type TInstantiateNonCyclics<Context extends TProperties, CyclicKeys extends string[], Result extends TProperties = { [Key in Exclude<keyof Context, CyclicKeys[number]>]: TInstantiateType<Context, {
1409
+ callstack: [];
1410
+ }, Context[Key]> }> = Result;
1411
+ type TInstantiateModule<Context extends TProperties, CyclicCandidates extends string[] = TCyclicCandidates<Context>, InstantiatedCyclics extends TProperties = TInstantiateCyclics<Context, CyclicCandidates>, InstantiatedNonCyclics extends TProperties = TInstantiateNonCyclics<Context, CyclicCandidates>, InstantiatedModule extends TProperties = InstantiatedCyclics & InstantiatedNonCyclics> = { [Key in keyof InstantiatedModule]: InstantiatedModule[Key] } & {};
1412
+ type TModuleInstantiate<Context extends TProperties, _State extends TState, Properties extends TProperties, ModuleContext extends TProperties = TAssign<Context, Properties>, InstantiatedModule extends TProperties = TInstantiateModule<ModuleContext>> = InstantiatedModule;
1413
+ //#endregion
1414
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/action/non_nullable.d.mts
1415
+ /** Creates a deferred NonNullable action. */
1416
+ type TNonNullableDeferred<Type extends TSchema> = (TDeferred<'NonNullable', [Type]>);
1417
+ //#endregion
1418
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/non_nullable/instantiate.d.mts
1419
+ type TNonNullableOperation<Type extends TSchema, Excluded extends TSchema = TUnion<[TNull, TUndefined]>> = TExcludeAction<Type, Excluded>;
1420
+ type TNonNullableAction<Type extends TSchema, Result extends TSchema = (TCanInstantiate<[Type]> extends true ? TNonNullableOperation<Type> : TNonNullableDeferred<Type>)> = Result;
1421
+ type TNonNullableInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>> = TNonNullableAction<InstantiatedType>;
1422
+ //#endregion
1423
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/action/omit.d.mts
1424
+ /** Creates a deferred Omit action. */
1425
+ type TOmitDeferred<Type extends TSchema, Indexer extends TSchema> = (TDeferred<'Omit', [Type, Indexer]>);
1426
+ //#endregion
1427
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/indexable/to_indexable.d.mts
1428
+ /** Transforms a type into a TProperties used for indexing operations */
1429
+ type TToIndexable<Type extends TSchema, Collapsed extends TSchema = TCollapseToObject<Type>, Result extends TProperties = (Collapsed extends TObject<infer Properties extends TProperties> ? Properties : TUnreachable)> = Result;
1430
+ //#endregion
1431
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/omit/from_type.d.mts
1432
+ type TNormalKeys<Keys extends string[], UnionKeys extends string = Keys[number], Result extends string | number = (UnionKeys extends `${infer Value extends number}` ? UnionKeys | Value : UnionKeys)> = Result;
1433
+ type TFromKeys$1<Properties extends TProperties, Keys extends string[], Omitted extends TProperties = Omit<Properties, TNormalKeys<Keys>>, Result extends TProperties = { [Key in keyof Omitted]: Omitted[Key] }> = Result;
1434
+ type TFromType$4<Type extends TSchema, Indexer extends TSchema, Indexable extends TProperties = TToIndexable<Type>, IndexableKeys extends string[] = TToIndexableKeys<Indexer>, Omitted extends TProperties = TFromKeys$1<Indexable, IndexableKeys>, Result extends TSchema = TObject<Omitted>> = Result;
1435
+ //#endregion
1436
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/omit/instantiate.d.mts
1437
+ type TOmitAction<Type extends TSchema, Indexer extends TSchema, Result extends TSchema = (TCanInstantiate<[Type, Indexer]> extends true ? TFromType$4<Type, Indexer> : TOmitDeferred<Type, Indexer>)> = Result;
1438
+ type TOmitInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, Indexer extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>, InstantiatedIndexer extends TSchema = TInstantiateType<Context, State, Indexer>> = TOmitAction<InstantiatedType, InstantiatedIndexer>;
1439
+ //#endregion
1440
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/action/options.d.mts
1441
+ /** Creates a deferred Options action. */
1442
+ type TOptionsDeferred<Type extends TSchema, Options extends TSchema> = (TDeferred<'Options', [Type, Options]>);
1443
+ /** Applies an immediate Options action to the given type. */
1444
+ type TOptions<Type extends TSchema, Options extends TSchema> = (Type & Options);
1445
+ //#endregion
1446
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/options/instantiate.d.mts
1447
+ type TOptionsAction<Type extends TSchema, Options extends TSchema, Result extends TSchema = (TCanInstantiate<[Type]> extends true ? TOptions<Type, Options> : TOptionsDeferred<Type, Options>)> = Result;
1448
+ type TOptionsInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, Options extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>> = TOptionsAction<InstantiatedType, Options>;
1449
+ //#endregion
1450
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/action/parameters.d.mts
1451
+ /** Creates a deferred Parameters action. */
1452
+ type TParametersDeferred<Type extends TSchema> = (TDeferred<'Parameters', [Type]>);
1453
+ //#endregion
1454
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/parameters/instantiate.d.mts
1455
+ type TParametersOperation<Type extends TSchema, Parameters extends TSchema[] = (Type extends TFunction ? Type['parameters'] : []), InstantiatedParameters extends TSchema[] = TInstantiateElements<{}, {
1456
+ callstack: [];
1457
+ }, Parameters>, Result extends TSchema = TTuple<InstantiatedParameters>> = Result;
1458
+ type TParametersAction<Type extends TSchema, Result extends TSchema = (TCanInstantiate<[Type]> extends true ? TParametersOperation<Type> : TParametersDeferred<Type>)> = Result;
1459
+ type TParametersInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>> = TParametersAction<InstantiatedType>;
1460
+ //#endregion
1461
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/action/partial.d.mts
1462
+ /** Creates a deferred Partial action. */
1463
+ type TPartialDeferred<Type extends TSchema> = (TDeferred<'Partial', [Type]>);
1464
+ //#endregion
1465
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/partial/from_cyclic.d.mts
1466
+ type TFromCyclic$2<Defs extends TProperties, Ref extends string, Target extends TSchema = TCyclicTarget<Defs, Ref>, Partial extends TSchema = TFromType$3<Target>, Result extends TSchema = TCyclic<TAssign<Defs, { [_ in Ref]: Partial }>, Ref>> = Result;
1467
+ //#endregion
1468
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/partial/from_intersect.d.mts
1469
+ type TFromIntersect$2<Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TFromIntersect$2<Right, [...Result, TFromType$3<Left>]> : TEvaluateIntersect<Result>);
1470
+ //#endregion
1471
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/partial/from_union.d.mts
1472
+ type TFromUnion$2<Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TFromUnion$2<Right, [...Result, TFromType$3<Left>]> : TUnion<Result>);
1473
+ //#endregion
1474
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/partial/from_object.d.mts
1475
+ type TFromObject$2<Properties extends TProperties, Mapped extends TProperties = { [Key in keyof Properties]: TOptionalAdd<Properties[Key]> }, Result extends TSchema = TObject<Mapped>> = Result;
1476
+ //#endregion
1477
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/partial/from_type.d.mts
1478
+ type TFromType$3<Type extends TSchema> = (Type extends TCyclic<infer Defs extends TProperties, infer Ref extends string> ? TFromCyclic$2<Defs, Ref> : Type extends TIntersect<infer Types extends TSchema[]> ? TFromIntersect$2<Types> : Type extends TUnion<infer Types extends TSchema[]> ? TFromUnion$2<Types> : Type extends TObject<infer Properties extends TProperties> ? TFromObject$2<Properties> : TObject<{}>);
1479
+ //#endregion
1480
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/partial/instantiate.d.mts
1481
+ type TPartialAction<Type extends TSchema, Result extends TSchema = (TCanInstantiate<[Type]> extends true ? TFromType$3<Type> : TPartialDeferred<Type>)> = Result;
1482
+ type TPartialInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>> = TPartialAction<InstantiatedType>;
1483
+ //#endregion
1484
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/action/pick.d.mts
1485
+ /** Creates a deferred Pick action. */
1486
+ type TPickDeferred<Type extends TSchema, Indexer extends TSchema> = (TDeferred<'Pick', [Type, Indexer]>);
1487
+ //#endregion
1488
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/pick/from_type.d.mts
1489
+ type TComparable<Indexable extends TProperties> = (keyof Indexable extends string | number ? `${keyof Indexable}` : never);
1490
+ type TFromKeys<Indexable extends TProperties, Keys extends string[], Result extends TProperties = {}> = (Keys extends [infer Left extends string, ...infer Right extends string[]] ? Left extends TComparable<Indexable> ? TFromKeys<Indexable, Right, TAssign<Result, { [_ in Left]: Indexable[Left] }>> : TFromKeys<Indexable, Right, Result> : Result);
1491
+ type TFromType$2<Type extends TSchema, Indexer extends TSchema, Indexable extends TProperties = TToIndexable<Type>, Keys extends string[] = TToIndexableKeys<Indexer>, Applied extends TProperties = TFromKeys<Indexable, Keys>, Result extends TSchema = TObject<Applied>> = Result;
1492
+ //#endregion
1493
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/pick/instantiate.d.mts
1494
+ type TPickAction<Type extends TSchema, Indexer extends TSchema, Result extends TSchema = (TCanInstantiate<[Type, Indexer]> extends true ? TFromType$2<Type, Indexer> : TPickDeferred<Type, Indexer>)> = Result;
1495
+ type TPickInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, Indexer extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>, InstantiatedIndexer extends TSchema = TInstantiateType<Context, State, Indexer>> = TPickAction<InstantiatedType, InstantiatedIndexer>;
1496
+ //#endregion
1497
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/action/readonly_object.d.mts
1498
+ /** Creates a deferred ReadonlyType action. */
1499
+ type TReadonlyObjectDeferred<Type extends TSchema> = (TDeferred<'ReadonlyObject', [Type]>);
1500
+ //#endregion
1501
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/readonly_object/from_array.d.mts
1502
+ type TFromArray<Type extends TSchema, Result extends TSchema = TImmutableAdd<TArray<Type>>> = Result;
1503
+ //#endregion
1504
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/readonly_object/from_cyclic.d.mts
1505
+ type TFromCyclic$1<Defs extends TProperties, Ref extends string, Target extends TSchema = TCyclicTarget<Defs, Ref>, Partial extends TSchema = TFromType$1<Target>, Result extends TSchema = TCyclic<TAssign<Defs, { [_ in Ref]: Partial }>, Ref>> = Result;
1506
+ //#endregion
1507
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/readonly_object/from_intersect.d.mts
1508
+ type TFromIntersect$1<Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TFromIntersect$1<Right, [...Result, TFromType$1<Left>]> : TEvaluateIntersect<Result>);
1509
+ //#endregion
1510
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/readonly_object/from_object.d.mts
1511
+ type TFromObject$1<Properties extends TProperties, Mapped extends TProperties = { [Key in keyof Properties]: TReadonlyAdd<Properties[Key]> }, Result extends TSchema = TObject<Mapped>> = Result;
1512
+ //#endregion
1513
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/readonly_object/from_tuple.d.mts
1514
+ type TFromTuple<Types extends TSchema[], Result extends TSchema = TImmutableAdd<TTuple<Types>>> = Result;
1515
+ //#endregion
1516
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/readonly_object/from_union.d.mts
1517
+ type TFromUnion$1<Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TFromUnion$1<Right, [...Result, TFromType$1<Left>]> : TUnion<Result>);
1518
+ //#endregion
1519
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/readonly_object/from_type.d.mts
1520
+ type TFromType$1<Type extends TSchema> = (Type extends TArray<infer Type extends TSchema> ? TFromArray<Type> : Type extends TCyclic<infer Defs extends TProperties, infer Ref extends string> ? TFromCyclic$1<Defs, Ref> : Type extends TIntersect<infer Types extends TSchema[]> ? TFromIntersect$1<Types> : Type extends TObject<infer Properties extends TProperties> ? TFromObject$1<Properties> : Type extends TTuple<infer Types extends TSchema[]> ? TFromTuple<Types> : Type extends TUnion<infer Types extends TSchema[]> ? TFromUnion$1<Types> : Type);
1521
+ //#endregion
1522
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/readonly_object/instantiate.d.mts
1523
+ type TReadonlyObjectAction<Type extends TSchema, Result extends TSchema = (TCanInstantiate<[Type]> extends true ? TFromType$1<Type> : TReadonlyObjectDeferred<Type>)> = Result;
1524
+ type TReadonlyObjectInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiateType extends TSchema = TInstantiateType<Context, State, Type>> = TReadonlyObjectAction<InstantiateType>;
1525
+ //#endregion
1526
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/ref/instantiate.d.mts
1527
+ type TRefInstantiate<Context extends TProperties, State extends TState, Type extends TRef, Ref extends string> = (Ref extends keyof Context ? TCyclicCheck<[Ref], Context, Context[Ref]> extends true ? Type : TInstantiateType<Context, State, Context[Ref]> : Type);
1528
+ //#endregion
1529
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/required/from_cyclic.d.mts
1530
+ type TFromCyclic<Defs extends TProperties, Ref extends string, Target extends TSchema = TCyclicTarget<Defs, Ref>, Partial extends TSchema = TFromType<Target>, Result extends TSchema = TCyclic<TAssign<Defs, { [_ in Ref]: Partial }>, Ref>> = Result;
1531
+ //#endregion
1532
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/required/from_intersect.d.mts
1533
+ type TFromIntersect<Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TFromIntersect<Right, [...Result, TFromType<Left>]> : TEvaluateIntersect<Result>);
1534
+ //#endregion
1535
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/required/from_union.d.mts
1536
+ type TFromUnion<Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TFromUnion<Right, [...Result, TFromType<Left>]> : TUnion<Result>);
1537
+ //#endregion
1538
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/required/from_object.d.mts
1539
+ type TFromObject<Properties extends TProperties, Mapped extends TProperties = { [Key in keyof Properties]: TOptionalRemove<Properties[Key]> }, Result extends TSchema = TObject<Mapped>> = Result;
1540
+ //#endregion
1541
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/required/from_type.d.mts
1542
+ type TFromType<Type extends TSchema> = (Type extends TCyclic<infer Defs extends TProperties, infer Ref extends string> ? TFromCyclic<Defs, Ref> : Type extends TIntersect<infer Types extends TSchema[]> ? TFromIntersect<Types> : Type extends TUnion<infer Types extends TSchema[]> ? TFromUnion<Types> : Type extends TObject<infer Properties extends TProperties> ? TFromObject<Properties> : TObject<{}>);
1543
+ //#endregion
1544
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/action/required.d.mts
1545
+ /** Creates a deferred Required action. */
1546
+ type TRequiredDeferred<Type extends TSchema> = (TDeferred<'Required', [Type]>);
1547
+ //#endregion
1548
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/required/instantiate.d.mts
1549
+ type TRequiredAction<Type extends TSchema, Result extends TSchema = (TCanInstantiate<[Type]> extends true ? TFromType<Type> : TRequiredDeferred<Type>)> = Result;
1550
+ type TRequiredInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>> = TRequiredAction<InstantiatedType>;
1551
+ //#endregion
1552
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/action/return_type.d.mts
1553
+ /** Creates a deferred ReturnType action. */
1554
+ type TReturnTypeDeferred<Type extends TSchema> = (TDeferred<'ReturnType', [Type]>);
1555
+ //#endregion
1556
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/return_type/instantiate.d.mts
1557
+ type TReturnTypeOperation<Type extends TSchema> = (Type extends TFunction ? Type['returnType'] : TNever);
1558
+ type TReturnTypeAction<Type extends TSchema, Result extends TSchema = (TCanInstantiate<[Type]> extends true ? TReturnTypeOperation<Type> : TReturnTypeDeferred<Type>)> = Result;
1559
+ type TReturnTypeInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>> = TReturnTypeAction<InstantiatedType>;
1560
+ //#endregion
1561
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/rest/spread.d.mts
1562
+ type TSpreadElement<Type extends TSchema, Result extends TSchema[] = (Type extends TRest<infer Rest extends TSchema> ? (Rest extends TTuple<infer Elements extends TSchema[]> ? TRestSpread<Elements> : Rest extends TInfer<string, TSchema> ? [Type] : Rest extends TRef<string> ? [Type] : [TNever]) : [Type])> = Result;
1563
+ type TRestSpread<Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TRestSpread<Right, [...Result, ...TSpreadElement<Left>]> : Result);
1564
+ //#endregion
1565
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/instantiate.d.mts
1566
+ interface TState {
1567
+ callstack: string[];
1568
+ }
1569
+ type TCanInstantiate<Types extends TSchema[]> = Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? Left extends TRef ? false : TCanInstantiate<Right> : true;
1570
+ type ModifierAction = 'add' | 'remove' | 'none';
1571
+ type TModifierActions<Type extends TSchema, Readonly extends ModifierAction, Optional extends ModifierAction> = (Type extends TReadonlyRemoveAction<infer Type extends TSchema> ? TModifierActions<Type, 'remove', Optional> : Type extends TOptionalRemoveAction<infer Type extends TSchema> ? TModifierActions<Type, Readonly, 'remove'> : Type extends TReadonlyAddAction<infer Type extends TSchema> ? TModifierActions<Type, 'add', Optional> : Type extends TOptionalAddAction<infer Type extends TSchema> ? TModifierActions<Type, Readonly, 'add'> : [Type, Readonly, Optional]);
1572
+ type TApplyReadonly<Action extends ModifierAction, Type extends TSchema> = (Action extends 'remove' ? TReadonlyRemove<Type> : Action extends 'add' ? TReadonlyAdd<Type> : Type);
1573
+ type TApplyOptional<Action extends ModifierAction, Type extends TSchema> = (Action extends 'remove' ? TOptionalRemove<Type> : Action extends 'add' ? TOptionalAdd<Type> : Type);
1574
+ type TInstantiateProperties<Context extends TProperties, State extends TState, Properties extends TProperties, Result extends TProperties = { [Key in keyof Properties]: TInstantiateType<Context, State, Properties[Key]> }> = Result;
1575
+ type TInstantiateElements<Context extends TProperties, State extends TState, Types extends TSchema[], Elements extends TSchema[] = TInstantiateTypes<Context, State, Types>, Result extends TSchema[] = TRestSpread<Elements>> = Result;
1576
+ type TInstantiateTypes<Context extends TProperties, State extends TState, Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TInstantiateTypes<Context, State, Right, [...Result, TInstantiateType<Context, State, Left>]> : Result);
1577
+ type TInstantiateDeferred<Context extends TProperties, State extends TState, Action extends string, Parameters extends TSchema[]> = ([Action, Parameters] extends ['Awaited', [infer Type extends TSchema]] ? TAwaitedInstantiate<Context, State, Type> : [Action, Parameters] extends ['Capitalize', [infer Type extends TSchema]] ? TCapitalizeInstantiate<Context, State, Type> : [Action, Parameters] extends ['Conditional', [infer Left extends TSchema, infer Right extends TSchema, infer True extends TSchema, infer False extends TSchema]] ? TConditionalInstantiate<Context, State, Left, Right, True, False> : [Action, Parameters] extends ['ConstructorParameters', [infer Type extends TSchema]] ? TConstructorParametersInstantiate<Context, State, Type> : [Action, Parameters] extends ['Evaluate', [infer Type extends TSchema]] ? TEvaluateInstantiate<Context, State, Type> : [Action, Parameters] extends ['Exclude', [infer Left extends TSchema, infer Right extends TSchema]] ? TExcludeInstantiate<Context, State, Left, Right> : [Action, Parameters] extends ['Extract', [infer Left extends TSchema, infer Right extends TSchema]] ? TExtractInstantiate<Context, State, Left, Right> : [Action, Parameters] extends ['Index', [infer Type extends TSchema, infer Indexer extends TSchema]] ? TIndexInstantiate<Context, State, Type, Indexer> : [Action, Parameters] extends ['InstanceType', [infer Type extends TSchema]] ? TInstanceTypeInstantiate<Context, State, Type> : [Action, Parameters] extends ['Interface', [infer Heritage extends TSchema[], infer Properties extends TProperties]] ? TInterfaceInstantiate<Context, State, Heritage, Properties> : [Action, Parameters] extends ['KeyOf', [infer Type extends TSchema]] ? TKeyOfInstantiate<Context, State, Type> : [Action, Parameters] extends ['Lowercase', [infer Type extends TSchema]] ? TLowercaseInstantiate<Context, State, Type> : [Action, Parameters] extends ['Mapped', [infer Name extends TIdentifier, infer Key extends TSchema, infer As extends TSchema, infer Property extends TSchema]] ? TMappedInstantiate<Context, State, Name, Key, As, Property> : [Action, Parameters] extends ['Module', [infer Properties extends TProperties]] ? TModuleInstantiate<Context, State, Properties> : [Action, Parameters] extends ['NonNullable', [infer Type extends TSchema]] ? TNonNullableInstantiate<Context, State, Type> : [Action, Parameters] extends ['Pick', [infer Type extends TSchema, infer Indexer extends TSchema]] ? TPickInstantiate<Context, State, Type, Indexer> : [Action, Parameters] extends ['Options', [infer Type extends TSchema, infer Options extends TSchema]] ? TOptionsInstantiate<Context, State, Type, Options> : [Action, Parameters] extends ['Parameters', [infer Type extends TSchema]] ? TParametersInstantiate<Context, State, Type> : [Action, Parameters] extends ['Partial', [infer Type extends TSchema]] ? TPartialInstantiate<Context, State, Type> : [Action, Parameters] extends ['Omit', [infer Type extends TSchema, infer Indexer extends TSchema]] ? TOmitInstantiate<Context, State, Type, Indexer> : [Action, Parameters] extends ['ReadonlyObject', [infer Type extends TSchema]] ? TReadonlyObjectInstantiate<Context, State, Type> : [Action, Parameters] extends ['Record', [infer Key extends TSchema, infer Value extends TSchema]] ? TRecordInstantiate<Context, State, Key, Value> : [Action, Parameters] extends ['Required', [infer Type extends TSchema]] ? TRequiredInstantiate<Context, State, Type> : [Action, Parameters] extends ['ReturnType', [infer Type extends TSchema]] ? TReturnTypeInstantiate<Context, State, Type> : [Action, Parameters] extends ['TemplateLiteral', [infer Types extends TSchema[]]] ? TTemplateLiteralInstantiate<Context, State, Types> : [Action, Parameters] extends ['Uncapitalize', [infer Type extends TSchema]] ? TUncapitalizeInstantiate<Context, State, Type> : [Action, Parameters] extends ['Uppercase', [infer Type extends TSchema]] ? TUppercaseInstantiate<Context, State, Type> : TDeferred<Action, Parameters>);
1578
+ type TInstantiateType<Context extends TProperties, State extends TState, Input extends TSchema, Immutable extends boolean = (Input extends TImmutable ? true : false), Modifiers extends [TSchema, ModifierAction, ModifierAction] = TModifierActions<Input, Input extends TReadonly<Input> ? 'add' : 'none', Input extends TOptional<Input> ? 'add' : 'none'>, Type extends TSchema = Modifiers[0], Instantiated extends TSchema = (Type extends TRef<infer Ref extends string> ? TRefInstantiate<Context, State, Type, Ref> : Type extends TArray<infer Type extends TSchema> ? TArray<TInstantiateType<Context, State, Type>> : Type extends TAsyncIterator<infer Type extends TSchema> ? TAsyncIterator<TInstantiateType<Context, State, Type>> : Type extends TCall<infer Target extends TSchema, infer Parameters extends TSchema[]> ? TCallInstantiate<Context, State, Target, Parameters> : Type extends TConstructor<infer Parameters extends TSchema[], infer InstanceType extends TSchema> ? TConstructor<TInstantiateTypes<Context, State, Parameters>, TInstantiateType<Context, State, InstanceType>> : Type extends TDeferred<infer Action extends string, infer Types extends TSchema[]> ? TInstantiateDeferred<Context, State, Action, Types> : Type extends TFunction<infer Parameters extends TSchema[], infer ReturnType extends TSchema> ? TFunction<TInstantiateTypes<Context, State, Parameters>, TInstantiateType<Context, State, ReturnType>> : Type extends TIntersect<infer Types extends TSchema[]> ? TIntersect<TInstantiateTypes<Context, State, Types>> : Type extends TIterator<infer Type extends TSchema> ? TIterator<TInstantiateType<Context, State, Type>> : Type extends TObject<infer Properties extends TProperties> ? TObject<TInstantiateProperties<Context, State, Properties>> : Type extends TPromise<infer Type extends TSchema> ? TPromise<TInstantiateType<Context, State, Type>> : Type extends TRecord<infer Key extends string, infer Type extends TSchema> ? TRecord<Key, TInstantiateType<Context, State, Type>> : Type extends TRest<infer Type extends TSchema> ? TRest<TInstantiateType<Context, State, Type>> : Type extends TTuple<infer Types extends TSchema[]> ? TTuple<TInstantiateElements<Context, State, Types>> : Type extends TUnion<infer Types extends TSchema[]> ? TUnion<TInstantiateTypes<Context, State, Types>> : Type), WithImmutable extends TSchema = (Immutable extends true ? TImmutable<Instantiated> : Instantiated), WithModifiers extends TSchema = TApplyReadonly<Modifiers[1], TApplyOptional<Modifiers[2], WithImmutable>>> = WithModifiers;
1579
+ /** Instantiates computed schematics using the given context and type. */
1580
+ type TInstantiate<Context extends TProperties, Type extends TSchema> = (TInstantiateType<Context, {
1581
+ callstack: [];
1582
+ }, Type>);
1583
+ //#endregion
1584
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/types/function.d.mts
1585
+ type StaticInstantiatedParameters<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Parameters extends TSchema[], Evaluated extends TSchema = TInstantiate<Context, TTuple<Parameters>>, Static extends unknown = StaticType<Stack, Direction, Context, This, Evaluated>, Result extends unknown[] = (Static extends unknown[] ? Static : [])> = Result;
1586
+ type StaticFunction<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Parameters extends TSchema[], ReturnType extends TSchema, StaticParameters extends unknown[] = StaticInstantiatedParameters<Stack, Direction, Context, This, Parameters>, StaticReturnType extends unknown = StaticType<Stack, Direction, Context, This, ReturnType>, Result = (...args: StaticParameters) => StaticReturnType> = Result;
1587
+ /** Represents a Function type. */
1588
+ interface TFunction<Parameters extends TSchema[] = TSchema[], ReturnType extends TSchema = TSchema> extends TSchema {
1589
+ '~kind': 'Function';
1590
+ type: 'function';
1591
+ parameters: Parameters;
1592
+ returnType: ReturnType;
1593
+ }
1594
+ //#endregion
1595
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/types/constructor.d.mts
1596
+ type StaticConstructor<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Parameters extends TSchema[], InstanceType extends TSchema, StaticParameters extends unknown[] = StaticInstantiatedParameters<Stack, Direction, Context, This, Parameters>, StaticReturnType extends unknown = StaticType<Stack, Direction, Context, This, InstanceType>, Result = new (...args: StaticParameters) => StaticReturnType> = Result;
1597
+ /** Represents a Constructor type. */
1598
+ interface TConstructor<Parameters extends TSchema[] = TSchema[], InstanceType extends TSchema = TSchema> extends TSchema {
1599
+ '~kind': 'Constructor';
1600
+ type: 'constructor';
1601
+ parameters: Parameters;
1602
+ instanceType: InstanceType;
1603
+ }
1604
+ //#endregion
1605
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/schema/static/_canonical.d.mts
1606
+ type XCanonicalTuple<Value extends readonly unknown[]> = (Value extends [infer Left, ...infer Right extends unknown[]] ? [XCanonical<Left>, ...XCanonicalTuple<Right>] : []);
1607
+ type XCanonicalArray<Value extends unknown, Result extends unknown[] = XCanonical<Value>[]> = Result;
1608
+ type XCanonicalObject<Value extends object, Result extends Record<PropertyKey, unknown> = { -readonly [Key in keyof Value]: XCanonical<Value[Key]> }> = Result;
1609
+ type XCanonical<Schema extends unknown> = (Schema extends readonly [...infer Schemas extends unknown[]] ? XCanonicalTuple<Schemas> : Schema extends readonly (infer Schema)[] ? XCanonicalArray<Schema> : Schema extends object ? XCanonicalObject<Schema> : Schema);
1610
+ //#endregion
1611
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/schema/static/additionalProperties.d.mts
1612
+ type XStaticAdditionalProperties<Stack extends string[], Root extends XSchema, Schema extends XSchema, Result extends Record<PropertyKey, unknown> = (Schema extends true ? {
1613
+ [key: string]: unknown;
1614
+ } : Schema extends false ? {} : {
1615
+ [key: string]: XStaticSchema<Stack, Root, Schema>;
1616
+ })> = Result;
1617
+ //#endregion
1618
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/schema/static/allOf.d.mts
1619
+ type XStaticAllOf<Stack extends string[], Root extends XSchema, Schemas extends XSchema[], Result extends unknown = unknown> = (Schemas extends readonly [infer Left extends XSchema, ...infer Right extends XSchema[]] ? XStaticAllOf<Stack, Root, Right, Result & XStaticSchema<Stack, Root, Left>> : Result);
1620
+ //#endregion
1621
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/schema/static/anyOf.d.mts
1622
+ type XStaticAnyOf<Stack extends string[], Root extends XSchema, Schemas extends XSchema[], Result extends unknown = never> = (Schemas extends [infer Left extends XSchema, ...infer Right extends XSchema[]] ? XStaticAnyOf<Stack, Root, Right, XStaticSchema<Stack, Root, Left> | Result> : Result);
1623
+ //#endregion
1624
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/schema/static/const.d.mts
1625
+ type XStaticConst<Value extends unknown> = Value;
1626
+ //#endregion
1627
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/schema/static/enum.d.mts
1628
+ type XStaticEnum<Values extends unknown[], Result extends unknown = never> = (Values extends [infer Left extends unknown, ...infer Right extends unknown[]] ? XStaticEnum<Right, Left | Result> : Result);
1629
+ //#endregion
1630
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/schema/static/if.d.mts
1631
+ type XStaticIf<Stack extends string[], Root extends XSchema, Schema extends XIf, IfSchema extends XSchema, If extends unknown = XStaticSchema<Stack, Root, IfSchema>, Then extends unknown = (Schema extends XThen<infer ThenSchema extends XSchema> ? XStaticSchema<Stack, Root, ThenSchema> : never), Else extends unknown = (Schema extends XElse<infer ElseSchema extends XSchema> ? XStaticSchema<Stack, Root, ElseSchema> : never), IsThen extends boolean = (Schema extends XThen ? true : false), IsElse extends boolean = (Schema extends XElse ? true : false), Result extends unknown = ([IsThen, IsElse] extends [true, true] ? (If & Then) | Exclude<Else, If> : [IsThen, IsElse] extends [true, false] ? (If & Then) : [IsThen, IsElse] extends [false, true] ? Exclude<Else, If> : unknown)> = Result;
1632
+ //#endregion
1633
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/schema/static/_comparer.d.mts
1634
+ type XBuildTuple<Size extends number, Tuple extends unknown[] = []> = (Tuple['length'] extends Size ? Tuple : XBuildTuple<Size, [...Tuple, unknown]>);
1635
+ type XLessThan<Left extends number, Right extends number> = Left extends Right ? false : XBuildTuple<Left> extends [...XBuildTuple<Right>, ...infer _Rest] ? false : true;
1636
+ //#endregion
1637
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/schema/static/_elements.d.mts
1638
+ type XWithElements<Stack extends string[], Root extends XSchema, Schemas extends XSchema[], Result extends unknown[] = []> = (Schemas extends [infer Left extends XSchema, ...infer Right extends XSchema[]] ? XWithElements<Stack, Root, Right, [...Result, XStaticSchema<Stack, Root, Left>]> : Result);
1639
+ type XWithMaxItemsRemap<Elements extends unknown[], MaxItems extends number, Result extends unknown[] = []> = (Elements extends [infer Left extends unknown, ...infer Right extends unknown[]] ? XLessThan<Result['length'], MaxItems> extends true ? XWithMaxItemsRemap<Right, MaxItems, [...Result, Left]> : Result : Result);
1640
+ type XWithMaxItems<Schema extends XSchema, Elements extends unknown[], MaxItems extends number | null = (Schema extends XMaxItems<infer MaxItems extends number> ? MaxItems : null), Result extends unknown[] = (MaxItems extends number ? XWithMaxItemsRemap<Elements, MaxItems> : Elements)> = Result;
1641
+ type XNeedsAdditionalItems<Schema extends XSchema, Elements extends unknown[], MaxItems extends number | null = (Schema extends XMaxItems<infer MaxItems extends number> ? MaxItems : null), Result extends boolean = (MaxItems extends number ? XLessThan<Elements['length'], MaxItems> : true)> = Result;
1642
+ type XWithMinItemsRemap<Elements extends unknown[], MinItems extends number, Result extends unknown[] = []> = (Elements extends [infer Left, ...infer Right] ? XLessThan<Result['length'], MinItems> extends true ? XWithMinItemsRemap<Right, MinItems, [...Result, Left]> : XWithMinItemsRemap<Right, MinItems, [...Result, Left?]> : Result);
1643
+ type XWithMinItems<Schema extends XSchema, Values extends unknown[], MinItems extends number = (Schema extends XMinItems<infer MinItems extends number> ? MinItems : 0), Result extends unknown[] = XWithMinItemsRemap<Values, MinItems>> = Result;
1644
+ type XWithAdditionalItems<Stack extends string[], Root extends XSchema, Schema extends XSchema, Elements extends unknown[], Result extends unknown[] = (Schema extends XAdditionalItems<infer Schema extends XSchema> ? (Schema extends true ? [...Elements, ...unknown[]] : Schema extends false ? [...Elements] : [...Elements, ...XStaticSchema<Stack, Root, Schema>[]]) : [...Elements, ...unknown[]])> = Result;
1645
+ type XStaticElements<Stack extends string[], Root extends XSchema, Schema extends XSchema, PrefixItems extends XSchema[], WithElements extends unknown[] = XWithElements<Stack, Root, PrefixItems>, WithMaxItems extends unknown[] = XWithMaxItems<Schema, WithElements>, NeedsAdditional extends boolean = XNeedsAdditionalItems<Schema, WithMaxItems>, WithMinItems extends unknown[] = XWithMinItems<Schema, WithMaxItems>, WithAdditionalItems extends unknown[] = (NeedsAdditional extends true ? XWithAdditionalItems<Stack, Root, Schema, WithMinItems> : WithMinItems)> = WithAdditionalItems;
1646
+ //#endregion
1647
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/schema/static/items.d.mts
1648
+ type XFromSized<Stack extends string[], Root extends XSchema, Schema extends XSchema, Items extends XSchema[]> = (XStaticElements<Stack, Root, Schema, Items>);
1649
+ type XFromUnsized<Stack extends string[], Root extends XSchema, Schema extends XSchema> = (XStaticSchema<Stack, Root, Schema>[]);
1650
+ type XStaticItems<Stack extends string[], Root extends XSchema, Schema extends XSchema, Items extends XSchema[] | XSchema, Result extends unknown = (Items extends XSchema[] ? XFromSized<Stack, Root, Schema, [...Items]> : Items extends XSchema ? XFromUnsized<Stack, Root, Items> : never)> = Result;
1651
+ //#endregion
1652
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/schema/static/oneOf.d.mts
1653
+ type XStaticOneOf<Stack extends string[], Root extends XSchema, Schemas extends XSchema[], Result extends unknown = never> = (Schemas extends [infer Left extends XSchema, ...infer Right extends XSchema[]] ? XStaticOneOf<Stack, Root, Right, XStaticSchema<Stack, Root, Left> | Result> : Result);
1654
+ //#endregion
1655
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/schema/static/patternProperties.d.mts
1656
+ type XStaticPatternProperties<Stack extends string[], Root extends XSchema, Properties extends Record<PropertyKey, XSchema> = Record<PropertyKey, XSchema>, InferredProperties extends Record<PropertyKey, unknown> = { [Key in keyof Properties]: XStaticSchema<Stack, Root, Properties[Key]> }, EvaluatedProperties extends unknown = {
1657
+ [key: string]: InferredProperties[keyof InferredProperties];
1658
+ }> = EvaluatedProperties;
1659
+ //#endregion
1660
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/schema/static/prefixItems.d.mts
1661
+ type XStaticPrefixItems<Stack extends string[], Root extends XSchema, Schema extends XSchema, PrefixItems extends XSchema[], Result extends unknown[] = XStaticElements<Stack, Root, Schema, PrefixItems>> = Result;
1662
+ //#endregion
1663
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/schema/static/properties.d.mts
1664
+ type XIsReadonly<Schema extends XSchema> = (Schema extends {
1665
+ readOnly: true;
1666
+ } ? true : Schema extends {
1667
+ '~readonly': true;
1668
+ } ? true : false);
1669
+ type XRequiredArray<Schema extends XSchema, Result extends PropertyKey[] = (Schema extends XRequired<infer Keys extends string[]> ? Keys : [])> = Result;
1670
+ type XReadonlyKeys<Properties extends Record<PropertyKey, XSchema>, ReadonlyProperties extends Record<PropertyKey, unknown> = { [Key in keyof Properties as XIsReadonly<Properties[Key]> extends true ? Key : never]: unknown }, Result extends PropertyKey = keyof ReadonlyProperties> = Result;
1671
+ type XRequiredKeys<Properties extends Record<PropertyKey, XSchema>, RequiredArray extends string[], Result extends PropertyKey = (RequiredArray extends [] ? never : Extract<keyof Properties, RequiredArray[number]>)> = Result;
1672
+ type XUnknownKeys<Properties extends Record<PropertyKey, XSchema>, RequiredArray extends string[], Result extends PropertyKey = Exclude<RequiredArray[number], keyof Properties>> = Result;
1673
+ type XOptionalKeys<Properties extends Record<PropertyKey, XSchema>, RequiredArray extends string[], Result extends PropertyKey = (RequiredArray extends [] ? keyof Properties : Exclude<keyof Properties, RequiredArray[number]>)> = Result;
1674
+ type XReadonlyOptionalProperties<Stack extends string[], Root extends XSchema, OptionalKeys extends PropertyKey, Properties extends Record<PropertyKey, XSchema>> = { readonly [Key in Extract<keyof Properties, OptionalKeys>]?: XStaticSchema<Stack, Root, Properties[Key]> };
1675
+ type XReadonlyRequiredProperties<Stack extends string[], Root extends XSchema, RequiredKeys extends PropertyKey, Properties extends Record<PropertyKey, XSchema>> = { readonly [Key in Extract<keyof Properties, RequiredKeys>]: XStaticSchema<Stack, Root, Properties[Key]> };
1676
+ type XOptionalProperties<Stack extends string[], Root extends XSchema, OptionalKeys extends PropertyKey, Properties extends Record<PropertyKey, XSchema>> = { [Key in Extract<keyof Properties, OptionalKeys>]?: XStaticSchema<Stack, Root, Properties[Key]> };
1677
+ type XRequiredProperties<Stack extends string[], Root extends XSchema, RequiredKeys extends PropertyKey, Properties extends Record<PropertyKey, XSchema>> = { [Key in Extract<keyof Properties, RequiredKeys>]: XStaticSchema<Stack, Root, Properties[Key]> };
1678
+ type XUnknownProperties<UnknownKeys extends PropertyKey> = { [Key in UnknownKeys]: unknown };
1679
+ type XStaticProperties<Stack extends string[], Root extends XSchema, Schema extends XSchema, Properties extends Record<PropertyKey, XSchema>, RequiredArray extends string[] = XRequiredArray<Schema>, ReadonlyKeys extends PropertyKey = XReadonlyKeys<Properties>, OptionalKeys extends PropertyKey = XOptionalKeys<Properties, RequiredArray>, RequiredKeys extends PropertyKey = XRequiredKeys<Properties, RequiredArray>, UnknownKeys extends PropertyKey = XUnknownKeys<Properties, RequiredArray>, ReadonlyOptionalProperties extends Record<PropertyKey, unknown> = XReadonlyOptionalProperties<Stack, Root, Extract<OptionalKeys, ReadonlyKeys>, Properties>, ReadonlyRequiredProperties extends Record<PropertyKey, unknown> = XReadonlyRequiredProperties<Stack, Root, Extract<RequiredKeys, ReadonlyKeys>, Properties>, OptionalProperties extends Record<PropertyKey, unknown> = XOptionalProperties<Stack, Root, Exclude<OptionalKeys, ReadonlyKeys>, Properties>, RequiredProperties extends Record<PropertyKey, unknown> = XRequiredProperties<Stack, Root, Exclude<RequiredKeys, ReadonlyKeys>, Properties>, UnknownProperties extends Record<PropertyKey, unknown> = XUnknownProperties<UnknownKeys>, Result extends Record<PropertyKey, unknown> = (ReadonlyOptionalProperties & ReadonlyRequiredProperties & OptionalProperties & RequiredProperties & UnknownProperties)> = Result;
1680
+ //#endregion
1681
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/schema/pointer/pointer_get.d.mts
1682
+ type TEscape0<Index extends string> = Index extends `${infer Left}~0${infer Right}` ? `${Left}~${TEscape<Right>}` : Index;
1683
+ type TEscape1<Index extends string> = Index extends `${infer Left}~1${infer Right}` ? `${Left}/${TEscape<Right>}` : Index;
1684
+ type TEscape<Index extends string, Escaped0 extends string = TEscape0<Index>, Escaped1 extends string = TEscape1<Escaped0>> = Escaped1;
1685
+ type IndicesReduce<Pointer extends string, Result extends string[] = []> = (Pointer extends `${infer Left extends string}/${infer Right extends string}` ? Left extends '' ? IndicesReduce<Right, Result> : IndicesReduce<Right, [...Result, TEscape<Left>]> : [...Result, TEscape<Pointer>]);
1686
+ type TIndices<Pointer extends string, Result extends string[] = (Pointer extends '' ? [] : IndicesReduce<Pointer>)> = Result;
1687
+ type TResolve<Value extends unknown, Indices extends string[]> = (Indices extends [infer Left extends string, ...infer Right extends string[]] ? Left extends keyof Value ? TResolve<Value[Left], Right> : undefined : Value);
1688
+ /** Type Level RFC 6901 Json Pointer Resolver */
1689
+ type XPointerGet<Value extends unknown, Pointer extends string, Indices extends string[] = TIndices<Pointer>, Result extends unknown = TResolve<Value, Indices>> = Result;
1690
+ //#endregion
1691
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/schema/static/ref.d.mts
1692
+ type XCyclicCheck<Stack extends unknown[], MaxLength extends number, Buffer extends unknown[] = []> = (Stack extends [infer Left, ...infer Right] ? Buffer['length'] extends MaxLength ? false : XCyclicCheck<Right, MaxLength, [...Buffer, Left]> : true);
1693
+ type XCyclicGuard<Stack extends unknown[], Ref extends string> = (Ref extends Stack[number] ? XCyclicCheck<Stack, 2> : true);
1694
+ type XNormal<Pointer extends string, Result extends string = (Pointer extends `#${infer Rest extends string}` ? Rest : Pointer)> = Result;
1695
+ type XStaticRef<Stack extends string[], Root extends XSchema, Ref extends string, Normal extends string = XNormal<Ref>, Target extends unknown = XPointerGet<Root, Normal>, Schema extends XSchema = (Target extends XSchema ? Target : {}), Result extends unknown = (XCyclicGuard<Stack, Ref> extends true ? XStaticSchema<[...Stack, Ref], Root, Schema> : any)> = Result;
1696
+ //#endregion
1697
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/schema/static/required.d.mts
1698
+ type XStaticRequired<Stack extends string[], Root extends XSchema, Schema extends XSchema, Keys extends string[], Result extends Record<PropertyKey, unknown> = (Schema extends XProperties ? {} : Record<Keys[number], unknown>)> = Result;
1699
+ //#endregion
1700
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/schema/static/type.d.mts
1701
+ type XFromTypeNames<TypeNames extends string[], Result extends unknown = never> = (TypeNames extends readonly [infer Left extends string, ...infer Right extends string[]] ? XFromTypeNames<Right, Result | XFromTypeName<Left>> : Result);
1702
+ type XFromTypeName<TypeName extends string> = (TypeName extends 'object' ? object : TypeName extends 'array' ? {} : TypeName extends 'boolean' ? boolean : TypeName extends 'integer' ? number : TypeName extends 'number' ? number : TypeName extends 'null' ? null : TypeName extends 'string' ? string : TypeName extends 'bigint' ? bigint : TypeName extends 'symbol' ? symbol : TypeName extends 'undefined' ? undefined : TypeName extends 'void' ? void : TypeName extends 'asyncIterator' ? {} : TypeName extends 'constructor' ? {} : TypeName extends 'function' ? {} : TypeName extends 'iterator' ? {} : unknown);
1703
+ type XStaticType<TypeName extends string[] | string> = (TypeName extends string[] ? XFromTypeNames<TypeName> : TypeName extends string ? XFromTypeName<TypeName> : unknown);
1704
+ //#endregion
1705
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/schema/static/unevaluatedProperties.d.mts
1706
+ type XStaticUnevaluatedProperties<Stack extends string[], Root extends XSchema, Schema extends XSchema, Result extends Record<PropertyKey, unknown> = (Schema extends true ? {
1707
+ [key: string]: unknown;
1708
+ } : Schema extends false ? {} : {
1709
+ [key: string]: XStaticSchema<Stack, Root, Schema>;
1710
+ })> = Result;
1711
+ //#endregion
1712
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/schema/static/schema.d.mts
1713
+ type XFromKeywords<Stack extends string[], Root extends XSchema, Schema extends XSchema, Result extends unknown[] = [Schema extends XAdditionalProperties<infer Type extends XSchema> ? XStaticAdditionalProperties<Stack, Root, Type> : unknown, Schema extends XAllOf<infer Types extends XSchema[]> ? XStaticAllOf<Stack, Root, Types> : unknown, Schema extends XAnyOf<infer Types extends XSchema[]> ? XStaticAnyOf<Stack, Root, Types> : unknown, Schema extends XConst<infer Value extends unknown> ? XStaticConst<Value> : unknown, Schema extends XIf<infer Type extends XSchema> ? XStaticIf<Stack, Root, Schema, Type> : unknown, Schema extends XEnum<infer Values extends unknown[]> ? XStaticEnum<Values> : unknown, Schema extends XItems<infer Types extends XSchema[] | XSchema> ? XStaticItems<Stack, Root, Schema, Types> : unknown, Schema extends XOneOf<infer Types extends XSchema[]> ? XStaticOneOf<Stack, Root, Types> : unknown, Schema extends XPatternProperties<infer Properties extends Record<PropertyKey, XSchema>> ? XStaticPatternProperties<Stack, Root, Properties> : unknown, Schema extends XPrefixItems<infer Types extends XSchema[]> ? XStaticPrefixItems<Stack, Root, Schema, Types> : unknown, Schema extends XProperties<infer Properties extends Record<PropertyKey, XSchema>> ? XStaticProperties<Stack, Root, Schema, Properties> : unknown, Schema extends XRef<infer Ref extends string> ? XStaticRef<Stack, Root, Ref> : unknown, Schema extends XRequired<infer Keys extends string[]> ? XStaticRequired<Stack, Root, Schema, Keys> : unknown, Schema extends XType<infer TypeName extends string[] | string> ? XStaticType<TypeName> : unknown, Schema extends XUnevaluatedProperties<infer Type extends XSchema> ? XStaticUnevaluatedProperties<Stack, Root, Type> : unknown]> = Result;
1714
+ type XKeywordsIntersected<Schemas extends unknown[], Result extends unknown = unknown> = (Schemas extends [infer Left extends unknown, ...infer Right extends unknown[]] ? XKeywordsIntersected<Right, Result & Left> : Result);
1715
+ type XKeywordsEvaluated<Schema extends unknown, Result extends unknown = (Schema extends object ? { [Key in keyof Schema]: Schema[Key] } : Schema)> = Result;
1716
+ type XStaticObject<Stack extends string[], Root extends XSchema, Schema extends XSchema, Keywords extends unknown[] = XFromKeywords<Stack, Root, Schema>, Intersected extends unknown = XKeywordsIntersected<Keywords>, Evaluated extends unknown = XKeywordsEvaluated<Intersected>> = Evaluated;
1717
+ type XStaticBoolean<Schema extends boolean, Result extends unknown = (Schema extends false ? never : unknown)> = Result;
1718
+ type XStaticSchema<Stack extends string[], Root extends XSchema, Schema extends XSchema, Result extends unknown = (Schema extends boolean ? XStaticBoolean<Schema> : XStaticObject<Stack, Root, Schema>)> = Result;
1719
+ //#endregion
1720
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/schema/static/static.d.mts
1721
+ type XStatic<Value extends unknown, Schema extends XSchema = (Value extends XSchema ? Value : {}), Canonical extends XSchema = XCanonical<Schema>, Result extends unknown = XStaticSchema<[], Canonical, Canonical>> = Result;
1722
+ //#endregion
1723
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/types/static.d.mts
1724
+ type StaticEvaluate<T> = { [K in keyof T]: T[K] } & {};
1725
+ type StaticDirection = 'Encode' | 'Decode';
1726
+ type StaticType<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Type extends TSchema> = (Type extends TCodec<infer Type extends TSchema, infer Decoded extends unknown> ? StaticCodec<Stack, Direction, Context, This, Type, Decoded> : Type extends TAny ? StaticAny : Type extends TArray<infer Items extends TSchema> ? StaticArray<Stack, Direction, Context, This, Type, Items> : Type extends TAsyncIterator<infer Type extends TSchema> ? StaticAsyncIterator<Stack, Direction, Context, This, Type> : Type extends Base<infer Value extends unknown> ? StaticBase<Value> : Type extends TBigInt ? StaticBigInt : Type extends TBoolean ? StaticBoolean : Type extends TConstructor<infer Parameters extends TSchema[], infer ReturnType extends TSchema> ? StaticConstructor<Stack, Direction, Context, This, Parameters, ReturnType> : Type extends TEnum<infer Values extends TEnumValue[]> ? StaticEnum<Values> : Type extends TFunction<infer Parameters extends TSchema[], infer ReturnType extends TSchema> ? StaticFunction<Stack, Direction, Context, This, Parameters, ReturnType> : Type extends TInteger ? StaticInteger : Type extends TIntersect<infer Types extends TSchema[]> ? StaticIntersect<Stack, Direction, Context, This, Types> : Type extends TIterator<infer Types extends TSchema> ? StaticIterator<Stack, Direction, Context, This, Types> : Type extends TLiteral<infer Value extends TLiteralValue> ? StaticLiteral<Value> : Type extends TNever ? StaticNever : Type extends TNull ? StaticNull : Type extends TNumber ? StaticNumber : Type extends TObject<infer Properties extends TProperties> ? StaticObject<Stack, Direction, Context, This, Properties> : Type extends TPromise<infer Type extends TSchema> ? StaticPromise<Stack, Direction, Context, This, Type> : Type extends TRecord<infer Key extends string, infer Value extends TSchema> ? StaticRecord<Stack, Direction, Context, This, Key, Value> : Type extends TCyclic<infer Defs extends TProperties, infer Ref extends string> ? StaticCyclic<Stack, Direction, Context, This, Defs, Ref> : Type extends TRef<infer Ref extends string> ? StaticRef<Stack, Direction, Context, This, Ref> : Type extends TString ? StaticString : Type extends TSymbol ? StaticSymbol : Type extends TTemplateLiteral<infer Pattern extends string> ? StaticTemplateLiteral<Pattern> : Type extends TThis ? StaticThis<Stack, Direction, Context, This> : Type extends TTuple<infer Items extends TSchema[]> ? StaticTuple<Stack, Direction, Context, This, Type, Items> : Type extends TUndefined ? StaticUndefined : Type extends TUnion<infer Types extends TSchema[]> ? StaticUnion<Stack, Direction, Context, This, Types> : Type extends TUnknown ? StaticUnknown : Type extends TUnsafe<infer Type extends unknown> ? StaticUnsafe<Type> : Type extends TVoid ? StaticVoid : XStatic<Type>);
1727
+ /** Infers a static type from a TypeBox type. */
1728
+ type Static<Type extends TSchema, Context extends TProperties = {}, Result extends unknown = StaticType<[], 'Encode', Context, {}, Type>> = Result;
1729
+ //#endregion
1730
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/types/properties.d.mts
1731
+ type ReadonlyOptionalKeys<Properties extends TProperties, Result extends PropertyKey = { [Key in keyof Properties]: Properties[Key] extends TReadonly<TSchema> ? (Properties[Key] extends TOptional<Properties[Key]> ? Key : never) : never }[keyof Properties]> = Result;
1732
+ type ReadonlyKeys<Properties extends TProperties, Result extends PropertyKey = { [Key in keyof Properties]: Properties[Key] extends TReadonly<TSchema> ? (Properties[Key] extends TOptional<Properties[Key]> ? never : Key) : never }[keyof Properties]> = Result;
1733
+ type OptionalKeys<Properties extends TProperties, Result extends PropertyKey = { [Key in keyof Properties]: Properties[Key] extends TOptional<TSchema> ? (Properties[Key] extends TReadonly<Properties[Key]> ? never : Key) : never }[keyof Properties]> = Result;
1734
+ type RequiredKeys<Properties extends TProperties, Result extends PropertyKey = keyof Omit<Properties, ReadonlyOptionalKeys<Properties> | ReadonlyKeys<Properties> | OptionalKeys<Properties>>> = Result;
1735
+ type StaticPropertiesWithModifiers<Properties extends TProperties, PropertiesWithoutModifiers extends Record<PropertyKey, unknown>> = StaticEvaluate<Readonly<Partial<Pick<PropertiesWithoutModifiers, ReadonlyOptionalKeys<Properties>>>> & Readonly<Pick<PropertiesWithoutModifiers, ReadonlyKeys<Properties>>> & Partial<Pick<PropertiesWithoutModifiers, OptionalKeys<Properties>>> & Required<Pick<PropertiesWithoutModifiers, RequiredKeys<Properties>>>>;
1736
+ type StaticPropertiesWithoutModifiers<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Properties extends TProperties, Result extends Record<PropertyKey, unknown> = { [Key in keyof Properties]: StaticType<Stack, Direction, Context, This, Properties[Key]> }> = Result;
1737
+ type StaticProperties<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Properties extends TProperties, PropertiesWithoutModifiers extends Record<PropertyKey, unknown> = StaticPropertiesWithoutModifiers<Stack, Direction, Context, This, Properties>, PropertiesWithModifiers extends Record<PropertyKey, unknown> = StaticPropertiesWithModifiers<Properties, PropertiesWithoutModifiers>, Result extends Record<PropertyKey, unknown> = { [Key in keyof PropertiesWithModifiers]: PropertiesWithModifiers[Key] }> = Result;
1738
+ /** Represents a Record<PropertyKey, TSchema> structure. */
1739
+ interface TProperties extends TSchema {
1740
+ [key: PropertyKey]: TSchema;
1741
+ }
1742
+ /** Creates a RequiredArray derived from the given TProperties value. */
1743
+ type TRequiredArray<Properties extends TProperties, RequiredProperties extends TProperties = { [Key in keyof Properties as Properties[Key] extends TOptional<Properties[Key]> ? never : Key]: Properties[Key] }, RequiredKeys extends string[] = TUnionToTuple<Extract<keyof RequiredProperties, string>>, Result extends string[] | undefined = (RequiredKeys extends [] ? undefined : RequiredKeys)> = Result;
1744
+ type TKeyToString<Key extends number | string> = `${Key}`;
1745
+ /** Extracts a tuple of keys from a TProperties value. */
1746
+ type TPropertyKeys<Properties extends TProperties, ExtractKey extends number | string = Extract<keyof Properties, number | string>, StringKey extends string = TKeyToString<ExtractKey>, Result extends string[] = TUnionToTuple<StringKey>> = Result;
1747
+ type TPropertyValuesReduce<Properties extends TProperties, Keys extends string[], Result extends TSchema[] = []> = Keys extends [infer Left extends string, ...infer Right extends string[]] ? Left extends keyof Properties ? TPropertyValuesReduce<Properties, Right, [...Result, Properties[Left]]> : TPropertyValuesReduce<Properties, Right, Result> : Result;
1748
+ /** Extracts a tuple of property values from a TProperties value. */
1749
+ type TPropertyValues<Properties extends TProperties, Keys extends string[] = TPropertyKeys<Properties>, Result extends TSchema[] = TPropertyValuesReduce<Properties, Keys>> = Result;
1750
+ //#endregion
1751
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/engine/awaited/instantiate.d.mts
1752
+ type TAwaitedOperation<Type extends TSchema> = (Type extends TPromise<infer Type extends TSchema> ? TAwaitedOperation<Type> : Type);
1753
+ type TAwaitedAction<Type extends TSchema, Result extends TSchema = (TCanInstantiate<[Type]> extends true ? TAwaitedOperation<Type> : TAwaitedDeferred<Type>)> = Result;
1754
+ type TAwaitedInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiateType extends TSchema = TInstantiateType<Context, State, Type>> = TAwaitedAction<InstantiateType>;
1755
+ //#endregion
1756
+ //#region node_modules/.pnpm/typebox@1.1.34/node_modules/typebox/build/type/action/awaited.d.mts
1757
+ /** Creates a deferred Awaited action. */
1758
+ type TAwaitedDeferred<Type extends TSchema> = (TDeferred<'Awaited', [Type]>);
1759
+ //#endregion
1760
+ //#region src/core/agent-runtime/tool-bridge.d.ts
1761
+ /**
1762
+ * 工具执行函数签名
1763
+ *
1764
+ * 符合 pi-agent-core AgentTool.execute 的契约。
1765
+ */
1766
+ type ToolExecuteFn<TParameters extends TSchema = TSchema> = (toolCallId: string, params: Static<TParameters>, signal?: AbortSignal, onUpdate?: (partialResult: AgentToolResult<unknown>) => void) => Promise<AgentToolResult<unknown>>;
1767
+ /**
1768
+ * 工具注册信息
1769
+ *
1770
+ * 用于描述一个可被 Agent 调用的具体工具。
1771
+ */
1772
+ interface ToolRegistration {
1773
+ /** 工具唯一标识(对应 pi-ai Tool.name) */
1774
+ id: string;
1775
+ /** 显示名称(用于 UI 展示,对应 AgentTool.label) */
1776
+ label: string;
1777
+ /** 工具描述(帮助 LLM 理解何时调用此工具) */
1778
+ description: string;
1779
+ /** 参数 Schema(TypeBox 格式,用于参数校验和 LLM 理解) */
1780
+ parameters?: TSchema;
1781
+ /** 执行函数 */
1782
+ execute: ToolExecuteFn;
1783
+ /** 执行模式:顺序或并行 */
1784
+ executionMode?: 'sequential' | 'parallel';
1785
+ }
1786
+ /**
1787
+ * 将单个 ToolRegistration 转换为 pi-agent-core 的 AgentTool
1788
+ *
1789
+ * @param registration - 工具注册信息
1790
+ * @returns pi-agent-core AgentTool 实例
1791
+ */
1792
+ declare function toAgentTool(registration: ToolRegistration): AgentTool;
1793
+ /**
1794
+ * 将工具注册列表批量转换为 AgentTool 数组
1795
+ *
1796
+ * @param registrations - 工具注册列表
1797
+ * @returns AgentTool 数组
1798
+ */
1799
+ declare function toAgentTools(registrations: ToolRegistration[]): AgentTool[];
1800
+ /**
1801
+ * 基于 Capability 创建默认工具注册模板
1802
+ *
1803
+ * 此函数提供从 Capability 到 ToolRegistration 的基础映射。
1804
+ * 实际的 execute 函数需要由调用方根据具体能力注入。
1805
+ *
1806
+ * @param capability - 能力声明
1807
+ * @param execute - 执行函数(必须由调用方提供)
1808
+ * @returns ToolRegistration
1809
+ */
1810
+ declare function createToolFromCapability(capability: Capability, execute: ToolExecuteFn): ToolRegistration;
1811
+ /**
1812
+ * 基于多个 Capability 批量创建工具注册模板
1813
+ *
1814
+ * @param capabilities - 能力声明列表
1815
+ * @param executorFactory - 根据 Capability 生成执行函数的工厂
1816
+ * @returns ToolRegistration 数组
1817
+ */
1818
+ declare function createToolsFromCapabilities(capabilities: Capability[], executorFactory: (capability: Capability) => ToolExecuteFn): ToolRegistration[];
1819
+ //#endregion
1820
+ //#region src/core/agent-runtime/types.d.ts
1821
+ /** 工具执行模式 */
1822
+ type ToolExecutionMode = 'sequential' | 'parallel';
1823
+ /**
1824
+ * Agent Runtime 配置
1825
+ *
1826
+ * 控制基于 pi-agent-core 的 Agent 运行时行为。
1827
+ */
1828
+ interface AgentRuntimeConfig {
1829
+ /** 是否启用 Agent 运行时 */
1830
+ enabled: boolean;
1831
+ /** 工具执行策略 */
1832
+ toolExecution?: ToolExecutionMode;
1833
+ /** agentLoop 最大轮次(防止无限循环) */
1834
+ maxTurns?: number;
1835
+ /** 推理级别 */
1836
+ thinkingLevel?: string;
1837
+ }
1838
+ /**
1839
+ * Agent 适配器选项
1840
+ *
1841
+ * 创建 LlmBasedAgent 实例时的配置。
1842
+ */
1843
+ interface AgentAdapterOptions {
1844
+ /** Agent 唯一标识 */
1845
+ agentId: string;
1846
+ /** 显示名称 */
1847
+ displayName: string;
1848
+ /** 声明的能力列表 */
1849
+ capabilities: Capability[];
1850
+ /** 运行时配置 */
1851
+ runtimeConfig?: Partial<AgentRuntimeConfig>;
1852
+ /**
1853
+ * 将 Capability 转换为 AgentTool 的工厂函数
1854
+ *
1855
+ * 每个 Capability 可以映射为一个或多个可执行工具。
1856
+ */
1857
+ toolFactory?: (capability: Capability) => AgentTool$1[];
1858
+ }
1859
+ /**
1860
+ * Agent 生命周期事件(适配层自定义)
1861
+ *
1862
+ * 桥接 pi-agent-core AgentEvent 与 zapmyco eventBus 的中间类型。
1863
+ */
1864
+ type AdaptedAgentEvent = {
1865
+ type: 'agent:start';
1866
+ taskId: string;
1867
+ agentId: string;
1868
+ } | {
1869
+ type: 'agent:end';
1870
+ taskId: string;
1871
+ agentId: string;
1872
+ } | {
1873
+ type: 'turn:start';
1874
+ taskId: string;
1875
+ } | {
1876
+ type: 'turn:end';
1877
+ taskId: string;
1878
+ } | {
1879
+ type: 'message:start';
1880
+ taskId: string;
1881
+ textPreview: string;
1882
+ } | {
1883
+ type: 'message:update';
1884
+ taskId: string;
1885
+ delta: string;
1886
+ } | {
1887
+ type: 'message:end';
1888
+ taskId: string;
1889
+ fullMessage: string;
1890
+ } | {
1891
+ type: 'tool:start';
1892
+ taskId: string;
1893
+ toolName: string;
1894
+ toolCallId: string;
1895
+ } | {
1896
+ type: 'tool:update';
1897
+ taskId: string;
1898
+ toolName: string;
1899
+ } | {
1900
+ type: 'tool:end';
1901
+ taskId: string;
1902
+ toolName: string;
1903
+ toolCallId: string;
1904
+ success: boolean;
1905
+ } | {
1906
+ type: 'error';
1907
+ taskId: string;
1908
+ error: Error;
1909
+ };
1910
+ //#endregion
1911
+ //#region src/core/agent-runtime/agent-adapter.d.ts
1912
+ /**
1913
+ * 基于 pi-agent-core 的 LLM 驱动 Agent 实现
1914
+ *
1915
+ * 将 zapmyco 的 IAgent 接口适配到 pi-agent-core 的 Agent 类,
1916
+ * 实现完整的 Agent 生命周期管理:
1917
+ * - execute(): 通过 Agent.prompt() 发起任务
1918
+ * - cancel(): 通过 Agent.abort() 中止执行
1919
+ * - healthCheck(): 检查 Agent 内部状态
1920
+ * - 流式事件: 通过 EventEmitter + EventBridge 双通道输出
1921
+ */
1922
+ declare class LlmBasedAgent extends EventEmitter implements IStreamingAgent {
1923
+ readonly EVENT_PROGRESS: "progress";
1924
+ readonly EVENT_OUTPUT: "output";
1925
+ readonly EVENT_ERROR: "error";
1926
+ readonly agentId: string;
1927
+ readonly displayName: string;
1928
+ readonly capabilities: readonly Capability[];
1929
+ private inner;
1930
+ private config;
1931
+ private toolRegistrations;
1932
+ private _currentLoad;
1933
+ constructor(options: AgentAdapterOptions);
1934
+ get status(): AgentStatus;
1935
+ get currentLoad(): number;
1936
+ /**
1937
+ * 访问内部 pi-agent-core Agent 实例(仅限高级用法)
1938
+ *
1939
+ * @internal 仅供测试和高级集成使用
1940
+ */
1941
+ get innerAgent(): Agent;
1942
+ /**
1943
+ * 注册工具到 Agent
1944
+ *
1945
+ * @param tools - 工具注册列表
1946
+ */
1947
+ registerTools(tools: ToolRegistration[]): void;
1948
+ /**
1949
+ * 清除所有已注册的工具
1950
+ */
1951
+ clearTools(): void;
1952
+ /**
1953
+ * 执行任务
1954
+ *
1955
+ * 将 AgentExecuteRequest 转换为 pi-agent-core Agent 的 prompt 调用:
1956
+ * 1. 构建执行上下文(任务描述 + 上游结果)
1957
+ * 2. 设置系统提示词
1958
+ * 3. 绑定事件桥接到 eventBus + EventEmitter
1959
+ * 4. 调用 Agent.prompt() 并等待完成
1960
+ * 5. 提取结果并组装为 TaskResult
1961
+ */
1962
+ execute(request: AgentExecuteRequest): Promise<TaskResult>;
1963
+ /**
1964
+ * 取消正在执行的任务
1965
+ */
1966
+ cancel(taskId: string): Promise<void>;
1967
+ /**
1968
+ * 健康检查
1969
+ */
1970
+ healthCheck(): Promise<AgentHealthStatus>;
1971
+ /**
1972
+ * 构建系统提示词
1973
+ */
1974
+ private buildSystemPrompt;
1975
+ /**
1976
+ * 从 Agent 状态中提取 TaskResult
1977
+ */
1978
+ private extractTaskResult;
1979
+ /**
1980
+ * 获取 pi-agent-core 包版本号
1981
+ */
1982
+ private getPkgVersion;
1983
+ }
1984
+ /**
1985
+ * 创建 LlmBasedAgent 实例的工厂函数
1986
+ *
1987
+ * @param options - 适配器选项
1988
+ * @returns 配置好的 LlmBasedAgent 实例
1989
+ */
1990
+ declare function createLlmBasedAgent(options: AgentAdapterOptions): LlmBasedAgent;
1991
+ /**
1992
+ * 从 SubTask 创建 Agent 执行请求
1993
+ *
1994
+ * 将 zapmyco 的 SubTask 转换为 AgentExecuteRequest 格式。
1995
+ *
1996
+ * @param subTask - 子任务定义
1997
+ * @param workdir - 项目工作目录
1998
+ * @param options - 执行选项
1999
+ * @returns AgentExecuteRequest
2000
+ */
2001
+ declare function createRequestFromSubTask(subTask: SubTask, workdir: string, options?: Partial<AgentExecuteRequest['options']>): AgentExecuteRequest;
2002
+ //#endregion
2003
+ //#region src/core/agent-runtime/event-bridge.d.ts
2004
+ /**
2005
+ * 将 pi-agent-core AgentEvent 转换为 zapmyco 适配事件
2006
+ *
2007
+ * @param agentEvent - pi-agent-core 原始事件
2008
+ * @param taskId - 关联的任务 ID
2009
+ * @param agentId - Agent 标识
2010
+ * @returns 适配后的事件,无法识别的返回 null
2011
+ */
2012
+ declare function adaptAgentEvent(agentEvent: AgentEvent, taskId: string, agentId: string): AdaptedAgentEvent | null;
2013
+ /**
2014
+ * 将适配后的事件分发到 zapmyco eventBus
2015
+ *
2016
+ * 映射规则:
2017
+ * - agent:start/end → agent:online/offline(带 taskId 上下文)
2018
+ * - turn:start/end → task:started/task:progress
2019
+ * - message:* → task:output
2020
+ * - tool:* → task:progress(含工具信息)
2021
+ *
2022
+ * @param event - 适配后的事件
2023
+ */
2024
+ declare function dispatchToEventBus(event: AdaptedAgentEvent): void;
2025
+ /**
2026
+ * 创建 Agent 事件订阅桥接器
2027
+ *
2028
+ * 返回一个订阅函数,可直接传给 pi-agent-core Agent.subscribe()。
2029
+ * 所有 Agent 事件会自动转换并分发到 zapmyco eventBus。
2030
+ *
2031
+ * @param taskId - 关联的任务 ID
2032
+ * @param agentId - Agent 标识
2033
+ * @returns 事件监听函数
2034
+ */
2035
+ declare function createEventBridgeListener(taskId: string, agentId: string): (event: AgentEvent, signal: AbortSignal) => void;
2036
+ //#endregion
2037
+ //#region src/llm/cost-tracker.d.ts
2038
+ /**
2039
+ * CostTracker 实例
2040
+ *
2041
+ * 使用方式:
2042
+ * ```typescript
2043
+ * import { costTracker } from '@/llm/cost-tracker';
2044
+ *
2045
+ * costTracker.record({ inputTokens: 1000, outputTokens: 500 }, 'claude-sonnet-4');
2046
+ * const summary = costTracker.getSummary();
2047
+ * console.log(`总花费: $${summary.totalCostUsd}`);
2048
+ * ```
2049
+ */
2050
+ declare class CostTracker {
2051
+ private records;
2052
+ /** 记录一次 LLM 调用的 Token 消耗 */
2053
+ record(usage: Omit<TokenUsage, 'estimatedCostUsd'>, model: string): void;
2054
+ /** 获取累计摘要 */
2055
+ getSummary(): {
2056
+ totalInputTokens: number;
2057
+ totalOutputTokens: number;
2058
+ totalTokens: number;
2059
+ totalCostUsd: number;
2060
+ callCount: number;
2061
+ };
2062
+ /** 重置所有记录 */
2063
+ reset(): void;
2064
+ /** 获取记录数 */
2065
+ get count(): number;
2066
+ }
2067
+ /** 全局默认 CostTracker 实例 */
2068
+ declare const costTracker: CostTracker;
2069
+ //#endregion
2070
+ //#region src/llm/types.d.ts
2071
+ /**
2072
+ * LLM 抽象层类型定义
2073
+ */
2074
+ /** 聊天消息角色 */
2075
+ type ChatRole = 'system' | 'user' | 'assistant';
2076
+ /** 聊天消息内容 */
2077
+ interface ChatMessage {
2078
+ role: ChatRole;
2079
+ content: string;
2080
+ }
2081
+ /** 结构化输出模式 */
2082
+ interface StructuredOutputSchema<T = unknown> {
2083
+ name: string;
2084
+ schema: T;
2085
+ strict?: boolean;
2086
+ }
2087
+ /** LLM 响应 */
2088
+ interface LlmResponse<T = string> {
2089
+ /** 响应内容(文本或结构化对象) */
2090
+ content: T;
2091
+ /** 输入 Token 数 */
2092
+ inputTokens: number;
2093
+ /** 输出 Token 数 */
2094
+ outputTokens: number;
2095
+ /** 模型名称 */
2096
+ model: string;
2097
+ /** 响应 ID(用于追踪) */
2098
+ id?: string;
2099
+ /** 是否被截断 */
2100
+ truncated?: boolean;
2101
+ }
2102
+ /** LLM 调用选项 */
2103
+ interface LlmCallOptions {
2104
+ /** 要使用的模型(覆盖默认模型) */
2105
+ model?: string;
2106
+ /** 最大生成 token 数 */
2107
+ maxTokens?: number;
2108
+ /** 温度参数(0-1) */
2109
+ temperature?: number;
2110
+ /** 结构化输出配置 */
2111
+ structuredOutput?: StructuredOutputSchema;
2112
+ /** 是否启用流式输出 */
2113
+ stream?: boolean;
2114
+ /** 超时时间(毫秒) */
2115
+ timeoutMs?: number;
2116
+ /** 取消信号(用于中断流式请求) */
2117
+ signal?: AbortSignal;
2118
+ }
2119
+ //#endregion
2120
+ //#region src/llm/provider.d.ts
2121
+ /**
2122
+ * LLM 提供商接口
2123
+ *
2124
+ * 实现此接口以支持不同的 LLM 后端:
2125
+ * - AnthropicProvider (Claude API)
2126
+ * - OpenAIProvider (GPT API)
2127
+ * - CustomProvider (兼容 OpenAI API 的服务)
2128
+ */
2129
+ interface ILlmProvider {
2130
+ /** 提供商标识 */
2131
+ readonly providerId: string;
2132
+ /**
2133
+ * 发送聊天请求
2134
+ * @param messages - 消息列表
2135
+ * @param options - 调用选项
2136
+ * @returns LLM 响应
2137
+ */
2138
+ chat(messages: ChatMessage[], options?: LlmCallOptions): Promise<LlmResponse>;
2139
+ /**
2140
+ * 流式聊天请求
2141
+ * @param messages - 消息列表
2142
+ * @param options - 调用选项
2143
+ * @returns 异步文本块迭代器
2144
+ */
2145
+ chatStream(messages: ChatMessage[], options?: LlmCallOptions): AsyncGenerator<string, void, unknown>;
2146
+ }
2147
+ //#endregion
2148
+ //#region src/config/types.d.ts
2149
+ /** 单个模型配置 */
2150
+ interface ModelConfig {
2151
+ /** 提供商标识(对应 pi-ai 的 Provider,决定 API 格式) */
2152
+ provider: KnownProvider | string;
2153
+ /** 模型 ID(发送给 API 的模型名称) */
2154
+ modelId: string;
2155
+ /** 模型描述 */
2156
+ description?: string;
2157
+ /**
2158
+ * 自定义 API 基础 URL
2159
+ *
2160
+ * 设置后覆盖 pi-ai 默认的 baseUrl。
2161
+ * 典型用法:使用 Anthropic 消息格式连接兼容端点(如 Deepseek)
2162
+ *
2163
+ * @example "https://api.deepseek.com/anthropic"
2164
+ */
2165
+ baseUrl?: string;
2166
+ }
2167
+ /** LLM 提供商认证配置 */
2168
+ interface LlmProviderAuthConfig {
2169
+ /** API Key(支持 ${ENV_VAR} 环境变量引用) */
2170
+ apiKey?: string;
2171
+ /** API 基础 URL(自定义提供商时使用) */
2172
+ baseUrl?: string;
2173
+ }
2174
+ /** LLM 全局默认参数 */
2175
+ interface LlmDefaultsConfig {
2176
+ /** 最大生成 token 数 */
2177
+ maxTokens?: number;
2178
+ /** 温度参数(0-1) */
2179
+ temperature?: number;
2180
+ }
2181
+ /** LLM 配置(基于 pi-ai 多模型架构) */
2182
+ interface LlmConfig {
2183
+ /** 默认使用的模型标识(格式:provider/modelId,如 anthropic/claude-sonnet-4-20250514) */
2184
+ defaultModel: string;
2185
+ /** 所有可用模型配置(key 为 "provider/modelId" 格式) */
2186
+ models: Record<string, ModelConfig>;
2187
+ /** 各提供商的认证信息 */
2188
+ providers: Partial<Record<KnownProvider | string, LlmProviderAuthConfig>>;
2189
+ /** 全局 LLM 调用默认参数 */
2190
+ defaults?: LlmDefaultsConfig;
2191
+ }
2192
+ /**
2193
+ * @deprecated 使用 LlmConfig 替代
2194
+ * 保留向后兼容,内部会自动转换
2195
+ */
2196
+ interface LlmProviderConfig {
2197
+ /** 提供商类型 */
2198
+ provider: 'anthropic' | 'openai' | 'custom';
2199
+ /** API Key(也可通过环境变量 ANTHROPIC_API_KEY 等设置) */
2200
+ apiKey?: string;
2201
+ /** API 基础 URL(自定义提供商时使用) */
2202
+ baseUrl?: string;
2203
+ /** 默认模型(不设置则使用提供商默认模型) */
2204
+ model?: string | undefined;
2205
+ }
2206
+ /** 调度器配置 */
2207
+ interface SchedulerConfig {
2208
+ /** 最大并行任务数 */
2209
+ maxConcurrency: number;
2210
+ /** 单个 Agent 最大同时执行数 */
2211
+ maxPerAgent: number;
2212
+ /** 默认任务超时时间(毫秒) */
2213
+ taskTimeoutMs: number;
2214
+ /** 最大重试次数 */
2215
+ maxRetries: number;
2216
+ /** 重试基础延迟(毫秒) */
2217
+ retryBaseDelayMs: number;
2218
+ }
2219
+ /** Agent 运行时配置(基于 pi-agent-core) */
2220
+ interface AgentRuntimeConfig$1 {
2221
+ /** 是否启用 Agent 运行时 */
2222
+ enabled: boolean;
2223
+ /** 工具执行策略:顺序或并行 */
2224
+ toolExecution?: 'sequential' | 'parallel';
2225
+ /** agentLoop 最大轮次(防止无限循环) */
2226
+ maxTurns?: number;
2227
+ /** 推理级别 */
2228
+ thinkingLevel?: string;
2229
+ }
2230
+ /** Agent 配置 */
2231
+ interface AgentConfig {
2232
+ /** Agent ID */
2233
+ id: string;
2234
+ /** 是否启用 */
2235
+ enabled: boolean;
2236
+ /** 自定义端点(覆盖默认) */
2237
+ endpoint?: string;
2238
+ /** 自定义配置参数 */
2239
+ params?: Record<string, unknown>;
2240
+ }
2241
+ /** CLI 配置 */
2242
+ interface CliConfig {
2243
+ /** 是否启用颜色输出 */
2244
+ color: boolean;
2245
+ /** 是否启用调试模式 */
2246
+ debug: boolean;
2247
+ /** 输出格式 */
2248
+ outputFormat: 'text' | 'json';
2249
+ }
2250
+ /**
2251
+ * zapmyco 完整配置
2252
+ *
2253
+ * 配置加载优先级:
2254
+ * 1. 命令行参数(最高)
2255
+ * 2. 项目级配置文件 (zapmyco.config.*)
2256
+ * 3. 用户家目录配置 (~/.zapmyco/zapmyco.json)
2257
+ * 4. 默认值(最低)
2258
+ */
2259
+ interface ZapmycoConfig {
2260
+ /** LLM 配置(新格式,基于 pi-ai 多模型) */
2261
+ llm: LlmConfig;
2262
+ /** @deprecated 向后兼容字段,优先使用 llm */
2263
+ _legacyLlm?: LlmProviderConfig;
2264
+ /** 调度器配置 */
2265
+ scheduler: SchedulerConfig;
2266
+ /** 已注册的 Agent 配置列表 */
2267
+ agents: AgentConfig[];
2268
+ /** Agent 运行时配置(pi-agent-core 集成) */
2269
+ agentRuntime?: AgentRuntimeConfig$1;
2270
+ /** CLI 配置 */
2271
+ cli: CliConfig;
2272
+ }
2273
+ //#endregion
2274
+ //#region src/config/defaults.d.ts
2275
+ /** 默认配置 */
2276
+ declare const DEFAULT_CONFIG: ZapmycoConfig;
2277
+ //#endregion
2278
+ //#region src/config/loader.d.ts
2279
+ /**
2280
+ * 加载 zapmyco 配置
2281
+ *
2282
+ * 搜索优先级:
2283
+ * 1. 显式指定的 configPath
2284
+ * 2. 项目级配置文件(cosmiconfig 默认搜索)
2285
+ * 3. 用户家目录 ~/.zapmyco/zapmyco.json
2286
+ * 4. 默认值
2287
+ *
2288
+ * @param configPath - 可选的显式配置文件路径
2289
+ * @returns 合并后的完整配置(用户配置 + 默认值深度合并)
2290
+ */
2291
+ declare function loadConfig(configPath?: string): Promise<ZapmycoConfig>;
2292
+ //#endregion
2293
+ //#region src/infra/errors.d.ts
2294
+ /**
2295
+ * zapmyco 统一错误类型
2296
+ *
2297
+ * 所有模块应使用或继承这些错误类型,确保错误信息一致且可追踪。
2298
+ */
2299
+ /** 错误码枚举 */
2300
+ declare enum ZapmycoErrorCode {
2301
+ INTENT_PARSE_FAILED = "INTENT_PARSE_FAILED",
2302
+ INTENT_LOW_CONFIDENCE = "INTENT_LOW_CONFIDENCE",
2303
+ DECOMPOSE_FAILED = "DECOMPOSE_FAILED",
2304
+ DECOMPOSE_INVALID_GRAPH = "DECOMPOSE_INVALID_GRAPH",
2305
+ SCHEDULER_NO_AVAILABLE_AGENT = "SCHEDULER_NO_AVAILABLE_AGENT",
2306
+ SCHEDULER_CAPABILITY_MISMATCH = "SCHEDULER_CAPABILITY_MISMATCH",
2307
+ SCHEDULER_TASK_TIMEOUT = "SCHEDULER_TASK_TIMEOUT",
2308
+ AGENT_NOT_FOUND = "AGENT_NOT_FOUND",
2309
+ AGENT_OFFLINE = "AGENT_OFFLINE",
2310
+ AGENT_EXECUTION_FAILED = "AGENT_EXECUTION_FAILED",
2311
+ AGENT_HEALTH_CHECK_FAILED = "AGENT_HEALTH_CHECK_FAILED",
2312
+ CONFIG_LOAD_FAILED = "CONFIG_LOAD_FAILED",
2313
+ CONFIG_INVALID = "CONFIG_INVALID",
2314
+ LLM_API_ERROR = "LLM_API_ERROR",
2315
+ LLM_RATE_LIMITED = "LLM_RATE_LIMITED",
2316
+ LLM_QUOTA_EXCEEDED = "LLM_QUOTA_EXCEEDED",
2317
+ UNKNOWN = "UNKNOWN",
2318
+ INTERNAL_ERROR = "INTERNAL_ERROR"
2319
+ }
2320
+ /**
2321
+ * zapmyco 基础错误类
2322
+ *
2323
+ * 所有业务错误都应继承此类,提供结构化的错误信息。
2324
+ */
2325
+ declare class ZapmycoError extends Error {
2326
+ /** 错误码 */
2327
+ readonly code: ZapmycoErrorCode;
2328
+ /** 额外的上下文信息 */
2329
+ readonly context?: Record<string, unknown>;
2330
+ constructor(code: ZapmycoErrorCode, message: string, context?: Record<string, unknown>);
2331
+ /** 转换为可序列化的对象 */
2332
+ toJSON(): Record<string, unknown>;
2333
+ }
2334
+ /** 意图理解错误 */
2335
+ declare class IntentError extends ZapmycoError {
2336
+ constructor(code: ZapmycoErrorCode.INTENT_PARSE_FAILED | ZapmycoErrorCode.INTENT_LOW_CONFIDENCE, message: string, context?: Record<string, unknown>);
2337
+ }
2338
+ /** 任务拆分错误 */
2339
+ declare class DecomposeError extends ZapmycoError {
2340
+ constructor(code: ZapmycoErrorCode.DECOMPOSE_FAILED | ZapmycoErrorCode.DECOMPOSE_INVALID_GRAPH, message: string, context?: Record<string, unknown>);
2341
+ }
2342
+ /** 调度错误 */
2343
+ declare class SchedulerError extends ZapmycoError {
2344
+ constructor(code: ZapmycoErrorCode.SCHEDULER_NO_AVAILABLE_AGENT | ZapmycoErrorCode.SCHEDULER_CAPABILITY_MISMATCH | ZapmycoErrorCode.SCHEDULER_TASK_TIMEOUT, message: string, context?: Record<string, unknown>);
2345
+ }
2346
+ /** Agent 执行错误 */
2347
+ declare class AgentError extends ZapmycoError {
2348
+ constructor(code: ZapmycoErrorCode.AGENT_NOT_FOUND | ZapmycoErrorCode.AGENT_OFFLINE | ZapmycoErrorCode.AGENT_EXECUTION_FAILED | ZapmycoErrorCode.AGENT_HEALTH_CHECK_FAILED, message: string, context?: Record<string, unknown>);
2349
+ }
2350
+ /** LLM 调用错误 */
2351
+ declare class LlmError extends ZapmycoError {
2352
+ constructor(code: ZapmycoErrorCode.LLM_API_ERROR | ZapmycoErrorCode.LLM_RATE_LIMITED | ZapmycoErrorCode.LLM_QUOTA_EXCEEDED, message: string, context?: Record<string, unknown>);
2353
+ }
2354
+ //#endregion
2355
+ //#region src/infra/event-bus.d.ts
2356
+ /** 事件映射类型 */
2357
+ interface EventMap {
2358
+ 'goal:submitted': {
2359
+ goalId: string;
2360
+ rawInput: string;
2361
+ };
2362
+ 'goal:intent-resolved': {
2363
+ goalId: string;
2364
+ };
2365
+ 'goal:decomposed': {
2366
+ goalId: string;
2367
+ taskCount: number;
2368
+ };
2369
+ 'goal:completed': {
2370
+ goalId: string;
2371
+ result: unknown;
2372
+ };
2373
+ 'goal:failed': {
2374
+ goalId: string;
2375
+ error: Error;
2376
+ };
2377
+ 'task:scheduled': {
2378
+ taskId: string;
2379
+ agentId: string;
2380
+ };
2381
+ 'task:started': {
2382
+ taskId: string;
2383
+ agentId: string;
2384
+ };
2385
+ 'task:progress': {
2386
+ taskId: string;
2387
+ percent: number;
2388
+ message?: string;
2389
+ };
2390
+ 'task:output': {
2391
+ taskId: string;
2392
+ text: string;
2393
+ };
2394
+ 'task:completed': {
2395
+ taskId: string;
2396
+ result: unknown;
2397
+ };
2398
+ 'task:failed': {
2399
+ taskId: string;
2400
+ error: Error;
2401
+ retryable: boolean;
2402
+ };
2403
+ 'task:retrying': {
2404
+ taskId: string;
2405
+ attempt: number;
2406
+ maxRetries: number;
2407
+ };
2408
+ 'task:cancelled': {
2409
+ taskId: string;
2410
+ };
2411
+ 'agent:registered': {
2412
+ agentId: string;
2413
+ };
2414
+ 'agent:unregistered': {
2415
+ agentId: string;
2416
+ };
2417
+ 'agent:online': {
2418
+ agentId: string;
2419
+ };
2420
+ 'agent:offline': {
2421
+ agentId: string;
2422
+ };
2423
+ 'system:shutdown': {
2424
+ reason?: string;
2425
+ };
2426
+ }
2427
+ /**
2428
+ * 全局事件总线实例
2429
+ *
2430
+ * 使用方式:
2431
+ * ```typescript
2432
+ * import { eventBus } from '@/infra/event-bus';
2433
+ *
2434
+ * eventBus.on('task:started', ({ taskId, agentId }) => {
2435
+ * console.log(`任务 ${taskId} 已在 ${agentId} 上启动`);
2436
+ * });
2437
+ *
2438
+ * eventBus.emit('task:started', { taskId: 'abc', agentId: 'code-1' });
2439
+ * ```
2440
+ */
2441
+ declare const eventBus: EventEmitter$1<EventMap, any>;
2442
+ //#endregion
2443
+ //#region src/infra/logger.d.ts
2444
+ /**
2445
+ * zapmyco 日志系统
2446
+ *
2447
+ * 提供结构化的日志输出,支持不同级别和格式化。
2448
+ */
2449
+ /** 日志级别 */
2450
+ type LogLevel = 'debug' | 'info' | 'warn' | 'error';
2451
+ /** 日志条目 */
2452
+ interface LogEntry {
2453
+ level: LogLevel;
2454
+ message: string;
2455
+ timestamp: string;
2456
+ context?: Record<string, unknown>;
2457
+ error?: Error;
2458
+ }
2459
+ /**
2460
+ * Logger 实例
2461
+ */
2462
+ declare class Logger {
2463
+ private minLevel;
2464
+ private entries;
2465
+ constructor(minLevel?: LogLevel);
2466
+ /** 设置日志级别 */
2467
+ setLevel(level: LogLevel): void;
2468
+ /** 创建带前缀的子 logger */
2469
+ child(prefix: string): Logger;
2470
+ /** 核心日志方法 */
2471
+ log(level: LogLevel, message: string, context?: Record<string, unknown>, error?: Error): void;
2472
+ debug(message: string, context?: Record<string, unknown>): void;
2473
+ info(message: string, context?: Record<string, unknown>): void;
2474
+ warn(message: string, context?: Record<string, unknown>): void;
2475
+ error(message: string, context?: Record<string, unknown>, error?: Error): void;
2476
+ /** 获取所有日志条目 */
2477
+ getEntries(): LogEntry[];
2478
+ /** 清空日志条目 */
2479
+ clear(): void;
2480
+ }
2481
+ /** 全局默认 logger 实例 */
2482
+ declare const logger: Logger;
2483
+ //#endregion
2484
+ //#region src/index.d.ts
2485
+ /**
2486
+ * zapmyco - AI 原生并行任务编排系统
2487
+ *
2488
+ * 公共 API 导出入口。
2489
+ *
2490
+ * @packageDocumentation
2491
+ */
2492
+ /** 当前版本号 */
2493
+ declare const VERSION: string;
2494
+ /** 应用名称 */
2495
+ declare const APP_NAME = "zapmyco";
2496
+ declare const _default: {
2497
+ VERSION: string;
2498
+ APP_NAME: string;
2499
+ };
2500
+ //#endregion
2501
+ export { APP_NAME, type AdaptedAgentEvent, type AgentAdapterOptions, AgentError, type AgentExecuteOptions, type AgentExecuteRequest, type AgentHealthStatus, type AgentRegistration, type AgentRegistrationStatus, type AgentRuntimeConfig, type AgentStatus, type Artifact, type ArtifactType, type Capability, type CapabilityCategory, type ChatMessage, type ChatRole, CostTracker, DEFAULT_CONFIG, DecomposeError, type EventMap, type FinalResult, type Goal, type GoalConstraints, type GoalType, type IAgent, type ILlmProvider, type IStreamingAgent, IntentError, LlmBasedAgent, type LlmCallOptions, LlmError, type LlmResponse, type LogEntry, type LogLevel, Logger, type ProgressEvent, type ProgressEventType, type ProgressPayload, type ProjectContext, SchedulerError, type StructuredOutputSchema, type SubTask, type TaskError, type TaskGraph, type TaskResult, type TaskStatus, type TokenUsage, type ToolExecutionMode, type ToolRegistration, VERSION, type ZapmycoConfig, ZapmycoError, ZapmycoErrorCode, adaptAgentEvent, costTracker, createEventBridgeListener, createLlmBasedAgent, createRequestFromSubTask, createToolFromCapability, createToolsFromCapabilities, _default as default, dispatchToEventBus, eventBus, loadConfig, logger, toAgentTool, toAgentTools };
2502
+ //# sourceMappingURL=index.d.mts.map