pi2dsh 0.2.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.
- package/LICENSE +21 -0
- package/README.md +122 -0
- package/README.zh.md +122 -0
- package/dist/cli.d.mts +2 -0
- package/dist/cli.mjs +128 -0
- package/dist/cli.mjs.map +1 -0
- package/dist/compat/pi-ai.d.mts +2597 -0
- package/dist/compat/pi-ai.d.mts.map +1 -0
- package/dist/compat/pi-ai.mjs +4669 -0
- package/dist/compat/pi-ai.mjs.map +1 -0
- package/dist/compat/pi-coding-agent.d.mts +745 -0
- package/dist/compat/pi-coding-agent.d.mts.map +1 -0
- package/dist/compat/pi-coding-agent.mjs +4 -0
- package/dist/compat/pi-tui.d.mts +3 -0
- package/dist/compat/pi-tui.mjs +3622 -0
- package/dist/compat/pi-tui.mjs.map +1 -0
- package/dist/host.d.mts +35 -0
- package/dist/host.d.mts.map +1 -0
- package/dist/host.mjs +197 -0
- package/dist/host.mjs.map +1 -0
- package/dist/index.d.mts +69 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +5 -0
- package/dist/mcp-config-jL9w70It.mjs +1535 -0
- package/dist/mcp-config-jL9w70It.mjs.map +1 -0
- package/dist/pi-coding-agent-Dsg6_0ua.mjs +2060 -0
- package/dist/pi-coding-agent-Dsg6_0ua.mjs.map +1 -0
- package/dist/pi-config-shim-CZ1wFzqM.mjs +27 -0
- package/dist/pi-config-shim-CZ1wFzqM.mjs.map +1 -0
- package/dist/pi-tui-iHoF2tFc.d.mts +1043 -0
- package/dist/pi-tui-iHoF2tFc.d.mts.map +1 -0
- package/dist/pi-tui-utils-CcaVtm-3.mjs +895 -0
- package/dist/pi-tui-utils-CcaVtm-3.mjs.map +1 -0
- package/dist/pi-types-KazmR2O5.d.mts +62 -0
- package/dist/pi-types-KazmR2O5.d.mts.map +1 -0
- package/dist/pi-uuid-Db8ShZsK.mjs +47 -0
- package/dist/pi-uuid-Db8ShZsK.mjs.map +1 -0
- package/dist/rolldown-runtime-C2Q2p085.mjs +15 -0
- package/dist/runtime-D84Hv_3m.mjs +1499 -0
- package/dist/runtime-D84Hv_3m.mjs.map +1 -0
- package/dist/runtime.d.mts +31 -0
- package/dist/runtime.d.mts.map +1 -0
- package/dist/runtime.mjs +3 -0
- package/dist/source-D7Ir-rPT.mjs +154 -0
- package/dist/source-D7Ir-rPT.mjs.map +1 -0
- package/dist/types-7IWJPPvS.d.mts +59 -0
- package/dist/types-7IWJPPvS.d.mts.map +1 -0
- package/package.json +135 -0
|
@@ -0,0 +1,2597 @@
|
|
|
1
|
+
|
|
2
|
+
import { a as TextContent, c as ToolResultMessage, i as Message, l as Usage, n as AssistantMessage, o as ThinkingContent, r as ImageContent, s as ToolCallContent, t as AgentMessage, u as UserMessage } from "../pi-types-KazmR2O5.mjs";
|
|
3
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/schema.d.mts
|
|
4
|
+
interface TSchema {}
|
|
5
|
+
declare function IsKind<Kind extends string>(value: unknown, kind: Kind): value is {
|
|
6
|
+
['~kind']: Kind;
|
|
7
|
+
};
|
|
8
|
+
declare function IsSchema(value: unknown): value is 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
|
+
interface TArrayOptions extends TSchemaOptions {
|
|
94
|
+
/**
|
|
95
|
+
* The minimum number of items allowed in the array.
|
|
96
|
+
*/
|
|
97
|
+
minItems?: number;
|
|
98
|
+
/**
|
|
99
|
+
* The maximum number of items allowed in the array.
|
|
100
|
+
*/
|
|
101
|
+
maxItems?: number;
|
|
102
|
+
/**
|
|
103
|
+
* A schema that at least one item in the array must validate against.
|
|
104
|
+
*/
|
|
105
|
+
contains?: TSchema;
|
|
106
|
+
/**
|
|
107
|
+
* The minimum number of array items that must validate against the `contains` schema.
|
|
108
|
+
*/
|
|
109
|
+
minContains?: number;
|
|
110
|
+
/**
|
|
111
|
+
* The maximum number of array items that may validate against the `contains` schema.
|
|
112
|
+
*/
|
|
113
|
+
maxContains?: number;
|
|
114
|
+
/**
|
|
115
|
+
* An array of schemas, where each schema in `prefixItems` validates against items at corresponding positions from the beginning of the array.
|
|
116
|
+
*/
|
|
117
|
+
prefixItems?: TSchema[];
|
|
118
|
+
/**
|
|
119
|
+
* If `true`, all items in the array must be unique.
|
|
120
|
+
*/
|
|
121
|
+
uniqueItems?: boolean;
|
|
122
|
+
}
|
|
123
|
+
interface TTupleOptions extends TArrayOptions {
|
|
124
|
+
/**
|
|
125
|
+
* A schema to apply to any items in the array that were not validated by `prefixItems` or `items`. If `false`, no additional items are allowed.
|
|
126
|
+
*/
|
|
127
|
+
unevaluatedItems?: TSchema | boolean;
|
|
128
|
+
}
|
|
129
|
+
interface TIntersectOptions extends TSchemaOptions {
|
|
130
|
+
/**
|
|
131
|
+
* A schema to apply to any properties in the object that were not validated by other keywords like `properties`, `patternProperties`, or `additionalProperties`. If `false`, no additional properties are allowed.
|
|
132
|
+
*/
|
|
133
|
+
unevaluatedProperties?: TSchema | boolean;
|
|
134
|
+
}
|
|
135
|
+
interface TNumberOptions extends TSchemaOptions {
|
|
136
|
+
/**
|
|
137
|
+
* Specifies an exclusive upper limit for the number (number must be less than this value).
|
|
138
|
+
*/
|
|
139
|
+
exclusiveMaximum?: number | bigint;
|
|
140
|
+
/**
|
|
141
|
+
* Specifies an exclusive lower limit for the number (number must be greater than this value).
|
|
142
|
+
*/
|
|
143
|
+
exclusiveMinimum?: number | bigint;
|
|
144
|
+
/**
|
|
145
|
+
* Specifies an inclusive upper limit for the number (number must be less than or equal to this value).
|
|
146
|
+
*/
|
|
147
|
+
maximum?: number | bigint;
|
|
148
|
+
/**
|
|
149
|
+
* Specifies an inclusive lower limit for the number (number must be greater than or equal to this value).
|
|
150
|
+
*/
|
|
151
|
+
minimum?: number | bigint;
|
|
152
|
+
/**
|
|
153
|
+
* Specifies that the number must be a multiple of this value.
|
|
154
|
+
*/
|
|
155
|
+
multipleOf?: number | bigint;
|
|
156
|
+
}
|
|
157
|
+
type TFormat = 'date-time' | 'date' | 'duration' | 'email' | 'hostname' | 'idn-email' | 'idn-hostname' | 'ipv4' | 'ipv6' | 'iri-reference' | 'iri' | 'json-pointer-uri-fragment' | 'json-pointer' | 'json-string' | 'regex' | 'relative-json-pointer' | 'time' | 'uri-reference' | 'uri-template' | 'uri' | 'url' | 'uuid' | ({} & string);
|
|
158
|
+
interface TStringOptions extends TSchemaOptions {
|
|
159
|
+
/**
|
|
160
|
+
* Specifies the expected string format. May also be a custom format string.
|
|
161
|
+
*/
|
|
162
|
+
format?: TFormat;
|
|
163
|
+
/**
|
|
164
|
+
* Specifies the minimum number of characters allowed in the string.
|
|
165
|
+
* Must be a non-negative integer.
|
|
166
|
+
*/
|
|
167
|
+
minLength?: number;
|
|
168
|
+
/**
|
|
169
|
+
* Specifies the maximum number of characters allowed in the string.
|
|
170
|
+
* Must be a non-negative integer.
|
|
171
|
+
*/
|
|
172
|
+
maxLength?: number;
|
|
173
|
+
/**
|
|
174
|
+
* Specifies a regular expression pattern that the string value must match.
|
|
175
|
+
* Can be provided as a string (ECMA-262 regex syntax) or a `RegExp` object.
|
|
176
|
+
*/
|
|
177
|
+
pattern?: string | RegExp;
|
|
178
|
+
}
|
|
179
|
+
//#endregion
|
|
180
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/deferred.d.mts
|
|
181
|
+
/** Represents a deferred action. */
|
|
182
|
+
interface TDeferred<Action extends string = string, Types extends TSchema[] = TSchema[]> extends TSchema {
|
|
183
|
+
'~kind': 'Deferred';
|
|
184
|
+
type: 'deferred';
|
|
185
|
+
action: Action;
|
|
186
|
+
parameters: Types;
|
|
187
|
+
options: TSchemaOptions;
|
|
188
|
+
}
|
|
189
|
+
//#endregion
|
|
190
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/_codec.d.mts
|
|
191
|
+
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'>>);
|
|
192
|
+
type TDecodeCallback<Encoded extends unknown, Decoded = unknown> = (input: Encoded) => Decoded;
|
|
193
|
+
type TEncodeCallback<Encoded extends unknown, Decoded = unknown> = (input: Decoded) => Encoded;
|
|
194
|
+
type TCodec<Type extends TSchema = TSchema, Decoded extends unknown = unknown> = Type & {
|
|
195
|
+
'~codec': {
|
|
196
|
+
encode: TDecodeCallback<unknown, Decoded>;
|
|
197
|
+
decode: TEncodeCallback<unknown, Decoded>;
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
declare class EncodeBuilder<Type extends TSchema, Encoded extends unknown, Decoded extends unknown> {
|
|
201
|
+
private readonly type;
|
|
202
|
+
private readonly decode;
|
|
203
|
+
constructor(type: Type, decode: globalThis.Function);
|
|
204
|
+
Encode(callback: TEncodeCallback<Encoded, Decoded>): TCodec<Type, Decoded>;
|
|
205
|
+
}
|
|
206
|
+
declare class DecodeBuilder<Type extends TSchema, Encoded extends unknown> {
|
|
207
|
+
private readonly type;
|
|
208
|
+
constructor(type: Type);
|
|
209
|
+
Decode<Callback extends TDecodeCallback<Encoded, unknown>>(callback: Callback): EncodeBuilder<Type, Encoded, ReturnType<Callback>>;
|
|
210
|
+
}
|
|
211
|
+
/** Creates a bi-directional Codec. Codec functions are called on Value.Decode and Value.Encode. */
|
|
212
|
+
declare function Codec<Type extends TSchema>(type: Type): DecodeBuilder<Type, StaticDecode<Type>>;
|
|
213
|
+
/** Createsa uni-directional Codec with Decode only. The Decode function is called on Value.Decode */
|
|
214
|
+
declare function Decode<Type extends TSchema, Callback extends TDecodeCallback<StaticDecode<Type>, unknown>>(type: Type, callback: Callback): TCodec<Type, ReturnType<Callback>>;
|
|
215
|
+
/** Creates a uni-directional Codec with Encode only. The Encode function is called on Value.Encode */
|
|
216
|
+
declare function Encode<Type extends TSchema>(type: Type, callback: TEncodeCallback<StaticDecode<Type>, unknown>): TCodec<Type, unknown>;
|
|
217
|
+
declare function IsCodec(value: unknown): value is TCodec;
|
|
218
|
+
//#endregion
|
|
219
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/any.d.mts
|
|
220
|
+
type StaticAny = any;
|
|
221
|
+
/** Represents a Any type. */
|
|
222
|
+
interface TAny extends TSchema {
|
|
223
|
+
'~kind': 'Any';
|
|
224
|
+
}
|
|
225
|
+
/** Creates a Any type. */
|
|
226
|
+
declare function Any(options?: TSchemaOptions): TAny;
|
|
227
|
+
/** Returns true if the given value is a TAny. */
|
|
228
|
+
declare function IsAny(value: unknown): value is TAny;
|
|
229
|
+
//#endregion
|
|
230
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/_immutable.d.mts
|
|
231
|
+
type TImmutable<Type extends TSchema = TSchema> = (Type & {
|
|
232
|
+
'~immutable': true;
|
|
233
|
+
});
|
|
234
|
+
/** Applies an Immutable modifier to the given type. */
|
|
235
|
+
declare function Immutable<Type extends TSchema>(type: Type): TAddImmutable<Type>;
|
|
236
|
+
/** Returns true if the given value is a TImmutable */
|
|
237
|
+
declare function IsImmutable(value: unknown): value is TImmutable<TSchema>;
|
|
238
|
+
//#endregion
|
|
239
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/array.d.mts
|
|
240
|
+
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;
|
|
241
|
+
/** Represents an Array type. */
|
|
242
|
+
interface TArray<Type extends TSchema = TSchema> extends TSchema {
|
|
243
|
+
'~kind': 'Array';
|
|
244
|
+
type: 'array';
|
|
245
|
+
items: Type;
|
|
246
|
+
}
|
|
247
|
+
/** Creates an Array type. */
|
|
248
|
+
declare function _Array_<Type extends TSchema>(items: Type, options?: TArrayOptions): TArray<Type>;
|
|
249
|
+
/** Returns true if the given value is a TArray. */
|
|
250
|
+
declare function IsArray(value: unknown): value is TArray;
|
|
251
|
+
//#endregion
|
|
252
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/bigint.d.mts
|
|
253
|
+
declare const BigIntPattern = "-?(?:0|[1-9][0-9]*)n";
|
|
254
|
+
type StaticBigInt = bigint;
|
|
255
|
+
/** Represents a BigInt type. */
|
|
256
|
+
interface TBigInt$1 extends TSchema {
|
|
257
|
+
'~kind': 'BigInt';
|
|
258
|
+
type: 'bigint';
|
|
259
|
+
}
|
|
260
|
+
/** Creates a BigInt type. */
|
|
261
|
+
declare function BigInt(options?: TNumberOptions): TBigInt$1;
|
|
262
|
+
/** Returns true if the given value is a TBigInt. */
|
|
263
|
+
declare function IsBigInt(value: unknown): value is TBigInt$1;
|
|
264
|
+
//#endregion
|
|
265
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/boolean.d.mts
|
|
266
|
+
type StaticBoolean = boolean;
|
|
267
|
+
/** Represents a Boolean type. */
|
|
268
|
+
interface TBoolean extends TSchema {
|
|
269
|
+
'~kind': 'Boolean';
|
|
270
|
+
type: 'boolean';
|
|
271
|
+
}
|
|
272
|
+
/** Creates a Boolean type. */
|
|
273
|
+
declare function Boolean(options?: TSchemaOptions): TBoolean;
|
|
274
|
+
/** Returns true if the given value is a TBoolean. */
|
|
275
|
+
declare function IsBoolean(value: unknown): value is TBoolean;
|
|
276
|
+
//#endregion
|
|
277
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/_add_readonly.d.mts
|
|
278
|
+
/** Creates a deferred AddReadonly action. */
|
|
279
|
+
type TAddReadonlyDeferred<Type extends TSchema> = (TDeferred<'AddReadonly', [Type]>);
|
|
280
|
+
/** Applies an AddReadonly action to a type. */
|
|
281
|
+
type TAddReadonly<Type extends TSchema> = (TAddReadonlyAction<Type>);
|
|
282
|
+
//#endregion
|
|
283
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/_readonly.d.mts
|
|
284
|
+
type TReadonly$1<Type extends TSchema = TSchema> = (Type & {
|
|
285
|
+
'~readonly': true;
|
|
286
|
+
});
|
|
287
|
+
/** Applies an Readonly property modifier to the given type. */
|
|
288
|
+
declare function Readonly$1<Type extends TSchema>(type: Type): TAddReadonly<Type>;
|
|
289
|
+
/** Returns true if the given value is a TReadonly */
|
|
290
|
+
declare function IsReadonly$1(value: unknown): value is TReadonly$1<TSchema>;
|
|
291
|
+
//#endregion
|
|
292
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/readonly/instantiate_add.d.mts
|
|
293
|
+
type TAddReadonlyOperation<Type extends TSchema, Result extends TSchema = `~readonly` extends keyof Type ? Type : TReadonly$1<Type>> = Result;
|
|
294
|
+
type TAddReadonlyAction<Type extends TSchema, Result extends TSchema = TAddReadonlyOperation<Type>> = Result;
|
|
295
|
+
type TAddReadonlyInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiateType extends TSchema = TInstantiateType<Context, State, Type>> = TAddReadonlyAction<InstantiateType>;
|
|
296
|
+
//#endregion
|
|
297
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/unknown.d.mts
|
|
298
|
+
type StaticUnknown = unknown;
|
|
299
|
+
/** Represents an Unknown type. */
|
|
300
|
+
interface TUnknown extends TSchema {
|
|
301
|
+
'~kind': 'Unknown';
|
|
302
|
+
}
|
|
303
|
+
/** Creates an Unknown type. */
|
|
304
|
+
declare function Unknown(options?: TSchemaOptions): TUnknown;
|
|
305
|
+
/** Returns true if the given value is TUnknown. */
|
|
306
|
+
declare function IsUnknown(value: unknown): value is TUnknown;
|
|
307
|
+
//#endregion
|
|
308
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/parameter.d.mts
|
|
309
|
+
/** Represents a Generic parameter. */
|
|
310
|
+
interface TParameter$1<Name extends string = string, Extends extends TSchema = TSchema, Equals extends TSchema = TSchema> extends TSchema {
|
|
311
|
+
'~kind': 'Parameter';
|
|
312
|
+
name: Name;
|
|
313
|
+
extends: Extends;
|
|
314
|
+
equals: Equals;
|
|
315
|
+
}
|
|
316
|
+
/** Creates a Parameter type. */
|
|
317
|
+
declare function Parameter<Name extends string, Extends extends TSchema, Equals extends TSchema>(name: Name, extends_: Extends, equals: Equals): TParameter$1<Name, Extends, Equals>;
|
|
318
|
+
/** Creates a Parameter type. */
|
|
319
|
+
declare function Parameter<Name extends string, Extends extends TSchema, Equals extends TSchema>(name: Name, extends_: Extends): TParameter$1<Name, Extends, Extends>;
|
|
320
|
+
/** Creates a Parameter type. */
|
|
321
|
+
declare function Parameter<Name extends string>(name: Name): TParameter$1<Name, TUnknown, TUnknown>;
|
|
322
|
+
/** Returns true if the given value is TParameter. */
|
|
323
|
+
declare function IsParameter(value: unknown): value is TParameter$1;
|
|
324
|
+
//#endregion
|
|
325
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/object.d.mts
|
|
326
|
+
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;
|
|
327
|
+
/** Represents an Object type. */
|
|
328
|
+
interface TObject<Properties extends TProperties = TProperties> extends TSchema {
|
|
329
|
+
'~kind': 'Object';
|
|
330
|
+
type: 'object';
|
|
331
|
+
properties: Properties;
|
|
332
|
+
required: TRequiredArray<Properties>;
|
|
333
|
+
}
|
|
334
|
+
/** Creates an Object type. */
|
|
335
|
+
declare function _Object_<Properties extends TProperties>(properties: Properties, options?: TObjectOptions): TObject<Properties>;
|
|
336
|
+
/** Returns true if the given value is TObject. */
|
|
337
|
+
declare function IsObject(value: unknown): value is TObject;
|
|
338
|
+
//#endregion
|
|
339
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/ref.d.mts
|
|
340
|
+
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);
|
|
341
|
+
type CyclicGuard<Stack extends unknown[], Ref extends string> = (Ref extends Stack[number] ? CyclicStackLength<Stack, 2> : true);
|
|
342
|
+
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);
|
|
343
|
+
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;
|
|
344
|
+
/** Represents a type reference. */
|
|
345
|
+
interface TRef<Ref extends string = string> extends TSchema {
|
|
346
|
+
'~kind': 'Ref';
|
|
347
|
+
$ref: Ref;
|
|
348
|
+
}
|
|
349
|
+
/** Creates a Ref type. */
|
|
350
|
+
declare function Ref$1<Ref extends string>(ref: Ref, options?: TSchemaOptions): TRef<Ref>;
|
|
351
|
+
/** Returns true if the given value is TRef. */
|
|
352
|
+
declare function IsRef(value: unknown): value is TRef;
|
|
353
|
+
//#endregion
|
|
354
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/generic.d.mts
|
|
355
|
+
/** Represents a callable Generic type. */
|
|
356
|
+
interface TGeneric<Parameters extends TParameter$1[] = TParameter$1[], Expression extends TSchema = TSchema> extends TSchema {
|
|
357
|
+
'~kind': 'Generic';
|
|
358
|
+
type: 'generic';
|
|
359
|
+
parameters: Parameters;
|
|
360
|
+
expression: Expression;
|
|
361
|
+
}
|
|
362
|
+
/** Creates a Generic type. */
|
|
363
|
+
declare function Generic<Parameters extends TParameter$1[], Expression extends TSchema>(parameters: [...Parameters], expression: Expression): TGeneric<Parameters, Expression>;
|
|
364
|
+
/** Returns true if the given value is a TGeneric. */
|
|
365
|
+
declare function IsGeneric(value: unknown): value is TGeneric;
|
|
366
|
+
//#endregion
|
|
367
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/never.d.mts
|
|
368
|
+
declare const NeverPattern = "(?!)";
|
|
369
|
+
type StaticNever = never;
|
|
370
|
+
/** Represents a Never type. */
|
|
371
|
+
interface TNever extends TSchema {
|
|
372
|
+
'~kind': 'Never';
|
|
373
|
+
not: {};
|
|
374
|
+
}
|
|
375
|
+
/** Creates a Never type. */
|
|
376
|
+
declare function Never(options?: TSchemaOptions): TNever;
|
|
377
|
+
/** Returns true if the given value is TNever. */
|
|
378
|
+
declare function IsNever(value: unknown): value is TNever;
|
|
379
|
+
//#endregion
|
|
380
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/_refine.d.mts
|
|
381
|
+
/** Applies a Refine check to the given type. */
|
|
382
|
+
type TRefineAdd<Type extends TSchema = TSchema> = ('~refine' extends keyof Type ? Type : TRefine<Type>);
|
|
383
|
+
/** Represents a type with embedded Refine check. */
|
|
384
|
+
type TRefine<Type extends TSchema = TSchema> = (Type & {
|
|
385
|
+
'~refine': TRefinement<unknown>[];
|
|
386
|
+
});
|
|
387
|
+
type TRefineCheckCallback<Value extends unknown = unknown> = (value: Value) => boolean;
|
|
388
|
+
type TRefineErrorCallback<Value extends unknown = unknown> = (value: Value) => string;
|
|
389
|
+
interface TRefinement<Value extends unknown = unknown> {
|
|
390
|
+
check: TRefineCheckCallback<Value>;
|
|
391
|
+
error: TRefineErrorCallback<Value>;
|
|
392
|
+
}
|
|
393
|
+
/** Refines a type with an explicit check */
|
|
394
|
+
declare function Refine<Type extends TSchema, Value = Static<Type>>(type: Type, check: TRefineCheckCallback<Value>, error: TRefineErrorCallback<Value>): TRefineAdd<Type>;
|
|
395
|
+
/** Refines a type with an explicit check */
|
|
396
|
+
declare function Refine<Type extends TSchema, Value = Static<Type>>(type: Type, check: TRefineCheckCallback<Value>): TRefineAdd<Type>;
|
|
397
|
+
/** Returns true if the given value is a TRefine. */
|
|
398
|
+
declare function IsRefine(value: unknown): value is TRefine;
|
|
399
|
+
//#endregion
|
|
400
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/cyclic.d.mts
|
|
401
|
+
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;
|
|
402
|
+
/** Represents a Cyclic type. */
|
|
403
|
+
interface TCyclic<Defs extends TProperties = TProperties, Ref extends string = string> extends TSchema {
|
|
404
|
+
'~kind': 'Cyclic';
|
|
405
|
+
$defs: Defs;
|
|
406
|
+
$ref: Ref;
|
|
407
|
+
}
|
|
408
|
+
/** Creates a Cyclic type. */
|
|
409
|
+
declare function Cyclic<Defs extends TProperties, Ref extends string>($defs: Defs, $ref: Ref, options?: TSchemaOptions): TCyclic<Defs, Ref>;
|
|
410
|
+
/** Returns true if the given value is a TCyclic. */
|
|
411
|
+
declare function IsCyclic(value: unknown): value is TCyclic;
|
|
412
|
+
//#endregion
|
|
413
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/helpers/union.d.mts
|
|
414
|
+
type TUnionToIntersect<U> = (U extends unknown ? (arg: U) => 0 : never) extends ((arg: infer I) => 0) ? I : never;
|
|
415
|
+
type TUnionLast<U> = TUnionToIntersect<U extends unknown ? (x: U) => 0 : never> extends ((x: infer L) => 0) ? L : never;
|
|
416
|
+
type TUnionToTuple<U, Result extends unknown[] = [], R = TUnionLast<U>> = [U] extends [never] ? Result : TUnionToTuple<Exclude<U, R>, [Extract<U, R>, ...Result]>;
|
|
417
|
+
//#endregion
|
|
418
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/enum/typescript_enum_to_enum_values.d.mts
|
|
419
|
+
type TTypeScriptEnumLike = Record<PropertyKey, TEnumValue>;
|
|
420
|
+
type TReduceEnumValues<Keys extends string[], Type extends TTypeScriptEnumLike, Result extends TEnumValue[] = []> = (Keys extends [infer Left extends string, ...infer Right extends string[]] ? TReduceEnumValues<Right, Type, [...Result, Type[Left]]> : Result);
|
|
421
|
+
type TTypeScriptEnumToEnumValues<Type extends TTypeScriptEnumLike, EnumKeys extends string[] = TUnionToTuple<Extract<keyof Type, string>>, Elements extends TEnumValue[] = TReduceEnumValues<EnumKeys, Type>> = Elements;
|
|
422
|
+
//#endregion
|
|
423
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/enum.d.mts
|
|
424
|
+
type StaticEnum<Values extends TEnumValue[]> = (Values[number]);
|
|
425
|
+
type TEnumValue = string | number;
|
|
426
|
+
/** Returns true if the given value is a EnumValue */
|
|
427
|
+
declare function IsEnumValue(value: unknown): value is TEnumValue;
|
|
428
|
+
/** Represents an Enum type. */
|
|
429
|
+
interface TEnum<Values extends TEnumValue[] = TEnumValue[]> extends TSchema {
|
|
430
|
+
'~kind': 'Enum';
|
|
431
|
+
enum: Values;
|
|
432
|
+
}
|
|
433
|
+
/** Creates an Enum type. */
|
|
434
|
+
declare function Enum<Values extends TEnumValue[]>(values: readonly [...Values], options?: TSchemaOptions): TEnum<Values>;
|
|
435
|
+
/** Creates an Enum type from a TypeScript enum declaration. */
|
|
436
|
+
declare function Enum<Enum extends TTypeScriptEnumLike>(value: Enum, options?: TSchemaOptions): TEnum<TTypeScriptEnumToEnumValues<Enum>>;
|
|
437
|
+
/** Returns true if the given value is a TEnum. */
|
|
438
|
+
declare function IsEnum(value: unknown): value is TEnum;
|
|
439
|
+
//#endregion
|
|
440
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/identifier.d.mts
|
|
441
|
+
/** Represents a Identifier. */
|
|
442
|
+
interface TIdentifier<Name extends string = string> extends TSchema {
|
|
443
|
+
'~kind': 'Identifier';
|
|
444
|
+
type: 'identifier';
|
|
445
|
+
name: Name;
|
|
446
|
+
}
|
|
447
|
+
/** Creates an Identifier. */
|
|
448
|
+
declare function Identifier<Name extends string>(name: Name): TIdentifier<Name>;
|
|
449
|
+
/** Returns true if the given value is a TIdentifier. */
|
|
450
|
+
declare function IsIdentifier(value: unknown): value is TIdentifier;
|
|
451
|
+
//#endregion
|
|
452
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/dependent.d.mts
|
|
453
|
+
type StaticDependent<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, If extends TSchema, Then extends TSchema, Else extends TSchema, StaticIf extends unknown = StaticType<Stack, Direction, Context, This, If>, StaticThen extends unknown = StaticType<Stack, Direction, Context, This, Then>, StaticElse extends unknown = StaticType<Stack, Direction, Context, This, Else>, Result extends unknown = (StaticIf & StaticThen) | Exclude<StaticElse, StaticIf>> = Result;
|
|
454
|
+
/** Represents a Dependent Type */
|
|
455
|
+
interface TDependent$1<If extends TSchema = TSchema, Then extends TSchema = TSchema, Else extends TSchema = TSchema> extends TSchema {
|
|
456
|
+
'~kind': 'Dependent';
|
|
457
|
+
if: If;
|
|
458
|
+
then: Then;
|
|
459
|
+
else: Else;
|
|
460
|
+
}
|
|
461
|
+
/** Creates a Dependent type */
|
|
462
|
+
declare function Dependent<If extends TSchema, Then extends TSchema, Else extends TSchema>(if_: If, then_: Then, else_: Else, options?: TSchemaOptions): TDependent$1<If, Then, Else>;
|
|
463
|
+
/** Returns true if the given value is TDependent. */
|
|
464
|
+
declare function IsDependent(value: unknown): value is TDependent$1;
|
|
465
|
+
//#endregion
|
|
466
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/infer.d.mts
|
|
467
|
+
/** Represents an Infer instruction. */
|
|
468
|
+
interface TInfer<Name extends string = string, Extends extends TSchema = TSchema> extends TSchema {
|
|
469
|
+
'~kind': 'Infer';
|
|
470
|
+
type: 'infer';
|
|
471
|
+
name: Name;
|
|
472
|
+
extends: Extends;
|
|
473
|
+
}
|
|
474
|
+
/** Creates an Infer instruction. */
|
|
475
|
+
declare function Infer<Name extends string, Extends extends TSchema>(name: Name, extends_: Extends): TInfer<Name, Extends>;
|
|
476
|
+
/** Creates an Infer instruction. */
|
|
477
|
+
declare function Infer<Name extends string>(name: Name): TInfer<Name, TUnknown>;
|
|
478
|
+
/** Returns true if the given value is TInfer. */
|
|
479
|
+
declare function IsInfer(value: unknown): value is TInfer;
|
|
480
|
+
//#endregion
|
|
481
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/integer.d.mts
|
|
482
|
+
declare const IntegerPattern = "-?(?:0|[1-9][0-9]*)";
|
|
483
|
+
type StaticInteger = number;
|
|
484
|
+
/** Represents an integer type. */
|
|
485
|
+
interface TInteger$1 extends TSchema {
|
|
486
|
+
'~kind': 'Integer';
|
|
487
|
+
type: 'integer';
|
|
488
|
+
}
|
|
489
|
+
/** Creates a Integer type. */
|
|
490
|
+
declare function Integer$1(options?: TNumberOptions): TInteger$1;
|
|
491
|
+
/** Returns true if the given value is TInteger. */
|
|
492
|
+
declare function IsInteger(value: unknown): value is TInteger$1;
|
|
493
|
+
//#endregion
|
|
494
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/intersect.d.mts
|
|
495
|
+
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);
|
|
496
|
+
/** Represents a logical Intersect type. */
|
|
497
|
+
interface TIntersect<Types extends TSchema[] = TSchema[]> extends TSchema {
|
|
498
|
+
'~kind': 'Intersect';
|
|
499
|
+
allOf: Types;
|
|
500
|
+
}
|
|
501
|
+
/** Creates a Intersect type. */
|
|
502
|
+
declare function Intersect<Types extends TSchema[]>(types: [...Types], options?: TIntersectOptions): TIntersect<Types>;
|
|
503
|
+
/** Returns true if the given value is TIntersect. */
|
|
504
|
+
declare function IsIntersect(value: unknown): value is TIntersect;
|
|
505
|
+
//#endregion
|
|
506
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/literal.d.mts
|
|
507
|
+
type StaticLiteral<Value extends TLiteralValue> = (Value);
|
|
508
|
+
type TLiteralTypeName<Value extends TLiteralValue> = (Value extends bigint ? 'bigint' : Value extends boolean ? 'boolean' : Value extends number ? 'number' : Value extends string ? 'string' : never);
|
|
509
|
+
type TLiteralValue = string | number | boolean | bigint;
|
|
510
|
+
/** Represents a Literal type. */
|
|
511
|
+
interface TLiteral<Value extends TLiteralValue = TLiteralValue> extends TSchema {
|
|
512
|
+
'~kind': 'Literal';
|
|
513
|
+
type: TLiteralTypeName<Value>;
|
|
514
|
+
const: Value;
|
|
515
|
+
}
|
|
516
|
+
/** Creates a Literal type. */
|
|
517
|
+
declare function Literal<Value extends TLiteralValue>(value: Value, options?: TSchemaOptions): TLiteral<Value>;
|
|
518
|
+
/** Returns true if the given value is TLiteral. */
|
|
519
|
+
declare function IsLiteral(value: unknown): value is TLiteral;
|
|
520
|
+
//#endregion
|
|
521
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/null.d.mts
|
|
522
|
+
type StaticNull = null;
|
|
523
|
+
/** Represents a Null type. */
|
|
524
|
+
interface TNull extends TSchema {
|
|
525
|
+
'~kind': 'Null';
|
|
526
|
+
type: 'null';
|
|
527
|
+
}
|
|
528
|
+
/** Creates a Null type. */
|
|
529
|
+
declare function Null(options?: TSchemaOptions): TNull;
|
|
530
|
+
/** Returns true if the given value is TNull. */
|
|
531
|
+
declare function IsNull(value: unknown): value is TNull;
|
|
532
|
+
//#endregion
|
|
533
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/number.d.mts
|
|
534
|
+
declare const NumberPattern = "-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?";
|
|
535
|
+
type StaticNumber = number;
|
|
536
|
+
/** Represents a Number type. */
|
|
537
|
+
interface TNumber$1 extends TSchema {
|
|
538
|
+
'~kind': 'Number';
|
|
539
|
+
type: 'number';
|
|
540
|
+
}
|
|
541
|
+
/** Creates a Number type. */
|
|
542
|
+
declare function Number(options?: TNumberOptions): TNumber$1;
|
|
543
|
+
/** Returns true if the given value is a TNumber. */
|
|
544
|
+
declare function IsNumber(value: unknown): value is TNumber$1;
|
|
545
|
+
//#endregion
|
|
546
|
+
//#region node_modules/.pnpm/typebox@1.3.13/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
|
+
/** Creates a Symbol type. */
|
|
554
|
+
declare function Symbol(options?: TSchemaOptions): TSymbol;
|
|
555
|
+
/** Returns true if the given value is TSymbol. */
|
|
556
|
+
declare function IsSymbol(value: unknown): value is TSymbol;
|
|
557
|
+
//#endregion
|
|
558
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/string.d.mts
|
|
559
|
+
declare const StringPattern = ".*";
|
|
560
|
+
type StaticString = string;
|
|
561
|
+
/** Represents a String type. */
|
|
562
|
+
interface TString$1 extends TSchema {
|
|
563
|
+
'~kind': 'String';
|
|
564
|
+
type: 'string';
|
|
565
|
+
}
|
|
566
|
+
/** Creates a String type. */
|
|
567
|
+
declare function String(options?: TStringOptions): TString$1;
|
|
568
|
+
/** Returns true if the given value is TString. */
|
|
569
|
+
declare function IsString(value: unknown): value is TString$1;
|
|
570
|
+
//#endregion
|
|
571
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/system/unreachable/unreachable.d.mts
|
|
572
|
+
type TUnreachable = never;
|
|
573
|
+
//#endregion
|
|
574
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/system/memory/assign.d.mts
|
|
575
|
+
type ObjectLike = Record<PropertyKey, any>;
|
|
576
|
+
/**
|
|
577
|
+
* Performs an Object assign using the Left and Right object types. We track this operation as it
|
|
578
|
+
* creates a new GC handle per assignment.
|
|
579
|
+
*/
|
|
580
|
+
type TAssign<Left extends ObjectLike, Right extends ObjectLike, Assigned extends ObjectLike = Omit<Left, keyof Right> & Right> = { [Key in keyof Assigned]: Assigned[Key]; } & {};
|
|
581
|
+
//#endregion
|
|
582
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/script/mapping.d.mts
|
|
583
|
+
type TIntrinsicOrCall<Target extends string, Parameters extends TSchema[]> = ([Target, Parameters] extends ['Array', [infer Type extends TSchema]] ? TArray<Type> : [Target, Parameters] extends ['Capitalize', [infer Type extends TSchema]] ? TCapitalizeDeferred<Type> : [Target, Parameters] extends ['ConstructorParameters', [infer Type extends TSchema]] ? TConstructorParametersDeferred<Type> : [Target, Parameters] extends ['Evaluate', [infer Type extends TSchema]] ? TEvaluateDeferred<Type> : [Target, Parameters] extends ['Exclude', [infer Left extends TSchema, infer Right extends TSchema]] ? TExcludeDeferred<Left, Right> : [Target, Parameters] extends ['Extract', [infer Left extends TSchema, infer Right extends TSchema]] ? TExtractDeferred<Left, Right> : [Target, Parameters] extends ['Index', [infer Type extends TSchema, infer Indexer extends TSchema]] ? TIndexDeferred<Type, Indexer> : [Target, Parameters] extends ['InstanceType', [infer Type extends TSchema]] ? TInstanceTypeDeferred<Type> : [Target, Parameters] extends ['KeyOf', [infer Type extends TSchema]] ? TKeyOfDeferred<Type> : [Target, Parameters] extends ['Lowercase', [infer Type extends TSchema]] ? TLowercaseDeferred<Type> : [Target, Parameters] extends ['NonNullable', [infer Type extends TSchema]] ? TNonNullableDeferred<Type> : [Target, Parameters] extends ['Omit', [infer Type extends TSchema, infer Indexer extends TSchema]] ? TOmitDeferred<Type, Indexer> : [Target, Parameters] extends ['Parameters', [infer Type extends TSchema]] ? TParametersDeferred<Type> : [Target, Parameters] extends ['Partial', [infer Type extends TSchema]] ? TPartialDeferred<Type> : [Target, Parameters] extends ['Pick', [infer Type extends TSchema, infer Indexer extends TSchema]] ? TPickDeferred<Type, Indexer> : [Target, Parameters] extends ['Readonly', [infer Type extends TSchema]] ? TReadonlyObjectDeferred<Type> : [Target, Parameters] extends ['Record', [infer Key extends TSchema, infer Value extends TSchema]] ? TRecordDeferred<Key, Value> : [Target, Parameters] extends ['Required', [infer Type extends TSchema]] ? TRequiredDeferred<Type> : [Target, Parameters] extends ['ReturnType', [infer Type extends TSchema]] ? TReturnTypeDeferred<Type> : [Target, Parameters] extends ['Uncapitalize', [infer Type extends TSchema]] ? TUncapitalizeDeferred<Type> : [Target, Parameters] extends ['Uppercase', [infer Type extends TSchema]] ? TUppercaseDeferred<Type> : TCallConstruct<TRef<Target>, Parameters>);
|
|
584
|
+
type TDelimitedDecode<Input extends [unknown, unknown][], Result extends unknown[] = []> = (Input extends [infer Left extends [unknown, unknown], ...infer Right extends [unknown, unknown][]] ? TDelimitedDecode<Right, [...Result, Left[1]]> : Result);
|
|
585
|
+
type TDelimited<Input extends [unknown, unknown, unknown] | []> = (Input extends [infer Left extends unknown, infer Right extends [unknown, unknown][], infer _ extends unknown[]] ? [Left, ...TDelimitedDecode<Right>] : []);
|
|
586
|
+
type TGenericParameterExtendsEqualsMapping<Input extends [unknown, unknown, unknown, unknown, unknown]> = (Input extends [infer Name extends string, 'extends', infer Extends extends TSchema, '=', infer Equals extends TSchema] ? TParameter$1<Name, Extends, Equals> : never);
|
|
587
|
+
type TGenericParameterExtendsMapping<Input extends [unknown, unknown, unknown]> = (Input extends [infer Name extends string, 'extends', infer Extends extends TSchema] ? TParameter$1<Name, Extends, Extends> : never);
|
|
588
|
+
type TGenericParameterEqualsMapping<Input extends [unknown, unknown, unknown]> = (Input extends [infer Name extends string, '=', infer Equals extends TSchema] ? TParameter$1<Name, TUnknown, Equals> : never);
|
|
589
|
+
type TGenericParameterIdentifierMapping<Input extends string, Result extends TSchema = TParameter$1<Input, TUnknown, TUnknown>> = Result;
|
|
590
|
+
type TGenericParameterMapping<Input extends unknown> = (Input);
|
|
591
|
+
type TGenericParameterListMapping<Input extends [unknown, unknown, unknown] | []> = (TDelimited<Input>);
|
|
592
|
+
type TGenericParametersMapping<Input extends [unknown, unknown, unknown]> = (Input extends ['<', infer Parameters extends TParameter$1[], '>'] ? Parameters : never);
|
|
593
|
+
type TGenericCallArgumentListMapping<Input extends [unknown, unknown, unknown] | []> = (TDelimited<Input>);
|
|
594
|
+
type TGenericCallArgumentsMapping<Input extends [unknown, unknown, unknown]> = (Input extends ['<', infer Arguments extends TSchema[], '>'] ? Arguments : never);
|
|
595
|
+
type TGenericCallMapping<Input extends [unknown, unknown], Result = Input extends [infer Ref extends string, infer Arguments extends TSchema[]] ? TIntrinsicOrCall<Ref, Arguments> : never> = Result;
|
|
596
|
+
type TOptionalSemiColonMapping<Input extends [unknown] | []> = null;
|
|
597
|
+
type TKeywordStringMapping<Input extends 'string'> = (TString$1);
|
|
598
|
+
type TKeywordNumberMapping<Input extends 'number'> = (TNumber$1);
|
|
599
|
+
type TKeywordBooleanMapping<Input extends 'boolean'> = (TBoolean);
|
|
600
|
+
type TKeywordUndefinedMapping<Input extends 'undefined'> = (TUndefined);
|
|
601
|
+
type TKeywordNullMapping<Input extends 'null'> = (TNull);
|
|
602
|
+
type TKeywordIntegerMapping<Input extends 'integer'> = (TInteger$1);
|
|
603
|
+
type TKeywordBigIntMapping<Input extends 'bigint'> = (TBigInt$1);
|
|
604
|
+
type TKeywordUnknownMapping<Input extends 'unknown'> = (TUnknown);
|
|
605
|
+
type TKeywordAnyMapping<Input extends 'any'> = (TAny);
|
|
606
|
+
type TKeywordObjectMapping<Input extends 'object'> = (TObject<{}>);
|
|
607
|
+
type TKeywordNeverMapping<Input extends 'never'> = (TNever);
|
|
608
|
+
type TKeywordSymbolMapping<Input extends 'symbol'> = (TSymbol);
|
|
609
|
+
type TKeywordVoidMapping<Input extends 'void'> = (TVoid);
|
|
610
|
+
type TKeywordThisMapping<Input extends 'this'> = (TThis);
|
|
611
|
+
type TLiteralBigIntMapping<Input extends string> = (Input extends `${infer Value extends bigint}` ? TLiteral<Value> : never);
|
|
612
|
+
type TLiteralBooleanMapping<Input extends 'true' | 'false'> = (Input extends 'true' ? TLiteral<true> : TLiteral<false>);
|
|
613
|
+
type TLiteralNumberMapping<Input extends string> = (Input extends `${infer Value extends number}` ? TLiteral<Value> : never);
|
|
614
|
+
type TLiteralStringMapping<Input extends string> = (Input extends TLiteralValue ? TLiteral<Input> : never);
|
|
615
|
+
type TTemplateInterpolateMapping<Input extends [unknown, unknown, unknown]> = Input extends ['${', infer Type extends TSchema, '}'] ? Type : never;
|
|
616
|
+
type TTemplateSpanMapping<Input extends string, Result extends TSchema = TLiteral<Input>> = Result;
|
|
617
|
+
type TTemplateBodyMapping<Input extends [unknown, unknown, unknown] | [unknown]> = (Input extends [infer Text extends TSchema, infer Type extends TSchema, infer Rest extends TSchema[]] ? [Text, Type, ...Rest] : Input extends [infer Text extends TSchema] ? [Text] : []);
|
|
618
|
+
type TTemplateLiteralTypesMapping<Input extends [unknown, unknown, unknown], Result extends TSchema = Input extends ['`', infer Types extends TSchema[], '`'] ? Types : []> = Result;
|
|
619
|
+
type TTemplateLiteralMapping<Input extends unknown> = (Input extends (infer Types extends TSchema[]) ? TTemplateLiteralDeferred<Types> : never);
|
|
620
|
+
type TDependentMapping<Input extends [unknown, unknown, unknown, unknown, unknown, unknown] | [unknown, unknown, unknown, unknown]> = (Input extends ['if', infer If extends TSchema, 'then', infer Then extends TSchema, 'else', infer Else extends TSchema] ? TDependent$1<If, Then, Else> : Input extends ['if', infer If extends TSchema, 'then', infer Then extends TSchema] ? TDependent$1<If, Then, TUnknown> : never);
|
|
621
|
+
type TKeyOfMapping<Input extends [unknown] | []> = (Input extends [unknown] ? true : false);
|
|
622
|
+
type TIndexArrayMappingReduce<Input extends unknown[], Result extends unknown[] = []> = (Input extends [infer Left extends unknown, ...infer Right extends unknown[]] ? Left extends ['[', infer Type extends TSchema, ']'] ? TIndexArrayMappingReduce<Right, [...Result, [Type]]> : TIndexArrayMappingReduce<Right, [...Result, []]> : Result);
|
|
623
|
+
type TIndexArrayMapping<Input extends ([unknown, unknown, unknown] | [unknown, unknown])[]> = (Input extends unknown[] ? TIndexArrayMappingReduce<Input> : []);
|
|
624
|
+
type TExtendsMapping<Input extends [unknown, unknown, unknown, unknown, unknown, unknown] | []> = (Input extends ['extends', infer Type extends TSchema, '?', infer True extends TSchema, ':', infer False extends TSchema] ? [Type, True, False] : []);
|
|
625
|
+
type TBaseMapping<Input extends [unknown, unknown, unknown] | unknown> = (Input extends ['(', infer Type extends TSchema, ')'] ? Type : Input extends (infer Type extends TSchema) ? Type : never);
|
|
626
|
+
type TWithMapping<Input extends [unknown, unknown] | []> = (Input extends ['with', infer WithObject extends Record<PropertyKey, unknown>] ? WithObject : []);
|
|
627
|
+
type TFactorIndexArray<Type extends TSchema, IndexArray extends unknown[]> = (IndexArray extends [infer Left extends TSchema[], ...infer Right extends unknown[]] ? (Left extends [infer Indexer extends TSchema] ? TFactorIndexArray<TIndexDeferred<Type, Indexer>, Right> : Left extends [] ? TFactorIndexArray<TArray<Type>, Right> : TNever) : Type);
|
|
628
|
+
type TFactorExtends<Type extends TSchema, Extends extends unknown[]> = (Extends extends [infer Right extends TSchema, infer True extends TSchema, infer False extends TSchema] ? TConditionalDeferred<Type, Right, True, False> : Type);
|
|
629
|
+
type TFactorWith<Type extends TSchema, With extends unknown> = (With extends Record<PropertyKey, unknown> ? TWithDeferred<Type, With> : Type);
|
|
630
|
+
type TFactorMapping<Input extends [unknown, unknown, unknown, unknown, unknown]> = (Input extends [infer KeyOf extends boolean, infer Type extends TSchema, infer IndexArray extends unknown[], infer Extend extends unknown[], infer WithClause extends unknown] ? TFactorWith<KeyOf extends true ? TFactorExtends<TKeyOfDeferred<TFactorIndexArray<Type, IndexArray>>, Extend> : TFactorExtends<TFactorIndexArray<Type, IndexArray>, Extend>, WithClause> : never);
|
|
631
|
+
type TExprBinaryMapping<Left extends TSchema, Rest extends unknown[]> = (Rest extends [infer Operator extends unknown, infer Right extends TSchema, infer Next extends unknown[]] ? (TExprBinaryMapping<Right, Next> extends (infer Schema extends TSchema) ? (Operator extends '&' ? (Schema extends TIntersect<infer Types extends TSchema[]> ? TIntersect<[Left, ...Types]> : TIntersect<[Left, Schema]>) : Operator extends '|' ? (Schema extends TUnion<infer Types extends TSchema[]> ? TUnion<[Left, ...Types]> : TUnion<[Left, Schema]>) : never) : never) : Left);
|
|
632
|
+
type TExprTermTailMapping<Input extends [unknown, unknown, unknown] | []> = (Input);
|
|
633
|
+
type TExprTermMapping<Input extends [unknown, unknown]> = (Input extends [infer Left extends TSchema, infer Rest extends unknown[]] ? TExprBinaryMapping<Left, Rest> : []);
|
|
634
|
+
type TExprTailMapping<Input extends [unknown, unknown, unknown] | []> = (Input);
|
|
635
|
+
type TExprMapping<Input extends [unknown, unknown]> = (Input extends [infer Left extends TSchema, infer Rest extends unknown[]] ? TExprBinaryMapping<Left, Rest> : []);
|
|
636
|
+
type TExprReadonlyMapping<Input extends [unknown, unknown]> = (Input extends ['readonly', infer Type extends TSchema] ? TAddImmutableDeferred<Type> : never);
|
|
637
|
+
type TExprPipeMapping<Input extends [unknown, unknown]> = (Input extends ['|', infer Type extends TSchema] ? Type : never);
|
|
638
|
+
type TGenericTypeMapping<Input extends [unknown, unknown, unknown]> = (Input extends [infer Arguments extends TParameter$1[], '=', infer Type extends TSchema] ? TGeneric<Arguments, Type> : never);
|
|
639
|
+
type TInferTypeMapping<Input extends [unknown, unknown, unknown, unknown] | [unknown, unknown]> = (Input extends ['infer', infer Name extends string, 'extends', infer Type extends TSchema] ? TInfer<Name, Type> : Input extends ['infer', infer Name extends string] ? TInfer<Name, TUnknown> : never);
|
|
640
|
+
type TTypeMapping<Input extends unknown> = (Input);
|
|
641
|
+
type TPropertyKeyNumberMapping<Input extends string> = (`${Input}`);
|
|
642
|
+
type TPropertyKeyIdentMapping<Input extends string> = (Input);
|
|
643
|
+
type TPropertyKeyQuotedMapping<Input extends string> = (Input);
|
|
644
|
+
type TPropertyKeyIndexMapping<Input extends [unknown, unknown, unknown, unknown, unknown]> = (Input extends ['[', string, ':', TInteger$1, ']'] ? TIntegerKey : Input extends ['[', string, ':', TNumber$1, ']'] ? TNumberKey : Input extends ['[', string, ':', TString$1, ']'] ? TStringKey : Input extends ['[', string, ':', TSymbol, ']'] ? TStringKey : never);
|
|
645
|
+
type TPropertyKeyMapping<Input extends unknown> = (Input);
|
|
646
|
+
type TReadonlyMapping<Input extends [unknown] | []> = (Input extends [unknown] ? true : false);
|
|
647
|
+
type TOptionalMapping<Input extends [unknown] | []> = (Input extends [unknown] ? true : false);
|
|
648
|
+
type TPropertyMapping<Input extends [unknown, unknown, unknown, unknown, unknown]> = (Input extends [infer IsReadonly extends boolean, infer Key extends string, infer IsOptional extends boolean, string, infer Type extends TSchema] ? { [_ in Key]: ([IsReadonly, IsOptional] extends [true, true] ? TAddReadonlyDeferred<TAddOptionalDeferred<Type>> : [IsReadonly, IsOptional] extends [true, false] ? TAddReadonlyDeferred<Type> : [IsReadonly, IsOptional] extends [false, true] ? TAddOptionalDeferred<Type> : Type); } : never);
|
|
649
|
+
type TPropertyDelimiterMapping<Input extends [unknown, unknown] | [unknown]> = (Input);
|
|
650
|
+
type TPropertyListMapping<Input extends [unknown, unknown, unknown] | []> = (TDelimited<Input>);
|
|
651
|
+
type TPropertiesReduce<PropertiesList extends TProperties[], Result extends [properties: TProperties, patternProperties: TProperties] = [{}, {}]> = (PropertiesList extends [infer Left extends TProperties, ...infer Right extends TProperties[]] ? (Left extends { [_ in TIntegerKey]: TSchema; } ? TPropertiesReduce<Right, [Result[0], TAssign<Result[1], Left>]> : Left extends { [_ in TNumberKey]: TSchema; } ? TPropertiesReduce<Right, [Result[0], TAssign<Result[1], Left>]> : Left extends { [_ in TStringKey]: TSchema; } ? TPropertiesReduce<Right, [Result[0], TAssign<Result[1], Left>]> : TPropertiesReduce<Right, [TAssign<Result[0], Left>, Result[1]]>) : { [Key in keyof Result]: Result[Key]; });
|
|
652
|
+
type TPropertiesMapping<Input extends [unknown, unknown, unknown], Result extends [TProperties, TProperties] = Input extends ['{', infer PropertyList extends TProperties[], '}'] ? TPropertiesReduce<PropertyList> : [{}, {}]> = Result;
|
|
653
|
+
type T_Object_Mapping<Input extends unknown> = (Input extends [infer Properties extends TProperties, infer _PatternProperties extends TProperties] ? TObject<Properties> : never);
|
|
654
|
+
type TElementNamedMapping<Input extends [unknown, unknown, unknown, unknown, unknown] | [unknown, unknown, unknown, unknown] | [unknown, unknown, unknown]> = (Input extends [string, '?', ':', 'readonly', infer Type extends TSchema] ? TAddReadonlyDeferred<TAddOptionalDeferred<Type>> : Input extends [string, /**/ ':', 'readonly', infer Type extends TSchema] ? TAddReadonlyDeferred<Type> : Input extends [string, '?', ':', /* */ infer Type extends TSchema] ? TAddOptionalDeferred<Type> : Input extends [string, /**/ ':', /* */ infer Type extends TSchema] ? Type : never);
|
|
655
|
+
type TElementBaseMapping<Input extends unknown | [unknown, unknown, unknown]> = (Input extends [infer IsReadonly extends boolean, infer Type extends TSchema, infer IsOptional extends boolean] ? ([IsReadonly, IsOptional] extends [true, true] ? TAddReadonlyDeferred<TAddOptionalDeferred<Type>> : [IsReadonly, IsOptional] extends [true, false] ? TAddReadonlyDeferred<Type> : [IsReadonly, IsOptional] extends [false, true] ? TAddOptionalDeferred<Type> : Type) : Input);
|
|
656
|
+
type TElementMapping<Input extends [unknown, unknown] | [unknown]> = (Input extends ['...', infer Type extends TSchema] ? TRest<Type> : Input extends [infer Type extends TSchema] ? Type : never);
|
|
657
|
+
type TElementListMapping<Input extends [unknown, unknown, unknown] | []> = (TDelimited<Input>);
|
|
658
|
+
type T_Tuple_Mapping<Input extends [unknown, unknown, unknown]> = (Input extends ['[', infer Types extends TSchema[], ']'] ? TTuple<Types> : never);
|
|
659
|
+
type TParameterReadonlyOptionalMapping<Input extends [unknown, unknown, unknown, unknown, unknown]> = (Input extends [string, '?', ':', 'readonly', infer Type extends TSchema] ? TAddReadonlyDeferred<TAddOptionalDeferred<Type>> : never);
|
|
660
|
+
type TParameterReadonlyMapping<Input extends [unknown, unknown, unknown, unknown]> = (Input extends [string, ':', 'readonly', infer Type extends TSchema] ? TAddReadonlyDeferred<Type> : never);
|
|
661
|
+
type TParameterOptionalMapping<Input extends [unknown, unknown, unknown, unknown]> = (Input extends [string, '?', ':', infer Type extends TSchema] ? TAddOptionalDeferred<Type> : never);
|
|
662
|
+
type TParameterTypeMapping<Input extends [unknown, unknown, unknown]> = (Input extends [string, ':', infer Type extends TSchema] ? Type : never);
|
|
663
|
+
type TParameterBaseMapping<Input extends unknown> = (Input);
|
|
664
|
+
type TParameterMapping<Input extends [unknown, unknown] | [unknown]> = (Input extends ['...', infer Type extends TSchema] ? TRest<Type> : Input extends [infer Type extends TSchema] ? Type : never);
|
|
665
|
+
type TParameterListMapping<Input extends [unknown, unknown, unknown] | []> = (TDelimited<Input>);
|
|
666
|
+
type T_Function_Mapping<Input extends [unknown, unknown, unknown, unknown, unknown]> = (Input extends ['(', infer ParameterList extends TSchema[], ')', '=>', infer ReturnType extends TSchema] ? TFunction<ParameterList, ReturnType> : never);
|
|
667
|
+
type T_Constructor_Mapping<Input extends [unknown, unknown, unknown, unknown, unknown, unknown]> = (Input extends ['new', '(', infer ParameterList extends TSchema[], ')', '=>', infer InstanceType extends TSchema] ? TConstructor<ParameterList, InstanceType> : never);
|
|
668
|
+
type TModifierOperation = 'add' | 'remove' | 'none';
|
|
669
|
+
type TApplyReadonly<Readonly extends TModifierOperation, Type extends TSchema> = (Readonly extends 'remove' ? TRemoveReadonlyDeferred<Type> : Readonly extends 'add' ? TAddReadonlyDeferred<Type> : Type);
|
|
670
|
+
type TMappedReadonlyMapping<Input extends [unknown, unknown] | [unknown] | []> = (Input extends ['-', 'readonly'] ? 'remove' : Input extends ['+', 'readonly'] ? 'add' : Input extends ['readonly'] ? 'add' : 'none');
|
|
671
|
+
type TApplyOptional<Optional extends TModifierOperation, Type extends TSchema> = (Optional extends 'remove' ? TRemoveOptionalDeferred<Type> : Optional extends 'add' ? TAddOptionalDeferred<Type> : Type);
|
|
672
|
+
type TMappedOptionalMapping<Input extends [unknown, unknown] | [unknown] | []> = (Input extends ['-', '?'] ? 'remove' : Input extends ['+', '?'] ? 'add' : Input extends ['?'] ? 'add' : 'none');
|
|
673
|
+
type TMappedAsMapping<Input extends [unknown, unknown] | []> = (Input extends ['as', infer Type extends TSchema] ? [Type] : []);
|
|
674
|
+
type T_Mapped_Mapping<Input extends [unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown]> = (Input extends ['{', infer Readonly extends TModifierOperation, '[', infer Key extends string, 'in', infer Type extends TSchema, infer As extends TSchema[], ']', infer Optional extends TModifierOperation, ':', infer Property extends TSchema, null, '}'] ? (As extends [infer As extends TSchema] ? TMappedDeferred<TIdentifier<Key>, Type, As, TApplyReadonly<Readonly, TApplyOptional<Optional, Property>>> : TMappedDeferred<TIdentifier<Key>, Type, TRef<Key>, TApplyReadonly<Readonly, TApplyOptional<Optional, Property>>>) : never);
|
|
675
|
+
type TReferenceMapping<Input extends string, Result extends TSchema = TRef<Input>> = Result;
|
|
676
|
+
type TWithBigIntMapping<Input extends string> = (Input extends `${infer Value extends bigint}` ? Value : never);
|
|
677
|
+
type TWithNumberMapping<Input extends string> = (Input extends `${infer Value extends number}` ? Value : never);
|
|
678
|
+
type TWithBooleanMapping<Input extends 'true' | 'false'> = (Input extends 'true' ? true : false);
|
|
679
|
+
type TWithStringMapping<Input extends string> = (Input);
|
|
680
|
+
type TWithNullMapping<Input extends 'null'> = (null);
|
|
681
|
+
type TWithUndefinedMapping<Input extends 'undefined'> = undefined;
|
|
682
|
+
type TWithPropertyMapping<Input extends [unknown, unknown, unknown]> = (Input extends [infer Key extends string, ':', infer Value extends unknown] ? { [_ in Key]: Value; } : never);
|
|
683
|
+
type TWithPropertyListMapping<Input extends [unknown, unknown, unknown] | []> = (TDelimited<Input>);
|
|
684
|
+
type TWithObjectMappingReduce<PropertyList extends Record<PropertyKey, unknown>[], Result extends Record<PropertyKey, unknown> = {}> = (PropertyList extends [infer Left extends Record<PropertyKey, unknown>, ...infer Right extends Record<PropertyKey, unknown>[]] ? TWithObjectMappingReduce<Right, TAssign<Result, Left>> : { [Key in keyof Result]: Result[Key]; });
|
|
685
|
+
type TWithObjectMapping<Input extends [unknown, unknown, unknown]> = (Input extends ['{', infer PropertyList extends Record<PropertyKey, unknown>[], '}'] ? TWithObjectMappingReduce<PropertyList> : {});
|
|
686
|
+
type TWithElementListMapping<Input extends [unknown, unknown, unknown] | []> = (TDelimited<Input>);
|
|
687
|
+
type TWithArrayMapping<Input extends [unknown, unknown, unknown]> = (Input extends ['[', infer Elements extends unknown[], ']'] ? Elements : never);
|
|
688
|
+
type TWithValueMapping<Input extends unknown> = (Input);
|
|
689
|
+
type TPatternBigIntMapping<Input extends '-?(?:0|[1-9][0-9]*)n'> = (TBigInt$1);
|
|
690
|
+
type TPatternStringMapping<Input extends '.*'> = (TString$1);
|
|
691
|
+
type TPatternNumberMapping<Input extends '-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?'> = (TNumber$1);
|
|
692
|
+
type TPatternIntegerMapping<Input extends '-?(?:0|[1-9][0-9]*)'> = (TInteger$1);
|
|
693
|
+
type TPatternNeverMapping<Input extends '(?!)'> = (TNever);
|
|
694
|
+
type TPatternTextMapping<Input extends string, Result extends TSchema = TLiteral<Input>> = Result;
|
|
695
|
+
type TPatternBaseMapping<Input extends unknown> = (Input);
|
|
696
|
+
type TPatternGroupMapping<Input extends [unknown, unknown, unknown]> = (Input extends ['(', infer Body extends TSchema[], ')'] ? TUnion<Body> : never);
|
|
697
|
+
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] : []);
|
|
698
|
+
type TPatternTermMapping<Input extends [unknown, unknown]> = (Input extends [infer Left extends TSchema, infer Right extends TSchema[]] ? [Left, ...Right] : never);
|
|
699
|
+
type TPatternBodyMapping<Input extends unknown> = (Input);
|
|
700
|
+
type TPatternMapping<Input extends [unknown, unknown, unknown]> = (Input extends ['^', infer Body extends TSchema[], '$'] ? Body : never);
|
|
701
|
+
type TInterfaceDeclarationHeritageListMapping<Input extends [unknown, unknown, unknown] | []> = (TDelimited<Input>);
|
|
702
|
+
type TInterfaceDeclarationHeritageMapping<Input extends [unknown, unknown] | []> = (Input extends ['extends', infer Heritage extends TSchema[]] ? Heritage : []);
|
|
703
|
+
type TInterfaceDeclarationGenericMapping<Input extends [unknown, unknown, unknown, unknown, unknown]> = (Input extends ['interface', infer Name extends string, infer Parameters extends TParameter$1[], infer Heritage extends TSchema[], infer Properties extends [TProperties, TProperties]] ? { [_ in Name]: TGeneric<Parameters, TInterfaceDeferred<Heritage, Properties[0]>>; } : never);
|
|
704
|
+
type TInterfaceDeclarationMapping<Input extends [unknown, unknown, unknown, unknown]> = (Input extends ['interface', infer Name extends string, infer Heritage extends TSchema[], infer Properties extends [TProperties, TProperties]] ? { [_ in Name]: TInterfaceDeferred<Heritage, Properties[0]>; } : never);
|
|
705
|
+
type TTypeAliasDeclarationGenericMapping<Input extends [unknown, unknown, unknown, unknown, unknown]> = (Input extends ['type', infer Name extends string, infer Parameters extends TParameter$1[], '=', infer Type extends TSchema] ? { [_ in Name]: TGeneric<Parameters, Type>; } : never);
|
|
706
|
+
type TTypeAliasDeclarationMapping<Input extends [unknown, unknown, unknown, unknown]> = (Input extends ['type', infer Name extends string, '=', infer Type extends TSchema] ? { [_ in Name]: Type; } : never);
|
|
707
|
+
type TExportKeywordMapping<Input extends [unknown] | []> = (null);
|
|
708
|
+
type TModuleDeclarationDelimiterMapping<Input extends [unknown, unknown] | [unknown]> = (Input);
|
|
709
|
+
type TModuleDeclarationListMapping<Input extends [unknown, unknown, unknown] | []> = (TDelimited<Input>);
|
|
710
|
+
type TModuleDeclarationMapping<Input extends [unknown, unknown, unknown]> = (Input extends [null, infer ModuleDeclaration extends TProperties, null] ? ModuleDeclaration : never);
|
|
711
|
+
type TModuleMapping<Input extends [unknown, unknown]> = (Input extends [infer ModuleDeclaration extends TProperties, infer ModuleDeclarationList extends TProperties[]] ? TModuleDeferred<TAssign<ModuleDeclaration, TPropertiesReduce<ModuleDeclarationList>[0]>> : never);
|
|
712
|
+
type TScriptMapping<Input extends unknown> = (Input);
|
|
713
|
+
//#endregion
|
|
714
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/script/token/internal/take.d.mts
|
|
715
|
+
type TTakeVariant<Variant extends string, Input extends string> = (Input extends `${Variant}${infer Rest extends string}` ? [Variant, Rest] : []);
|
|
716
|
+
/** Takes one of the given variants or fail */
|
|
717
|
+
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> : []);
|
|
718
|
+
/** Takes one of the given variants or fail */
|
|
719
|
+
declare function Take<Variants extends string[], Input extends string>(variants: [...Variants], input: Input): TTake<Variants, Input>;
|
|
720
|
+
//#endregion
|
|
721
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/script/token/internal/char.d.mts
|
|
722
|
+
type TAlpha = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'];
|
|
723
|
+
type TZero = typeof Zero$1;
|
|
724
|
+
type TNonZero = ['1', '2', '3', '4', '5', '6', '7', '8', '9'];
|
|
725
|
+
type TDigit = [TZero, ...TNonZero];
|
|
726
|
+
declare const Zero$1 = "0";
|
|
727
|
+
declare const WhiteSpace = " ";
|
|
728
|
+
declare const NewLine = "\n";
|
|
729
|
+
declare const TabSpace = "\t";
|
|
730
|
+
declare const UnderScore = "_";
|
|
731
|
+
declare const Dot$1 = ".";
|
|
732
|
+
declare const DollarSign = "$";
|
|
733
|
+
declare const Hyphen = "-";
|
|
734
|
+
type TWhiteSpace = typeof WhiteSpace;
|
|
735
|
+
type TNewLine = typeof NewLine;
|
|
736
|
+
type TTabSpace = typeof TabSpace;
|
|
737
|
+
type TUnderScore = typeof UnderScore;
|
|
738
|
+
type TDot = typeof Dot$1;
|
|
739
|
+
type TDollarSign = typeof DollarSign;
|
|
740
|
+
type THyphen = typeof Hyphen;
|
|
741
|
+
//#endregion
|
|
742
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/script/token/internal/trim.d.mts
|
|
743
|
+
type LineComment = typeof LineComment;
|
|
744
|
+
type OpenComment = typeof OpenComment;
|
|
745
|
+
type CloseComment = typeof CloseComment;
|
|
746
|
+
declare const LineComment = "//";
|
|
747
|
+
declare const OpenComment = "/*";
|
|
748
|
+
declare const CloseComment = "*/";
|
|
749
|
+
type TDiscardMultiLineComment<Input extends string> = (Input extends `${string}${CloseComment}${infer Rest extends string}` ? Rest : '');
|
|
750
|
+
type TDiscardLineComment<Input extends string> = (Input extends `${string}${TNewLine}${infer Rest extends string}` ? TTrimWhitespace<`${TNewLine}${Rest}`> : '');
|
|
751
|
+
type W4 = `${W3}${W3}`;
|
|
752
|
+
type W3 = `${W2}${W2}`;
|
|
753
|
+
type W2 = `${W1}${W1}`;
|
|
754
|
+
type W1 = `${W0}${W0}`;
|
|
755
|
+
type W0 = ` `;
|
|
756
|
+
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);
|
|
757
|
+
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);
|
|
758
|
+
//#endregion
|
|
759
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/script/token/internal/optional.d.mts
|
|
760
|
+
/** Matches the given Value or empty string if no match. This function never fails */
|
|
761
|
+
type TOptional$2<Value extends string, Input extends string> = (TTake<[Value], Input> extends [infer Optional extends string, infer Rest extends string] ? [Optional$2, Rest] : ['', Input]);
|
|
762
|
+
/** Matches the given Value or empty string if no match. This function never fails */
|
|
763
|
+
declare function Optional$2<Value extends string, Input extends string>(value: Value, input: Input): TOptional$2<Value, Value>;
|
|
764
|
+
//#endregion
|
|
765
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/script/token/internal/many.d.mts
|
|
766
|
+
type TIsDiscard<Discard extends string[], Input extends string> = (Discard extends [infer Left extends string, ...infer Right extends string[]] ? Input extends Left ? true : TIsDiscard<Right, Input> : false);
|
|
767
|
+
/** Takes characters from the Input until no-match. The Discard set is used to omit characters from the match */
|
|
768
|
+
type TMany<Allowed extends string[], Discard extends string[], Input extends string, Result extends string = ''> = (TTake<Allowed, Input> extends [infer Char extends string, infer Rest extends string] ? TIsDiscard<Discard, Char> extends true ? TMany<Allowed, Discard, Rest, Result> : TMany<Allowed, Discard, Rest, `${Result}${Char}`> : [Result, Input]);
|
|
769
|
+
//#endregion
|
|
770
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/script/token/unsigned_integer.d.mts
|
|
771
|
+
type TTakeNonZero<Input extends string> = (TTake<TNonZero, Input>);
|
|
772
|
+
type TAllowedDigits$1 = [...TDigit, TUnderScore];
|
|
773
|
+
type TTakeDigits<Input extends string> = (TMany<TAllowedDigits$1, [TUnderScore], Input>);
|
|
774
|
+
type TTakeUnsignedInteger<Input extends string> = (TTake<[TZero], Input> extends [infer Zero extends string, infer ZeroRest extends string] ? [Zero, ZeroRest] : TTakeNonZero<Input> extends [infer NonZero extends string, infer NonZeroRest extends string] ? TTakeDigits<NonZeroRest> extends [infer Digits extends string, infer DigitsRest extends string] ? [`${NonZero}${Digits}`, DigitsRest] : [] : []);
|
|
775
|
+
/** Matches if next is a UnsignedInteger */
|
|
776
|
+
type TUnsignedInteger<Input extends string> = (TTakeUnsignedInteger<TTrim<Input>>);
|
|
777
|
+
//#endregion
|
|
778
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/script/token/integer.d.mts
|
|
779
|
+
type TTakeSign$1<Input extends string> = (TOptional$2<THyphen, Input>);
|
|
780
|
+
type TTakeSignedInteger<Input extends string> = (TTakeSign$1<Input> extends [infer Sign extends string, infer SignRest extends string] ? TUnsignedInteger<SignRest> extends [infer UnsignedInteger extends string, infer UnsignedIntegerRest extends string] ? [`${Sign}${UnsignedInteger}`, UnsignedIntegerRest] : [] : []);
|
|
781
|
+
/** Matches if next is a signed or unsigned Integer */
|
|
782
|
+
type TInteger<Input extends string> = (TTakeSignedInteger<TTrim<Input>>);
|
|
783
|
+
//#endregion
|
|
784
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/script/token/bigint.d.mts
|
|
785
|
+
type TTakeBigInt<Input extends string> = (TInteger<Input> extends [infer Integer extends string, infer IntegerRest extends string] ? TTake<['n'], IntegerRest> extends [infer _N extends string, infer NRest extends string] ? [`${Integer}`, NRest] : [] : []);
|
|
786
|
+
/** Matches if next is a Integer literal with trailing 'n'. Trailing 'n' is omitted in result. */
|
|
787
|
+
type TBigInt<Input extends string> = (TTakeBigInt<Input>);
|
|
788
|
+
//#endregion
|
|
789
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/script/token/const.d.mts
|
|
790
|
+
type TTakeConst<Const extends string, Input extends string> = (TTake<[Const], Input>);
|
|
791
|
+
/** Matches if next is the given Const value */
|
|
792
|
+
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);
|
|
793
|
+
//#endregion
|
|
794
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/script/token/ident.d.mts
|
|
795
|
+
type TInitial = [...TAlpha, TUnderScore, TDollarSign];
|
|
796
|
+
type TTakeInitial$1<Input extends string> = (TTake<TInitial, Input>);
|
|
797
|
+
type TRemaining = [...TInitial, ...TDigit];
|
|
798
|
+
type TTakeRemaining<Input extends string, Result extends string = ''> = (TTake<TRemaining, Input> extends [infer Remaining extends string, infer RemainingRest extends string] ? TTakeRemaining<RemainingRest, `${Result}${Remaining}`> : [Result, Input]);
|
|
799
|
+
type TTakeIdent<Input extends string> = (TTakeInitial$1<Input> extends [infer Initial extends string, infer InitialRest extends string] ? TTakeRemaining<InitialRest> extends [infer Remaining extends string, infer RemainingRest extends string] ? [`${Initial}${Remaining}`, RemainingRest] : [] : []);
|
|
800
|
+
/** Matches if next is an Ident */
|
|
801
|
+
type TIdent<Input extends string> = (TTakeIdent<TTrim<Input>>);
|
|
802
|
+
//#endregion
|
|
803
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/script/token/unsigned_number.d.mts
|
|
804
|
+
type TAllowedDigits = [...TDigit, TUnderScore];
|
|
805
|
+
type TIsLeadingDot<Input extends string> = (TTake<[TDot], Input> extends [string, string] ? true : false);
|
|
806
|
+
type TTakeFractional<Input extends string> = (TMany<TAllowedDigits, [TUnderScore], Input> extends [infer Digits extends string, infer DigitsRest extends string] ? Digits extends '' ? [] : [Digits, DigitsRest] : []);
|
|
807
|
+
type TLeadingDot<Input extends string> = (TTake<[TDot], Input> extends [infer Dot extends string, infer DotRest extends string] ? TTakeFractional<DotRest> extends [infer Fractional extends string, infer FractionalRest extends string] ? [`0${Dot}${Fractional}`, FractionalRest] : [] : []);
|
|
808
|
+
type TLeadingInteger<Input extends string> = (TUnsignedInteger<Input> extends [infer Integer extends string, infer IntegerRest extends string] ? TTake<[TDot], IntegerRest> extends [infer Dot extends string, infer DotRest extends string] ? TTakeFractional<DotRest> extends [infer Fractional extends string, infer FractionalRest extends string] ? [`${Integer}${Dot}${Fractional}`, FractionalRest] : [`${Integer}`, DotRest] : [`${Integer}`, IntegerRest] : []);
|
|
809
|
+
type TTakeUnsignedNumber<Input extends string> = (TIsLeadingDot<Input> extends true ? TLeadingDot<Input> : TLeadingInteger<Input>);
|
|
810
|
+
/** Matches if next is a UnsignedNumber */
|
|
811
|
+
type TUnsignedNumber<Input extends string> = (TTakeUnsignedNumber<TTrim<Input>>);
|
|
812
|
+
//#endregion
|
|
813
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/script/token/number.d.mts
|
|
814
|
+
type TTakeSign<Input extends string> = (TOptional$2<THyphen, Input>);
|
|
815
|
+
type TTakeSignedNumber<Input extends string> = (TTakeSign<Input> extends [infer Sign extends string, infer SignRest extends string] ? TUnsignedNumber<SignRest> extends [infer UnsignedInteger extends string, infer UnsignedIntegerRest extends string] ? [`${Sign}${UnsignedInteger}`, UnsignedIntegerRest] : [] : []);
|
|
816
|
+
/** Matches if next is a signed or unsigned Number */
|
|
817
|
+
type TNumber<Input extends string> = (TTakeSignedNumber<TTrim<Input>>);
|
|
818
|
+
//#endregion
|
|
819
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/script/token/until.d.mts
|
|
820
|
+
type TTakeOne<Input extends string> = (Input extends `${infer Left extends string}${infer Right extends string}` ? [Left, Right] : []);
|
|
821
|
+
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);
|
|
822
|
+
/** Match Input until but not including End. No match if End not found. */
|
|
823
|
+
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}`> : []);
|
|
824
|
+
//#endregion
|
|
825
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/script/token/span.d.mts
|
|
826
|
+
type TMultiLine<Start extends string, End extends string, Input extends string> = (TTake<[Start], Input> extends [infer _, infer Rest extends string] ? TUntil<[End], Rest> extends [infer Until extends string, infer UntilRest extends string] ? TTake<[End], UntilRest> extends [infer _ extends string, infer Rest extends string] ? [`${Until}`, Rest] : [] : [] : []);
|
|
827
|
+
type TSingleLine<Start extends string, End extends string, Input extends string> = (TTake<[Start], Input> extends [infer _ extends string, infer Rest extends string] ? TUntil<[TNewLine, End], Rest> extends [infer Until extends string, infer UntilRest extends string] ? TTake<[End], UntilRest> extends [infer _ extends string, infer EndRest extends string] ? [`${Until}`, EndRest] : [] : [] : []);
|
|
828
|
+
/** Matches from Start and End capturing everything in-between. Start and End are consumed. */
|
|
829
|
+
type TSpan<Start extends string, End extends string, MultiLine extends boolean, Input extends string> = (MultiLine extends true ? TMultiLine<Start, End, TTrim<Input>> : TSingleLine<Start, End, TTrim<Input>>);
|
|
830
|
+
//#endregion
|
|
831
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/script/token/string.d.mts
|
|
832
|
+
type TTakeInitial<Quotes extends string[], Input extends string> = (TTake<Quotes, Input>);
|
|
833
|
+
type TTakeSpan<Quote extends string, Input extends string> = (TSpan<Quote, Quote, false, Input>);
|
|
834
|
+
type TTakeString<Quotes extends string[], Input extends string> = (TTakeInitial<Quotes, Input> extends [infer Initial extends string, infer InitialRest extends string] ? TTakeSpan<Initial, `${Initial}${InitialRest}`> : []);
|
|
835
|
+
/** Matches a literal String with the given quotes */
|
|
836
|
+
type TString<Quotes extends string[], Input extends string> = (TTakeString<Quotes, TTrim<Input>>);
|
|
837
|
+
//#endregion
|
|
838
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/script/token/until_1.d.mts
|
|
839
|
+
/** Match Input until but not including End. No match if End not found or match is zero-length. */
|
|
840
|
+
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] : []);
|
|
841
|
+
//#endregion
|
|
842
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/script/parser.d.mts
|
|
843
|
+
type TGenericParameterExtendsEquals<Input extends string> = (TIdent<Input> extends [infer _0, infer Input extends string] ? (TConst<'extends', Input> extends [infer _1, infer Input extends string] ? (TType<Input> extends [infer _2, infer Input extends string] ? (TConst<'=', Input> extends [infer _3, infer Input extends string] ? (TType<Input> extends [infer _4, infer Input extends string] ? [[_0, _1, _2, _3, _4], Input] : []) : []) : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown, unknown, unknown], infer Input extends string] ? [TGenericParameterExtendsEqualsMapping<_0>, Input] : [];
|
|
844
|
+
type TGenericParameterExtends<Input extends string> = (TIdent<Input> extends [infer _0, infer Input extends string] ? (TConst<'extends', Input> extends [infer _1, infer Input extends string] ? (TType<Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown], infer Input extends string] ? [TGenericParameterExtendsMapping<_0>, Input] : [];
|
|
845
|
+
type TGenericParameterEquals<Input extends string> = (TIdent<Input> extends [infer _0, infer Input extends string] ? (TConst<'=', Input> extends [infer _1, infer Input extends string] ? (TType<Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown], infer Input extends string] ? [TGenericParameterEqualsMapping<_0>, Input] : [];
|
|
846
|
+
type TGenericParameterIdentifier<Input extends string> = TIdent<Input> extends [infer _0 extends string, infer Input extends string] ? [TGenericParameterIdentifierMapping<_0>, Input] : [];
|
|
847
|
+
type TGenericParameter<Input extends string> = (TGenericParameterExtendsEquals<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TGenericParameterExtends<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TGenericParameterEquals<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TGenericParameterIdentifier<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends unknown, infer Input extends string] ? [TGenericParameterMapping<_0>, Input] : [];
|
|
848
|
+
type TGenericParameterList_0<Input extends string, Result extends unknown[] = []> = (TConst<',', Input> extends [infer _0, infer Input extends string] ? (TGenericParameter<Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? TGenericParameterList_0<Input, [...Result, _0]> : [Result, Input];
|
|
849
|
+
type TGenericParameterList<Input extends string> = ((TGenericParameter<Input> extends [infer _0, infer Input extends string] ? (TGenericParameterList_0<Input> extends [infer _1, infer Input extends string] ? ((TConst<',', Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : [[], Input]) extends [infer _2, infer Input extends string] ? [[_0, _1, _2], 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] | [], infer Input extends string] ? [TGenericParameterListMapping<_0>, Input] : [];
|
|
850
|
+
type TGenericParameters<Input extends string> = (TConst<'<', Input> extends [infer _0, infer Input extends string] ? (TGenericParameterList<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] ? [TGenericParametersMapping<_0>, Input] : [];
|
|
851
|
+
type TGenericCallArgumentList_0<Input extends string, Result extends unknown[] = []> = (TConst<',', Input> extends [infer _0, infer Input extends string] ? (TType<Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? TGenericCallArgumentList_0<Input, [...Result, _0]> : [Result, Input];
|
|
852
|
+
type TGenericCallArgumentList<Input extends string> = ((TType<Input> extends [infer _0, infer Input extends string] ? (TGenericCallArgumentList_0<Input> extends [infer _1, infer Input extends string] ? ((TConst<',', Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : [[], Input]) extends [infer _2, infer Input extends string] ? [[_0, _1, _2], 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] | [], infer Input extends string] ? [TGenericCallArgumentListMapping<_0>, Input] : [];
|
|
853
|
+
type TGenericCallArguments<Input extends string> = (TConst<'<', Input> extends [infer _0, infer Input extends string] ? (TGenericCallArgumentList<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] ? [TGenericCallArgumentsMapping<_0>, Input] : [];
|
|
854
|
+
type TGenericCall<Input extends string> = (TIdent<Input> extends [infer _0, infer Input extends string] ? (TGenericCallArguments<Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0 extends [unknown, unknown], infer Input extends string] ? [TGenericCallMapping<_0>, Input] : [];
|
|
855
|
+
type TOptionalSemiColon<Input extends string> = ((TConst<';', 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] | [], infer Input extends string] ? [TOptionalSemiColonMapping<_0>, Input] : [];
|
|
856
|
+
type TKeywordString<Input extends string> = TConst<'string', Input> extends [infer _0 extends 'string', infer Input extends string] ? [TKeywordStringMapping<_0>, Input] : [];
|
|
857
|
+
type TKeywordNumber<Input extends string> = TConst<'number', Input> extends [infer _0 extends 'number', infer Input extends string] ? [TKeywordNumberMapping<_0>, Input] : [];
|
|
858
|
+
type TKeywordBoolean<Input extends string> = TConst<'boolean', Input> extends [infer _0 extends 'boolean', infer Input extends string] ? [TKeywordBooleanMapping<_0>, Input] : [];
|
|
859
|
+
type TKeywordUndefined<Input extends string> = TConst<'undefined', Input> extends [infer _0 extends 'undefined', infer Input extends string] ? [TKeywordUndefinedMapping<_0>, Input] : [];
|
|
860
|
+
type TKeywordNull<Input extends string> = TConst<'null', Input> extends [infer _0 extends 'null', infer Input extends string] ? [TKeywordNullMapping<_0>, Input] : [];
|
|
861
|
+
type TKeywordInteger<Input extends string> = TConst<'integer', Input> extends [infer _0 extends 'integer', infer Input extends string] ? [TKeywordIntegerMapping<_0>, Input] : [];
|
|
862
|
+
type TKeywordBigInt<Input extends string> = TConst<'bigint', Input> extends [infer _0 extends 'bigint', infer Input extends string] ? [TKeywordBigIntMapping<_0>, Input] : [];
|
|
863
|
+
type TKeywordUnknown<Input extends string> = TConst<'unknown', Input> extends [infer _0 extends 'unknown', infer Input extends string] ? [TKeywordUnknownMapping<_0>, Input] : [];
|
|
864
|
+
type TKeywordAny<Input extends string> = TConst<'any', Input> extends [infer _0 extends 'any', infer Input extends string] ? [TKeywordAnyMapping<_0>, Input] : [];
|
|
865
|
+
type TKeywordObject<Input extends string> = TConst<'object', Input> extends [infer _0 extends 'object', infer Input extends string] ? [TKeywordObjectMapping<_0>, Input] : [];
|
|
866
|
+
type TKeywordNever<Input extends string> = TConst<'never', Input> extends [infer _0 extends 'never', infer Input extends string] ? [TKeywordNeverMapping<_0>, Input] : [];
|
|
867
|
+
type TKeywordSymbol<Input extends string> = TConst<'symbol', Input> extends [infer _0 extends 'symbol', infer Input extends string] ? [TKeywordSymbolMapping<_0>, Input] : [];
|
|
868
|
+
type TKeywordVoid<Input extends string> = TConst<'void', Input> extends [infer _0 extends 'void', infer Input extends string] ? [TKeywordVoidMapping<_0>, Input] : [];
|
|
869
|
+
type TKeywordThis<Input extends string> = TConst<'this', Input> extends [infer _0 extends 'this', infer Input extends string] ? [TKeywordThisMapping<_0>, Input] : [];
|
|
870
|
+
type TTemplateInterpolate<Input extends string> = (TConst<'${', Input> extends [infer _0, infer Input extends string] ? (TType<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] ? [TTemplateInterpolateMapping<_0>, Input] : [];
|
|
871
|
+
type TTemplateSpan<Input extends string> = TUntil<['${', '`'], Input> extends [infer _0 extends string, infer Input extends string] ? [TTemplateSpanMapping<_0>, Input] : [];
|
|
872
|
+
type TTemplateBody<Input extends string> = ((TTemplateSpan<Input> extends [infer _0, infer Input extends string] ? (TTemplateInterpolate<Input> extends [infer _1, infer Input extends string] ? (TTemplateBody<Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TTemplateSpan<Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TTemplateSpan<Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : []) extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown, unknown] | [unknown], infer Input extends string] ? [TTemplateBodyMapping<_0>, Input] : [];
|
|
873
|
+
type TTemplateLiteralTypes<Input extends string> = (TConst<'`', Input> extends [infer _0, infer Input extends string] ? (TTemplateBody<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] ? [TTemplateLiteralTypesMapping<_0>, Input] : [];
|
|
874
|
+
type TTemplateLiteral$1<Input extends string> = TTemplateLiteralTypes<Input> extends [infer _0 extends unknown, infer Input extends string] ? [TTemplateLiteralMapping<_0>, Input] : [];
|
|
875
|
+
type TDependent<Input extends string> = ((TConst<'if', Input> extends [infer _0, infer Input extends string] ? (TType<Input> extends [infer _1, infer Input extends string] ? (TConst<'then', Input> extends [infer _2, infer Input extends string] ? (TType<Input> extends [infer _3, infer Input extends string] ? (TConst<'else', Input> extends [infer _4, infer Input extends string] ? (TType<Input> extends [infer _5, infer Input extends string] ? [[_0, _1, _2, _3, _4, _5], Input] : []) : []) : []) : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TConst<'if', Input> extends [infer _0, infer Input extends string] ? (TType<Input> extends [infer _1, infer Input extends string] ? (TConst<'then', Input> extends [infer _2, infer Input extends string] ? (TType<Input> extends [infer _3, infer Input extends string] ? [[_0, _1, _2, _3], Input] : []) : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown, unknown, unknown, unknown, unknown] | [unknown, unknown, unknown, unknown], infer Input extends string] ? [TDependentMapping<_0>, Input] : [];
|
|
876
|
+
type TLiteralBigInt<Input extends string> = TBigInt<Input> extends [infer _0 extends string, infer Input extends string] ? [TLiteralBigIntMapping<_0>, Input] : [];
|
|
877
|
+
type TLiteralBoolean<Input extends string> = (TConst<'true', Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TConst<'false', Input> extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends 'true' | 'false', infer Input extends string] ? [TLiteralBooleanMapping<_0>, Input] : [];
|
|
878
|
+
type TLiteralNumber<Input extends string> = TNumber<Input> extends [infer _0 extends string, infer Input extends string] ? [TLiteralNumberMapping<_0>, Input] : [];
|
|
879
|
+
type TLiteralString<Input extends string> = TString<['\'', '"'], Input> extends [infer _0 extends string, infer Input extends string] ? [TLiteralStringMapping<_0>, Input] : [];
|
|
880
|
+
type TKeyOf$1<Input extends string> = ((TConst<'keyof', 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] | [], infer Input extends string] ? [TKeyOfMapping<_0>, Input] : [];
|
|
881
|
+
type TIndexArray_0<Input extends string, Result extends unknown[] = []> = ((TConst<'[', Input> extends [infer _0, infer Input extends string] ? (TType<Input> extends [infer _1, infer Input extends string] ? (TConst<']', Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TConst<'[', Input> extends [infer _0, infer Input extends string] ? (TConst<']', Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0, infer Input extends string] ? TIndexArray_0<Input, [...Result, _0]> : [Result, Input];
|
|
882
|
+
type TIndexArray<Input extends string> = TIndexArray_0<Input> extends [infer _0 extends ([unknown, unknown, unknown] | [unknown, unknown])[], infer Input extends string] ? [TIndexArrayMapping<_0>, Input] : [];
|
|
883
|
+
type TExtends$1<Input extends string> = ((TConst<'extends', Input> extends [infer _0, infer Input extends string] ? (TType<Input> extends [infer _1, infer Input extends string] ? (TConst<'?', Input> extends [infer _2, infer Input extends string] ? (TType<Input> extends [infer _3, infer Input extends string] ? (TConst<':', Input> extends [infer _4, infer Input extends string] ? (TType<Input> extends [infer _5, infer Input extends string] ? [[_0, _1, _2, _3, _4, _5], 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, unknown, unknown] | [], infer Input extends string] ? [TExtendsMapping<_0>, Input] : [];
|
|
884
|
+
type TBase<Input extends string> = ((TConst<'(', Input> extends [infer _0, infer Input extends string] ? (TType<Input> extends [infer _1, infer Input extends string] ? (TConst<')', Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordString<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordNumber<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordBoolean<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordUndefined<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordNull<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordInteger<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordBigInt<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordUnknown<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordAny<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordObject<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordNever<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordSymbol<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordVoid<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordThis<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TLiteralBigInt<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TLiteralBoolean<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TLiteralNumber<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TLiteralString<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TTemplateLiteral$1<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TDependent<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : T_Object_<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : T_Tuple_<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : T_Constructor_<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : T_Function_<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : T_Mapped_<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TGenericCall<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TReference<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown, unknown] | unknown, infer Input extends string] ? [TBaseMapping<_0>, Input] : [];
|
|
885
|
+
type TWith$1<Input extends string> = ((TConst<'with', Input> extends [infer _0, infer Input extends string] ? (TWithObject<Input> extends [infer _1, infer Input extends string] ? [[_0, _1], 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] | [], infer Input extends string] ? [TWithMapping<_0>, Input] : [];
|
|
886
|
+
type TFactor<Input extends string> = (TKeyOf$1<Input> extends [infer _0, infer Input extends string] ? (TBase<Input> extends [infer _1, infer Input extends string] ? (TIndexArray<Input> extends [infer _2, infer Input extends string] ? (TExtends$1<Input> extends [infer _3, infer Input extends string] ? (TWith$1<Input> extends [infer _4, infer Input extends string] ? [[_0, _1, _2, _3, _4], Input] : []) : []) : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown, unknown, unknown], infer Input extends string] ? [TFactorMapping<_0>, Input] : [];
|
|
887
|
+
type TExprTermTail<Input extends string> = ((TConst<'&', Input> extends [infer _0, infer Input extends string] ? (TFactor<Input> extends [infer _1, infer Input extends string] ? (TExprTermTail<Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], 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] | [], infer Input extends string] ? [TExprTermTailMapping<_0>, Input] : [];
|
|
888
|
+
type TExprTerm<Input extends string> = (TFactor<Input> extends [infer _0, infer Input extends string] ? (TExprTermTail<Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0 extends [unknown, unknown], infer Input extends string] ? [TExprTermMapping<_0>, Input] : [];
|
|
889
|
+
type TExprTail<Input extends string> = ((TConst<'|', Input> extends [infer _0, infer Input extends string] ? (TExprTerm<Input> extends [infer _1, infer Input extends string] ? (TExprTail<Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], 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] | [], infer Input extends string] ? [TExprTailMapping<_0>, Input] : [];
|
|
890
|
+
type TExpr<Input extends string> = (TExprTerm<Input> extends [infer _0, infer Input extends string] ? (TExprTail<Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0 extends [unknown, unknown], infer Input extends string] ? [TExprMapping<_0>, Input] : [];
|
|
891
|
+
type TExprReadonly<Input extends string> = (TConst<'readonly', Input> extends [infer _0, infer Input extends string] ? (TExpr<Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0 extends [unknown, unknown], infer Input extends string] ? [TExprReadonlyMapping<_0>, Input] : [];
|
|
892
|
+
type TExprPipe<Input extends string> = (TConst<'|', Input> extends [infer _0, infer Input extends string] ? (TExpr<Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0 extends [unknown, unknown], infer Input extends string] ? [TExprPipeMapping<_0>, Input] : [];
|
|
893
|
+
type TGenericType<Input extends string> = (TGenericParameters<Input> extends [infer _0, infer Input extends string] ? (TConst<'=', Input> extends [infer _1, infer Input extends string] ? (TType<Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown], infer Input extends string] ? [TGenericTypeMapping<_0>, Input] : [];
|
|
894
|
+
type TInferType<Input extends string> = ((TConst<'infer', Input> extends [infer _0, infer Input extends string] ? (TIdent<Input> extends [infer _1, infer Input extends string] ? (TConst<'extends', Input> extends [infer _2, infer Input extends string] ? (TExpr<Input> extends [infer _3, infer Input extends string] ? [[_0, _1, _2, _3], Input] : []) : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TConst<'infer', Input> extends [infer _0, infer Input extends string] ? (TIdent<Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown, unknown, unknown] | [unknown, unknown], infer Input extends string] ? [TInferTypeMapping<_0>, Input] : [];
|
|
895
|
+
type TType<Input extends string> = (TInferType<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TExprPipe<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TExprReadonly<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TExpr<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends unknown, infer Input extends string] ? [TTypeMapping<_0>, Input] : [];
|
|
896
|
+
type TPropertyKeyNumber<Input extends string> = TNumber<Input> extends [infer _0 extends string, infer Input extends string] ? [TPropertyKeyNumberMapping<_0>, Input] : [];
|
|
897
|
+
type TPropertyKeyIdent<Input extends string> = TIdent<Input> extends [infer _0 extends string, infer Input extends string] ? [TPropertyKeyIdentMapping<_0>, Input] : [];
|
|
898
|
+
type TPropertyKeyQuoted<Input extends string> = TString<['\'', '"'], Input> extends [infer _0 extends string, infer Input extends string] ? [TPropertyKeyQuotedMapping<_0>, Input] : [];
|
|
899
|
+
type TPropertyKeyIndex<Input extends string> = (TConst<'[', Input> extends [infer _0, infer Input extends string] ? (TIdent<Input> extends [infer _1, infer Input extends string] ? (TConst<':', Input> extends [infer _2, infer Input extends string] ? ((TKeywordInteger<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordNumber<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordString<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TKeywordSymbol<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _3, infer Input extends string] ? (TConst<']', Input> extends [infer _4, infer Input extends string] ? [[_0, _1, _2, _3, _4], Input] : []) : []) : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown, unknown, unknown], infer Input extends string] ? [TPropertyKeyIndexMapping<_0>, Input] : [];
|
|
900
|
+
type TPropertyKey<Input extends string> = (TPropertyKeyNumber<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TPropertyKeyIdent<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TPropertyKeyQuoted<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TPropertyKeyIndex<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends unknown, infer Input extends string] ? [TPropertyKeyMapping<_0>, Input] : [];
|
|
901
|
+
type TReadonly<Input extends string> = ((TConst<'readonly', 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] | [], infer Input extends string] ? [TReadonlyMapping<_0>, Input] : [];
|
|
902
|
+
type TOptional$1<Input extends string> = ((TConst<'?', 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] | [], infer Input extends string] ? [TOptionalMapping<_0>, Input] : [];
|
|
903
|
+
type TProperty<Input extends string> = (TReadonly<Input> extends [infer _0, infer Input extends string] ? (TPropertyKey<Input> extends [infer _1, infer Input extends string] ? (TOptional$1<Input> extends [infer _2, infer Input extends string] ? (TConst<':', Input> extends [infer _3, infer Input extends string] ? (TType<Input> extends [infer _4, infer Input extends string] ? [[_0, _1, _2, _3, _4], Input] : []) : []) : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown, unknown, unknown], infer Input extends string] ? [TPropertyMapping<_0>, Input] : [];
|
|
904
|
+
type TPropertyDelimiter<Input extends string> = ((TConst<',', Input> extends [infer _0, infer Input extends string] ? (TConst<'\n', Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TConst<';', Input> extends [infer _0, infer Input extends string] ? (TConst<'\n', Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TConst<',', Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TConst<';', Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TConst<'\n', Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : []) extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown] | [unknown], infer Input extends string] ? [TPropertyDelimiterMapping<_0>, Input] : [];
|
|
905
|
+
type TPropertyList_0<Input extends string, Result extends unknown[] = []> = (TPropertyDelimiter<Input> extends [infer _0, infer Input extends string] ? (TProperty<Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? TPropertyList_0<Input, [...Result, _0]> : [Result, Input];
|
|
906
|
+
type TPropertyList<Input extends string> = ((TProperty<Input> extends [infer _0, infer Input extends string] ? (TPropertyList_0<Input> extends [infer _1, infer Input extends string] ? ((TPropertyDelimiter<Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : [[], Input]) extends [infer _2, infer Input extends string] ? [[_0, _1, _2], 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] | [], infer Input extends string] ? [TPropertyListMapping<_0>, Input] : [];
|
|
907
|
+
type TProperties$1<Input extends string> = (TConst<'{', Input> extends [infer _0, infer Input extends string] ? (TPropertyList<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] ? [TPropertiesMapping<_0>, Input] : [];
|
|
908
|
+
type T_Object_<Input extends string> = TProperties$1<Input> extends [infer _0 extends unknown, infer Input extends string] ? [T_Object_Mapping<_0>, Input] : [];
|
|
909
|
+
type TElementNamed<Input extends string> = ((TIdent<Input> extends [infer _0, infer Input extends string] ? (TConst<'?', Input> extends [infer _1, infer Input extends string] ? (TConst<':', Input> extends [infer _2, infer Input extends string] ? (TConst<'readonly', Input> extends [infer _3, infer Input extends string] ? (TType<Input> extends [infer _4, infer Input extends string] ? [[_0, _1, _2, _3, _4], Input] : []) : []) : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TIdent<Input> extends [infer _0, infer Input extends string] ? (TConst<':', Input> extends [infer _1, infer Input extends string] ? (TConst<'readonly', Input> extends [infer _2, infer Input extends string] ? (TType<Input> extends [infer _3, infer Input extends string] ? [[_0, _1, _2, _3], Input] : []) : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TIdent<Input> extends [infer _0, infer Input extends string] ? (TConst<'?', Input> extends [infer _1, infer Input extends string] ? (TConst<':', Input> extends [infer _2, infer Input extends string] ? (TType<Input> extends [infer _3, infer Input extends string] ? [[_0, _1, _2, _3], Input] : []) : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TIdent<Input> extends [infer _0, infer Input extends string] ? (TConst<':', Input> extends [infer _1, infer Input extends string] ? (TType<Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown, unknown, unknown, unknown] | [unknown, unknown, unknown, unknown] | [unknown, unknown, unknown], infer Input extends string] ? [TElementNamedMapping<_0>, Input] : [];
|
|
910
|
+
type TElementBase<Input extends string> = (TElementNamed<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : (TReadonly<Input> extends [infer _0, infer Input extends string] ? (TType<Input> extends [infer _1, infer Input extends string] ? (TOptional$1<Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends unknown | [unknown, unknown, unknown], infer Input extends string] ? [TElementBaseMapping<_0>, Input] : [];
|
|
911
|
+
type TElement<Input extends string> = ((TConst<'...', Input> extends [infer _0, infer Input extends string] ? (TElementBase<Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TElementBase<Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : []) extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown] | [unknown], infer Input extends string] ? [TElementMapping<_0>, Input] : [];
|
|
912
|
+
type TElementList_0<Input extends string, Result extends unknown[] = []> = (TConst<',', Input> extends [infer _0, infer Input extends string] ? (TElement<Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? TElementList_0<Input, [...Result, _0]> : [Result, Input];
|
|
913
|
+
type TElementList<Input extends string> = ((TElement<Input> extends [infer _0, infer Input extends string] ? (TElementList_0<Input> extends [infer _1, infer Input extends string] ? ((TConst<',', Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : [[], Input]) extends [infer _2, infer Input extends string] ? [[_0, _1, _2], 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] | [], infer Input extends string] ? [TElementListMapping<_0>, Input] : [];
|
|
914
|
+
type T_Tuple_<Input extends string> = (TConst<'[', Input> extends [infer _0, infer Input extends string] ? (TElementList<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] ? [T_Tuple_Mapping<_0>, Input] : [];
|
|
915
|
+
type TParameterReadonlyOptional<Input extends string> = (TIdent<Input> extends [infer _0, infer Input extends string] ? (TConst<'?', Input> extends [infer _1, infer Input extends string] ? (TConst<':', Input> extends [infer _2, infer Input extends string] ? (TConst<'readonly', Input> extends [infer _3, infer Input extends string] ? (TType<Input> extends [infer _4, infer Input extends string] ? [[_0, _1, _2, _3, _4], Input] : []) : []) : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown, unknown, unknown], infer Input extends string] ? [TParameterReadonlyOptionalMapping<_0>, Input] : [];
|
|
916
|
+
type TParameterReadonly<Input extends string> = (TIdent<Input> extends [infer _0, infer Input extends string] ? (TConst<':', Input> extends [infer _1, infer Input extends string] ? (TConst<'readonly', Input> extends [infer _2, infer Input extends string] ? (TType<Input> extends [infer _3, infer Input extends string] ? [[_0, _1, _2, _3], Input] : []) : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown, unknown], infer Input extends string] ? [TParameterReadonlyMapping<_0>, Input] : [];
|
|
917
|
+
type TParameterOptional<Input extends string> = (TIdent<Input> extends [infer _0, infer Input extends string] ? (TConst<'?', Input> extends [infer _1, infer Input extends string] ? (TConst<':', Input> extends [infer _2, infer Input extends string] ? (TType<Input> extends [infer _3, infer Input extends string] ? [[_0, _1, _2, _3], Input] : []) : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown, unknown], infer Input extends string] ? [TParameterOptionalMapping<_0>, Input] : [];
|
|
918
|
+
type TParameterType<Input extends string> = (TIdent<Input> extends [infer _0, infer Input extends string] ? (TConst<':', Input> extends [infer _1, infer Input extends string] ? (TType<Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown], infer Input extends string] ? [TParameterTypeMapping<_0>, Input] : [];
|
|
919
|
+
type TParameterBase<Input extends string> = (TParameterReadonlyOptional<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TParameterReadonly<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TParameterOptional<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TParameterType<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends unknown, infer Input extends string] ? [TParameterBaseMapping<_0>, Input] : [];
|
|
920
|
+
type TParameter<Input extends string> = ((TConst<'...', Input> extends [infer _0, infer Input extends string] ? (TParameterBase<Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TParameterBase<Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : []) extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown] | [unknown], infer Input extends string] ? [TParameterMapping<_0>, Input] : [];
|
|
921
|
+
type TParameterList_0<Input extends string, Result extends unknown[] = []> = (TConst<',', Input> extends [infer _0, infer Input extends string] ? (TParameter<Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? TParameterList_0<Input, [...Result, _0]> : [Result, Input];
|
|
922
|
+
type TParameterList<Input extends string> = ((TParameter<Input> extends [infer _0, infer Input extends string] ? (TParameterList_0<Input> extends [infer _1, infer Input extends string] ? ((TConst<',', Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : [[], Input]) extends [infer _2, infer Input extends string] ? [[_0, _1, _2], 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] | [], infer Input extends string] ? [TParameterListMapping<_0>, Input] : [];
|
|
923
|
+
type T_Function_<Input extends string> = (TConst<'(', Input> extends [infer _0, infer Input extends string] ? (TParameterList<Input> extends [infer _1, infer Input extends string] ? (TConst<')', Input> extends [infer _2, infer Input extends string] ? (TConst<'=>', Input> extends [infer _3, infer Input extends string] ? (TType<Input> extends [infer _4, infer Input extends string] ? [[_0, _1, _2, _3, _4], Input] : []) : []) : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown, unknown, unknown], infer Input extends string] ? [T_Function_Mapping<_0>, Input] : [];
|
|
924
|
+
type T_Constructor_<Input extends string> = (TConst<'new', Input> extends [infer _0, infer Input extends string] ? (TConst<'(', Input> extends [infer _1, infer Input extends string] ? (TParameterList<Input> extends [infer _2, infer Input extends string] ? (TConst<')', Input> extends [infer _3, infer Input extends string] ? (TConst<'=>', Input> extends [infer _4, infer Input extends string] ? (TType<Input> extends [infer _5, infer Input extends string] ? [[_0, _1, _2, _3, _4, _5], Input] : []) : []) : []) : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown, unknown, unknown, unknown], infer Input extends string] ? [T_Constructor_Mapping<_0>, Input] : [];
|
|
925
|
+
type TMappedReadonly<Input extends string> = ((TConst<'+', Input> extends [infer _0, infer Input extends string] ? (TConst<'readonly', Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TConst<'-', Input> extends [infer _0, infer Input extends string] ? (TConst<'readonly', Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TConst<'readonly', 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] | [], infer Input extends string] ? [TMappedReadonlyMapping<_0>, Input] : [];
|
|
926
|
+
type TMappedOptional<Input extends string> = ((TConst<'+', Input> extends [infer _0, infer Input extends string] ? (TConst<'?', Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TConst<'-', Input> extends [infer _0, infer Input extends string] ? (TConst<'?', Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TConst<'?', 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] | [], infer Input extends string] ? [TMappedOptionalMapping<_0>, Input] : [];
|
|
927
|
+
type TMappedAs<Input extends string> = ((TConst<'as', Input> extends [infer _0, infer Input extends string] ? (TType<Input> extends [infer _1, infer Input extends string] ? [[_0, _1], 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] | [], infer Input extends string] ? [TMappedAsMapping<_0>, Input] : [];
|
|
928
|
+
type T_Mapped_<Input extends string> = (TConst<'{', Input> extends [infer _0, infer Input extends string] ? (TMappedReadonly<Input> extends [infer _1, infer Input extends string] ? (TConst<'[', Input> extends [infer _2, infer Input extends string] ? (TIdent<Input> extends [infer _3, infer Input extends string] ? (TConst<'in', Input> extends [infer _4, infer Input extends string] ? (TType<Input> extends [infer _5, infer Input extends string] ? (TMappedAs<Input> extends [infer _6, infer Input extends string] ? (TConst<']', Input> extends [infer _7, infer Input extends string] ? (TMappedOptional<Input> extends [infer _8, infer Input extends string] ? (TConst<':', Input> extends [infer _9, infer Input extends string] ? (TType<Input> extends [infer _10, infer Input extends string] ? (TOptionalSemiColon<Input> extends [infer _11, infer Input extends string] ? (TConst<'}', Input> extends [infer _12, infer Input extends string] ? [[_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12], Input] : []) : []) : []) : []) : []) : []) : []) : []) : []) : []) : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown, unknown], infer Input extends string] ? [T_Mapped_Mapping<_0>, Input] : [];
|
|
929
|
+
type TReference<Input extends string> = TIdent<Input> extends [infer _0 extends string, infer Input extends string] ? [TReferenceMapping<_0>, Input] : [];
|
|
930
|
+
type TWithBigInt<Input extends string> = TBigInt<Input> extends [infer _0 extends string, infer Input extends string] ? [TWithBigIntMapping<_0>, Input] : [];
|
|
931
|
+
type TWithNumber<Input extends string> = TNumber<Input> extends [infer _0 extends string, infer Input extends string] ? [TWithNumberMapping<_0>, Input] : [];
|
|
932
|
+
type TWithBoolean<Input extends string> = (TConst<'true', Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TConst<'false', Input> extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends 'true' | 'false', infer Input extends string] ? [TWithBooleanMapping<_0>, Input] : [];
|
|
933
|
+
type TWithString<Input extends string> = TString<['"', '\''], Input> extends [infer _0 extends string, infer Input extends string] ? [TWithStringMapping<_0>, Input] : [];
|
|
934
|
+
type TWithNull<Input extends string> = TConst<'null', Input> extends [infer _0 extends 'null', infer Input extends string] ? [TWithNullMapping<_0>, Input] : [];
|
|
935
|
+
type TWithUndefined<Input extends string> = TConst<'undefined', Input> extends [infer _0 extends 'undefined', infer Input extends string] ? [TWithUndefinedMapping<_0>, Input] : [];
|
|
936
|
+
type TWithProperty<Input extends string> = (TPropertyKey<Input> extends [infer _0, infer Input extends string] ? (TConst<':', Input> extends [infer _1, infer Input extends string] ? (TWithValue<Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown], infer Input extends string] ? [TWithPropertyMapping<_0>, Input] : [];
|
|
937
|
+
type TWithPropertyList_0<Input extends string, Result extends unknown[] = []> = (TPropertyDelimiter<Input> extends [infer _0, infer Input extends string] ? (TWithProperty<Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? TWithPropertyList_0<Input, [...Result, _0]> : [Result, Input];
|
|
938
|
+
type TWithPropertyList<Input extends string> = ((TWithProperty<Input> extends [infer _0, infer Input extends string] ? (TWithPropertyList_0<Input> extends [infer _1, infer Input extends string] ? ((TPropertyDelimiter<Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : [[], Input]) extends [infer _2, infer Input extends string] ? [[_0, _1, _2], 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] | [], infer Input extends string] ? [TWithPropertyListMapping<_0>, Input] : [];
|
|
939
|
+
type TWithObject<Input extends string> = (TConst<'{', Input> extends [infer _0, infer Input extends string] ? (TWithPropertyList<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] ? [TWithObjectMapping<_0>, Input] : [];
|
|
940
|
+
type TWithElementList_0<Input extends string, Result extends unknown[] = []> = (TConst<',', Input> extends [infer _0, infer Input extends string] ? (TWithValue<Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? TWithElementList_0<Input, [...Result, _0]> : [Result, Input];
|
|
941
|
+
type TWithElementList<Input extends string> = ((TWithValue<Input> extends [infer _0, infer Input extends string] ? (TWithElementList_0<Input> extends [infer _1, infer Input extends string] ? ((TConst<',', Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : [[], Input]) extends [infer _2, infer Input extends string] ? [[_0, _1, _2], 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] | [], infer Input extends string] ? [TWithElementListMapping<_0>, Input] : [];
|
|
942
|
+
type TWithArray<Input extends string> = (TConst<'[', Input> extends [infer _0, infer Input extends string] ? (TWithElementList<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] ? [TWithArrayMapping<_0>, Input] : [];
|
|
943
|
+
type TWithValue<Input extends string> = (TWithBigInt<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TWithNumber<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TWithBoolean<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TWithString<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TWithNull<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TWithUndefined<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TWithObject<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TWithArray<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends unknown, infer Input extends string] ? [TWithValueMapping<_0>, Input] : [];
|
|
944
|
+
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] : [];
|
|
945
|
+
type TPatternString<Input extends string> = TConst<'.*', Input> extends [infer _0 extends '.*', infer Input extends string] ? [TPatternStringMapping<_0>, Input] : [];
|
|
946
|
+
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] : [];
|
|
947
|
+
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] : [];
|
|
948
|
+
type TPatternNever<Input extends string> = TConst<'(?!)', Input> extends [infer _0 extends '(?!)', infer Input extends string] ? [TPatternNeverMapping<_0>, Input] : [];
|
|
949
|
+
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] : [];
|
|
950
|
+
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] : [];
|
|
951
|
+
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] : [];
|
|
952
|
+
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] : [];
|
|
953
|
+
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] : [];
|
|
954
|
+
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] : [];
|
|
955
|
+
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] : [];
|
|
956
|
+
type TInterfaceDeclarationHeritageList_0<Input extends string, Result extends unknown[] = []> = (TConst<',', Input> extends [infer _0, infer Input extends string] ? (TType<Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? TInterfaceDeclarationHeritageList_0<Input, [...Result, _0]> : [Result, Input];
|
|
957
|
+
type TInterfaceDeclarationHeritageList<Input extends string> = ((TType<Input> extends [infer _0, infer Input extends string] ? (TInterfaceDeclarationHeritageList_0<Input> extends [infer _1, infer Input extends string] ? ((TConst<',', Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : [[], Input]) extends [infer _2, infer Input extends string] ? [[_0, _1, _2], 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] | [], infer Input extends string] ? [TInterfaceDeclarationHeritageListMapping<_0>, Input] : [];
|
|
958
|
+
type TInterfaceDeclarationHeritage<Input extends string> = ((TConst<'extends', Input> extends [infer _0, infer Input extends string] ? (TInterfaceDeclarationHeritageList<Input> extends [infer _1, infer Input extends string] ? [[_0, _1], 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] | [], infer Input extends string] ? [TInterfaceDeclarationHeritageMapping<_0>, Input] : [];
|
|
959
|
+
type TInterfaceDeclarationGeneric<Input extends string> = (TConst<'interface', Input> extends [infer _0, infer Input extends string] ? (TIdent<Input> extends [infer _1, infer Input extends string] ? (TGenericParameters<Input> extends [infer _2, infer Input extends string] ? (TInterfaceDeclarationHeritage<Input> extends [infer _3, infer Input extends string] ? (TProperties$1<Input> extends [infer _4, infer Input extends string] ? [[_0, _1, _2, _3, _4], Input] : []) : []) : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown, unknown, unknown], infer Input extends string] ? [TInterfaceDeclarationGenericMapping<_0>, Input] : [];
|
|
960
|
+
type TInterfaceDeclaration<Input extends string> = (TConst<'interface', Input> extends [infer _0, infer Input extends string] ? (TIdent<Input> extends [infer _1, infer Input extends string] ? (TInterfaceDeclarationHeritage<Input> extends [infer _2, infer Input extends string] ? (TProperties$1<Input> extends [infer _3, infer Input extends string] ? [[_0, _1, _2, _3], Input] : []) : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown, unknown], infer Input extends string] ? [TInterfaceDeclarationMapping<_0>, Input] : [];
|
|
961
|
+
type TTypeAliasDeclarationGeneric<Input extends string> = (TConst<'type', Input> extends [infer _0, infer Input extends string] ? (TIdent<Input> extends [infer _1, infer Input extends string] ? (TGenericParameters<Input> extends [infer _2, infer Input extends string] ? (TConst<'=', Input> extends [infer _3, infer Input extends string] ? (TType<Input> extends [infer _4, infer Input extends string] ? [[_0, _1, _2, _3, _4], Input] : []) : []) : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown, unknown, unknown], infer Input extends string] ? [TTypeAliasDeclarationGenericMapping<_0>, Input] : [];
|
|
962
|
+
type TTypeAliasDeclaration<Input extends string> = (TConst<'type', Input> extends [infer _0, infer Input extends string] ? (TIdent<Input> extends [infer _1, infer Input extends string] ? (TConst<'=', Input> extends [infer _2, infer Input extends string] ? (TType<Input> extends [infer _3, infer Input extends string] ? [[_0, _1, _2, _3], Input] : []) : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown, unknown], infer Input extends string] ? [TTypeAliasDeclarationMapping<_0>, Input] : [];
|
|
963
|
+
type TExportKeyword<Input extends string> = ((TConst<'export', 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] | [], infer Input extends string] ? [TExportKeywordMapping<_0>, Input] : [];
|
|
964
|
+
type TModuleDeclarationDelimiter<Input extends string> = ((TConst<';', Input> extends [infer _0, infer Input extends string] ? (TConst<'\n', Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TConst<';', Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : []) extends [infer _0, infer Input extends string] ? [_0, Input] : (TConst<'\n', Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : []) extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends [unknown, unknown] | [unknown], infer Input extends string] ? [TModuleDeclarationDelimiterMapping<_0>, Input] : [];
|
|
965
|
+
type TModuleDeclarationList_0<Input extends string, Result extends unknown[] = []> = (TModuleDeclarationDelimiter<Input> extends [infer _0, infer Input extends string] ? (TModuleDeclaration<Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0, infer Input extends string] ? TModuleDeclarationList_0<Input, [...Result, _0]> : [Result, Input];
|
|
966
|
+
type TModuleDeclarationList<Input extends string> = ((TModuleDeclaration<Input> extends [infer _0, infer Input extends string] ? (TModuleDeclarationList_0<Input> extends [infer _1, infer Input extends string] ? ((TModuleDeclarationDelimiter<Input> extends [infer _0, infer Input extends string] ? [[_0], Input] : [[], Input]) extends [infer _2, infer Input extends string] ? [[_0, _1, _2], 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] | [], infer Input extends string] ? [TModuleDeclarationListMapping<_0>, Input] : [];
|
|
967
|
+
type TModuleDeclaration<Input extends string> = (TExportKeyword<Input> extends [infer _0, infer Input extends string] ? ((TInterfaceDeclarationGeneric<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TInterfaceDeclaration<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TTypeAliasDeclarationGeneric<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TTypeAliasDeclaration<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _1, infer Input extends string] ? (TOptionalSemiColon<Input> extends [infer _2, infer Input extends string] ? [[_0, _1, _2], Input] : []) : []) : []) extends [infer _0 extends [unknown, unknown, unknown], infer Input extends string] ? [TModuleDeclarationMapping<_0>, Input] : [];
|
|
968
|
+
type TModule$1<Input extends string> = (TModuleDeclaration<Input> extends [infer _0, infer Input extends string] ? (TModuleDeclarationList<Input> extends [infer _1, infer Input extends string] ? [[_0, _1], Input] : []) : []) extends [infer _0 extends [unknown, unknown], infer Input extends string] ? [TModuleMapping<_0>, Input] : [];
|
|
969
|
+
type TScript$1<Input extends string> = (TModule$1<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TGenericType<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : TType<Input> extends [infer _0, infer Input extends string] ? [_0, Input] : []) extends [infer _0 extends unknown, infer Input extends string] ? [TScriptMapping<_0>, Input] : [];
|
|
970
|
+
//#endregion
|
|
971
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/patterns/template.d.mts
|
|
972
|
+
/** Parses a Template into TemplateLiteral types */
|
|
973
|
+
type TParseTemplateIntoTypes<Template extends string, Parsed extends [TSchema[], string] | [] = TTemplateLiteralTypes<`\`${Template}\``>, Result extends TSchema = Parsed extends [infer Types extends TSchema[], string] ? Types : TUnreachable> = Result;
|
|
974
|
+
//#endregion
|
|
975
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/union.d.mts
|
|
976
|
+
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);
|
|
977
|
+
/** Represents a logical Union type. */
|
|
978
|
+
interface TUnion<Types extends TSchema[] = TSchema[]> extends TSchema {
|
|
979
|
+
'~kind': 'Union';
|
|
980
|
+
anyOf: Types;
|
|
981
|
+
}
|
|
982
|
+
/** Creates a Union type. */
|
|
983
|
+
declare function Union$1<Types extends TSchema[]>(anyOf: [...Types], options?: TSchemaOptions): TUnion<Types>;
|
|
984
|
+
/** Returns true if the given value is TUnion. */
|
|
985
|
+
declare function IsUnion(value: unknown): value is TUnion;
|
|
986
|
+
//#endregion
|
|
987
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/patterns/pattern.d.mts
|
|
988
|
+
/** Parses a Pattern into a sequence of TemplateLiteral types. A result of [] indicates failure to parse. */
|
|
989
|
+
type TParsePatternIntoTypes<Pattern extends string, Parsed extends [TSchema[], string] | [] = TPattern<Pattern>, Result extends TSchema[] = Parsed extends [infer Types extends TSchema[], string] ? Types : []> = Result;
|
|
990
|
+
//#endregion
|
|
991
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/template_literal/static.d.mts
|
|
992
|
+
type TFromLiteral$5<Template extends string, Value extends TLiteralValue> = `${Template}${Value}`;
|
|
993
|
+
type TFromBigInt<Template extends string> = `${Template}${bigint}`;
|
|
994
|
+
type TFromString<Template extends string> = `${Template}${string}`;
|
|
995
|
+
type TFromNumber<Template extends string> = `${Template}${number}`;
|
|
996
|
+
type TFromInteger<Template extends string> = `${Template}${number}`;
|
|
997
|
+
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}`);
|
|
998
|
+
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$1 ? TFromBigInt<Template> : Type extends TString$1 ? TFromString<Template> : Type extends TNumber$1 ? TFromNumber<Template> : Type extends TInteger$1 ? TFromInteger<Template> : never)> = Result;
|
|
999
|
+
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);
|
|
1000
|
+
type TTemplateLiteralStatic<Pattern extends string, Types extends TSchema[] = TParsePatternIntoTypes<Pattern>> = TFromSpan<'', Types>;
|
|
1001
|
+
//#endregion
|
|
1002
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/readonly/instantiate_remove.d.mts
|
|
1003
|
+
type TRemoveReadonlyOperation<Type extends TSchema, Result extends TSchema = Type extends TReadonly$1<infer Type extends TSchema> ? TRemoveReadonlyOperation<Type> : Type> = Result;
|
|
1004
|
+
type TRemoveReadonlyAction<Type extends TSchema, Result extends TSchema = TRemoveReadonlyOperation<Type>> = Result;
|
|
1005
|
+
type TRemoveReadonlyInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiateType extends TSchema = TInstantiateType<Context, State, Type>> = TRemoveReadonlyAction<InstantiateType>;
|
|
1006
|
+
//#endregion
|
|
1007
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/_remove_readonly.d.mts
|
|
1008
|
+
/** Creates a deferred RemoveReadonly action. */
|
|
1009
|
+
type TRemoveReadonlyDeferred<Type extends TSchema> = (TDeferred<'RemoveReadonly', [Type]>);
|
|
1010
|
+
/** Applies an RemoveReadonly action to a type. */
|
|
1011
|
+
type TRemoveReadonly<Type extends TSchema> = (TRemoveReadonlyAction<Type>);
|
|
1012
|
+
//#endregion
|
|
1013
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/optional/instantiate_remove.d.mts
|
|
1014
|
+
type TRemoveOptionalOperation<Type extends TSchema, Result extends TSchema = Type extends TOptional<infer Type extends TSchema> ? TRemoveOptionalOperation<Type> : Type> = Result;
|
|
1015
|
+
type TRemoveOptionalAction<Type extends TSchema, Result extends TSchema = TRemoveOptionalOperation<Type>> = Result;
|
|
1016
|
+
type TRemoveOptionalInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiateType extends TSchema = TInstantiateType<Context, State, Type>> = TRemoveOptionalAction<InstantiateType>;
|
|
1017
|
+
//#endregion
|
|
1018
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/_remove_optional.d.mts
|
|
1019
|
+
/** Creates a deferred RemoveOptional action. */
|
|
1020
|
+
type TRemoveOptionalDeferred<Type extends TSchema> = (TDeferred<'RemoveOptional', [Type]>);
|
|
1021
|
+
/** Applies an RemoveOptional action to a type. */
|
|
1022
|
+
type TRemoveOptional<Type extends TSchema> = (TRemoveOptionalAction<Type>);
|
|
1023
|
+
//#endregion
|
|
1024
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/tuple/to_object.d.mts
|
|
1025
|
+
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]; });
|
|
1026
|
+
type TTupleToObject<Type extends TTuple, Properties extends TProperties = TTupleElementsToProperties<Type['items']>, Result extends TSchema = TObject<Properties>> = Result;
|
|
1027
|
+
//#endregion
|
|
1028
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/evaluate/composite.d.mts
|
|
1029
|
+
/** Returns true if the type is a valid operand to Composite. */
|
|
1030
|
+
type TCanComposite<Type extends TSchema> = (Type extends TObject<infer _ extends TProperties> ? true : Type extends TTuple<infer _ extends TSchema[]> ? true : false);
|
|
1031
|
+
type TIsReadonlyProperty<Left extends TSchema, Right extends TSchema> = (Left extends TReadonly$1<Left> ? Right extends TReadonly$1<Right> ? true : false : false);
|
|
1032
|
+
type TIsOptionalProperty<Left extends TSchema, Right extends TSchema> = (Left extends TOptional<Left> ? Right extends TOptional<Right> ? true : false : false);
|
|
1033
|
+
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 = TRemoveReadonly<TRemoveOptional<Evaluated>>> = ([IsReadonly, IsOptional] extends [true, true] ? TAddReadonly<TAddOptional<Property>> : [IsReadonly, IsOptional] extends [true, false] ? TAddReadonly<Property> : [IsReadonly, IsOptional] extends [false, true] ? TAddOptional<Property> : Property);
|
|
1034
|
+
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;
|
|
1035
|
+
type TCompositeProperties<Left extends TProperties, Right extends TProperties, Keys extends PropertyKey = keyof (Left & Right), Result extends TProperties = { [Key in Keys]: TCompositePropertyKey<Left, Right, Key>; }> = Result;
|
|
1036
|
+
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> : {})> = Result;
|
|
1037
|
+
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;
|
|
1038
|
+
//#endregion
|
|
1039
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/evaluate/narrow.d.mts
|
|
1040
|
+
type TNarrowCompareRule<Left extends TSchema, Right extends TSchema, Result extends TCompareResult = TCompare<Left, Right>> = (Result extends typeof CompareResultLeftInside ? Left : Result extends typeof CompareResultRightInside ? Right : Result extends typeof CompareResultEqual ? Right : TNever);
|
|
1041
|
+
type TNarrowCompositeRule<Left extends TSchema, Right extends TSchema, CanCompositeLeft extends boolean = TCanComposite<Left>, CanCompositeRight extends boolean = TCanComposite<Right>> = ([CanCompositeLeft, CanCompositeRight] extends [true, true] ? TComposite<Left, Right> : [CanCompositeLeft, CanCompositeRight] extends [true, false] ? Left : [CanCompositeLeft, CanCompositeRight] extends [false, true] ? Right : TNarrowCompareRule<Left, Right>);
|
|
1042
|
+
type TNarrow<Left extends TSchema, Right extends TSchema> = (Left extends TNever ? TNever : Left extends TAny ? TAny : Left extends TUnknown ? Right : Right extends TNever ? TNever : Right extends TAny ? TAny : Right extends TUnknown ? Left : TNarrowCompositeRule<Left, Right>);
|
|
1043
|
+
//#endregion
|
|
1044
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/evaluate/distribute.d.mts
|
|
1045
|
+
type TShouldEvaluate<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;
|
|
1046
|
+
type TDistributeOperation<Left extends TSchema, Right extends TSchema, EvaluatedLeft extends TSchema = TEvaluateType<Left>, EvaluatedRight extends TSchema = TEvaluateType<Right>, ShouldEvaluate extends boolean = TShouldEvaluate<EvaluatedLeft, EvaluatedRight>, Result extends TSchema = [ShouldEvaluate] extends [true] ? TEvaluateIntersect<[EvaluatedLeft, EvaluatedRight]> : TNarrow<EvaluatedLeft, EvaluatedRight>> = Result;
|
|
1047
|
+
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<Left, Type>]> : Result extends [] ? [Type] : Result);
|
|
1048
|
+
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);
|
|
1049
|
+
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);
|
|
1050
|
+
//#endregion
|
|
1051
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/unsafe.d.mts
|
|
1052
|
+
type StaticUnsafe<Type extends unknown> = Type;
|
|
1053
|
+
/** Represents an Unsafe type. */
|
|
1054
|
+
interface TUnsafe<Type extends unknown = unknown> extends TSchema {
|
|
1055
|
+
'~unsafe': Type;
|
|
1056
|
+
}
|
|
1057
|
+
/** Creates a Unsafe type. */
|
|
1058
|
+
declare function Unsafe<Type extends unknown>(schema: TSchema): TUnsafe<Type>;
|
|
1059
|
+
/** Returns true if the given value is TUnsafe. */
|
|
1060
|
+
declare function IsUnsafe(value: unknown): value is TUnsafe;
|
|
1061
|
+
declare namespace result_d_exports {
|
|
1062
|
+
export { ExtendsFalse, ExtendsTrue, ExtendsUnion, IsExtendsFalse, IsExtendsTrue, IsExtendsTrueLike, IsExtendsUnion, Match, MatchFalse, MatchTrueLike, TExtendsFalse, TExtendsTrue, TExtendsTrueLike, TExtendsUnion$1 as TExtendsUnion, TResult };
|
|
1063
|
+
}
|
|
1064
|
+
type TResult = TExtendsUnion$1 | TExtendsTrue | TExtendsFalse;
|
|
1065
|
+
interface TExtendsUnion$1<Inferred extends TProperties = TProperties> {
|
|
1066
|
+
'~kind': 'ExtendsUnion';
|
|
1067
|
+
inferred: Inferred;
|
|
1068
|
+
}
|
|
1069
|
+
declare function ExtendsUnion<Inferred extends TProperties>(inferred: TProperties): TExtendsUnion$1<Inferred>;
|
|
1070
|
+
declare function IsExtendsUnion(value: unknown): value is TExtendsUnion$1;
|
|
1071
|
+
interface TExtendsTrue<Inferred extends TProperties = TProperties> {
|
|
1072
|
+
'~kind': 'ExtendsTrue';
|
|
1073
|
+
inferred: Inferred;
|
|
1074
|
+
}
|
|
1075
|
+
declare function ExtendsTrue<Inferred extends TProperties>(inferred: TProperties): TExtendsTrue<Inferred>;
|
|
1076
|
+
declare function IsExtendsTrue(value: unknown): value is TExtendsTrue;
|
|
1077
|
+
interface TExtendsFalse {
|
|
1078
|
+
type: 'ExtendsFalse';
|
|
1079
|
+
}
|
|
1080
|
+
declare function ExtendsFalse(): TExtendsFalse;
|
|
1081
|
+
declare function IsExtendsFalse(value: unknown): value is TExtendsFalse;
|
|
1082
|
+
type TExtendsTrueLike<Inferred extends TProperties = TProperties> = TExtendsUnion$1<Inferred> | TExtendsTrue<Inferred>;
|
|
1083
|
+
declare function IsExtendsTrueLike(value: unknown): value is TExtendsTrueLike;
|
|
1084
|
+
type MatchTrueLike = (inferred: TProperties) => unknown;
|
|
1085
|
+
type MatchFalse = () => unknown;
|
|
1086
|
+
declare function Match(result: TResult, true_: MatchTrueLike, false_: MatchFalse): unknown;
|
|
1087
|
+
//#endregion
|
|
1088
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/extends_right.d.mts
|
|
1089
|
+
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;
|
|
1090
|
+
type TExtendsRightAny<Inferred extends TProperties, _Left extends TSchema, Result extends Result.TResult = Result.TExtendsTrue<Inferred>> = Result;
|
|
1091
|
+
type TExtendsRightDependent<Inferred extends TProperties, Left extends TSchema, If extends TSchema, Then extends TSchema, Else extends TSchema, Result extends Result.TResult = TExtendsLeft<Inferred, Left, If> extends Result.TExtendsTrueLike<infer Inferred extends TProperties> ? (TExtendsLeft<Inferred, Left, Then> extends Result.TExtendsTrueLike<infer Inferred extends TProperties> ? Result.TExtendsTrue<Inferred> : Result.TExtendsFalse) : (TExtendsLeft<Inferred, Left, Else> extends Result.TExtendsTrueLike<infer Inferred extends TProperties> ? Result.TExtendsTrue<Inferred> : Result.TExtendsFalse)> = Result;
|
|
1092
|
+
type TExtendsRightEnum<Inferred extends TProperties, Left extends TSchema, Right extends TEnumValue[], Evaluated extends TSchema = TEvaluateEnum<Right>> = TExtendsLeft<Inferred, Left, Evaluated>;
|
|
1093
|
+
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>);
|
|
1094
|
+
type TExtendsRightTemplateLiteral<Inferred extends TProperties, Left extends TSchema, Right extends string, Evaluated extends TSchema = TEvaluateTemplateLiteral<Right>> = TExtendsLeft<Inferred, Left, Evaluated>;
|
|
1095
|
+
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);
|
|
1096
|
+
type TExtendsRight<Inferred extends TProperties, Left extends TSchema, Right extends TSchema> = (Right extends TAny ? TExtendsRightAny<Inferred, Left> : Right extends TDependent$1<infer If extends TSchema, infer Then extends TSchema, infer Else extends TSchema> ? TExtendsRightDependent<Inferred, Left, If, Then, Else> : 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);
|
|
1097
|
+
//#endregion
|
|
1098
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/any.d.mts
|
|
1099
|
+
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>);
|
|
1100
|
+
//#endregion
|
|
1101
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/array.d.mts
|
|
1102
|
+
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;
|
|
1103
|
+
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>);
|
|
1104
|
+
//#endregion
|
|
1105
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/bigint.d.mts
|
|
1106
|
+
type TExtendsBigInt<Inferred extends TProperties, Left extends TBigInt$1, Right extends TSchema> = (Right extends TBigInt$1 ? TExtendsTrue<Inferred> : TExtendsRight<Inferred, Left, Right>);
|
|
1107
|
+
//#endregion
|
|
1108
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/boolean.d.mts
|
|
1109
|
+
type TExtendsBoolean<Inferred extends TProperties, Left extends TBoolean, Right extends TSchema> = (Right extends TBoolean ? TExtendsTrue<Inferred> : TExtendsRight<Inferred, Left, Right>);
|
|
1110
|
+
//#endregion
|
|
1111
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/parameters.d.mts
|
|
1112
|
+
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);
|
|
1113
|
+
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);
|
|
1114
|
+
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>);
|
|
1115
|
+
type TExtendsParameters<Inferred extends TProperties, Left extends TSchema[], Right extends TSchema[]> = TParameterLeft<Inferred, Left, Right>;
|
|
1116
|
+
//#endregion
|
|
1117
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/void.d.mts
|
|
1118
|
+
type StaticVoid = void;
|
|
1119
|
+
/** Represents a Void type. */
|
|
1120
|
+
interface TVoid extends TSchema {
|
|
1121
|
+
'~kind': 'Void';
|
|
1122
|
+
type: 'void';
|
|
1123
|
+
}
|
|
1124
|
+
/** Creates a Void type. */
|
|
1125
|
+
declare function Void(options?: TSchemaOptions): TVoid;
|
|
1126
|
+
/** Returns true if the given value is TVoid. */
|
|
1127
|
+
declare function IsVoid(value: unknown): value is TVoid;
|
|
1128
|
+
//#endregion
|
|
1129
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/return_type.d.mts
|
|
1130
|
+
type TExtendsReturnType<Inferred extends TProperties, Left extends TSchema, Right extends TSchema> = (Right extends TVoid ? TExtendsTrue<Inferred> : TExtendsLeft<Inferred, Left, Right>);
|
|
1131
|
+
//#endregion
|
|
1132
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/constructor.d.mts
|
|
1133
|
+
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);
|
|
1134
|
+
//#endregion
|
|
1135
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/dependent.d.mts
|
|
1136
|
+
type TExtendsDependent<Inferred extends TProperties, If extends TSchema, Then extends TSchema, Else extends TSchema, Right extends TSchema> = (TExtendsLeft<Inferred, If, Right> extends TExtendsTrueLike<infer Inferred extends TProperties> ? TExtendsLeft<Inferred, Then, Right> : TExtendsLeft<Inferred, Else, Right>);
|
|
1137
|
+
//#endregion
|
|
1138
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/enum.d.mts
|
|
1139
|
+
type TExtendsEnum<Inferred extends TProperties, Left extends TEnumValue[], Right extends TSchema, Evaluated extends TSchema = TEvaluateEnum<Left>> = TExtendsLeft<Inferred, Evaluated, Right>;
|
|
1140
|
+
//#endregion
|
|
1141
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/function.d.mts
|
|
1142
|
+
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);
|
|
1143
|
+
//#endregion
|
|
1144
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/integer.d.mts
|
|
1145
|
+
type TExtendsInteger<Inferred extends TProperties, Left extends TInteger$1, Right extends TSchema> = (Right extends TInteger$1 ? TExtendsTrue<Inferred> : Right extends TNumber$1 ? TExtendsTrue<Inferred> : TExtendsRight<Inferred, Left, Right>);
|
|
1146
|
+
//#endregion
|
|
1147
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/intersect.d.mts
|
|
1148
|
+
type TExtendsIntersect<Inferred extends TProperties, Left extends TSchema[], Right extends TSchema, Evaluated extends TSchema = TEvaluateIntersect<Left>> = TExtendsLeft<Inferred, Evaluated, Right>;
|
|
1149
|
+
//#endregion
|
|
1150
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/literal.d.mts
|
|
1151
|
+
type TExtendsLiteralValue<Inferred extends TProperties, Left extends TLiteralValue, Right extends TLiteralValue> = (Left extends Right ? TExtendsTrue<Inferred> : TExtendsFalse);
|
|
1152
|
+
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$1 ? TExtendsTrue<Inferred> : TExtendsRight<Inferred, TLiteral<Left>, Right>);
|
|
1153
|
+
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>);
|
|
1154
|
+
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$1 ? TExtendsTrue<Inferred> : TExtendsRight<Inferred, TLiteral<Left>, Right>);
|
|
1155
|
+
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$1 ? TExtendsTrue<Inferred> : TExtendsRight<Inferred, TLiteral<Left>, Right>);
|
|
1156
|
+
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);
|
|
1157
|
+
//#endregion
|
|
1158
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/never.d.mts
|
|
1159
|
+
type TExtendsNever<Inferred extends TProperties, Left extends TNever, Right extends TSchema> = (Right extends TInfer ? TExtendsRight<Inferred, Left, Right> : TExtendsTrue<Inferred>);
|
|
1160
|
+
//#endregion
|
|
1161
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/null.d.mts
|
|
1162
|
+
type TExtendsNull<Inferred extends TProperties, Left extends TNull, Right extends TSchema> = (Right extends TNull ? TExtendsTrue<Inferred> : TExtendsRight<Inferred, Left, Right>);
|
|
1163
|
+
//#endregion
|
|
1164
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/number.d.mts
|
|
1165
|
+
type TExtendsNumber<Inferred extends TProperties, Left extends TNumber$1, Right extends TSchema> = (Right extends TNumber$1 ? TExtendsTrue<Inferred> : TExtendsRight<Inferred, Left, Right>);
|
|
1166
|
+
//#endregion
|
|
1167
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/object.d.mts
|
|
1168
|
+
type TExtendsPropertyOptional<Inferred extends TProperties, Left extends TSchema, Right extends TSchema> = (Left extends TOptional<Left> ? Right extends TOptional<Right> ? TExtendsTrue<Inferred> : TExtendsFalse : TExtendsTrue<Inferred>);
|
|
1169
|
+
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);
|
|
1170
|
+
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);
|
|
1171
|
+
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);
|
|
1172
|
+
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);
|
|
1173
|
+
type TExtendsObjectToObject<Inferred extends TProperties, Left extends TProperties, Right extends TProperties> = (TExtendsProperties<Inferred, Left, Right>);
|
|
1174
|
+
type TRecordMergeInferred<Left extends TProperties, Right extends TProperties, Result extends TProperties = { [Key in keyof Right]: Key extends keyof Left ? Left[Key] extends TUnion<infer Types extends TSchema[]> ? TUnion<[...Types, Right[Key]]> : TUnion<[Left[Key], Right[Key]]> : Right[Key]; }> = Result;
|
|
1175
|
+
type TExtendsRecordComparer<Properties extends TProperties, Keys extends (keyof Properties)[], Type extends TSchema, Result extends TProperties> = (Keys extends [infer Left extends (keyof Properties), ...infer Right extends (keyof Properties)[]] ? TExtendsLeft<{}, Properties[Left], Type> extends Result.TExtendsTrueLike<infer Inferred extends TProperties> ? TExtendsRecordComparer<Properties, Right, Type, TRecordMergeInferred<Result, Inferred>> : Result.TExtendsFalse : Result.TExtendsTrue<Result>);
|
|
1176
|
+
type TExtendsObjectToRecord<Inferred extends TProperties, Properties extends TProperties, _Pattern extends string, Value extends TSchema, Keys extends (keyof Properties)[] = TUnionToTuple<keyof Properties>, Result extends Result.TResult = TExtendsRecordComparer<Properties, Keys, Value, Inferred>> = Result;
|
|
1177
|
+
type TExtendsObject<Inferred extends TProperties, Left extends TProperties, Right extends TSchema> = (Right extends TRecord<infer Pattern extends string, infer Value extends TSchema> ? TExtendsObjectToRecord<Inferred, Left, Pattern, Value> : Right extends TObject<infer Properties extends TProperties> ? TExtendsObjectToObject<Inferred, Left, Properties> : TExtendsRight<Inferred, TObject<Left>, Right>);
|
|
1178
|
+
//#endregion
|
|
1179
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/record.d.mts
|
|
1180
|
+
type TFromObject$6<Inferred extends TProperties, Properties extends TProperties> = keyof Properties extends never ? TExtendsTrue<Inferred> : TExtendsFalse;
|
|
1181
|
+
type TFromRecord$1<Inferred extends TProperties, _LeftKey extends TSchema, LeftValue extends TSchema, _RightKey extends TSchema, RightValue extends TSchema> = (TExtendsLeft<Inferred, LeftValue, RightValue>);
|
|
1182
|
+
type TExtendsRecord<Inferred extends TProperties, LeftPattern extends string, LeftValue extends TSchema, Right extends TSchema> = (Right extends TRecord<infer Pattern extends string, infer Value extends TSchema> ? TFromRecord$1<Inferred, TRecordPatternToType<LeftPattern>, LeftValue, TRecordPatternToType<Pattern>, Value> : Right extends TObject<infer Properties extends TProperties> ? TFromObject$6<Inferred, Properties> : Right extends TAny ? TExtendsTrue<Inferred> : Right extends TUnknown ? TExtendsTrue<Inferred> : TExtendsFalse);
|
|
1183
|
+
//#endregion
|
|
1184
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/string.d.mts
|
|
1185
|
+
type TExtendsString<Inferred extends TProperties, Left extends TString$1, Right extends TSchema> = (Right extends TString$1 ? TExtendsTrue<Inferred> : TExtendsRight<Inferred, Left, Right>);
|
|
1186
|
+
//#endregion
|
|
1187
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/symbol.d.mts
|
|
1188
|
+
type TExtendsSymbol<Inferred extends TProperties, Left extends TSymbol, Right extends TSchema> = (Right extends TSymbol ? TExtendsTrue<Inferred> : TExtendsRight<Inferred, Left, Right>);
|
|
1189
|
+
//#endregion
|
|
1190
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/template_literal.d.mts
|
|
1191
|
+
type TExtendsTemplateLiteral<Inferred extends TProperties, Pattern extends string, Right extends TSchema, Evaluated extends TSchema = TEvaluateTemplateLiteral<Pattern>> = TExtendsLeft<Inferred, Evaluated, Right>;
|
|
1192
|
+
//#endregion
|
|
1193
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/rest.d.mts
|
|
1194
|
+
/** Represents a Rest instruction. */
|
|
1195
|
+
interface TRest<Type extends TSchema = TSchema> extends TSchema {
|
|
1196
|
+
'~kind': 'Rest';
|
|
1197
|
+
type: 'rest';
|
|
1198
|
+
items: Type;
|
|
1199
|
+
}
|
|
1200
|
+
/** Creates a Rest instruction type. */
|
|
1201
|
+
declare function Rest$1<Type extends TSchema>(type: Type): TRest<Type>;
|
|
1202
|
+
/** Returns true if the given value is TRest. */
|
|
1203
|
+
declare function IsRest(value: unknown): value is TRest;
|
|
1204
|
+
//#endregion
|
|
1205
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/inference.d.mts
|
|
1206
|
+
interface TInferable<Name extends string = string, Type extends TSchema = TSchema> {
|
|
1207
|
+
'~kind': 'Inferrable';
|
|
1208
|
+
name: Name;
|
|
1209
|
+
type: Type;
|
|
1210
|
+
}
|
|
1211
|
+
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;
|
|
1212
|
+
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;
|
|
1213
|
+
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);
|
|
1214
|
+
declare function TryInferResults<Rest extends TSchema[], Right extends TSchema>(rest: [...Rest], right: Right, result?: TSchema[]): TryInferResults<Rest, Right>;
|
|
1215
|
+
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);
|
|
1216
|
+
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);
|
|
1217
|
+
//#endregion
|
|
1218
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/tuple.d.mts
|
|
1219
|
+
type TReverse<Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TReverse<Right, [Left, ...Result]> : Result);
|
|
1220
|
+
type TApplyReverse<Types extends TSchema[], Reversed extends boolean> = Reversed extends true ? TReverse<Types> : Types;
|
|
1221
|
+
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;
|
|
1222
|
+
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);
|
|
1223
|
+
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);
|
|
1224
|
+
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);
|
|
1225
|
+
type TElements<Inferred extends TProperties, Reversed extends boolean, LeftRest extends TSchema[], RightRest extends TSchema[]> = TElementsRight<Inferred, Reversed, LeftRest, RightRest>;
|
|
1226
|
+
type TExtendsTupleToTuple<Inferred extends TProperties, Left extends TSchema[], Right extends TSchema[], InstantiatedRight extends TSchema[] = TInstantiateElements<Inferred, TState<[], []>, Right>, Reversed extends boolean = TReversed<InstantiatedRight>> = TElements<Inferred, Reversed, TApplyReverse<Left, Reversed>, TApplyReverse<InstantiatedRight, Reversed>>;
|
|
1227
|
+
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>);
|
|
1228
|
+
type TExtendsTuple<Inferred extends TProperties, Left extends TSchema[], Right extends TSchema, InstantiatedLeft extends TSchema[] = TInstantiateElements<Inferred, TState<[], []>, 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>);
|
|
1229
|
+
//#endregion
|
|
1230
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/undefined.d.mts
|
|
1231
|
+
type StaticUndefined = undefined;
|
|
1232
|
+
/** Represents a Undefined type. */
|
|
1233
|
+
interface TUndefined extends TSchema {
|
|
1234
|
+
'~kind': 'Undefined';
|
|
1235
|
+
type: 'undefined';
|
|
1236
|
+
}
|
|
1237
|
+
/** Creates a Undefined type. */
|
|
1238
|
+
declare function Undefined(options?: TSchemaOptions): TUndefined;
|
|
1239
|
+
/** Returns true if the given value is TUndefined. */
|
|
1240
|
+
declare function IsUndefined(value: unknown): value is TUndefined;
|
|
1241
|
+
//#endregion
|
|
1242
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/undefined.d.mts
|
|
1243
|
+
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>);
|
|
1244
|
+
//#endregion
|
|
1245
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/union.d.mts
|
|
1246
|
+
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);
|
|
1247
|
+
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>);
|
|
1248
|
+
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]>);
|
|
1249
|
+
//#endregion
|
|
1250
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/unknown.d.mts
|
|
1251
|
+
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);
|
|
1252
|
+
//#endregion
|
|
1253
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/void.d.mts
|
|
1254
|
+
type TExtendsVoid<Inferred extends TProperties, Left extends TVoid, Right extends TSchema> = (Right extends TVoid ? TExtendsTrue<Inferred> : TExtendsRight<Inferred, Left, Right>);
|
|
1255
|
+
//#endregion
|
|
1256
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/extends_left.d.mts
|
|
1257
|
+
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 TBigInt$1 ? 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 TDependent$1<infer If extends TSchema, infer Then extends TSchema, infer Else extends TSchema> ? TExtendsDependent<Inferred, If, Then, Else, Right> : Left extends TEnum<infer Values extends TEnumValue[]> ? TExtendsEnum<Inferred, Values, Right> : Left extends TFunction<infer Parameters extends TSchema[], infer ReturnType extends TSchema> ? TExtendsFunction<Inferred, Parameters, ReturnType, Right> : Left extends TInteger$1 ? TExtendsInteger<Inferred, Left, Right> : Left extends TIntersect<infer Types extends TSchema[]> ? TExtendsIntersect<Inferred, Types, 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$1 ? TExtendsNumber<Inferred, Left, Right> : Left extends TObject<infer Properties extends TProperties> ? TExtendsObject<Inferred, Properties, Right> : Left extends TRecord<infer Pattern extends string, infer Value extends TSchema> ? TExtendsRecord<Inferred, Pattern, Value, Right> : Left extends TString$1 ? 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);
|
|
1258
|
+
//#endregion
|
|
1259
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/interface/instantiate.d.mts
|
|
1260
|
+
type TInterfaceOperation<Heritage extends TSchema[], Properties extends TProperties, Result extends TSchema = TEvaluateIntersect<[...Heritage, TObject<Properties>]>> = Result;
|
|
1261
|
+
type TInterfaceAction<Heritage extends TSchema[], Properties extends TProperties, Result extends TSchema = TCanInstantiate<Heritage> extends true ? TInterfaceOperation<Heritage, Properties> : TInterfaceDeferred<Heritage, Properties>> = Result;
|
|
1262
|
+
type TInterfaceInstantiate<Context extends TProperties, State extends TState, Heritage extends TSchema[], Properties extends TProperties, InstantiatedHeritage extends TSchema[] = TInstantiateTypes<Context, State, Heritage>, InstantiatedProperties extends TProperties = TInstantiateProperties<Context, State, Properties>> = TInterfaceAction<InstantiatedHeritage, InstantiatedProperties>;
|
|
1263
|
+
//#endregion
|
|
1264
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/interface.d.mts
|
|
1265
|
+
/** Creates a deferred Interface action. */
|
|
1266
|
+
type TInterfaceDeferred<Heritage extends TSchema[] = TSchema[], Properties extends TProperties = TProperties> = (TDeferred<'Interface', [Heritage, Properties]>);
|
|
1267
|
+
/** Creates an Interface using the given heritage and properties. */
|
|
1268
|
+
type TInterface<Heritage extends TSchema[], Properties extends TProperties> = (TInterfaceAction<Heritage, Properties>);
|
|
1269
|
+
/** Creates an Interface using the given heritage and properties. */
|
|
1270
|
+
declare function Interface<Heritage extends TSchema[], Properties extends TProperties>(heritage: [...Heritage], properties: Properties, options?: TSchemaOptions): TInterface<Heritage, Properties>;
|
|
1271
|
+
//#endregion
|
|
1272
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/cyclic/check.d.mts
|
|
1273
|
+
type TFromRef$3<Stack extends (keyof Context)[], Context extends TProperties, Ref extends (keyof Context)> = Ref extends Stack[number] ? true : TFromType$17<[...Stack, Ref], Context, Context[Ref]>;
|
|
1274
|
+
type TFromProperties$2<Stack extends (keyof Context)[], Context extends TProperties, Properties extends TProperties, Types extends TSchema[] = TPropertyValues<Properties>> = TFromTypes$4<Stack, Context, Types>;
|
|
1275
|
+
type TFromTypes$4<Stack extends (keyof Context)[], Context extends TProperties, Types extends TSchema[]> = Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TFromType$17<Stack, Context, Left> extends true ? true : TFromTypes$4<Stack, Context, Right> : false;
|
|
1276
|
+
type TFromType$17<Stack extends (keyof Context)[], 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$17<Stack, Context, Type> : Type extends TConstructor<infer Parameters extends TSchema[], infer InstanceType extends TSchema> ? TFromTypes$4<Stack, Context, [...Parameters, InstanceType]> : Type extends TFunction<infer Parameters extends TSchema[], infer ReturnType extends TSchema> ? TFromTypes$4<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$4<Stack, Context, Types> : Type extends TObject<infer Properties extends TProperties> ? TFromProperties$2<Stack, Context, Properties> : Type extends TUnion<infer Types extends TSchema[]> ? TFromTypes$4<Stack, Context, Types> : Type extends TTuple<infer Types extends TSchema[]> ? TFromTypes$4<Stack, Context, Types> : Type extends TRecord<string, infer Type extends TSchema> ? TFromType$17<Stack, Context, Type> : false);
|
|
1277
|
+
/** Performs a cyclic check on the given type. Initial key stack can be empty, but faster if specified */
|
|
1278
|
+
type TCyclicCheck<Stack extends (keyof Context)[], Context extends TProperties, Type extends TSchema, Result extends boolean = TFromType$17<Stack, Context, Type>> = Result;
|
|
1279
|
+
//#endregion
|
|
1280
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/cyclic/candidates.d.mts
|
|
1281
|
+
type TResolveCandidateKeys<Context extends TProperties, Keys extends (keyof Context)[], Result extends (keyof Context)[] = []> = (Keys extends [infer Left extends keyof Context, ...infer Right extends (keyof Context)[]] ? TCyclicCheck<[Left], Context, Context[Left]> extends true ? TResolveCandidateKeys<Context, Right, [...Result, Left]> : TResolveCandidateKeys<Context, Right, Result> : Result);
|
|
1282
|
+
/** Returns keys for context types that need to be transformed to TCyclic. */
|
|
1283
|
+
type TCyclicCandidates<Context extends TProperties, Keys extends (keyof Context)[] = TPropertyKeys<Context>, Result extends (keyof Context)[] = TResolveCandidateKeys<Context, Keys>> = Result;
|
|
1284
|
+
//#endregion
|
|
1285
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/cyclic/dependencies.d.mts
|
|
1286
|
+
type TFromRef$2<Context extends TProperties, Ref extends string, Dependencies extends string[]> = Ref extends Dependencies[number] ? Dependencies : Ref extends keyof Context ? TFromType$16<Context, Context[Ref], [...Dependencies, Ref]> : TUnreachable;
|
|
1287
|
+
type TFromProperties$1<Context extends TProperties, Properties extends TProperties, Dependencies extends string[], Types extends TSchema[] = TPropertyValues<Properties>> = TFromTypes$3<Context, Types, Dependencies>;
|
|
1288
|
+
type TFromTypes$3<Context extends TProperties, Types extends TSchema[], Dependencies extends string[]> = Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TFromTypes$3<Context, Right, TFromType$16<Context, Left, Dependencies>> : Dependencies;
|
|
1289
|
+
type TFromType$16<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$16<Context, Type, Result> : Type extends TConstructor<infer Parameters extends TSchema[], infer InstanceType extends TSchema> ? TFromTypes$3<Context, [...Parameters, InstanceType], Result> : Type extends TFunction<infer Parameters extends TSchema[], infer ReturnType extends TSchema> ? TFromTypes$3<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$3<Context, Types, Result> : Type extends TObject<infer Properties extends TProperties> ? TFromProperties$1<Context, Properties, Result> : Type extends TUnion<infer Types extends TSchema[]> ? TFromTypes$3<Context, Types, Result> : Type extends TTuple<infer Types extends TSchema[]> ? TFromTypes$3<Context, Types, Result> : Type extends TRecord<string, infer Type extends TSchema> ? TFromType$16<Context, Type, Result> : Result);
|
|
1290
|
+
/** Returns dependent cyclic keys for the given type. This function is used to dead-type-eliminate (DTE) for initializing TCyclic types. */
|
|
1291
|
+
type TCyclicDependencies<Context extends TProperties, Key extends string, Type extends TSchema, Result extends string[] = TFromType$16<Context, Type, [Key]>> = Result;
|
|
1292
|
+
//#endregion
|
|
1293
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/cyclic/extends.d.mts
|
|
1294
|
+
type TFromRef$1<_Ref extends string> = (TAny);
|
|
1295
|
+
type TFromProperties<Properties extends TProperties, Result extends TProperties = { [Key in keyof Properties]: TFromType$15<Properties[Key]>; }> = { [Key in keyof Result]: Result[Key]; };
|
|
1296
|
+
type TFromTypes$2<Types extends TSchema[], Result extends TSchema[] = []> = Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TFromTypes$2<Right, [...Result, TFromType$15<Left>]> : Result;
|
|
1297
|
+
type TFromType$15<Type extends TSchema> = (Type extends TRef<infer Ref extends string> ? TFromRef$1<Ref> : Type extends TArray<infer Type extends TSchema> ? TArray<TFromType$15<Type>> : Type extends TConstructor<infer Parameters extends TSchema[], infer InstanceType extends TSchema> ? TFunction<TFromTypes$2<Parameters>, TFromType$15<InstanceType>> : Type extends TFunction<infer Parameters extends TSchema[], infer ReturnType extends TSchema> ? TFunction<TFromTypes$2<Parameters>, TFromType$15<ReturnType>> : Type extends TIntersect<infer Types extends TSchema[]> ? TIntersect<TFromTypes$2<Types>> : Type extends TObject<infer Properties extends TProperties> ? TObject<TFromProperties<Properties>> : Type extends TRecord<infer Pattern extends string, infer Value extends TSchema> ? TRecord<Pattern, TFromType$15<Value>> : Type extends TUnion<infer Types extends TSchema[]> ? TUnion<TFromTypes$2<Types>> : Type extends TTuple<infer Types extends TSchema[]> ? TTuple<TFromTypes$2<Types>> : Type);
|
|
1298
|
+
type TCyclicAnyFromParameters<Defs extends TProperties, Ref extends string> = (Ref extends keyof Defs ? TFromType$15<Defs[Ref]> : TUnknown);
|
|
1299
|
+
/** 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.*/
|
|
1300
|
+
type TCyclicExtends<Type extends TCyclic, Result extends TSchema = TCyclicAnyFromParameters<Type['$defs'], Type['$ref']>> = Result;
|
|
1301
|
+
//#endregion
|
|
1302
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/cyclic/instantiate.d.mts
|
|
1303
|
+
type TCyclicInterface<Context extends TProperties, Heritage extends TSchema[], Properties extends TProperties, InstantiatedHeritage extends TSchema[] = TInstantiateTypes<Context, TState<[], []>, Heritage>, instantiatedProperties extends TProperties = TInstantiateProperties<{}, TState<[], []>, Properties>, EvaluatedInterface extends TSchema = TEvaluateIntersect<[...InstantiatedHeritage, TObject<instantiatedProperties>]>> = EvaluatedInterface;
|
|
1304
|
+
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;
|
|
1305
|
+
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;
|
|
1306
|
+
//#endregion
|
|
1307
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/cyclic/target.d.mts
|
|
1308
|
+
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);
|
|
1309
|
+
/** Returns the target Type from the Defs or Never if target is non-resolvable */
|
|
1310
|
+
type TCyclicTarget<Defs extends TProperties, Ref extends string, Result extends TSchema = TResolve$1<Defs, Ref>> = Result;
|
|
1311
|
+
//#endregion
|
|
1312
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/extends/extends.d.mts
|
|
1313
|
+
type TCanonical<Type extends TSchema> = (Type extends TCyclic ? TCyclicExtends<Type> : Type extends TUnsafe ? TUnknown : Type);
|
|
1314
|
+
/** Performs a structural extends check on left and right types and yields inferred types on right if specified. */
|
|
1315
|
+
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>;
|
|
1316
|
+
/** Performs a structural extends check on left and right types and yields inferred types on right if specified. */
|
|
1317
|
+
declare function Extends$1<Inferred extends TProperties, Left extends TSchema, Right extends TSchema>(inferred: Inferred, left: Left, right: Right): TExtends<Inferred, Left, Right>;
|
|
1318
|
+
//#endregion
|
|
1319
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/exclude/operation.d.mts
|
|
1320
|
+
type TExcludeType<Left extends TSchema, Right extends TSchema, Check extends TResult = TExtends<{}, Left, Right>, Result extends TSchema[] = Check extends TExtendsTrueLike ? [] : [Left]> = Result;
|
|
1321
|
+
type TExcludeUnion<Left extends TSchema[], Right extends TSchema, Result extends TSchema[] = []> = (Left extends [infer Head extends TSchema, ...infer Tail extends TSchema[]] ? TExcludeUnion<Tail, Right, [...Result, ...TExcludeType<Head, Right>]> : Result);
|
|
1322
|
+
type TExcludeOperation<Left extends TSchema, Right extends TSchema, Evaluated extends TSchema = TEvaluateType<Left>, Canonical extends TSchema[] = Evaluated extends TUnion<infer Types extends TSchema[]> ? Types : [Evaluated], Remaining extends TSchema[] = TExcludeUnion<Canonical, Right>, Result extends TSchema = TEvaluateUnion<Remaining>> = Result;
|
|
1323
|
+
//#endregion
|
|
1324
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/evaluate/evaluate.d.mts
|
|
1325
|
+
type TEvaluateDependent<If extends TSchema, Then extends TSchema, Else extends TSchema, Intersected extends TSchema = TEvaluateIntersect<[If, Then]>, Excluded extends TSchema = TExcludeOperation<Else, If>, Result extends TSchema = TEvaluateUnion<[Intersected, Excluded]>> = Result;
|
|
1326
|
+
type TEvaluateEnum<Values extends TEnumValue[], Result extends TSchema[] = []> = (Values extends [infer Left extends TEnumValue, ...infer Right extends TEnumValue[]] ? TEvaluateEnum<Right, [...Result, TLiteral<Left>]> : TEvaluateUnion<Result>);
|
|
1327
|
+
type TEvaluateIntersect<Types extends TSchema[], Distribution extends TSchema[] = TDistribute$1<Types>, Broadend extends TSchema[] = TBroaden<Distribution>, Result extends TSchema = TEvaluateUnion<Broadend>> = Result;
|
|
1328
|
+
type TEvaluateTemplateLiteral<Pattern extends string, Evaluated extends TSchema = TTemplateLiteralDecode<Pattern>, Result extends TSchema = TEvaluateType<Evaluated>> = Result;
|
|
1329
|
+
type TEvaluateUnion<Types extends TSchema[], Broadend extends TSchema[] = TBroaden<Types>, Result extends TSchema = TEvaluateUnionFast<Broadend>> = Result;
|
|
1330
|
+
type TEvaluateType<Type extends TSchema, Result extends TSchema = (Type extends TDependent$1<infer If extends TSchema, infer Then extends TSchema, infer Else extends TSchema> ? TEvaluateDependent<If, Then, Else> : Type extends TEnum<infer Values extends TEnumValue[]> ? TEvaluateEnum<Values> : Type extends TIntersect<infer Types extends TSchema[]> ? TEvaluateIntersect<Types> : Type extends TTemplateLiteral<infer Pattern extends string> ? TEvaluateTemplateLiteral<Pattern> : Type extends TUnion<infer Types extends TSchema[]> ? TEvaluateUnion<Types> : Type)> = Result;
|
|
1331
|
+
type TEvaluateUnionFast<Types extends TSchema[], Result extends TSchema = (Types extends [infer Type extends TSchema] ? Type : Types extends [] ? TNever : TUnion<Types>)> = Result;
|
|
1332
|
+
//#endregion
|
|
1333
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/template_literal/encode.d.mts
|
|
1334
|
+
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);
|
|
1335
|
+
type TUnwrapTemplateLiteralPattern<Pattern extends string> = (Pattern extends `^${infer Pattern extends string}$` ? Pattern : never);
|
|
1336
|
+
type TEncodeLiteral<Value extends TLiteralValue, Right extends TSchema[], Pattern extends string> = (TEncodeTypes<Right, `${Pattern}${Value}`>);
|
|
1337
|
+
type TEncodeBigInt<Right extends TSchema[], Pattern extends string> = (TEncodeTypes<Right, `${Pattern}${typeof BigIntPattern}`>);
|
|
1338
|
+
type TEncodeInteger<Right extends TSchema[], Pattern extends string> = (TEncodeTypes<Right, `${Pattern}${typeof IntegerPattern}`>);
|
|
1339
|
+
type TEncodeNumber<Right extends TSchema[], Pattern extends string> = (TEncodeTypes<Right, `${Pattern}${typeof NumberPattern}`>);
|
|
1340
|
+
type TEncodeBoolean<Right extends TSchema[], Pattern extends string> = (TEncodeType<TUnion<[TLiteral<'false'>, TLiteral<'true'>]>, Right, Pattern>);
|
|
1341
|
+
type TEncodeString<Right extends TSchema[], Pattern extends string> = (TEncodeTypes<Right, `${Pattern}${typeof StringPattern}`>);
|
|
1342
|
+
type TEncodeTemplateLiteral<TemplatePattern extends string, Right extends TSchema[], Pattern extends string> = (TEncodeTypes<Right, `${Pattern}${TUnwrapTemplateLiteralPattern<TemplatePattern>}`>);
|
|
1343
|
+
type TEncodeTemplateLiteralDeferred<Types extends TSchema[], Right extends TSchema[], Pattern extends string, TemplateLiteral extends TSchema = TTemplateLiteralAction<Types>, Result extends TSchema = TEncodeType<TemplateLiteral, Right, Pattern>> = Result;
|
|
1344
|
+
type TEncodeEnum<Values extends TEnumValue[], Right extends TSchema[], Pattern extends string, Evaluated extends TSchema = TEvaluateEnum<Values>> = TEncodeType<Evaluated, Right, Pattern>;
|
|
1345
|
+
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>})`>;
|
|
1346
|
+
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$1 ? TEncodeInteger<Right, Pattern> : Type extends TLiteral<infer Value extends TLiteralValue> ? TEncodeLiteral<Value, Right, Pattern> : Type extends TBigInt$1 ? TEncodeBigInt<Right, Pattern> : Type extends TBoolean ? TEncodeBoolean<Right, Pattern> : Type extends TNumber$1 ? TEncodeNumber<Right, Pattern> : Type extends TString$1 ? 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);
|
|
1347
|
+
type TEncodeTypes<Types extends TSchema[], Pattern extends string> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TEncodeType<Left, Right, Pattern> : Pattern);
|
|
1348
|
+
type TEncodePattern<Types extends TSchema[], Encoded extends string = TEncodeTypes<Types, ''>, Result extends string = `^${Encoded}$`> = Result;
|
|
1349
|
+
/** Encodes a TemplateLiteral type sequence into a TemplateLiteral */
|
|
1350
|
+
type TTemplateLiteralEncode<Types extends TSchema[], Pattern extends string = TEncodePattern<Types>, Result extends TSchema = TTemplateLiteral<Pattern>> = Result;
|
|
1351
|
+
//#endregion
|
|
1352
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/template_literal/instantiate.d.mts
|
|
1353
|
+
type TTemplateLiteralAction<Types extends TSchema[], Result extends TSchema = TCanInstantiate<Types> extends true ? TTemplateLiteralEncode<Types> : TTemplateLiteralDeferred<Types>> = Result;
|
|
1354
|
+
type TTemplateLiteralInstantiate<Context extends TProperties, State extends TState, Types extends TSchema[], InstantiatedTypes extends TSchema[] = TInstantiateTypes<Context, State, Types>> = TTemplateLiteralAction<InstantiatedTypes>;
|
|
1355
|
+
//#endregion
|
|
1356
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/template_literal.d.mts
|
|
1357
|
+
type StaticTemplateLiteral<Pattern extends string> = (TTemplateLiteralStatic<Pattern>);
|
|
1358
|
+
/** Represents a TemplateLiteral type. */
|
|
1359
|
+
interface TTemplateLiteral<Pattern extends string = string> extends TSchema {
|
|
1360
|
+
'~kind': 'TemplateLiteral';
|
|
1361
|
+
type: 'string';
|
|
1362
|
+
pattern: Pattern;
|
|
1363
|
+
}
|
|
1364
|
+
/** Creates a deferred TemplateLiteral action. */
|
|
1365
|
+
type TTemplateLiteralDeferred<Types extends TSchema[] = TSchema[]> = (TDeferred<'TemplateLiteral', [Types]>);
|
|
1366
|
+
type TTemplateLiteralFromTypes<Types extends TSchema[], Result extends TSchema = TTemplateLiteralAction<Types>> = Result;
|
|
1367
|
+
type TTemplateLiteralFromString<Template extends string, Types extends TSchema[] = TParseTemplateIntoTypes<Template>, Result extends TSchema = TTemplateLiteralFromTypes<Types>> = Result;
|
|
1368
|
+
/** Creates a TemplateLiteral type. */
|
|
1369
|
+
declare function TemplateLiteral<Template extends string>(template: Template, options?: TSchemaOptions): TTemplateLiteralFromString<Template>;
|
|
1370
|
+
/** Creates a TemplateLiteral type. */
|
|
1371
|
+
declare function TemplateLiteral<Types extends TSchema[]>(types: [...Types], options?: TSchemaOptions): TTemplateLiteralFromTypes<Types>;
|
|
1372
|
+
/** Returns true if the given value is TTemplateLiteral. */
|
|
1373
|
+
declare function IsTemplateLiteral(value: unknown): value is TTemplateLiteral;
|
|
1374
|
+
//#endregion
|
|
1375
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/template_literal/is_finite.d.mts
|
|
1376
|
+
type TFromLiteral$4<_Value extends TLiteralValue> = true;
|
|
1377
|
+
type TFromTypesReduce<Types extends TSchema[]> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TFromType$14<Left> extends true ? TFromTypesReduce<Right> : false : true);
|
|
1378
|
+
type TFromTypes$1<Types extends TSchema[], Result extends boolean = Types extends [] ? false : TFromTypesReduce<Types>> = Result;
|
|
1379
|
+
type TFromType$14<Type extends TSchema> = Type extends TUnion<infer Types extends TSchema[]> ? TFromTypes$1<Types> : Type extends TLiteral<infer Value extends TLiteralValue> ? TFromLiteral$4<Value> : false;
|
|
1380
|
+
/** Returns true if the given TemplateLiteral types yields a finite variant set */
|
|
1381
|
+
type TIsTemplateLiteralFinite<Types extends TSchema[], Result extends boolean = TFromTypes$1<Types>> = Result;
|
|
1382
|
+
//#endregion
|
|
1383
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/template_literal/decode.d.mts
|
|
1384
|
+
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;
|
|
1385
|
+
type TFromLiteral$3<Variants extends string[], Value extends TLiteralValue> = Variants extends [] ? [`${Value}`] : TFromLiteralPush<Variants, Value>;
|
|
1386
|
+
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$13<Variants, Left>]> : Result;
|
|
1387
|
+
type TFromType$13<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;
|
|
1388
|
+
type TDecodeFromSpan<Variants extends string[], Types extends TSchema[]> = Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TDecodeFromSpan<TFromType$13<Variants, Left>, Right> : Variants;
|
|
1389
|
+
type TVariantsToLiterals<Variants extends string[], Result extends TSchema[] = []> = Variants extends [infer Left extends string, ...infer Right extends string[]] ? TVariantsToLiterals<Right, [...Result, TLiteral<Left>]> : Result;
|
|
1390
|
+
type TDecodeTypesAsUnion<Types extends TSchema[], Variants extends string[] = TDecodeFromSpan<[], Types>, Literals extends TSchema[] = TVariantsToLiterals<Variants>, Result extends TSchema = TUnion<Literals>> = Result;
|
|
1391
|
+
type TDecodeTypes<Types extends TSchema[], Result extends TSchema = (Types extends [] ? TUnreachable : Types extends [infer Type extends TLiteral] ? Type : TDecodeTypesAsUnion<Types>)> = Result;
|
|
1392
|
+
/** Decodes a TemplateLiteral into a Type. */
|
|
1393
|
+
type TTemplateLiteralDecodeUnsafe<Pattern extends string, Types extends TSchema[] = TParsePatternIntoTypes<Pattern>, Result extends TSchema = (Types extends [] ? TString$1 : TIsTemplateLiteralFinite<Types> extends true ? TDecodeTypes<Types> : TTemplateLiteral<Pattern>)> = Result;
|
|
1394
|
+
/** Decodes a TemplateLiteral pattern but returns TString if the pattern in non-finite. */
|
|
1395
|
+
type TTemplateLiteralDecode<Pattern extends string, Decoded extends TSchema = TTemplateLiteralDecodeUnsafe<Pattern>, Result extends TSchema = Decoded extends TTemplateLiteral ? TString$1 : Decoded> = Result;
|
|
1396
|
+
//#endregion
|
|
1397
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/record/from_key_any.d.mts
|
|
1398
|
+
type TFromAnyKey<Value extends TSchema, Result extends TSchema = TRecord<typeof StringKey, Value>> = Result;
|
|
1399
|
+
//#endregion
|
|
1400
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/record/from_key_boolean.d.mts
|
|
1401
|
+
type TFromBooleanKey<Value extends TSchema, Result extends TSchema = TObject<{
|
|
1402
|
+
true: Value;
|
|
1403
|
+
false: Value;
|
|
1404
|
+
}>> = Result;
|
|
1405
|
+
//#endregion
|
|
1406
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/record/from_key_enum.d.mts
|
|
1407
|
+
type TFromEnumKey<Values extends TEnumValue[], Value extends TSchema, UnionKey extends TSchema = TEvaluateEnum<Values>, Result extends TSchema = TFromKey<UnionKey, Value>> = Result;
|
|
1408
|
+
//#endregion
|
|
1409
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/record/from_key_integer.d.mts
|
|
1410
|
+
type TFromIntegerKey<_Key extends TInteger$1, Value extends TSchema, Result extends TSchema = TRecord<typeof IntegerKey, Value>> = Result;
|
|
1411
|
+
//#endregion
|
|
1412
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/record/from_key_intersect.d.mts
|
|
1413
|
+
type TFromIntersectKey<Types extends TSchema[], Value extends TSchema, EvaluatedKey extends TSchema = TEvaluateIntersect<Types>, Result extends TSchema = TFromKey<EvaluatedKey, Value>> = Result;
|
|
1414
|
+
//#endregion
|
|
1415
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/record/from_key_literal.d.mts
|
|
1416
|
+
type TFromLiteralKey<Key extends TLiteralValue, Value extends TSchema, Result extends TSchema = (Key extends string | number ? TObject<{ [_ in Key]: Value; }> : Key extends false ? TObject<{
|
|
1417
|
+
false: Value;
|
|
1418
|
+
}> : Key extends true ? TObject<{
|
|
1419
|
+
true: Value;
|
|
1420
|
+
}> : TObject<{}>)> = Result;
|
|
1421
|
+
//#endregion
|
|
1422
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/record/from_key_number.d.mts
|
|
1423
|
+
type TFromNumberKey<Key extends TNumber$1, Value extends TSchema, Result extends TSchema = TRecord<typeof NumberKey, Value>> = Result;
|
|
1424
|
+
//#endregion
|
|
1425
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/record/from_key_string.d.mts
|
|
1426
|
+
type TFromStringKey<_Key extends TSchema, Value extends TSchema, Result extends TSchema = TRecord<typeof StringKey, Value>> = Result;
|
|
1427
|
+
//#endregion
|
|
1428
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/record/from_key_template_literal.d.mts
|
|
1429
|
+
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<TEvaluateTemplateLiteral<Pattern>, Value> : TRecord<Pattern, Value>> = Result;
|
|
1430
|
+
//#endregion
|
|
1431
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/evaluate/flatten.d.mts
|
|
1432
|
+
type TFlattenType<Type extends TSchema, Result extends TSchema[] = Type extends TUnion<infer Types extends TSchema[]> ? TFlatten<Types> : [Type]> = Result;
|
|
1433
|
+
type TFlatten<Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TFlatten<Right, [...Result, ...TFlattenType<Left>]> : Result);
|
|
1434
|
+
//#endregion
|
|
1435
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/record/from_key_union.d.mts
|
|
1436
|
+
type TStringOrNumberCheck<Types extends TSchema[]> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? Left extends TString$1 | TNumber$1 | TInteger$1 ? true : TStringOrNumberCheck<Right> : false);
|
|
1437
|
+
type TTryBuildRecord<Types extends TSchema[], Value extends TSchema, Result extends TSchema | undefined = (TStringOrNumberCheck<Types> extends true ? TRecord<typeof StringKey, Value> : undefined)> = Result;
|
|
1438
|
+
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]; });
|
|
1439
|
+
type TCreateObject<Variants extends TSchema[], Value extends TSchema, Properties extends TProperties = TCreateProperties<Variants, Value>, Result extends TSchema = TObject<Properties>> = Result;
|
|
1440
|
+
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;
|
|
1441
|
+
//#endregion
|
|
1442
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/record/from_key.d.mts
|
|
1443
|
+
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$1 ? 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$1 ? TFromNumberKey<Key, Value> : Key extends TString$1 ? 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;
|
|
1444
|
+
//#endregion
|
|
1445
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/record/instantiate.d.mts
|
|
1446
|
+
type TRecordAction<Key extends TSchema, Value extends TSchema, Result extends TSchema = TCanInstantiate<[Key]> extends true ? TFromKey<Key, Value> : TRecordDeferred<Key, Value>> = Result;
|
|
1447
|
+
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>;
|
|
1448
|
+
//#endregion
|
|
1449
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/record.d.mts
|
|
1450
|
+
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;
|
|
1451
|
+
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;
|
|
1452
|
+
type TStringKey = typeof StringKey;
|
|
1453
|
+
type TIntegerKey = typeof IntegerKey;
|
|
1454
|
+
type TNumberKey = typeof NumberKey;
|
|
1455
|
+
declare const IntegerKey = "^-?(?:0|[1-9][0-9]*)$";
|
|
1456
|
+
declare const NumberKey = "^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$";
|
|
1457
|
+
declare const StringKey = "^.*$";
|
|
1458
|
+
interface TRecord<Key extends string = string, Value extends TSchema = TSchema> extends TSchema {
|
|
1459
|
+
'~kind': 'Record';
|
|
1460
|
+
type: 'object';
|
|
1461
|
+
patternProperties: { [_ in Key]: Value; };
|
|
1462
|
+
}
|
|
1463
|
+
/** Represents a deferred Record action. */
|
|
1464
|
+
type TRecordDeferred<Key extends TSchema = TSchema, Value extends TSchema = TSchema> = (TDeferred<'Record', [Key, Value]>);
|
|
1465
|
+
/** Creates a Record type. */
|
|
1466
|
+
declare function Record$1<Key extends TSchema, Value extends TSchema>(key: Key, value: Value, options?: TObjectOptions): TRecordAction<Key, Value>;
|
|
1467
|
+
/** Transforms a Record Pattern to a Type */
|
|
1468
|
+
type TRecordPatternToType<Pattern extends string, Result extends TSchema = (Pattern extends typeof StringKey ? TString$1 : Pattern extends typeof IntegerKey ? TInteger$1 : Pattern extends typeof NumberKey ? TNumber$1 : TTemplateLiteralDecodeUnsafe<Pattern>)> = Result;
|
|
1469
|
+
/** Extracts the Pattern from a Record type */
|
|
1470
|
+
type TRecordPattern<Type extends TRecord, Result extends string = Extract<keyof Type['patternProperties'], string>> = Result;
|
|
1471
|
+
/** Extracts the Pattern from a Record type */
|
|
1472
|
+
declare function RecordPattern<Type extends TRecord>(type: Type): TRecordPattern<Type>;
|
|
1473
|
+
/** Extracts the Key from a Record type */
|
|
1474
|
+
type TRecordKey<Type extends TRecord, Pattern extends string = TRecordPattern<Type>, Result extends TSchema = TRecordPatternToType<Pattern>> = Result;
|
|
1475
|
+
/** Extracts the Key from a Record type */
|
|
1476
|
+
declare function RecordKey<Type extends TRecord>(type: Type): TRecordKey<Type>;
|
|
1477
|
+
/** Extracts the Value from a Record type */
|
|
1478
|
+
type TRecordValue<Type extends TRecord, Result extends TSchema = Type['patternProperties'][TRecordPattern<Type>]> = Result;
|
|
1479
|
+
/** Extracts the Value from a Record type */
|
|
1480
|
+
declare function RecordValue<Type extends TRecord>(type: Type): TRecordValue<Type>;
|
|
1481
|
+
declare function IsRecord(value: unknown): value is TRecord;
|
|
1482
|
+
//#endregion
|
|
1483
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/this.d.mts
|
|
1484
|
+
type StaticThis<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties> = (StaticType<Stack, Direction, Context, This, TObject<This>>);
|
|
1485
|
+
/** Represents a This type. */
|
|
1486
|
+
interface TThis extends TSchema {
|
|
1487
|
+
'~kind': 'This';
|
|
1488
|
+
$ref: '#';
|
|
1489
|
+
}
|
|
1490
|
+
/** Creates a This type. */
|
|
1491
|
+
declare function This(options?: TSchemaOptions): TThis;
|
|
1492
|
+
/** Returns true if the given value is TThis. */
|
|
1493
|
+
declare function IsThis(value: unknown): value is TThis;
|
|
1494
|
+
//#endregion
|
|
1495
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/evaluate/compare.d.mts
|
|
1496
|
+
declare const CompareResultEqual = 0;
|
|
1497
|
+
declare const CompareResultDisjoint = 1;
|
|
1498
|
+
declare const CompareResultLeftInside = 2;
|
|
1499
|
+
declare const CompareResultRightInside = 3;
|
|
1500
|
+
type TCompareResult = (typeof CompareResultEqual | typeof CompareResultDisjoint | typeof CompareResultLeftInside | typeof CompareResultRightInside);
|
|
1501
|
+
/** Compares left and right types and determines their set relationship */
|
|
1502
|
+
type TCompare<Left extends TSchema, Right extends TSchema, Extends extends [TResult, TResult] = [TExtends<{}, Left, Right>, TExtends<{}, Right, Left>]> = (Extends extends [TExtendsTrueLike, TExtendsTrueLike] ? typeof CompareResultEqual : Extends extends [TExtendsTrueLike, TExtendsFalse] ? typeof CompareResultLeftInside : Extends extends [TExtendsFalse, TExtendsTrueLike] ? typeof CompareResultRightInside : typeof CompareResultDisjoint);
|
|
1503
|
+
//#endregion
|
|
1504
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/evaluate/broaden.d.mts
|
|
1505
|
+
type TBroadenFilter<Type extends TSchema, Types extends TSchema[], Result extends TSchema[] = [], All extends TSchema[] = Types> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TCompare<Type, Left> extends typeof CompareResultLeftInside | typeof CompareResultEqual ? All : TCompare<Type, Left> extends typeof CompareResultDisjoint ? TBroadenFilter<Type, Right, [...Result, Left], All> : TBroadenFilter<Type, Right, Result, All> : [...Result, Type]);
|
|
1506
|
+
type TBroadenType<Type extends TSchema, Types extends TSchema[], Result extends TSchema[], Evaluated extends TSchema = TEvaluateType<Type>> = (Evaluated extends TAny ? [Evaluated] : Evaluated extends TUnknown ? [Evaluated] : Evaluated extends TNever ? TBroadenTypes<Types, Result> : Evaluated extends TObject ? TBroadenTypes<Types, [...Result, Evaluated]> : TBroadenTypes<Types, TBroadenFilter<Evaluated, Result>>);
|
|
1507
|
+
type TBroadenTypes<Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TBroadenType<Left, Right, Result> : Result);
|
|
1508
|
+
type TBroaden<Types extends TSchema[], Broadened extends TSchema[] = TBroadenTypes<Types>, Flattened extends TSchema[] = TFlatten<Broadened>> = Flattened;
|
|
1509
|
+
//#endregion
|
|
1510
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/evaluate/instantiate.d.mts
|
|
1511
|
+
type TEvaluateAction<Type extends TSchema, Result extends TSchema = TEvaluateType<Type>> = Result;
|
|
1512
|
+
type TEvaluateInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>> = TEvaluateAction<InstantiatedType>;
|
|
1513
|
+
//#endregion
|
|
1514
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/call/distribute_arguments.d.mts
|
|
1515
|
+
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);
|
|
1516
|
+
type TBuildDistributionArray<Parameters extends TParameter$1[], Names extends string[], Result extends boolean[] = []> = (Parameters extends [infer Left extends TParameter$1, ...infer Right extends TParameter$1[]] ? Left['name'] extends Names[number] ? TBuildDistributionArray<Right, Names, [...Result, true]> : TBuildDistributionArray<Right, Names, [...Result, false]> : Result);
|
|
1517
|
+
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);
|
|
1518
|
+
type TCanonicalArgument<Type extends TSchema> = (Type extends TTemplateLiteral<infer Pattern extends string> ? TEvaluateTemplateLiteral<Pattern> : Type extends TEnum<infer Values extends TEnumValue[]> ? TEvaluateEnum<Values> : Type);
|
|
1519
|
+
type TExpand<Argument extends TSchema, CanonicalArgument extends TSchema = TCanonicalArgument<Argument>> = (CanonicalArgument extends TUnion<infer Types extends TSchema[]> ? [...Types] : [CanonicalArgument]);
|
|
1520
|
+
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);
|
|
1521
|
+
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);
|
|
1522
|
+
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);
|
|
1523
|
+
type TDistributeArguments<Parameters extends TParameter$1[], 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;
|
|
1524
|
+
//#endregion
|
|
1525
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/call/resolve_target.d.mts
|
|
1526
|
+
type TFromNotResolvable = (['(not-resolvable)', TNever]);
|
|
1527
|
+
type TFromNotGeneric = (['(not-generic)', TNever]);
|
|
1528
|
+
type TFromGeneric<Name extends string, Parameters extends TParameter$1[], Expression extends TSchema> = ([Name, TGeneric<Parameters, Expression>]);
|
|
1529
|
+
type TFromRef<Context extends TProperties, Ref extends string, Arguments extends TSchema[]> = (Ref extends keyof Context ? TFromType$12<Context, Ref, Context[Ref], Arguments> : TFromNotResolvable);
|
|
1530
|
+
type TFromType$12<Context extends TProperties, Name extends string, Type extends TSchema, Arguments extends TSchema[]> = (Type extends TGeneric<infer Parameters extends TParameter$1[], infer Expression extends TSchema> ? TFromGeneric<Name, Parameters, Expression> : Type extends TRef<infer Ref extends string> ? TFromRef<Context, Ref, Arguments> : TFromNotGeneric);
|
|
1531
|
+
/** Resolves a named generic target from the context, or returns TNever if it cannot be resolved or is not generic. */
|
|
1532
|
+
type TResolveTarget<Context extends TProperties, Target extends TSchema, Arguments extends TSchema[], Result extends [string, TSchema] = TFromType$12<Context, '(anonymous)', Target, Arguments>> = Result;
|
|
1533
|
+
//#endregion
|
|
1534
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/call/resolve_arguments.d.mts
|
|
1535
|
+
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; }>;
|
|
1536
|
+
type TBindArguments<Context extends TProperties, State extends TState, ParameterLeft extends TParameter$1, ParameterRight extends TParameter$1[], 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, []>);
|
|
1537
|
+
type TBindParameters<Context extends TProperties, State extends TState, Parameters extends TParameter$1[], Arguments extends TSchema[]> = (Parameters extends [infer Left extends TParameter$1, ...infer Right extends TParameter$1[]] ? TBindArguments<Context, State, Left, Right, Arguments> : Context);
|
|
1538
|
+
type TResolveArgumentsContext<Context extends TProperties, State extends TState, Parameters extends TParameter$1[], Arguments extends TSchema[], Result extends TProperties = TBindParameters<Context, State, Parameters, Arguments>> = Result;
|
|
1539
|
+
//#endregion
|
|
1540
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/call/instantiate.d.mts
|
|
1541
|
+
type TPeek<State extends TState, Result extends string = State['callstack'] extends [...infer _ extends string[], infer Top extends string] ? Top : ''> = Result;
|
|
1542
|
+
type TIsTailCall<State extends TState, Name extends string, Result extends boolean = TPeek<State> extends Name ? true : false> = Result;
|
|
1543
|
+
type TCallDispatch<Context extends TProperties, State extends TState, Target extends TRef, Parameters extends TParameter$1[], Expression extends TSchema, Arguments extends TSchema[], ArgumentsContext extends TProperties = TResolveArgumentsContext<Context, State, Parameters, Arguments>, ReturnType extends TSchema = TInstantiateType<ArgumentsContext, TState<[...State['callstack'], Target['$ref']], State['visited']>, Expression>> = TInstantiateType<ArgumentsContext, TState<[], []>, ReturnType>;
|
|
1544
|
+
type TCallDistributed<Context extends TProperties, State extends TState, Target extends TRef, Parameters extends TParameter$1[], 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);
|
|
1545
|
+
type TCallImmediate<Context extends TProperties, State extends TState, Target extends TRef, Parameters extends TParameter$1[], 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;
|
|
1546
|
+
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$1[], 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;
|
|
1547
|
+
//#endregion
|
|
1548
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/call.d.mts
|
|
1549
|
+
/** Represents a deferred generic Call */
|
|
1550
|
+
interface TCall<Target extends TSchema = TSchema, Arguments extends TSchema[] = TSchema[]> extends TSchema {
|
|
1551
|
+
'~kind': 'Call';
|
|
1552
|
+
type: 'call';
|
|
1553
|
+
target: Target;
|
|
1554
|
+
arguments: Arguments;
|
|
1555
|
+
}
|
|
1556
|
+
type TCallConstruct<Target extends TSchema, Arguments extends TSchema[], Result extends TSchema = TCall<Target, Arguments>> = Result;
|
|
1557
|
+
/** Creates a Call type. */
|
|
1558
|
+
declare function Call<Target extends TSchema, Arguments extends TSchema[]>(target: Target, arguments_: [...Arguments]): TCallInstantiate<{}, TState<[], []>, Target, Arguments>;
|
|
1559
|
+
/** Returns true if the given type is a TCall. */
|
|
1560
|
+
declare function IsCall(value: unknown): value is TCall;
|
|
1561
|
+
//#endregion
|
|
1562
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/immutable/instantiate_remove.d.mts
|
|
1563
|
+
type TRemoveImmutableOperation<Type extends TSchema, Result extends TSchema = Type extends TImmutable<infer Type extends TSchema> ? TRemoveImmutableOperation<Type> : Type> = Result;
|
|
1564
|
+
type TRemoveImmutableAction<Type extends TSchema, Result extends TSchema = TRemoveImmutableOperation<Type>> = Result;
|
|
1565
|
+
type TRemoveImmutableInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiateType extends TSchema = TInstantiateType<Context, State, Type>> = TRemoveImmutableAction<InstantiateType>;
|
|
1566
|
+
//#endregion
|
|
1567
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/intrinsics/mapping.d.mts
|
|
1568
|
+
interface TMappingType {
|
|
1569
|
+
input: string;
|
|
1570
|
+
output: string;
|
|
1571
|
+
}
|
|
1572
|
+
type TApplyMapping<Mapping extends TMappingType, Value extends string> = ((Mapping & {
|
|
1573
|
+
input: Value;
|
|
1574
|
+
})['output']);
|
|
1575
|
+
//#endregion
|
|
1576
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/intrinsics/from_literal.d.mts
|
|
1577
|
+
type TFromLiteral$2<Mapping extends TMappingType, Value extends TLiteralValue> = (Value extends string ? TLiteral<TApplyMapping<Mapping, Value>> : TLiteral<Value>);
|
|
1578
|
+
//#endregion
|
|
1579
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.d.mts
|
|
1580
|
+
type TFromTemplateLiteral$2<Mapping extends TMappingType, Pattern extends string, Evaluated extends TSchema = TEvaluateTemplateLiteral<Pattern>, Result extends TSchema = TFromType$11<Mapping, Evaluated>> = Result;
|
|
1581
|
+
//#endregion
|
|
1582
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/intrinsics/from_union.d.mts
|
|
1583
|
+
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>);
|
|
1584
|
+
//#endregion
|
|
1585
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/intrinsics/from_type.d.mts
|
|
1586
|
+
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);
|
|
1587
|
+
//#endregion
|
|
1588
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/capitalize.d.mts
|
|
1589
|
+
/** Creates a deferred Capitalize action. */
|
|
1590
|
+
type TCapitalizeDeferred<Type extends TSchema> = (TDeferred<'Capitalize', [Type]>);
|
|
1591
|
+
/** Applies a Capitalize action to the given type. */
|
|
1592
|
+
type TCapitalize<Type extends TSchema> = (TCapitalizeAction<Type>);
|
|
1593
|
+
/** Applies a Capitalize action to the given type. */
|
|
1594
|
+
declare function Capitalize$1<Type extends TSchema>(type: Type, options?: TSchemaOptions): TCapitalize<Type>;
|
|
1595
|
+
//#endregion
|
|
1596
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/lowercase.d.mts
|
|
1597
|
+
/** Creates a deferred Lowercase action. */
|
|
1598
|
+
type TLowercaseDeferred<Type extends TSchema> = (TDeferred<'Lowercase', [Type]>);
|
|
1599
|
+
/** Applies a Lowercase action to the given type. */
|
|
1600
|
+
type TLowercase<Type extends TSchema> = (TLowercaseAction<Type>);
|
|
1601
|
+
/** Applies a Lowercase action to the given type. */
|
|
1602
|
+
declare function Lowercase$1<Type extends TSchema>(type: Type, options?: TSchemaOptions): TLowercase<Type>;
|
|
1603
|
+
//#endregion
|
|
1604
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/uncapitalize.d.mts
|
|
1605
|
+
/** Creates a deferred Uncapitalize action. */
|
|
1606
|
+
type TUncapitalizeDeferred<Type extends TSchema> = (TDeferred<'Uncapitalize', [Type]>);
|
|
1607
|
+
/** Applies a Uncapitalize action to the given type. */
|
|
1608
|
+
type TUncapitalize<Type extends TSchema> = (TUncapitalizeAction<Type>);
|
|
1609
|
+
/** Applies a Uncapitalize action to the given type. */
|
|
1610
|
+
declare function Uncapitalize$1<Type extends TSchema>(type: Type, options?: TSchemaOptions): TUncapitalize<Type>;
|
|
1611
|
+
//#endregion
|
|
1612
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/uppercase.d.mts
|
|
1613
|
+
/** Creates a deferred Uppercase action. */
|
|
1614
|
+
type TUppercaseDeferred<Type extends TSchema> = (TDeferred<'Uppercase', [Type]>);
|
|
1615
|
+
/** Applies a Uppercase action to the given type. */
|
|
1616
|
+
type TUppercase<Type extends TSchema> = (TUppercaseAction<Type>);
|
|
1617
|
+
/** Applies a Uppercase action to the given type. */
|
|
1618
|
+
declare function Uppercase$1<Type extends TSchema>(type: Type, options?: TSchemaOptions): TUppercase<Type>;
|
|
1619
|
+
//#endregion
|
|
1620
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/intrinsics/instantiate.d.mts
|
|
1621
|
+
interface TCapitalizeMapping extends TMappingType {
|
|
1622
|
+
output: Capitalize<this['input']>;
|
|
1623
|
+
}
|
|
1624
|
+
interface TLowercaseMapping extends TMappingType {
|
|
1625
|
+
output: Lowercase<this['input']>;
|
|
1626
|
+
}
|
|
1627
|
+
interface TUncapitalizeMapping extends TMappingType {
|
|
1628
|
+
output: Uncapitalize<this['input']>;
|
|
1629
|
+
}
|
|
1630
|
+
interface TUppercaseMapping extends TMappingType {
|
|
1631
|
+
output: Uppercase<this['input']>;
|
|
1632
|
+
}
|
|
1633
|
+
type TCapitalizeAction<Type extends TSchema, Result extends TSchema = TCanInstantiate<[Type]> extends true ? TFromType$11<TCapitalizeMapping, Type> : TCapitalizeDeferred<Type>> = Result;
|
|
1634
|
+
type TLowercaseAction<Type extends TSchema, Result extends TSchema = TCanInstantiate<[Type]> extends true ? TFromType$11<TLowercaseMapping, Type> : TLowercaseDeferred<Type>> = Result;
|
|
1635
|
+
type TUncapitalizeAction<Type extends TSchema, Result extends TSchema = TCanInstantiate<[Type]> extends true ? TFromType$11<TUncapitalizeMapping, Type> : TUncapitalizeDeferred<Type>> = Result;
|
|
1636
|
+
type TUppercaseAction<Type extends TSchema, Result extends TSchema = TCanInstantiate<[Type]> extends true ? TFromType$11<TUppercaseMapping, Type> : TUppercaseDeferred<Type>> = Result;
|
|
1637
|
+
type TCapitalizeInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>> = TCapitalizeAction<InstantiatedType>;
|
|
1638
|
+
type TLowercaseInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>> = TLowercaseAction<InstantiatedType>;
|
|
1639
|
+
type TUncapitalizeInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>> = TUncapitalizeAction<InstantiatedType>;
|
|
1640
|
+
type TUppercaseInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>> = TUppercaseAction<InstantiatedType>;
|
|
1641
|
+
//#endregion
|
|
1642
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/conditional.d.mts
|
|
1643
|
+
/** Creates a deferred Conditional action. */
|
|
1644
|
+
type TConditionalDeferred<Left extends TSchema, Right extends TSchema, True extends TSchema, False extends TSchema> = (TDeferred<'Conditional', [Left, Right, True, False]>);
|
|
1645
|
+
/** Applies a Conditional action to the given types. */
|
|
1646
|
+
type TConditional<Left extends TSchema, Right extends TSchema, True extends TSchema, False extends TSchema> = (TConditionalAction<{}, TState<[], []>, Left, Right, True, False>);
|
|
1647
|
+
/** Applies a Conditional action to the given types. */
|
|
1648
|
+
declare function Conditional<Left extends TSchema, Right extends TSchema, True extends TSchema, False extends TSchema>(left: Left, right: Right, true_: True, false_: False, options?: TSchemaOptions): TConditional<Left, Right, True, False>;
|
|
1649
|
+
//#endregion
|
|
1650
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/conditional/instantiate.d.mts
|
|
1651
|
+
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>);
|
|
1652
|
+
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;
|
|
1653
|
+
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>;
|
|
1654
|
+
//#endregion
|
|
1655
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/constructor_parameters.d.mts
|
|
1656
|
+
/** Creates a deferred ConstructorParameters action. */
|
|
1657
|
+
type TConstructorParametersDeferred<Type extends TSchema> = (TDeferred<'ConstructorParameters', [Type]>);
|
|
1658
|
+
/** Applies a ConstructorParameters action to a type. */
|
|
1659
|
+
type TConstructorParameters<Type extends TSchema> = (TConstructorParametersAction<Type>);
|
|
1660
|
+
/** Applies a ConstructorParameters action to a type. */
|
|
1661
|
+
declare function ConstructorParameters<Type extends TSchema>(type: Type, options?: TSchemaOptions): TConstructorParameters<Type>;
|
|
1662
|
+
//#endregion
|
|
1663
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.d.mts
|
|
1664
|
+
type TConstructorParametersOperation<Type extends TSchema, Parameters extends TSchema[] = Type extends TConstructor ? Type['parameters'] : [], InstantiatedParameters extends TSchema[] = TInstantiateElements<{}, TState<[], []>, Parameters>, Result extends TSchema = TTuple<InstantiatedParameters>> = Result;
|
|
1665
|
+
type TConstructorParametersAction<Type extends TSchema, Result extends TSchema = TCanInstantiate<[Type]> extends true ? TConstructorParametersOperation<Type> : TConstructorParametersDeferred<Type>> = Result;
|
|
1666
|
+
type TConstructorParametersInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>> = TConstructorParametersAction<InstantiatedType>;
|
|
1667
|
+
//#endregion
|
|
1668
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/exclude.d.mts
|
|
1669
|
+
/** Creates a deferred Exclude action. */
|
|
1670
|
+
type TExcludeDeferred<Left extends TSchema, Right extends TSchema> = (TDeferred<'Exclude', [Left, Right]>);
|
|
1671
|
+
/** Applies a Exclude action using the given types */
|
|
1672
|
+
type TExclude<Left extends TSchema, Right extends TSchema> = (TExcludeAction<Left, Right>);
|
|
1673
|
+
/** Applies a Exclude action using the given types */
|
|
1674
|
+
declare function Exclude$1<Left extends TSchema, Right extends TSchema>(left: Left, right: Right, options?: TSchemaOptions): TExclude<Left, Right>;
|
|
1675
|
+
//#endregion
|
|
1676
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/exclude/instantiate.d.mts
|
|
1677
|
+
type TExcludeAction<Left extends TSchema, Right extends TSchema, Result extends TSchema = TCanInstantiate<[Left, Right]> extends true ? TExcludeOperation<Left, Right> : TExcludeDeferred<Left, Right>> = Result;
|
|
1678
|
+
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>;
|
|
1679
|
+
//#endregion
|
|
1680
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/extract.d.mts
|
|
1681
|
+
/** Creates a deferred Extract action. */
|
|
1682
|
+
type TExtractDeferred<Left extends TSchema, Right extends TSchema> = (TDeferred<'Extract', [Left, Right]>);
|
|
1683
|
+
/** Applies an Extract action using the given types. */
|
|
1684
|
+
type TExtract<Left extends TSchema, Right extends TSchema> = (TExtractAction<Left, Right>);
|
|
1685
|
+
/** Applies an Extract action using the given types. */
|
|
1686
|
+
declare function Extract$1<Left extends TSchema, Right extends TSchema>(left: Left, right: Right, options?: TSchemaOptions): TExtract<Left, Right>;
|
|
1687
|
+
//#endregion
|
|
1688
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/extract/operation.d.mts
|
|
1689
|
+
type TExtractType<Left extends TSchema, Right extends TSchema, Check extends TResult = TExtends<{}, Left, Right>, Result extends TSchema[] = Check extends TExtendsTrueLike ? [Left] : []> = Result;
|
|
1690
|
+
type TExtractUnion<Left extends TSchema[], Right extends TSchema, Result extends TSchema[] = []> = (Left extends [infer Head extends TSchema, ...infer Tail extends TSchema[]] ? TExtractUnion<Tail, Right, [...Result, ...TExtractType<Head, Right>]> : Result);
|
|
1691
|
+
type TExtractOperation<Left extends TSchema, Right extends TSchema, Evaluated extends TSchema = TEvaluateType<Left>, Canonical extends TSchema[] = Evaluated extends TUnion<infer Types extends TSchema[]> ? Types : [Evaluated], Remaining extends TSchema[] = TExtractUnion<Canonical, Right>, Result extends TSchema = TEvaluateUnion<Remaining>> = Result;
|
|
1692
|
+
//#endregion
|
|
1693
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/extract/instantiate.d.mts
|
|
1694
|
+
type TExtractAction<Left extends TSchema, Right extends TSchema, Result extends TSchema = TCanInstantiate<[Left, Right]> extends true ? TExtractOperation<Left, Right> : TExtractDeferred<Left, Right>> = Result;
|
|
1695
|
+
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>;
|
|
1696
|
+
//#endregion
|
|
1697
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/helpers/keys_to_indexer.d.mts
|
|
1698
|
+
type TKeysToLiterals<Keys extends PropertyKey[], Result extends TLiteral[] = []> = (Keys extends [infer Left extends PropertyKey, ...infer Right extends PropertyKey[]] ? (Left extends TLiteralValue ? TKeysToLiterals<Right, [...Result, TLiteral<Left>]> : TKeysToLiterals<Right, Result>) : Result);
|
|
1699
|
+
type TKeysToIndexer<Keys extends PropertyKey[], Literals extends TLiteral[] = TKeysToLiterals<Keys>, Result extends TSchema = TUnion<Literals>> = Result;
|
|
1700
|
+
//#endregion
|
|
1701
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/indexed.d.mts
|
|
1702
|
+
/** Creates a deferred Index action. */
|
|
1703
|
+
type TIndexDeferred<Type extends TSchema, Indexer extends TSchema> = (TDeferred<'Index', [Type, Indexer]>);
|
|
1704
|
+
/** Applies a Index action using the given types. */
|
|
1705
|
+
type TIndex<Type extends TSchema, Indexer extends TSchema> = (TIndexAction<Type, Indexer>);
|
|
1706
|
+
/** Applies a Index action using the given types. */
|
|
1707
|
+
declare function Index<Type extends TSchema, Indexer extends PropertyKey[]>(type: Type, indexer: readonly [...Indexer], options?: TSchemaOptions): TIndex<Type, TKeysToIndexer<Indexer>>;
|
|
1708
|
+
/** Applies a Index action using the given types. */
|
|
1709
|
+
declare function Index<Type extends TSchema, Indexer extends TSchema>(type: Type, indexer: Indexer, options?: TSchemaOptions): TIndex<Type, Indexer>;
|
|
1710
|
+
//#endregion
|
|
1711
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/object/from_cyclic.d.mts
|
|
1712
|
+
type TFromCyclic$4<Defs extends TProperties, Ref extends string, Target extends TSchema = TCyclicTarget<Defs, Ref>, Result extends TProperties = TFromType$10<Target>> = Result;
|
|
1713
|
+
//#endregion
|
|
1714
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/object/from_dependent.d.mts
|
|
1715
|
+
type TFromDependent$4<If extends TSchema, Then extends TSchema, Else extends TSchema, Evaluated extends TSchema = TEvaluateDependent<If, Then, Else>, Result extends TSchema = TFromType$10<Evaluated>> = Result;
|
|
1716
|
+
//#endregion
|
|
1717
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/object/from_intersect.d.mts
|
|
1718
|
+
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;
|
|
1719
|
+
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]; });
|
|
1720
|
+
//#endregion
|
|
1721
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/object/from_object.d.mts
|
|
1722
|
+
type TFromObject$5<Properties extends TProperties> = (Properties);
|
|
1723
|
+
//#endregion
|
|
1724
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/object/from_tuple.d.mts
|
|
1725
|
+
type TFromTuple$3<Types extends TSchema[], Object extends TSchema = TTupleToObject<TTuple<Types>>, Result extends TSchema = TFromType$10<Object>> = Result;
|
|
1726
|
+
//#endregion
|
|
1727
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/object/from_union.d.mts
|
|
1728
|
+
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;
|
|
1729
|
+
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);
|
|
1730
|
+
type TFromUnion$5<Types extends TSchema[]> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TReduceVariants<Right, TFromType$10<Left>> : TUnreachable);
|
|
1731
|
+
//#endregion
|
|
1732
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/object/from_type.d.mts
|
|
1733
|
+
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 TDependent$1<infer If extends TSchema, infer Then extends TSchema, infer Else extends TSchema> ? TFromDependent$4<If, Then, Else> : 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;
|
|
1734
|
+
//#endregion
|
|
1735
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/object/collapse.d.mts
|
|
1736
|
+
type TCollapseToObject<Type extends TSchema, Properties extends TProperties = TFromType$10<Type>, Result extends TSchema = TObject<Properties>> = Result;
|
|
1737
|
+
//#endregion
|
|
1738
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/helpers/keys.d.mts
|
|
1739
|
+
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;
|
|
1740
|
+
//#endregion
|
|
1741
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/indexed/from_array.d.mts
|
|
1742
|
+
type TNormalizeLiteral<Value extends TLiteralValue, Result extends TSchema = TLiteral<TConvertToIntegerKey<Value>>> = Result;
|
|
1743
|
+
type TNormalizeIndexerTypes<Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TNormalizeIndexerTypes<Right, [...Result, TNormalizeIndexer<Left>]> : Result);
|
|
1744
|
+
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;
|
|
1745
|
+
type TFromArray$2<Type extends TSchema, Indexer extends TSchema, NormalizedIndexer extends TSchema = TNormalizeIndexer<Indexer>, Check extends TResult = TExtends<{}, NormalizedIndexer, TNumber$1>, Result extends TSchema = (Check extends TExtendsTrueLike ? Type : Indexer extends TLiteral<infer _ extends 'length'> ? TNumber$1 : TNever)> = Result;
|
|
1746
|
+
//#endregion
|
|
1747
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/indexable/from_cyclic.d.mts
|
|
1748
|
+
type TFromCyclic$3<Defs extends TProperties, Ref extends string, Target extends TSchema = TCyclicTarget<Defs, Ref>, Result extends string[] = TFromType$9<Target>> = Result;
|
|
1749
|
+
//#endregion
|
|
1750
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/indexable/from_dependent.d.mts
|
|
1751
|
+
type TFromDependent$3<If extends TSchema, Then extends TSchema, Else extends TSchema, Evaluated extends TSchema = TEvaluateDependent<If, Then, Else>, Result extends string[] = TFromType$9<Evaluated>> = Result;
|
|
1752
|
+
//#endregion
|
|
1753
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/indexable/from_enum.d.mts
|
|
1754
|
+
type TFromEnum$1<Values extends TEnumValue[], Evaluated extends TSchema = TEvaluateEnum<Values>, Result extends string[] = TFromType$9<Evaluated>> = Result;
|
|
1755
|
+
//#endregion
|
|
1756
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/indexable/from_intersect.d.mts
|
|
1757
|
+
type TFromIntersect$3<Types extends TSchema[], Evaluated extends TSchema = TEvaluateIntersect<Types>, Result extends string[] = TFromType$9<Evaluated>> = Result;
|
|
1758
|
+
//#endregion
|
|
1759
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/indexable/from_literal.d.mts
|
|
1760
|
+
type TFromLiteral$1<Value extends TLiteralValue, Result extends string[] = [`${Value}`]> = Result;
|
|
1761
|
+
//#endregion
|
|
1762
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/indexable/from_template_literal.d.mts
|
|
1763
|
+
type TFromTemplateLiteral$1<Pattern extends string, Evaluated extends TSchema = TEvaluateTemplateLiteral<Pattern>, Result extends string[] = TFromType$9<Evaluated>> = Result;
|
|
1764
|
+
//#endregion
|
|
1765
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/indexable/from_union.d.mts
|
|
1766
|
+
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);
|
|
1767
|
+
//#endregion
|
|
1768
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/indexable/from_type.d.mts
|
|
1769
|
+
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 TDependent$1<infer If extends TSchema, infer Then extends TSchema, infer Else extends TSchema> ? TFromDependent$3<If, Then, Else> : Indexer extends TEnum<infer Values extends TEnumValue[]> ? TFromEnum$1<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;
|
|
1770
|
+
//#endregion
|
|
1771
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/indexable/to_indexable_keys.d.mts
|
|
1772
|
+
type TToIndexableKeys<Indexer extends TSchema, Result extends string[] = TFromType$9<Indexer>> = Result;
|
|
1773
|
+
//#endregion
|
|
1774
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/this/expand_this.d.mts
|
|
1775
|
+
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);
|
|
1776
|
+
type TFromType$8<Properties extends TProperties, Type extends TSchema> = (Type extends TArray<infer Type extends TSchema> ? TArray<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 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);
|
|
1777
|
+
type TExpandThis<Properties extends TProperties, Type extends TSchema, Result extends TSchema = TFromType$8<Properties, Type>> = Result;
|
|
1778
|
+
//#endregion
|
|
1779
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/indexed/from_object.d.mts
|
|
1780
|
+
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;
|
|
1781
|
+
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);
|
|
1782
|
+
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;
|
|
1783
|
+
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);
|
|
1784
|
+
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;
|
|
1785
|
+
type TFromObject$4<Properties extends TProperties, Indexer extends TSchema, Result extends TSchema = Indexer extends TNumber$1 ? TFromIndexerNumber<Properties> : TFromIndexer<Properties, Indexer>> = Result;
|
|
1786
|
+
//#endregion
|
|
1787
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/indexed/array_indexer.d.mts
|
|
1788
|
+
type TConvertLiteral<Value extends TLiteralValue, Result extends TSchema = TLiteral<TConvertToIntegerKey<Value>>> = Result;
|
|
1789
|
+
type TArrayIndexerTypes<Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TArrayIndexerTypes<Right, [...Result, TFormatArrayIndexer<Left>]> : Result);
|
|
1790
|
+
/** Formats embedded integer-like strings on an Indexer to be number values inline with TS indexing | coercion behaviors. */
|
|
1791
|
+
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;
|
|
1792
|
+
//#endregion
|
|
1793
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/indexed/from_tuple.d.mts
|
|
1794
|
+
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);
|
|
1795
|
+
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;
|
|
1796
|
+
type TFromTupleWithoutIndexer<Types extends TSchema[], Result extends TSchema = TEvaluateUnionFast<Types>> = Result;
|
|
1797
|
+
type TFromTuple$2<Types extends TSchema[], Indexer extends TSchema, Result extends TSchema = (Indexer extends TLiteral<infer _ extends 'length'> ? TLiteral<Types['length']> : Indexer extends TNumber$1 | TInteger$1 ? TFromTupleWithoutIndexer<Types> : TFromTupleWithIndexer<Types, Indexer>)> = Result;
|
|
1798
|
+
//#endregion
|
|
1799
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/indexed/from_type.d.mts
|
|
1800
|
+
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);
|
|
1801
|
+
//#endregion
|
|
1802
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/indexed/instantiate.d.mts
|
|
1803
|
+
type TNormalizeType$1<Type extends TSchema, Result extends TSchema = (Type extends TCyclic ? TCollapseToObject<Type> : Type extends TDependent$1 ? TCollapseToObject<Type> : Type extends TIntersect ? TCollapseToObject<Type> : Type extends TUnion ? TCollapseToObject<Type> : Type)> = Result;
|
|
1804
|
+
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;
|
|
1805
|
+
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>;
|
|
1806
|
+
//#endregion
|
|
1807
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/instance_type.d.mts
|
|
1808
|
+
/** Creates a deferred InstanceType action. */
|
|
1809
|
+
type TInstanceTypeDeferred<Type extends TSchema> = (TDeferred<'InstanceType', [Type]>);
|
|
1810
|
+
/** Applies a InstanceType action to the given type. */
|
|
1811
|
+
type TInstanceType<Type extends TSchema> = (TInstanceTypeAction<Type>);
|
|
1812
|
+
/** Applies a InstanceType action to the given type. */
|
|
1813
|
+
declare function InstanceType$1<Type extends TSchema>(type: Type, options?: TSchemaOptions): TInstanceType<Type>;
|
|
1814
|
+
//#endregion
|
|
1815
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/instance_type/instantiate.d.mts
|
|
1816
|
+
type TInstanceTypeOperation<Type extends TSchema> = (Type extends TConstructor ? Type['instanceType'] : TNever);
|
|
1817
|
+
type TInstanceTypeAction<Type extends TSchema, Result extends TSchema = TCanInstantiate<[Type]> extends true ? TInstanceTypeOperation<Type> : TInstanceTypeDeferred<Type>> = Result;
|
|
1818
|
+
type TInstanceTypeInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>> = TInstanceTypeAction<InstantiatedType>;
|
|
1819
|
+
//#endregion
|
|
1820
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/keyof.d.mts
|
|
1821
|
+
/** Creates a deferred KeyOf action. */
|
|
1822
|
+
type TKeyOfDeferred<Type extends TSchema> = (TDeferred<'KeyOf', [Type]>);
|
|
1823
|
+
/** Applies a KeyOf action to the given type. */
|
|
1824
|
+
type TKeyOf<Type extends TSchema> = (TKeyOfAction<Type>);
|
|
1825
|
+
/** Applies a KeyOf action to the given type. */
|
|
1826
|
+
declare function KeyOf<Type extends TSchema>(type: Type, options?: TSchemaOptions): TKeyOf<Type>;
|
|
1827
|
+
//#endregion
|
|
1828
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/keyof/from_any.d.mts
|
|
1829
|
+
type TFromAny<Result = TUnion<[TNumber$1, TString$1, TSymbol]>> = Result;
|
|
1830
|
+
//#endregion
|
|
1831
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/keyof/from_array.d.mts
|
|
1832
|
+
type TFromArray$1<_Type extends TSchema> = TNumber$1;
|
|
1833
|
+
//#endregion
|
|
1834
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/keyof/from_object.d.mts
|
|
1835
|
+
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);
|
|
1836
|
+
type TFromObject$3<Properties extends TProperties, PropertyKeys extends PropertyKey[] = TUnionToTuple<keyof Properties>, Variants extends TSchema[] = TFromPropertyKeys<PropertyKeys>, Result extends TSchema = TEvaluateUnionFast<Variants>> = Result;
|
|
1837
|
+
//#endregion
|
|
1838
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/keyof/from_record.d.mts
|
|
1839
|
+
type TFromRecord<Type extends TRecord, Result extends TSchema = TRecordKey<Type>> = Result;
|
|
1840
|
+
//#endregion
|
|
1841
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/keyof/from_tuple.d.mts
|
|
1842
|
+
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>);
|
|
1843
|
+
//#endregion
|
|
1844
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/keyof/from_type.d.mts
|
|
1845
|
+
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);
|
|
1846
|
+
//#endregion
|
|
1847
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/keyof/instantiate.d.mts
|
|
1848
|
+
type TNormalizeType<Type extends TSchema, Result extends TSchema = (Type extends TCyclic ? TCollapseToObject<Type> : Type extends TDependent$1 ? TCollapseToObject<Type> : Type extends TIntersect ? TCollapseToObject<Type> : Type extends TUnion ? TCollapseToObject<Type> : Type)> = Result;
|
|
1849
|
+
type TKeyOfAction<Type extends TSchema, Result extends TSchema = TCanInstantiate<[Type]> extends true ? TFromType$6<TNormalizeType<Type>> : TKeyOfDeferred<Type>> = Result;
|
|
1850
|
+
type TKeyOfInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>> = TKeyOfAction<InstantiatedType>;
|
|
1851
|
+
//#endregion
|
|
1852
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/mapped.d.mts
|
|
1853
|
+
/** Creates a deferred Mapped action. */
|
|
1854
|
+
type TMappedDeferred<Identifier extends TIdentifier, Type extends TSchema, As extends TSchema, Property extends TSchema> = (TDeferred<'Mapped', [Identifier, Type, As, Property]>);
|
|
1855
|
+
/** Applies a Mapped action using the given types. */
|
|
1856
|
+
type TMapped<Identifier extends TIdentifier, Type extends TSchema, As extends TSchema, Property extends TSchema> = (TMappedAction<{}, TState<[], []>, Identifier, Type, As, Property>);
|
|
1857
|
+
/** Applies a Mapped action using the given types. */
|
|
1858
|
+
declare function Mapped<Identifier extends TIdentifier, Type extends TSchema, As extends TSchema, Property extends TSchema>(identifier: Identifier, type: Type, as: As, property: Property, options?: TSchemaOptions): TMapped<Identifier, Type, As, Property>;
|
|
1859
|
+
//#endregion
|
|
1860
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/mapped/mapped_variants.d.mts
|
|
1861
|
+
type TFromTemplateLiteral<Pattern extends string, Evaluated extends TSchema = TEvaluateTemplateLiteral<Pattern>, Result extends TSchema[] = TFromType$5<Evaluated>> = Result;
|
|
1862
|
+
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);
|
|
1863
|
+
type TFromEnum<Values extends TEnumValue[], Evaluated extends TSchema = TEvaluateEnum<Values>, Result extends TSchema[] = TFromType$5<Evaluated>> = Result;
|
|
1864
|
+
type TFromLiteral<Value extends TLiteralValue, Result extends TSchema[] = Value extends number ? [TLiteral<`${Value}`>] : [TLiteral<Value>]> = Result;
|
|
1865
|
+
type TFromType$5<Type extends TSchema, Result extends TSchema[] = (Type extends TEnum<infer Values extends TEnumValue[]> ? TFromEnum<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;
|
|
1866
|
+
type TMappedVariants<Type extends TSchema, Result extends TSchema[] = TFromType$5<Type>> = Result;
|
|
1867
|
+
//#endregion
|
|
1868
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/mapped/mapped_operation.d.mts
|
|
1869
|
+
type TCanonicalAs<InstantiatedAs extends TSchema, Result extends TSchema = InstantiatedAs extends TTemplateLiteral<infer Pattern extends string> ? TEvaluateTemplateLiteral<Pattern> : InstantiatedAs> = Result;
|
|
1870
|
+
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;
|
|
1871
|
+
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);
|
|
1872
|
+
type TReduceProperties<Properties extends TProperties[], Result extends TSchema[] = []> = (Properties extends [infer Left extends TProperties, ...infer Right extends TProperties[]] ? TReduceProperties<Right, [...Result, TObject<Left>]> : Result);
|
|
1873
|
+
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;
|
|
1874
|
+
//#endregion
|
|
1875
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/mapped/instantiate.d.mts
|
|
1876
|
+
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;
|
|
1877
|
+
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>;
|
|
1878
|
+
//#endregion
|
|
1879
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/module/instantiate.d.mts
|
|
1880
|
+
type TInstantiateCyclics<Context extends TProperties, Declarations extends TProperties, CyclicKeys extends string[], DeclarationContext extends TProperties = TAssign<Context, Declarations>, Result extends TProperties = { [Key in Extract<keyof Declarations, CyclicKeys[number]>]: TInstantiateCyclic<DeclarationContext, Key, Declarations[Key]>; }> = Result;
|
|
1881
|
+
type TInstantiateNonCyclics<Context extends TProperties, Declarations extends TProperties, CyclicKeys extends string[], DeclarationContext extends TProperties = TAssign<Context, Declarations>, Result extends TProperties = { [Key in Exclude<keyof Declarations, CyclicKeys[number]>]: TInstantiateType<DeclarationContext, TState<[], []>, Declarations[Key]>; }> = Result;
|
|
1882
|
+
type TInstantiateModule<Context extends TProperties, Declarations extends TProperties, CyclicCandidates extends string[] = TCyclicCandidates<Declarations>, InstantiatedCyclics extends TProperties = TInstantiateCyclics<Context, Declarations, CyclicCandidates>, InstantiatedNonCyclics extends TProperties = TInstantiateNonCyclics<Context, Declarations, CyclicCandidates>, InstantiatedModule extends TProperties = InstantiatedCyclics & InstantiatedNonCyclics> = { [Key in keyof InstantiatedModule]: InstantiatedModule[Key]; } & {};
|
|
1883
|
+
type TModuleInstantiate<Context extends TProperties, _State extends TState, Declarations extends TProperties, InstantiatedModule extends TProperties = TInstantiateModule<Context, Declarations>> = InstantiatedModule;
|
|
1884
|
+
//#endregion
|
|
1885
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/non_nullable.d.mts
|
|
1886
|
+
/** Creates a deferred NonNullable action. */
|
|
1887
|
+
type TNonNullableDeferred<Type extends TSchema> = (TDeferred<'NonNullable', [Type]>);
|
|
1888
|
+
/** Applies a NonNullable action to the given type. */
|
|
1889
|
+
type TNonNullable<Type extends TSchema> = (TNonNullableAction<Type>);
|
|
1890
|
+
/** Applies a NonNullable action to the given type. */
|
|
1891
|
+
declare function NonNullable<Type extends TSchema>(type: Type, options?: TSchemaOptions): TNonNullable<Type>;
|
|
1892
|
+
//#endregion
|
|
1893
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/non_nullable/instantiate.d.mts
|
|
1894
|
+
type TNonNullableOperation<Type extends TSchema, Excluded extends TSchema = TUnion<[TNull, TUndefined]>> = TExcludeAction<Type, Excluded>;
|
|
1895
|
+
type TNonNullableAction<Type extends TSchema, Result extends TSchema = TCanInstantiate<[Type]> extends true ? TNonNullableOperation<Type> : TNonNullableDeferred<Type>> = Result;
|
|
1896
|
+
type TNonNullableInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>> = TNonNullableAction<InstantiatedType>;
|
|
1897
|
+
//#endregion
|
|
1898
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/omit.d.mts
|
|
1899
|
+
/** Creates a deferred Omit action. */
|
|
1900
|
+
type TOmitDeferred<Type extends TSchema, Indexer extends TSchema> = (TDeferred<'Omit', [Type, Indexer]>);
|
|
1901
|
+
/** Applies a Omit action using the given types. */
|
|
1902
|
+
type TOmit<Type extends TSchema, Indexer extends TSchema> = (TOmitAction<Type, Indexer>);
|
|
1903
|
+
/** Applies a Omit action using the given types. */
|
|
1904
|
+
declare function Omit$1<Type extends TSchema, Indexer extends PropertyKey[]>(type: Type, indexer: readonly [...Indexer], options?: TSchemaOptions): TOmit<Type, TKeysToIndexer<Indexer>>;
|
|
1905
|
+
/** Applies a Omit action using the given types. */
|
|
1906
|
+
declare function Omit$1<Type extends TSchema, Indexer extends TSchema>(type: Type, indexer: Indexer, options?: TSchemaOptions): TOmit<Type, Indexer>;
|
|
1907
|
+
//#endregion
|
|
1908
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/indexable/to_indexable.d.mts
|
|
1909
|
+
/** Transforms a type into a TProperties used for indexing operations */
|
|
1910
|
+
type TToIndexable<Type extends TSchema, Collapsed extends TSchema = TCollapseToObject<Type>, Result extends TProperties = (Collapsed extends TObject<infer Properties extends TProperties> ? Properties : TUnreachable)> = Result;
|
|
1911
|
+
//#endregion
|
|
1912
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/omit/from_type.d.mts
|
|
1913
|
+
type TNormalKeys<Keys extends string[], UnionKeys extends string = Keys[number], Result extends string | number = (UnionKeys extends `${infer Value extends number}` ? UnionKeys | Value : UnionKeys)> = Result;
|
|
1914
|
+
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;
|
|
1915
|
+
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;
|
|
1916
|
+
//#endregion
|
|
1917
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/omit/instantiate.d.mts
|
|
1918
|
+
type TOmitAction<Type extends TSchema, Indexer extends TSchema, Result extends TSchema = TCanInstantiate<[Type, Indexer]> extends true ? TFromType$4<Type, Indexer> : TOmitDeferred<Type, Indexer>> = Result;
|
|
1919
|
+
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>;
|
|
1920
|
+
//#endregion
|
|
1921
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/parameters.d.mts
|
|
1922
|
+
/** Creates a deferred Parameters action. */
|
|
1923
|
+
type TParametersDeferred<Type extends TSchema> = (TDeferred<'Parameters', [Type]>);
|
|
1924
|
+
/** Applies a Parameters action to the given type. */
|
|
1925
|
+
type TParameters<Type extends TSchema> = (TParametersAction<Type>);
|
|
1926
|
+
/** Applies a Parameters action to the given type. */
|
|
1927
|
+
declare function Parameters$1<Type extends TSchema>(type: Type, options?: TSchemaOptions): TParameters<Type>;
|
|
1928
|
+
//#endregion
|
|
1929
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/parameters/instantiate.d.mts
|
|
1930
|
+
type TParametersOperation<Type extends TSchema, Parameters extends TSchema[] = Type extends TFunction ? Type['parameters'] : [], InstantiatedParameters extends TSchema[] = TInstantiateElements<{}, TState<[], []>, Parameters>, Result extends TSchema = TTuple<InstantiatedParameters>> = Result;
|
|
1931
|
+
type TParametersAction<Type extends TSchema, Result extends TSchema = TCanInstantiate<[Type]> extends true ? TParametersOperation<Type> : TParametersDeferred<Type>> = Result;
|
|
1932
|
+
type TParametersInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>> = TParametersAction<InstantiatedType>;
|
|
1933
|
+
//#endregion
|
|
1934
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/partial.d.mts
|
|
1935
|
+
/** Creates a deferred Partial action. */
|
|
1936
|
+
type TPartialDeferred<Type extends TSchema> = (TDeferred<'Partial', [Type]>);
|
|
1937
|
+
/** Applies a Partial action to the given type. */
|
|
1938
|
+
type TPartial<Type extends TSchema> = (TPartialAction<Type>);
|
|
1939
|
+
/** Applies a Partial action to the given type. */
|
|
1940
|
+
declare function Partial$1<Type extends TSchema>(type: Type, options?: TSchemaOptions): TPartial<Type>;
|
|
1941
|
+
//#endregion
|
|
1942
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/partial/from_cyclic.d.mts
|
|
1943
|
+
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;
|
|
1944
|
+
//#endregion
|
|
1945
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/partial/from_dependent.d.mts
|
|
1946
|
+
type TFromDependent$2<If extends TSchema, Then extends TSchema, Else extends TSchema, Evaluated extends TSchema = TEvaluateDependent<If, Then, Else>, Result extends TSchema = TFromType$3<Evaluated>> = Result;
|
|
1947
|
+
//#endregion
|
|
1948
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/partial/from_intersect.d.mts
|
|
1949
|
+
type TFromIntersect$2<Types extends TSchema[], Evaluated extends TSchema = TEvaluateIntersect<Types>, Result extends TSchema = TFromType$3<Evaluated>> = Result;
|
|
1950
|
+
//#endregion
|
|
1951
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/partial/from_union.d.mts
|
|
1952
|
+
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>);
|
|
1953
|
+
//#endregion
|
|
1954
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/partial/from_object.d.mts
|
|
1955
|
+
type TFromObject$2<Properties extends TProperties, Mapped extends TProperties = { [Key in keyof Properties]: TAddOptional<Properties[Key]>; }, Result extends TSchema = TObject<Mapped>> = Result;
|
|
1956
|
+
//#endregion
|
|
1957
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/partial/from_type.d.mts
|
|
1958
|
+
type TFromType$3<Type extends TSchema> = (Type extends TCyclic<infer Defs extends TProperties, infer Ref extends string> ? TFromCyclic$2<Defs, Ref> : Type extends TDependent$1<infer If extends TSchema, infer Then extends TSchema, infer Else extends TSchema> ? TFromDependent$2<If, Then, Else> : 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<{}>);
|
|
1959
|
+
//#endregion
|
|
1960
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/partial/instantiate.d.mts
|
|
1961
|
+
type TPartialAction<Type extends TSchema, Result extends TSchema = TCanInstantiate<[Type]> extends true ? TFromType$3<Type> : TPartialDeferred<Type>> = Result;
|
|
1962
|
+
type TPartialInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>> = TPartialAction<InstantiatedType>;
|
|
1963
|
+
//#endregion
|
|
1964
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/pick.d.mts
|
|
1965
|
+
/** Creates a deferred Pick action. */
|
|
1966
|
+
type TPickDeferred<Type extends TSchema, Indexer extends TSchema> = (TDeferred<'Pick', [Type, Indexer]>);
|
|
1967
|
+
/** Applies a Pick action using the given types. */
|
|
1968
|
+
type TPick<Type extends TSchema, Indexer extends TSchema> = (TPickAction<Type, Indexer>);
|
|
1969
|
+
/** Applies a Pick action using the given types. */
|
|
1970
|
+
declare function Pick$1<Type extends TSchema, Indexer extends PropertyKey[]>(type: Type, indexer: readonly [...Indexer], options?: TSchemaOptions): TPick<Type, TKeysToIndexer<Indexer>>;
|
|
1971
|
+
/** Applies a Pick action using the given types. */
|
|
1972
|
+
declare function Pick$1<Type extends TSchema, Indexer extends TSchema>(type: Type, indexer: Indexer, options?: TSchemaOptions): TPick<Type, Indexer>;
|
|
1973
|
+
//#endregion
|
|
1974
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/pick/from_type.d.mts
|
|
1975
|
+
type TComparable<Indexable extends TProperties> = (keyof Indexable extends string | number ? `${keyof Indexable}` : never);
|
|
1976
|
+
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);
|
|
1977
|
+
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;
|
|
1978
|
+
//#endregion
|
|
1979
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/pick/instantiate.d.mts
|
|
1980
|
+
type TPickAction<Type extends TSchema, Indexer extends TSchema, Result extends TSchema = TCanInstantiate<[Type, Indexer]> extends true ? TFromType$2<Type, Indexer> : TPickDeferred<Type, Indexer>> = Result;
|
|
1981
|
+
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>;
|
|
1982
|
+
//#endregion
|
|
1983
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/readonly_object.d.mts
|
|
1984
|
+
/** Creates a deferred ReadonlyType action. */
|
|
1985
|
+
type TReadonlyObjectDeferred<Type extends TSchema> = (TDeferred<'ReadonlyObject', [Type]>);
|
|
1986
|
+
/** This type is an alias for TypeScript's `Readonly<T>` utility type. It will make all properties of a TObject readonly or marks an TArray or TTuple as immutable `readonly T[]`. */
|
|
1987
|
+
type TReadonlyObject<Type extends TSchema> = (TReadonlyObjectAction<Type>);
|
|
1988
|
+
/** This type is an alias for TypeScript's `Readonly<T>` utility type. It will make all properties of a TObject readonly or marks an TArray or TTuple as immutable `readonly T[]`. */
|
|
1989
|
+
declare function ReadonlyObject<Type extends TSchema>(type: Type, options?: TSchemaOptions): TReadonlyObject<Type>;
|
|
1990
|
+
/**
|
|
1991
|
+
* This type has been renamed to ReadonlyObject.
|
|
1992
|
+
* @deprecated
|
|
1993
|
+
*/
|
|
1994
|
+
declare const ReadonlyType: typeof ReadonlyObject;
|
|
1995
|
+
//#endregion
|
|
1996
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/readonly_object/from_array.d.mts
|
|
1997
|
+
type TFromArray<Type extends TSchema, Result extends TSchema = TAddImmutable<TArray<Type>>> = Result;
|
|
1998
|
+
//#endregion
|
|
1999
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/readonly_object/from_cyclic.d.mts
|
|
2000
|
+
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;
|
|
2001
|
+
//#endregion
|
|
2002
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/readonly_object/from_dependent.d.mts
|
|
2003
|
+
type TFromDependent$1<If extends TSchema, Then extends TSchema, Else extends TSchema, Evaluated extends TSchema = TEvaluateDependent<If, Then, Else>, Result extends TSchema = TFromType$1<Evaluated>> = Result;
|
|
2004
|
+
//#endregion
|
|
2005
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/readonly_object/from_intersect.d.mts
|
|
2006
|
+
type TFromIntersect$1<Types extends TSchema[], Evaluated extends TSchema = TEvaluateIntersect<Types>, Result extends TSchema = TFromType$1<Evaluated>> = Result;
|
|
2007
|
+
//#endregion
|
|
2008
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/readonly_object/from_object.d.mts
|
|
2009
|
+
type TFromObject$1<Properties extends TProperties, Mapped extends TProperties = { [Key in keyof Properties]: TAddReadonly<Properties[Key]>; }, Result extends TSchema = TObject<Mapped>> = Result;
|
|
2010
|
+
//#endregion
|
|
2011
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/readonly_object/from_tuple.d.mts
|
|
2012
|
+
type TFromTuple<Types extends TSchema[], Result extends TSchema = TAddImmutable<TTuple<Types>>> = Result;
|
|
2013
|
+
//#endregion
|
|
2014
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/readonly_object/from_union.d.mts
|
|
2015
|
+
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>);
|
|
2016
|
+
//#endregion
|
|
2017
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/readonly_object/from_type.d.mts
|
|
2018
|
+
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 TDependent$1<infer If extends TSchema, infer Then extends TSchema, infer Else extends TSchema> ? TFromDependent$1<If, Then, Else> : 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);
|
|
2019
|
+
//#endregion
|
|
2020
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/readonly_object/instantiate.d.mts
|
|
2021
|
+
type TReadonlyObjectAction<Type extends TSchema, Result extends TSchema = TCanInstantiate<[Type]> extends true ? TFromType$1<Type> : TReadonlyObjectDeferred<Type>> = Result;
|
|
2022
|
+
type TReadonlyObjectInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiateType extends TSchema = TInstantiateType<Context, State, Type>> = TReadonlyObjectAction<InstantiateType>;
|
|
2023
|
+
//#endregion
|
|
2024
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/ref/instantiate.d.mts
|
|
2025
|
+
type TRefInstantiate<Context extends TProperties, State extends TState, Type extends TRef, Ref extends string> = (Ref extends State['visited'][number] ? Type : Ref extends keyof Context ? TInstantiateType<Context, TState<State['callstack'], [...State['visited'], Ref]>, Context[Ref]> : Type);
|
|
2026
|
+
//#endregion
|
|
2027
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/required/from_cyclic.d.mts
|
|
2028
|
+
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;
|
|
2029
|
+
//#endregion
|
|
2030
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/required/from_dependent.d.mts
|
|
2031
|
+
type TFromDependent<If extends TSchema, Then extends TSchema, Else extends TSchema, Evaluated extends TSchema = TEvaluateDependent<If, Then, Else>, Result extends TSchema = TFromType<Evaluated>> = Result;
|
|
2032
|
+
//#endregion
|
|
2033
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/required/from_intersect.d.mts
|
|
2034
|
+
type TFromIntersect<Types extends TSchema[], Evaluated extends TSchema = TEvaluateIntersect<Types>, Result extends TSchema = TFromType<Evaluated>> = Result;
|
|
2035
|
+
//#endregion
|
|
2036
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/required/from_union.d.mts
|
|
2037
|
+
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>);
|
|
2038
|
+
//#endregion
|
|
2039
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/required/from_object.d.mts
|
|
2040
|
+
type TFromObject<Properties extends TProperties, Mapped extends TProperties = { [Key in keyof Properties]: TRemoveOptional<Properties[Key]>; }, Result extends TSchema = TObject<Mapped>> = Result;
|
|
2041
|
+
//#endregion
|
|
2042
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/required/from_type.d.mts
|
|
2043
|
+
type TFromType<Type extends TSchema> = (Type extends TCyclic<infer Defs extends TProperties, infer Ref extends string> ? TFromCyclic<Defs, Ref> : Type extends TDependent$1<infer If extends TSchema, infer Then extends TSchema, infer Else extends TSchema> ? TFromDependent<If, Then, Else> : 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<{}>);
|
|
2044
|
+
//#endregion
|
|
2045
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/required.d.mts
|
|
2046
|
+
/** Creates a deferred Required action. */
|
|
2047
|
+
type TRequiredDeferred<Type extends TSchema> = (TDeferred<'Required', [Type]>);
|
|
2048
|
+
/** Applies a Required action to the given type. */
|
|
2049
|
+
type TRequired<Type extends TSchema> = (TRequiredAction<Type>);
|
|
2050
|
+
/** Applies a Required action to the given type. */
|
|
2051
|
+
declare function Required$1<Type extends TSchema>(type: Type, options?: TSchemaOptions): TRequired<Type>;
|
|
2052
|
+
//#endregion
|
|
2053
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/required/instantiate.d.mts
|
|
2054
|
+
type TRequiredAction<Type extends TSchema, Result extends TSchema = TCanInstantiate<[Type]> extends true ? TFromType<Type> : TRequiredDeferred<Type>> = Result;
|
|
2055
|
+
type TRequiredInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>> = TRequiredAction<InstantiatedType>;
|
|
2056
|
+
//#endregion
|
|
2057
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/return_type.d.mts
|
|
2058
|
+
/** Creates a deferred ReturnType action. */
|
|
2059
|
+
type TReturnTypeDeferred<Type extends TSchema> = (TDeferred<'ReturnType', [Type]>);
|
|
2060
|
+
/** Applies a ReturnType action to the given type. */
|
|
2061
|
+
type TReturnType<Type extends TSchema> = (TReturnTypeAction<Type>);
|
|
2062
|
+
/** Applies a ReturnType action to the given type. */
|
|
2063
|
+
declare function ReturnType$1<Type extends TSchema>(type: Type, options?: TSchemaOptions): TReturnType<Type>;
|
|
2064
|
+
//#endregion
|
|
2065
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/return_type/instantiate.d.mts
|
|
2066
|
+
type TReturnTypeOperation<Type extends TSchema> = (Type extends TFunction ? Type['returnType'] : TNever);
|
|
2067
|
+
type TReturnTypeAction<Type extends TSchema, Result extends TSchema = TCanInstantiate<[Type]> extends true ? TReturnTypeOperation<Type> : TReturnTypeDeferred<Type>> = Result;
|
|
2068
|
+
type TReturnTypeInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>> = TReturnTypeAction<InstantiatedType>;
|
|
2069
|
+
//#endregion
|
|
2070
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/with.d.mts
|
|
2071
|
+
/** Creates a deferred With action. */
|
|
2072
|
+
type TWithDeferred<Type extends TSchema, Options extends TSchema> = (TDeferred<'With', [Type, Options]>);
|
|
2073
|
+
/** Applies annotation options to the given type. */
|
|
2074
|
+
type TWith<Type extends TSchema, Options extends TSchema> = (Type & Options);
|
|
2075
|
+
/** Applies annotation options to the given type. */
|
|
2076
|
+
declare function With<Type extends TSchema, const Options extends TSchema>(type: Type, options: Options): TWithAction<Type, Options>;
|
|
2077
|
+
//#endregion
|
|
2078
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/with/instantiate.d.mts
|
|
2079
|
+
type TWithAction<Type extends TSchema, Options extends TSchema, Result extends TSchema = TCanInstantiate<[Type]> extends true ? TWith<Type, Options> : TWithDeferred<Type, Options>> = Result;
|
|
2080
|
+
type TWithInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, Options extends TSchema, InstantiatedType extends TSchema = TInstantiateType<Context, State, Type>> = TWithAction<InstantiatedType, Options>;
|
|
2081
|
+
//#endregion
|
|
2082
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/rest/spread.d.mts
|
|
2083
|
+
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;
|
|
2084
|
+
type TRestSpread<Types extends TSchema[], Result extends TSchema[] = []> = (Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? TRestSpread<Right, [...Result, ...TSpreadElement<Left>]> : Result);
|
|
2085
|
+
//#endregion
|
|
2086
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/instantiate.d.mts
|
|
2087
|
+
interface TState<CallStack extends string[] = string[], Visited extends string[] = string[]> {
|
|
2088
|
+
callstack: CallStack;
|
|
2089
|
+
visited: Visited;
|
|
2090
|
+
}
|
|
2091
|
+
type TCanInstantiate<Types extends TSchema[]> = Types extends [infer Left extends TSchema, ...infer Right extends TSchema[]] ? Left extends TRef ? false : TCanInstantiate<Right> : true;
|
|
2092
|
+
type TInstantiateProperties<Context extends TProperties, State extends TState, Properties extends TProperties, Result extends TProperties = { [Key in keyof Properties]: TInstantiateType<Context, State, Properties[Key]>; }> = Result;
|
|
2093
|
+
type TInstantiateElements<Context extends TProperties, State extends TState, Types extends TSchema[], Elements extends TSchema[] = TInstantiateTypes<Context, State, Types>, Result extends TSchema[] = TRestSpread<Elements>> = Result;
|
|
2094
|
+
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);
|
|
2095
|
+
type TWithModifiers<Type extends TSchema, InstantiatedType extends TSchema, WithOptional extends TSchema = Type extends TOptional ? TAddOptionalAction<InstantiatedType> : InstantiatedType, WithReadonly extends TSchema = Type extends TReadonly$1 ? TAddReadonlyAction<WithOptional> : WithOptional, WithImmutable extends TSchema = Type extends TImmutable ? TAddImmutableAction<WithReadonly> : WithReadonly> = WithImmutable;
|
|
2096
|
+
type TInstantiateDeferred<Context extends TProperties, State extends TState, Action extends string, Parameters extends TSchema[]> = ([Action, Parameters] extends ['AddImmutable', [infer Type extends TSchema]] ? TAddImmutableInstantiate<Context, State, Type> : [Action, Parameters] extends ['RemoveImmutable', [infer Type extends TSchema]] ? TRemoveImmutableInstantiate<Context, State, Type> : [Action, Parameters] extends ['AddReadonly', [infer Type extends TSchema]] ? TAddReadonlyInstantiate<Context, State, Type> : [Action, Parameters] extends ['RemoveReadonly', [infer Type extends TSchema]] ? TRemoveReadonlyInstantiate<Context, State, Type> : [Action, Parameters] extends ['AddOptional', [infer Type extends TSchema]] ? TAddOptionalInstantiate<Context, State, Type> : [Action, Parameters] extends ['RemoveOptional', [infer Type extends TSchema]] ? TRemoveOptionalInstantiate<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 Declarations extends TProperties]] ? TModuleInstantiate<Context, State, Declarations> : [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 ['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> : [Action, Parameters] extends ['With', [infer Type extends TSchema, infer Options extends TSchema]] ? TWithInstantiate<Context, State, Type, Options> : TDeferred<Action, Parameters>);
|
|
2097
|
+
type TInstantiateImmediate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiatedType 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 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 TFunction<infer Parameters extends TSchema[], infer ReturnType extends TSchema> ? TFunction<TInstantiateTypes<Context, State, Parameters>, TInstantiateType<Context, State, ReturnType>> : Type extends TDependent$1<infer If extends TSchema, infer Then extends TSchema, infer Else extends TSchema> ? TDependent$1<TInstantiateType<Context, State, If>, TInstantiateType<Context, State, Then>, TInstantiateType<Context, State, Else>> : Type extends TIntersect<infer Types extends TSchema[]> ? TIntersect<TInstantiateTypes<Context, State, Types>> : Type extends TObject<infer Properties extends TProperties> ? TObject<TInstantiateProperties<Context, State, Properties>> : 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), WithModifiers extends TSchema = TWithModifiers<Type, InstantiatedType>> = WithModifiers;
|
|
2098
|
+
type TInstantiateType<Context extends TProperties, State extends TState, Type extends TSchema, Result extends TSchema = Type extends TDeferred<infer Action extends string, infer Types extends TSchema[]> ? TInstantiateDeferred<Context, State, Action, Types> : TInstantiateImmediate<Context, State, Type>> = Result;
|
|
2099
|
+
/** Instantiates computed schematics using the given context and type. */
|
|
2100
|
+
type TInstantiate<Context extends TProperties, Type extends TSchema> = (TInstantiateType<Context, TState<[], []>, Type>);
|
|
2101
|
+
/** Instantiates computed schematics using the given context and type. */
|
|
2102
|
+
declare function Instantiate<Context extends TProperties, Type extends TSchema>(context: Context, type: Type): TInstantiate<Context, Type>;
|
|
2103
|
+
//#endregion
|
|
2104
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/optional/instantiate_add.d.mts
|
|
2105
|
+
type TAddOptionalOperation<Type extends TSchema, Result extends TSchema = `~optional` extends keyof Type ? Type : TOptional<Type>> = Result;
|
|
2106
|
+
type TAddOptionalAction<Type extends TSchema, Result extends TSchema = TAddOptionalOperation<Type>> = Result;
|
|
2107
|
+
type TAddOptionalInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiateType extends TSchema = TInstantiateType<Context, State, Type>> = TAddOptionalAction<InstantiateType>;
|
|
2108
|
+
//#endregion
|
|
2109
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/_add_optional.d.mts
|
|
2110
|
+
/** Creates a deferred AddOptional action. */
|
|
2111
|
+
type TAddOptionalDeferred<Type extends TSchema> = (TDeferred<'AddOptional', [Type]>);
|
|
2112
|
+
/** Applies an AddOptional action to a type. */
|
|
2113
|
+
type TAddOptional<Type extends TSchema> = (TAddOptionalAction<Type>);
|
|
2114
|
+
//#endregion
|
|
2115
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/_optional.d.mts
|
|
2116
|
+
type TOptional<Type extends TSchema = TSchema> = (Type & {
|
|
2117
|
+
'~optional': true;
|
|
2118
|
+
});
|
|
2119
|
+
/** Applies an Optional modifier to the given type. */
|
|
2120
|
+
declare function Optional$1<Type extends TSchema>(type: Type): TAddOptional<Type>;
|
|
2121
|
+
/** Returns true if the given value is TOptional */
|
|
2122
|
+
declare function IsOptional$1(value: unknown): value is TOptional<TSchema>;
|
|
2123
|
+
//#endregion
|
|
2124
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/tuple.d.mts
|
|
2125
|
+
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>]);
|
|
2126
|
+
type TStaticElement<Stack extends string[], Direction extends StaticDirection, Context extends TProperties, This extends TProperties, Type extends TSchema, IsReadonly extends boolean = Type extends TReadonly$1 ? 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;
|
|
2127
|
+
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);
|
|
2128
|
+
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;
|
|
2129
|
+
/** Represents a Tuple type. */
|
|
2130
|
+
interface TTuple<Types extends TSchema[] = TSchema[]> extends TSchema {
|
|
2131
|
+
'~kind': 'Tuple';
|
|
2132
|
+
type: 'array';
|
|
2133
|
+
additionalItems: false;
|
|
2134
|
+
items: Types;
|
|
2135
|
+
minItems: Types['length'];
|
|
2136
|
+
}
|
|
2137
|
+
/** Creates a Tuple type. */
|
|
2138
|
+
declare function Tuple<Types extends TSchema[]>(types: [...Types], options?: TTupleOptions): TTuple<Types>;
|
|
2139
|
+
/** Returns true if the given value is TTuple. */
|
|
2140
|
+
declare function IsTuple(value: unknown): value is TTuple;
|
|
2141
|
+
//#endregion
|
|
2142
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/function.d.mts
|
|
2143
|
+
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;
|
|
2144
|
+
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;
|
|
2145
|
+
/** Represents a Function type. */
|
|
2146
|
+
interface TFunction<Parameters extends TSchema[] = TSchema[], ReturnType extends TSchema = TSchema> extends TSchema {
|
|
2147
|
+
'~kind': 'Function';
|
|
2148
|
+
type: 'function';
|
|
2149
|
+
parameters: Parameters;
|
|
2150
|
+
returnType: ReturnType;
|
|
2151
|
+
}
|
|
2152
|
+
/** Creates a Function type. */
|
|
2153
|
+
declare function _Function_<Parameters extends TSchema[], ReturnType extends TSchema>(parameters: [...Parameters], returnType: ReturnType, options?: TSchemaOptions): TFunction<Parameters, ReturnType>;
|
|
2154
|
+
/** Returns true if the given value is TFunction. */
|
|
2155
|
+
declare function IsFunction(value: unknown): value is TFunction;
|
|
2156
|
+
//#endregion
|
|
2157
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/constructor.d.mts
|
|
2158
|
+
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;
|
|
2159
|
+
/** Represents a Constructor type. */
|
|
2160
|
+
interface TConstructor<Parameters extends TSchema[] = TSchema[], InstanceType extends TSchema = TSchema> extends TSchema {
|
|
2161
|
+
'~kind': 'Constructor';
|
|
2162
|
+
type: 'constructor';
|
|
2163
|
+
parameters: Parameters;
|
|
2164
|
+
instanceType: InstanceType;
|
|
2165
|
+
}
|
|
2166
|
+
/** Creates a Constructor type. */
|
|
2167
|
+
declare function Constructor<Parameters extends TSchema[], InstanceType extends TSchema>(parameters: [...Parameters], instanceType: InstanceType, options?: TSchemaOptions): TConstructor<Parameters, InstanceType>;
|
|
2168
|
+
/** Returns true if the given value is a TConstructor. */
|
|
2169
|
+
declare function IsConstructor(value: unknown): value is TConstructor;
|
|
2170
|
+
//#endregion
|
|
2171
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/types/schema.d.mts
|
|
2172
|
+
type XSchemaObject = object;
|
|
2173
|
+
type XSchemaBoolean = boolean;
|
|
2174
|
+
type XSchema = XSchemaObject | XSchemaBoolean;
|
|
2175
|
+
//#endregion
|
|
2176
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/static/_canonical.d.mts
|
|
2177
|
+
type XCanonicalTuple<Value extends readonly unknown[]> = (Value extends [infer Left, ...infer Right extends unknown[]] ? [XCanonical<Left>, ...XCanonicalTuple<Right>] : []);
|
|
2178
|
+
type XCanonicalArray<Value extends unknown, Result extends unknown[] = XCanonical<Value>[]> = Result;
|
|
2179
|
+
type XCanonicalObject<Value extends object, Result extends Record<PropertyKey, unknown> = { -readonly [Key in keyof Value]: XCanonical<Value[Key]>; }> = Result;
|
|
2180
|
+
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);
|
|
2181
|
+
//#endregion
|
|
2182
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/types/additionalProperties.d.mts
|
|
2183
|
+
interface XAdditionalProperties<AdditionalProperties extends XSchema = XSchema> {
|
|
2184
|
+
additionalProperties: AdditionalProperties;
|
|
2185
|
+
}
|
|
2186
|
+
//#endregion
|
|
2187
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/types/anyOf.d.mts
|
|
2188
|
+
interface XAnyOf<AnyOf extends XSchema[] = XSchema[]> {
|
|
2189
|
+
anyOf: AnyOf;
|
|
2190
|
+
}
|
|
2191
|
+
//#endregion
|
|
2192
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/types/allOf.d.mts
|
|
2193
|
+
interface XAllOf<AllOf extends XSchema[] = XSchema[]> {
|
|
2194
|
+
allOf: AllOf;
|
|
2195
|
+
}
|
|
2196
|
+
//#endregion
|
|
2197
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/types/const.d.mts
|
|
2198
|
+
interface XConst<Const extends unknown = unknown> {
|
|
2199
|
+
const: Const;
|
|
2200
|
+
}
|
|
2201
|
+
//#endregion
|
|
2202
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/types/enum.d.mts
|
|
2203
|
+
interface XEnum<Enum extends unknown[] = unknown[]> {
|
|
2204
|
+
enum: Enum;
|
|
2205
|
+
}
|
|
2206
|
+
//#endregion
|
|
2207
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/types/if.d.mts
|
|
2208
|
+
interface XIf<If extends XSchema = XSchema> {
|
|
2209
|
+
if: If;
|
|
2210
|
+
}
|
|
2211
|
+
//#endregion
|
|
2212
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/types/items.d.mts
|
|
2213
|
+
interface XItems<Items extends (XSchema | XSchema[]) = (XSchema | XSchema[])> {
|
|
2214
|
+
items: Items;
|
|
2215
|
+
}
|
|
2216
|
+
//#endregion
|
|
2217
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/types/oneOf.d.mts
|
|
2218
|
+
interface XOneOf<OneOf extends XSchema[] = XSchema[]> {
|
|
2219
|
+
oneOf: OneOf;
|
|
2220
|
+
}
|
|
2221
|
+
//#endregion
|
|
2222
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/types/patternProperties.d.mts
|
|
2223
|
+
interface XPatternProperties<PatternProperties extends Record<PropertyKey, XSchema> = Record<PropertyKey, XSchema>> {
|
|
2224
|
+
patternProperties: PatternProperties;
|
|
2225
|
+
}
|
|
2226
|
+
//#endregion
|
|
2227
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/types/prefixItems.d.mts
|
|
2228
|
+
interface XPrefixItems<PrefixItems extends XSchema[] = XSchema[]> {
|
|
2229
|
+
prefixItems: PrefixItems;
|
|
2230
|
+
}
|
|
2231
|
+
//#endregion
|
|
2232
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/types/properties.d.mts
|
|
2233
|
+
interface XProperties<Properties extends Record<PropertyKey, XSchema> = Record<PropertyKey, XSchema>> {
|
|
2234
|
+
properties: Properties;
|
|
2235
|
+
}
|
|
2236
|
+
//#endregion
|
|
2237
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/types/ref.d.mts
|
|
2238
|
+
interface XRef<Ref extends string = string> {
|
|
2239
|
+
$ref: Ref;
|
|
2240
|
+
}
|
|
2241
|
+
//#endregion
|
|
2242
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/types/required.d.mts
|
|
2243
|
+
interface XRequired<Required extends string[] = string[]> {
|
|
2244
|
+
required: Required;
|
|
2245
|
+
}
|
|
2246
|
+
//#endregion
|
|
2247
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/types/type.d.mts
|
|
2248
|
+
interface XType<Type extends string | string[] = string | string[]> {
|
|
2249
|
+
type: Type;
|
|
2250
|
+
}
|
|
2251
|
+
//#endregion
|
|
2252
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/types/unevaluatedProperties.d.mts
|
|
2253
|
+
interface XUnevaluatedProperties<UnevaluatedProperties extends XSchema = XSchema> {
|
|
2254
|
+
unevaluatedProperties: UnevaluatedProperties;
|
|
2255
|
+
}
|
|
2256
|
+
//#endregion
|
|
2257
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/static/additionalProperties.d.mts
|
|
2258
|
+
type XStaticAdditionalProperties<Stack extends string[], Root extends XSchema, Schema extends XSchema, Result extends Record<PropertyKey, unknown> = (Schema extends true ? {
|
|
2259
|
+
[key: string]: unknown;
|
|
2260
|
+
} : Schema extends false ? {} : {
|
|
2261
|
+
[key: string]: XStaticSchema<Stack, Root, Schema>;
|
|
2262
|
+
})> = Result;
|
|
2263
|
+
//#endregion
|
|
2264
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/static/allOf.d.mts
|
|
2265
|
+
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);
|
|
2266
|
+
//#endregion
|
|
2267
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/static/anyOf.d.mts
|
|
2268
|
+
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);
|
|
2269
|
+
//#endregion
|
|
2270
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/static/const.d.mts
|
|
2271
|
+
type XStaticConst<Value extends unknown> = Value;
|
|
2272
|
+
//#endregion
|
|
2273
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/static/enum.d.mts
|
|
2274
|
+
type XStaticEnum<Values extends unknown[], Result extends unknown = never> = (Values extends [infer Left extends unknown, ...infer Right extends unknown[]] ? XStaticEnum<Right, Left | Result> : Result);
|
|
2275
|
+
//#endregion
|
|
2276
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/types/else.d.mts
|
|
2277
|
+
interface XElse<Else extends XSchema = XSchema> {
|
|
2278
|
+
else: Else;
|
|
2279
|
+
}
|
|
2280
|
+
//#endregion
|
|
2281
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/types/then.d.mts
|
|
2282
|
+
interface XThen<Then extends XSchema = XSchema> {
|
|
2283
|
+
then: Then;
|
|
2284
|
+
}
|
|
2285
|
+
//#endregion
|
|
2286
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/static/if.d.mts
|
|
2287
|
+
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;
|
|
2288
|
+
//#endregion
|
|
2289
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/types/minItems.d.mts
|
|
2290
|
+
interface XMinItems<MinItems extends number = number> {
|
|
2291
|
+
minItems: MinItems;
|
|
2292
|
+
}
|
|
2293
|
+
//#endregion
|
|
2294
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/types/maxItems.d.mts
|
|
2295
|
+
interface XMaxItems<MaxItems extends number = number> {
|
|
2296
|
+
maxItems: MaxItems;
|
|
2297
|
+
}
|
|
2298
|
+
//#endregion
|
|
2299
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/types/additionalItems.d.mts
|
|
2300
|
+
interface XAdditionalItems<AdditionalItems extends XSchema = XSchema> {
|
|
2301
|
+
additionalItems: AdditionalItems;
|
|
2302
|
+
}
|
|
2303
|
+
//#endregion
|
|
2304
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/static/_comparer.d.mts
|
|
2305
|
+
type XBuildTuple<Size extends number, Tuple extends unknown[] = []> = (Tuple['length'] extends Size ? Tuple : XBuildTuple<Size, [...Tuple, unknown]>);
|
|
2306
|
+
type XLessThan<Left extends number, Right extends number> = Left extends Right ? false : XBuildTuple<Left> extends [...XBuildTuple<Right>, ...infer _Rest] ? false : true;
|
|
2307
|
+
//#endregion
|
|
2308
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/static/_elements.d.mts
|
|
2309
|
+
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);
|
|
2310
|
+
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);
|
|
2311
|
+
type XWithMaxItems<Schema extends XSchema, Elements extends unknown[], Result extends unknown[] = Schema extends XMaxItems<infer MaxItems extends number> ? XWithMaxItemsRemap<Elements, MaxItems> : Elements> = Result;
|
|
2312
|
+
type XNeedsAdditionalItems<Schema extends XSchema, Elements extends unknown[], Result extends boolean = (Schema extends XMaxItems<infer MaxItems extends number> ? XLessThan<Elements['length'], MaxItems> : true)> = Result;
|
|
2313
|
+
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);
|
|
2314
|
+
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;
|
|
2315
|
+
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;
|
|
2316
|
+
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;
|
|
2317
|
+
//#endregion
|
|
2318
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/static/items.d.mts
|
|
2319
|
+
type XFromSized<Stack extends string[], Root extends XSchema, Schema extends XSchema, Items extends XSchema[]> = (XStaticElements<Stack, Root, Schema, Items>);
|
|
2320
|
+
type XFromUnsized<Stack extends string[], Root extends XSchema, Schema extends XSchema> = (XStaticSchema<Stack, Root, Schema>[]);
|
|
2321
|
+
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;
|
|
2322
|
+
//#endregion
|
|
2323
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/static/oneOf.d.mts
|
|
2324
|
+
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);
|
|
2325
|
+
//#endregion
|
|
2326
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/static/patternProperties.d.mts
|
|
2327
|
+
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 = {
|
|
2328
|
+
[key: string]: InferredProperties[keyof InferredProperties];
|
|
2329
|
+
}> = EvaluatedProperties;
|
|
2330
|
+
//#endregion
|
|
2331
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/static/prefixItems.d.mts
|
|
2332
|
+
type XStaticPrefixItems<Stack extends string[], Root extends XSchema, Schema extends XSchema, PrefixItems extends XSchema[], Result extends unknown[] = XStaticElements<Stack, Root, Schema, PrefixItems>> = Result;
|
|
2333
|
+
//#endregion
|
|
2334
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/static/properties.d.mts
|
|
2335
|
+
type XIsReadonly<Schema extends XSchema> = (Schema extends {
|
|
2336
|
+
readOnly: true;
|
|
2337
|
+
} ? true : Schema extends {
|
|
2338
|
+
'~readonly': true;
|
|
2339
|
+
} ? true : false);
|
|
2340
|
+
type XRequiredArray<Schema extends XSchema, Result extends PropertyKey[] = Schema extends XRequired<infer Keys extends string[]> ? Keys : []> = Result;
|
|
2341
|
+
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;
|
|
2342
|
+
type XRequiredKeys<Properties extends Record<PropertyKey, XSchema>, RequiredArray extends string[], Result extends PropertyKey = RequiredArray extends [] ? never : Extract<keyof Properties, RequiredArray[number]>> = Result;
|
|
2343
|
+
type XUnknownKeys<Properties extends Record<PropertyKey, XSchema>, RequiredArray extends string[], Result extends PropertyKey = Exclude<RequiredArray[number], keyof Properties>> = Result;
|
|
2344
|
+
type XOptionalKeys<Properties extends Record<PropertyKey, XSchema>, RequiredArray extends string[], Result extends PropertyKey = RequiredArray extends [] ? keyof Properties : Exclude<keyof Properties, RequiredArray[number]>> = Result;
|
|
2345
|
+
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]>; };
|
|
2346
|
+
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]>; };
|
|
2347
|
+
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]>; };
|
|
2348
|
+
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]>; };
|
|
2349
|
+
type XUnknownProperties<UnknownKeys extends PropertyKey> = { [Key in UnknownKeys]: unknown; };
|
|
2350
|
+
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;
|
|
2351
|
+
//#endregion
|
|
2352
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/pointer/pointer_get.d.mts
|
|
2353
|
+
type TEscape0<Index extends string> = Index extends `${infer Left}~0${infer Right}` ? `${Left}~${TEscape<Right>}` : Index;
|
|
2354
|
+
type TEscape1<Index extends string> = Index extends `${infer Left}~1${infer Right}` ? `${Left}/${TEscape<Right>}` : Index;
|
|
2355
|
+
type TEscape<Index extends string, Escaped0 extends string = TEscape0<Index>, Escaped1 extends string = TEscape1<Escaped0>> = Escaped1;
|
|
2356
|
+
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>]);
|
|
2357
|
+
type TIndices<Pointer extends string, Result extends string[] = Pointer extends '' ? [] : IndicesReduce<Pointer>> = Result;
|
|
2358
|
+
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);
|
|
2359
|
+
/** Type Level RFC 6901 Json Pointer Resolver */
|
|
2360
|
+
type XPointerGet<Value extends unknown, Pointer extends string, Indices extends string[] = TIndices<Pointer>, Result extends unknown = TResolve<Value, Indices>> = Result;
|
|
2361
|
+
//#endregion
|
|
2362
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/static/ref.d.mts
|
|
2363
|
+
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);
|
|
2364
|
+
type XCyclicGuard<Stack extends unknown[], Ref extends string> = (Ref extends Stack[number] ? XCyclicCheck<Stack, 2> : true);
|
|
2365
|
+
type XNormal<Pointer extends string, Result extends string = (Pointer extends `#${infer Rest extends string}` ? Rest : Pointer)> = Result;
|
|
2366
|
+
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;
|
|
2367
|
+
//#endregion
|
|
2368
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/static/required.d.mts
|
|
2369
|
+
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;
|
|
2370
|
+
//#endregion
|
|
2371
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/static/type.d.mts
|
|
2372
|
+
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);
|
|
2373
|
+
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);
|
|
2374
|
+
type XStaticType<TypeName extends string[] | string> = (TypeName extends string[] ? XFromTypeNames<TypeName> : TypeName extends string ? XFromTypeName<TypeName> : unknown);
|
|
2375
|
+
//#endregion
|
|
2376
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/static/unevaluatedProperties.d.mts
|
|
2377
|
+
type XStaticUnevaluatedProperties<Stack extends string[], Root extends XSchema, Schema extends XSchema, Result extends Record<PropertyKey, unknown> = (Schema extends true ? {
|
|
2378
|
+
[key: string]: unknown;
|
|
2379
|
+
} : Schema extends false ? {} : {
|
|
2380
|
+
[key: string]: XStaticSchema<Stack, Root, Schema>;
|
|
2381
|
+
})> = Result;
|
|
2382
|
+
//#endregion
|
|
2383
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/static/schema.d.mts
|
|
2384
|
+
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;
|
|
2385
|
+
type XKeywordsIntersected<Schemas extends unknown[], Result extends unknown = unknown> = (Schemas extends [infer Left extends unknown, ...infer Right extends unknown[]] ? XKeywordsIntersected<Right, Result & Left> : Result);
|
|
2386
|
+
type XKeywordsEvaluated<Schema extends unknown, Result extends unknown = Schema extends object ? { [Key in keyof Schema]: Schema[Key]; } : Schema> = Result;
|
|
2387
|
+
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;
|
|
2388
|
+
type XStaticBoolean<Schema extends boolean, Result extends unknown = Schema extends false ? never : unknown> = Result;
|
|
2389
|
+
type XStaticSchema<Stack extends string[], Root extends XSchema, Schema extends XSchema, Result extends unknown = Schema extends boolean ? XStaticBoolean<Schema> : XStaticObject<Stack, Root, Schema>> = Result;
|
|
2390
|
+
//#endregion
|
|
2391
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/schema/static/static.d.mts
|
|
2392
|
+
type XStatic<Value extends unknown, Schema extends XSchema = Value extends XSchema ? Value : {}, Canonical extends XSchema = XCanonical<Schema>, Result extends unknown = XStaticSchema<[], Canonical, Canonical>> = Result;
|
|
2393
|
+
//#endregion
|
|
2394
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/static.d.mts
|
|
2395
|
+
type StaticEvaluate<T> = { [K in keyof T]: T[K]; } & {};
|
|
2396
|
+
type StaticDirection = 'Encode' | 'Decode';
|
|
2397
|
+
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 TBigInt$1 ? 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 TDependent$1<infer If extends TSchema, infer Then extends TSchema, infer Else extends TSchema> ? StaticDependent<Stack, Direction, Context, This, If, Then, Else> : Type extends TInteger$1 ? StaticInteger : Type extends TIntersect<infer Types extends TSchema[]> ? StaticIntersect<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$1 ? StaticNumber : Type extends TObject<infer Properties extends TProperties> ? StaticObject<Stack, Direction, Context, This, Properties> : 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$1 ? 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>);
|
|
2398
|
+
/** Infers a static type from a TypeBox type using Parse logic. */
|
|
2399
|
+
type StaticParse<Type extends TSchema, Context extends TProperties = {}, Result extends unknown = StaticType<[], 'Encode', Context, {}, Type>> = Result;
|
|
2400
|
+
/** Infers a static type from a TypeBox type using Decode logic. */
|
|
2401
|
+
type StaticDecode<Type extends TSchema, Context extends TProperties = {}, Result extends unknown = StaticType<[], 'Decode', Context, {}, Type>> = Result;
|
|
2402
|
+
/** Infers a static type from a TypeBox type using Encode logic. */
|
|
2403
|
+
type StaticEncode<Type extends TSchema, Context extends TProperties = {}, Result extends unknown = StaticType<[], 'Encode', Context, {}, Type>> = Result;
|
|
2404
|
+
/** Infers a static type from a TypeBox type. */
|
|
2405
|
+
type Static<Type extends TSchema, Context extends TProperties = {}, Result extends unknown = StaticType<[], 'Encode', Context, {}, Type>> = Result;
|
|
2406
|
+
//#endregion
|
|
2407
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/types/properties.d.mts
|
|
2408
|
+
type ReadonlyOptionalKeys<Properties extends TProperties, Result extends PropertyKey = { [Key in keyof Properties]: Properties[Key] extends TReadonly$1<TSchema> ? (Properties[Key] extends TOptional<Properties[Key]> ? Key : never) : never; }[keyof Properties]> = Result;
|
|
2409
|
+
type ReadonlyKeys<Properties extends TProperties, Result extends PropertyKey = { [Key in keyof Properties]: Properties[Key] extends TReadonly$1<TSchema> ? (Properties[Key] extends TOptional<Properties[Key]> ? never : Key) : never; }[keyof Properties]> = Result;
|
|
2410
|
+
type OptionalKeys<Properties extends TProperties, Result extends PropertyKey = { [Key in keyof Properties]: Properties[Key] extends TOptional<TSchema> ? (Properties[Key] extends TReadonly$1<Properties[Key]> ? never : Key) : never; }[keyof Properties]> = Result;
|
|
2411
|
+
type RequiredKeys<Properties extends TProperties, Result extends PropertyKey = keyof Omit<Properties, ReadonlyOptionalKeys<Properties> | ReadonlyKeys<Properties> | OptionalKeys<Properties>>> = Result;
|
|
2412
|
+
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>>>>;
|
|
2413
|
+
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;
|
|
2414
|
+
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;
|
|
2415
|
+
/** Represents a Record<PropertyKey, TSchema> structure. */
|
|
2416
|
+
interface TProperties extends TSchema {
|
|
2417
|
+
[key: PropertyKey]: TSchema;
|
|
2418
|
+
}
|
|
2419
|
+
/** Creates a RequiredArray derived from the given TProperties value. */
|
|
2420
|
+
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;
|
|
2421
|
+
type TKeyToString<Key extends number | string> = `${Key}`;
|
|
2422
|
+
/** Extracts a tuple of keys from a TProperties value. */
|
|
2423
|
+
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;
|
|
2424
|
+
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;
|
|
2425
|
+
/** Extracts a tuple of property values from a TProperties value. */
|
|
2426
|
+
type TPropertyValues<Properties extends TProperties, Keys extends string[] = TPropertyKeys<Properties>, Result extends TSchema[] = TPropertyValuesReduce<Properties, Keys>> = Result;
|
|
2427
|
+
//#endregion
|
|
2428
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/engine/immutable/instantiate_add.d.mts
|
|
2429
|
+
type TAddImmutableOperation<Type extends TSchema, Result extends TSchema = '~immutable' extends keyof Type ? Type : TImmutable<Type>> = Result;
|
|
2430
|
+
type TAddImmutableAction<Type extends TSchema, Result extends TSchema = TAddImmutableOperation<Type>> = Result;
|
|
2431
|
+
type TAddImmutableInstantiate<Context extends TProperties, State extends TState, Type extends TSchema, InstantiateType extends TSchema = TInstantiateType<Context, State, Type>> = TAddImmutableAction<InstantiateType>;
|
|
2432
|
+
//#endregion
|
|
2433
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/_add_immutable.d.mts
|
|
2434
|
+
/** Creates a deferred AddImmutable action. */
|
|
2435
|
+
type TAddImmutableDeferred<Type extends TSchema> = (TDeferred<'AddImmutable', [Type]>);
|
|
2436
|
+
/** Applies an AddImmutable action to a type. */
|
|
2437
|
+
type TAddImmutable<Type extends TSchema> = (TAddImmutableAction<Type>);
|
|
2438
|
+
//#endregion
|
|
2439
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/evaluate.d.mts
|
|
2440
|
+
/** Creates a deferred Evaluate action. */
|
|
2441
|
+
type TEvaluateDeferred<Type extends TSchema> = (TDeferred<'Evaluate', [Type]>);
|
|
2442
|
+
/** Applies an Evaluate action to a type. */
|
|
2443
|
+
type TEvaluate<Type extends TSchema> = (TEvaluateAction<Type>);
|
|
2444
|
+
/** Applies an Evaluate action to a type. */
|
|
2445
|
+
declare function Evaluate<Type extends TSchema>(type: Type, options?: TSchemaOptions): TEvaluate<Type>;
|
|
2446
|
+
//#endregion
|
|
2447
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/action/module.d.mts
|
|
2448
|
+
/** Creates a deferred Module action. */
|
|
2449
|
+
type TModuleDeferred<Declarations extends TProperties> = (TDeferred<'Module', [Declarations]>);
|
|
2450
|
+
/** Creates a Module with the given declarations */
|
|
2451
|
+
type TModule<Declarations extends TProperties> = (TModuleInstantiate<{}, TState<[], []>, Declarations>);
|
|
2452
|
+
/** Creates a Module with the given declarations */
|
|
2453
|
+
declare function Module<Declarations extends TProperties>(declarations: Declarations, options?: TSchemaOptions): TModule<Declarations>;
|
|
2454
|
+
//#endregion
|
|
2455
|
+
//#region node_modules/.pnpm/typebox@1.3.13/node_modules/typebox/build/type/script/script.d.mts
|
|
2456
|
+
type TScriptOptions = TArrayOptions | TIntersectOptions | TNumberOptions | TObjectOptions | TStringOptions | TTupleOptions;
|
|
2457
|
+
/** Parses a string-based TypeScript type expression into a TypeBox type. */
|
|
2458
|
+
type TScript<Context extends TProperties, Input extends string> = (TScript$1<Input> extends [infer Type extends TSchema, string] ? TInstantiateType<Context, TState<[], []>, Type> : TNever);
|
|
2459
|
+
/** Parses a type from a TypeScript type expression */
|
|
2460
|
+
declare function Script<Script extends string>(input: Script): TScript<{}, Script>;
|
|
2461
|
+
/** Parses a type from a TypeScript type expression */
|
|
2462
|
+
declare function Script<Context extends TProperties, Script extends string>(context: Context, input: Script): TScript<Context, Script>;
|
|
2463
|
+
/** Parses a type from a TypeScript type expression */
|
|
2464
|
+
declare function Script<Script extends string>(input: Script, options: TScriptOptions): TScript<{}, Script>;
|
|
2465
|
+
/** Parses a type from a TypeScript type expression */
|
|
2466
|
+
declare function Script<Context extends TProperties, Script extends string>(context: Context, input: Script, options: TScriptOptions): TScript<Context, Script>;
|
|
2467
|
+
declare namespace typebox_d_exports {
|
|
2468
|
+
export { Any, _Array_ as Array, BigInt, Boolean, Call, Capitalize$1 as Capitalize, Codec, Conditional, Constructor, ConstructorParameters, Cyclic, Decode, DecodeBuilder, Dependent, Encode, EncodeBuilder, Enum, Evaluate, Exclude$1 as Exclude, Extends$1 as Extends, result_d_exports as ExtendsResult, Extract$1 as Extract, _Function_ as Function, Generic, Identifier, Immutable, Index, Infer, InstanceType$1 as InstanceType, Instantiate, Integer$1 as Integer, Interface, Intersect, IsAny, IsArray, IsBigInt, IsBoolean, IsCall, IsCodec, IsConstructor, IsCyclic, IsDependent, IsEnum, IsEnumValue, IsFunction, IsGeneric, IsIdentifier, IsImmutable, IsInfer, IsInteger, IsIntersect, IsKind, IsLiteral, IsNever, IsNull, IsNumber, IsObject, IsOptional$1 as IsOptional, IsParameter, IsReadonly$1 as IsReadonly, IsRecord, IsRef, IsRefine, IsRest, IsSchema, IsString, IsSymbol, IsTemplateLiteral, IsThis, IsTuple, IsUndefined, IsUnion, IsUnknown, IsUnsafe, IsVoid, KeyOf, Literal, Lowercase$1 as Lowercase, Mapped, Module, Never, NonNullable, Null, Number, _Object_ as Object, Omit$1 as Omit, Optional$1 as Optional, Parameter, Parameters$1 as Parameters, Partial$1 as Partial, Pick$1 as Pick, Readonly$1 as Readonly, ReadonlyObject, ReadonlyType, Record$1 as Record, RecordKey, RecordPattern, RecordValue, Ref$1 as Ref, Refine, Required$1 as Required, Rest$1 as Rest, ReturnType$1 as ReturnType, Script, Static, StaticDecode, StaticEncode, StaticParse, String, Symbol, TAny, TArray, TArrayOptions, TBigInt$1 as TBigInt, TBoolean, TCall, TCapitalize, TCapitalizeDeferred, TCodec, TConditional, TConditionalDeferred, TConstructor, TConstructorParameters, TConstructorParametersDeferred, TCyclic, TDependent$1 as TDependent, TEnum, TEnumValue, TEvaluate, TEvaluateDeferred, TExclude, TExcludeDeferred, TExtends, TExtract, TExtractDeferred, TFormat, TFunction, TGeneric, TIdentifier, TImmutable, TIndex, TIndexDeferred, TInfer, TInstanceType, TInstanceTypeDeferred, TInstantiate, TInteger$1 as TInteger, TInterface, TInterfaceDeferred, TIntersect, TIntersectOptions, TKeyOf, TKeyOfDeferred, TLiteral, TLiteralValue, TLowercase, TLowercaseDeferred, TMapped, TMappedDeferred, TModule, TModuleDeferred, TNever, TNonNullable, TNonNullableDeferred, TNull, TNumber$1 as TNumber, TNumberOptions, TObject, TObjectOptions, TOmit, TOmitDeferred, TOptional, TParameter$1 as TParameter, TParameters, TParametersDeferred, TPartial, TPartialDeferred, TPick, TPickDeferred, TProperties, TReadonly$1 as TReadonly, TReadonlyObject, TReadonlyObjectDeferred, TRecord, TRecordKey, TRecordPattern, TRecordValue, TRef, TRefine, TRefineCheckCallback, TRefineErrorCallback, TRefinement, TRequired, TRequiredArray, TRequiredDeferred, TRest, TReturnType, TReturnTypeDeferred, TSchema, TSchemaOptions, TScript, TString$1 as TString, TStringOptions, TSymbol, TTemplateLiteral, TThis, TTuple, TTupleOptions, TUncapitalize, TUncapitalizeDeferred, TUndefined, TUnion, TUnknown, TUnsafe, TUppercase, TUppercaseDeferred, TVoid, TWith, TemplateLiteral, This, Tuple, Uncapitalize$1 as Uncapitalize, Undefined, Union$1 as Union, Unknown, Unsafe, Uppercase$1 as Uppercase, Void, With };
|
|
2469
|
+
}
|
|
2470
|
+
//#endregion
|
|
2471
|
+
//#region src/compat/vendor/pi-ai-overflow.d.ts
|
|
2472
|
+
/**
|
|
2473
|
+
* Check if an assistant message represents a context overflow error.
|
|
2474
|
+
*
|
|
2475
|
+
* This handles three cases:
|
|
2476
|
+
* 1. Error-based overflow: Most providers return stopReason "error" with a
|
|
2477
|
+
* specific error message pattern.
|
|
2478
|
+
* 2. Silent overflow: Some providers accept overflow requests and return
|
|
2479
|
+
* successfully. For these, we check if usage.input exceeds the context window.
|
|
2480
|
+
* 3. Length-stop overflow: Xiaomi MiMo can return "length" with zero output when
|
|
2481
|
+
* the input fills the context window.
|
|
2482
|
+
*
|
|
2483
|
+
* ## Reliability by Provider
|
|
2484
|
+
*
|
|
2485
|
+
* **Reliable detection (returns error with detectable message):**
|
|
2486
|
+
* - Anthropic: "prompt is too long: X tokens > Y maximum" or "request_too_large"
|
|
2487
|
+
* - OpenAI (Completions & Responses): "exceeds the context window", "exceeds the model's maximum context length of X tokens", or "exceeds model's maximum context length (X)"
|
|
2488
|
+
* - Google Gemini: "input token count exceeds the maximum"
|
|
2489
|
+
* - xAI (Grok): "maximum prompt length is X but request contains Y"
|
|
2490
|
+
* - Groq: "reduce the length of the messages"
|
|
2491
|
+
* - Cerebras: 400/413 status code (no body)
|
|
2492
|
+
* - Mistral: "Prompt contains X tokens ... too large for model with Y maximum context length"
|
|
2493
|
+
* - OpenRouter (most backends): "maximum context length is X tokens"
|
|
2494
|
+
* - OpenRouter/Poolside: "Input length X exceeds the maximum allowed input length of Y tokens."
|
|
2495
|
+
* - Together AI: "The input (X tokens) is longer than the model's context length (Y tokens)."
|
|
2496
|
+
* - llama.cpp: "exceeds the available context size"
|
|
2497
|
+
* - LM Studio: "greater than the context length"
|
|
2498
|
+
* - Kimi For Coding: "exceeded model token limit: X (requested: Y)"
|
|
2499
|
+
* - DS4: "Prompt has X tokens, but the configured context size is Y tokens"
|
|
2500
|
+
* - DashScope/Qwen: "Range of input length should be [1, X]"
|
|
2501
|
+
*
|
|
2502
|
+
* **Unreliable detection:**
|
|
2503
|
+
* - z.ai: Sometimes accepts overflow silently (detectable via usage.input > contextWindow),
|
|
2504
|
+
* sometimes returns rate limit errors. Pass contextWindow param to detect silent overflow.
|
|
2505
|
+
* - Xiaomi MiMo: Truncates input to fit contextWindow then returns stopReason "length" with
|
|
2506
|
+
* output=0. Pass contextWindow param to detect via the "filled context + zero output" signal.
|
|
2507
|
+
* - Ollama: May truncate input silently for some setups, but may also return explicit
|
|
2508
|
+
* overflow errors that match the patterns above. Silent truncation still cannot be
|
|
2509
|
+
* detected here because we do not know the expected token count.
|
|
2510
|
+
*
|
|
2511
|
+
* ## Custom Providers
|
|
2512
|
+
*
|
|
2513
|
+
* If you've added custom models via settings.json, this function may not detect
|
|
2514
|
+
* overflow errors from those providers. To add support:
|
|
2515
|
+
*
|
|
2516
|
+
* 1. Send a request that exceeds the model's context window
|
|
2517
|
+
* 2. Check the errorMessage in the response
|
|
2518
|
+
* 3. Create a regex pattern that matches the error
|
|
2519
|
+
* 4. The pattern should be added to OVERFLOW_PATTERNS in this file, or
|
|
2520
|
+
* check the errorMessage yourself before calling this function
|
|
2521
|
+
*
|
|
2522
|
+
* @param message - The assistant message to check
|
|
2523
|
+
* @param contextWindow - Optional context window size for detecting silent overflow (z.ai)
|
|
2524
|
+
* @returns true if the message indicates a context overflow
|
|
2525
|
+
*/
|
|
2526
|
+
declare function isContextOverflow(message: AssistantMessage, contextWindow?: number): boolean;
|
|
2527
|
+
/**
|
|
2528
|
+
* Check whether a length stop ended below the caller or model's intended output limit.
|
|
2529
|
+
* Such responses may be caused by context pressure or provider-side truncation, so callers
|
|
2530
|
+
* can make one bounded compact-and-retry attempt. `desiredMaxOutput` must be the original
|
|
2531
|
+
* limit before any context-based clamping.
|
|
2532
|
+
*/
|
|
2533
|
+
declare function isRecoverableLength(message: AssistantMessage, desiredMaxOutput: number): boolean;
|
|
2534
|
+
//#endregion
|
|
2535
|
+
//#region src/compat/vendor/pi-ai-retry.d.ts
|
|
2536
|
+
/**
|
|
2537
|
+
* Classifies whether a failed assistant message looks like a transient provider
|
|
2538
|
+
* or transport error, so callers can decide if the last assistant turn should be
|
|
2539
|
+
* restarted.
|
|
2540
|
+
*
|
|
2541
|
+
* This does not implement retry policy. Callers should first handle context
|
|
2542
|
+
* overflow separately, then apply their own retry budget, backoff, and reporting
|
|
2543
|
+
* before restarting the assistant turn.
|
|
2544
|
+
*/
|
|
2545
|
+
declare function isRetryableAssistantError(message: AssistantMessage): boolean;
|
|
2546
|
+
//#endregion
|
|
2547
|
+
//#region src/compat/vendor/pi-uuid.d.ts
|
|
2548
|
+
/** Generate a time-ordered UUIDv7. */
|
|
2549
|
+
declare function uuidv7(): string;
|
|
2550
|
+
//#endregion
|
|
2551
|
+
//#region src/compat/pi-ai.d.ts
|
|
2552
|
+
type ThinkingLevel = 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | 'max';
|
|
2553
|
+
type ModelThinkingLevel = 'off' | ThinkingLevel;
|
|
2554
|
+
type ThinkingLevelMap = Partial<Record<ModelThinkingLevel, string | null>>;
|
|
2555
|
+
type Api = string;
|
|
2556
|
+
interface Model<TApi extends Api = Api> {
|
|
2557
|
+
id: string;
|
|
2558
|
+
name?: string;
|
|
2559
|
+
api?: TApi;
|
|
2560
|
+
provider?: string;
|
|
2561
|
+
baseUrl?: string;
|
|
2562
|
+
reasoning?: boolean;
|
|
2563
|
+
thinkingLevelMap?: ThinkingLevelMap;
|
|
2564
|
+
input?: readonly ('text' | 'image')[];
|
|
2565
|
+
contextWindow?: number;
|
|
2566
|
+
maxTokens?: number;
|
|
2567
|
+
[key: string]: unknown;
|
|
2568
|
+
}
|
|
2569
|
+
declare function getSupportedThinkingLevels<TApi extends Api>(model: Model<TApi>): ModelThinkingLevel[];
|
|
2570
|
+
declare function clampThinkingLevel<TApi extends Api>(model: Model<TApi>, level: ModelThinkingLevel): ModelThinkingLevel;
|
|
2571
|
+
declare function modelsAreEqual<TApi extends Api>(a: Model<TApi> | null | undefined, b: Model<TApi> | null | undefined): boolean;
|
|
2572
|
+
interface TextishContent {
|
|
2573
|
+
type: string;
|
|
2574
|
+
text?: string;
|
|
2575
|
+
[key: string]: unknown;
|
|
2576
|
+
}
|
|
2577
|
+
declare function contentText(content: string | readonly TextishContent[], separator?: string): string;
|
|
2578
|
+
declare function registerProvider(name: string, provider: unknown): void;
|
|
2579
|
+
declare function getProviders(): string[];
|
|
2580
|
+
declare function getProvider(name: string): unknown;
|
|
2581
|
+
declare function getModel(_provider: string, _id: string): undefined;
|
|
2582
|
+
declare function getModels(_provider?: string): unknown[];
|
|
2583
|
+
declare function complete(..._args: unknown[]): never;
|
|
2584
|
+
declare function stream(..._args: unknown[]): never;
|
|
2585
|
+
interface StringEnumOptions<T extends readonly string[]> {
|
|
2586
|
+
description?: string;
|
|
2587
|
+
default?: T[number];
|
|
2588
|
+
}
|
|
2589
|
+
declare function StringEnum<T extends readonly string[]>(values: T, options?: StringEnumOptions<T>): {
|
|
2590
|
+
type: 'string';
|
|
2591
|
+
enum: T;
|
|
2592
|
+
description?: string;
|
|
2593
|
+
default?: T[number];
|
|
2594
|
+
};
|
|
2595
|
+
//#endregion
|
|
2596
|
+
export { type AgentMessage, Api, type AssistantMessage, type ImageContent, type Message, Model, ModelThinkingLevel, type Static, StringEnum, StringEnumOptions, type TSchema, type TextContent, type ThinkingContent, ThinkingLevel, ThinkingLevelMap, type ToolCallContent, type ToolResultMessage, typebox_d_exports as Type, type Usage, type UserMessage, clampThinkingLevel, complete, contentText, getModel, getModels, getProvider, getProviders, getSupportedThinkingLevels, isContextOverflow, isRecoverableLength, isRetryableAssistantError, modelsAreEqual, registerProvider, stream, uuidv7 };
|
|
2597
|
+
//# sourceMappingURL=pi-ai.d.mts.map
|