@elysiajs/jwt 1.2.0 → 1.3.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/bun.lock +514 -0
- package/dist/cjs/index.d.ts +11 -8
- package/dist/cjs/index.js +255 -123
- package/dist/index.d.ts +11 -8
- package/dist/index.mjs +255 -123
- package/package.json +3 -3
package/dist/cjs/index.js
CHANGED
|
@@ -136,7 +136,7 @@ function IsObject2(value) {
|
|
|
136
136
|
return value !== null && typeof value === "object";
|
|
137
137
|
}
|
|
138
138
|
function IsArray2(value) {
|
|
139
|
-
return Array.isArray(value) && !ArrayBuffer.isView(value);
|
|
139
|
+
return globalThis.Array.isArray(value) && !globalThis.ArrayBuffer.isView(value);
|
|
140
140
|
}
|
|
141
141
|
function IsUndefined2(value) {
|
|
142
142
|
return value === void 0;
|
|
@@ -241,6 +241,9 @@ function IsOptional(value) {
|
|
|
241
241
|
function IsAny(value) {
|
|
242
242
|
return IsKindOf(value, "Any");
|
|
243
243
|
}
|
|
244
|
+
function IsArgument(value) {
|
|
245
|
+
return IsKindOf(value, "Argument");
|
|
246
|
+
}
|
|
244
247
|
function IsArray3(value) {
|
|
245
248
|
return IsKindOf(value, "Array");
|
|
246
249
|
}
|
|
@@ -356,13 +359,14 @@ function IsKind(value) {
|
|
|
356
359
|
return IsObject(value) && Kind in value && IsString(value[Kind]);
|
|
357
360
|
}
|
|
358
361
|
function IsSchema(value) {
|
|
359
|
-
return IsAny(value) || IsArray3(value) || IsBoolean2(value) || IsBigInt2(value) || IsAsyncIterator2(value) || IsComputed(value) || IsConstructor(value) || IsDate2(value) || IsFunction2(value) || IsInteger(value) || IsIntersect(value) || IsIterator2(value) || IsLiteral(value) || IsMappedKey(value) || IsMappedResult(value) || IsNever(value) || IsNot(value) || IsNull2(value) || IsNumber3(value) || IsObject3(value) || IsPromise(value) || IsRecord(value) || IsRef(value) || IsRegExp2(value) || IsString2(value) || IsSymbol2(value) || IsTemplateLiteral(value) || IsThis(value) || IsTuple(value) || IsUndefined3(value) || IsUnion(value) || IsUint8Array2(value) || IsUnknown(value) || IsUnsafe(value) || IsVoid(value) || IsKind(value);
|
|
362
|
+
return IsAny(value) || IsArgument(value) || IsArray3(value) || IsBoolean2(value) || IsBigInt2(value) || IsAsyncIterator2(value) || IsComputed(value) || IsConstructor(value) || IsDate2(value) || IsFunction2(value) || IsInteger(value) || IsIntersect(value) || IsIterator2(value) || IsLiteral(value) || IsMappedKey(value) || IsMappedResult(value) || IsNever(value) || IsNot(value) || IsNull2(value) || IsNumber3(value) || IsObject3(value) || IsPromise(value) || IsRecord(value) || IsRef(value) || IsRegExp2(value) || IsString2(value) || IsSymbol2(value) || IsTemplateLiteral(value) || IsThis(value) || IsTuple(value) || IsUndefined3(value) || IsUnion(value) || IsUint8Array2(value) || IsUnknown(value) || IsUnsafe(value) || IsVoid(value) || IsKind(value);
|
|
360
363
|
}
|
|
361
364
|
|
|
362
365
|
// node_modules/@sinclair/typebox/build/esm/type/guard/type.mjs
|
|
363
366
|
var type_exports = {};
|
|
364
367
|
__export(type_exports, {
|
|
365
368
|
IsAny: () => IsAny2,
|
|
369
|
+
IsArgument: () => IsArgument2,
|
|
366
370
|
IsArray: () => IsArray4,
|
|
367
371
|
IsAsyncIterator: () => IsAsyncIterator3,
|
|
368
372
|
IsBigInt: () => IsBigInt3,
|
|
@@ -416,6 +420,7 @@ __export(type_exports, {
|
|
|
416
420
|
var TypeGuardUnknownTypeError = class extends TypeBoxError {
|
|
417
421
|
};
|
|
418
422
|
var KnownTypes = [
|
|
423
|
+
"Argument",
|
|
419
424
|
"Any",
|
|
420
425
|
"Array",
|
|
421
426
|
"AsyncIterator",
|
|
@@ -503,6 +508,9 @@ function IsOptional2(value) {
|
|
|
503
508
|
function IsAny2(value) {
|
|
504
509
|
return IsKindOf2(value, "Any") && IsOptionalString(value.$id);
|
|
505
510
|
}
|
|
511
|
+
function IsArgument2(value) {
|
|
512
|
+
return IsKindOf2(value, "Argument") && IsNumber(value.index);
|
|
513
|
+
}
|
|
506
514
|
function IsArray4(value) {
|
|
507
515
|
return IsKindOf2(value, "Array") && value.type === "array" && IsOptionalString(value.$id) && IsSchema2(value.items) && IsOptionalNumber(value.minItems) && IsOptionalNumber(value.maxItems) && IsOptionalBoolean(value.uniqueItems) && IsOptionalSchema(value.contains) && IsOptionalNumber(value.minContains) && IsOptionalNumber(value.maxContains);
|
|
508
516
|
}
|
|
@@ -643,7 +651,7 @@ function IsKind2(value) {
|
|
|
643
651
|
return IsObject(value) && Kind in value && IsString(value[Kind]) && !KnownTypes.includes(value[Kind]);
|
|
644
652
|
}
|
|
645
653
|
function IsSchema2(value) {
|
|
646
|
-
return IsObject(value) && (IsAny2(value) || IsArray4(value) || IsBoolean3(value) || IsBigInt3(value) || IsAsyncIterator3(value) || IsComputed2(value) || IsConstructor2(value) || IsDate3(value) || IsFunction3(value) || IsInteger2(value) || IsIntersect2(value) || IsIterator3(value) || IsLiteral2(value) || IsMappedKey2(value) || IsMappedResult2(value) || IsNever2(value) || IsNot2(value) || IsNull3(value) || IsNumber4(value) || IsObject4(value) || IsPromise2(value) || IsRecord2(value) || IsRef2(value) || IsRegExp3(value) || IsString3(value) || IsSymbol3(value) || IsTemplateLiteral2(value) || IsThis2(value) || IsTuple2(value) || IsUndefined4(value) || IsUnion2(value) || IsUint8Array3(value) || IsUnknown2(value) || IsUnsafe2(value) || IsVoid2(value) || IsKind2(value));
|
|
654
|
+
return IsObject(value) && (IsAny2(value) || IsArgument2(value) || IsArray4(value) || IsBoolean3(value) || IsBigInt3(value) || IsAsyncIterator3(value) || IsComputed2(value) || IsConstructor2(value) || IsDate3(value) || IsFunction3(value) || IsInteger2(value) || IsIntersect2(value) || IsIterator3(value) || IsLiteral2(value) || IsMappedKey2(value) || IsMappedResult2(value) || IsNever2(value) || IsNot2(value) || IsNull3(value) || IsNumber4(value) || IsObject4(value) || IsPromise2(value) || IsRecord2(value) || IsRef2(value) || IsRegExp3(value) || IsString3(value) || IsSymbol3(value) || IsTemplateLiteral2(value) || IsThis2(value) || IsTuple2(value) || IsUndefined4(value) || IsUnion2(value) || IsUint8Array3(value) || IsUnknown2(value) || IsUnsafe2(value) || IsVoid2(value) || IsKind2(value));
|
|
647
655
|
}
|
|
648
656
|
|
|
649
657
|
// node_modules/@sinclair/typebox/build/esm/type/patterns/patterns.mjs
|
|
@@ -691,6 +699,11 @@ function Array2(items, options) {
|
|
|
691
699
|
return CreateType({ [Kind]: "Array", type: "array", items }, options);
|
|
692
700
|
}
|
|
693
701
|
|
|
702
|
+
// node_modules/@sinclair/typebox/build/esm/type/argument/argument.mjs
|
|
703
|
+
function Argument(index) {
|
|
704
|
+
return CreateType({ [Kind]: "Argument", index });
|
|
705
|
+
}
|
|
706
|
+
|
|
694
707
|
// node_modules/@sinclair/typebox/build/esm/type/async-iterator/async-iterator.mjs
|
|
695
708
|
function AsyncIterator(items, options) {
|
|
696
709
|
return CreateType({ [Kind]: "AsyncIterator", type: "AsyncIterator", items }, options);
|
|
@@ -1506,7 +1519,7 @@ function Const(T, options) {
|
|
|
1506
1519
|
|
|
1507
1520
|
// node_modules/@sinclair/typebox/build/esm/type/constructor-parameters/constructor-parameters.mjs
|
|
1508
1521
|
function ConstructorParameters(schema, options) {
|
|
1509
|
-
return Tuple(schema.parameters, options);
|
|
1522
|
+
return IsConstructor(schema) ? Tuple(schema.parameters, options) : Never(options);
|
|
1510
1523
|
}
|
|
1511
1524
|
|
|
1512
1525
|
// node_modules/@sinclair/typebox/build/esm/type/enum/enum.mjs
|
|
@@ -1881,7 +1894,142 @@ function ExtractFromMappedResult(R, T) {
|
|
|
1881
1894
|
|
|
1882
1895
|
// node_modules/@sinclair/typebox/build/esm/type/instance-type/instance-type.mjs
|
|
1883
1896
|
function InstanceType(schema, options) {
|
|
1884
|
-
return CreateType(schema.returns, options);
|
|
1897
|
+
return IsConstructor(schema) ? CreateType(schema.returns, options) : Never(options);
|
|
1898
|
+
}
|
|
1899
|
+
|
|
1900
|
+
// node_modules/@sinclair/typebox/build/esm/type/readonly-optional/readonly-optional.mjs
|
|
1901
|
+
function ReadonlyOptional(schema) {
|
|
1902
|
+
return Readonly(Optional(schema));
|
|
1903
|
+
}
|
|
1904
|
+
|
|
1905
|
+
// node_modules/@sinclair/typebox/build/esm/type/record/record.mjs
|
|
1906
|
+
function RecordCreateFromPattern(pattern, T, options) {
|
|
1907
|
+
return CreateType({ [Kind]: "Record", type: "object", patternProperties: { [pattern]: T } }, options);
|
|
1908
|
+
}
|
|
1909
|
+
function RecordCreateFromKeys(K, T, options) {
|
|
1910
|
+
const result = {};
|
|
1911
|
+
for (const K2 of K)
|
|
1912
|
+
result[K2] = T;
|
|
1913
|
+
return Object2(result, { ...options, [Hint]: "Record" });
|
|
1914
|
+
}
|
|
1915
|
+
function FromTemplateLiteralKey(K, T, options) {
|
|
1916
|
+
return IsTemplateLiteralFinite(K) ? RecordCreateFromKeys(IndexPropertyKeys(K), T, options) : RecordCreateFromPattern(K.pattern, T, options);
|
|
1917
|
+
}
|
|
1918
|
+
function FromUnionKey(key, type, options) {
|
|
1919
|
+
return RecordCreateFromKeys(IndexPropertyKeys(Union(key)), type, options);
|
|
1920
|
+
}
|
|
1921
|
+
function FromLiteralKey(key, type, options) {
|
|
1922
|
+
return RecordCreateFromKeys([key.toString()], type, options);
|
|
1923
|
+
}
|
|
1924
|
+
function FromRegExpKey(key, type, options) {
|
|
1925
|
+
return RecordCreateFromPattern(key.source, type, options);
|
|
1926
|
+
}
|
|
1927
|
+
function FromStringKey(key, type, options) {
|
|
1928
|
+
const pattern = IsUndefined(key.pattern) ? PatternStringExact : key.pattern;
|
|
1929
|
+
return RecordCreateFromPattern(pattern, type, options);
|
|
1930
|
+
}
|
|
1931
|
+
function FromAnyKey(_, type, options) {
|
|
1932
|
+
return RecordCreateFromPattern(PatternStringExact, type, options);
|
|
1933
|
+
}
|
|
1934
|
+
function FromNeverKey(_key, type, options) {
|
|
1935
|
+
return RecordCreateFromPattern(PatternNeverExact, type, options);
|
|
1936
|
+
}
|
|
1937
|
+
function FromBooleanKey(_key, type, options) {
|
|
1938
|
+
return Object2({ true: type, false: type }, options);
|
|
1939
|
+
}
|
|
1940
|
+
function FromIntegerKey(_key, type, options) {
|
|
1941
|
+
return RecordCreateFromPattern(PatternNumberExact, type, options);
|
|
1942
|
+
}
|
|
1943
|
+
function FromNumberKey(_, type, options) {
|
|
1944
|
+
return RecordCreateFromPattern(PatternNumberExact, type, options);
|
|
1945
|
+
}
|
|
1946
|
+
function Record(key, type, options = {}) {
|
|
1947
|
+
return IsUnion(key) ? FromUnionKey(key.anyOf, type, options) : IsTemplateLiteral(key) ? FromTemplateLiteralKey(key, type, options) : IsLiteral(key) ? FromLiteralKey(key.const, type, options) : IsBoolean2(key) ? FromBooleanKey(key, type, options) : IsInteger(key) ? FromIntegerKey(key, type, options) : IsNumber3(key) ? FromNumberKey(key, type, options) : IsRegExp2(key) ? FromRegExpKey(key, type, options) : IsString2(key) ? FromStringKey(key, type, options) : IsAny(key) ? FromAnyKey(key, type, options) : IsNever(key) ? FromNeverKey(key, type, options) : Never(options);
|
|
1948
|
+
}
|
|
1949
|
+
function RecordPattern(record) {
|
|
1950
|
+
return globalThis.Object.getOwnPropertyNames(record.patternProperties)[0];
|
|
1951
|
+
}
|
|
1952
|
+
function RecordKey2(type) {
|
|
1953
|
+
const pattern = RecordPattern(type);
|
|
1954
|
+
return pattern === PatternStringExact ? String() : pattern === PatternNumberExact ? Number2() : String({ pattern });
|
|
1955
|
+
}
|
|
1956
|
+
function RecordValue2(type) {
|
|
1957
|
+
return type.patternProperties[RecordPattern(type)];
|
|
1958
|
+
}
|
|
1959
|
+
|
|
1960
|
+
// node_modules/@sinclair/typebox/build/esm/type/instantiate/instantiate.mjs
|
|
1961
|
+
function FromConstructor2(args, type) {
|
|
1962
|
+
type.parameters = FromTypes(args, type.parameters);
|
|
1963
|
+
type.returns = FromType(args, type.returns);
|
|
1964
|
+
return type;
|
|
1965
|
+
}
|
|
1966
|
+
function FromFunction2(args, type) {
|
|
1967
|
+
type.parameters = FromTypes(args, type.parameters);
|
|
1968
|
+
type.returns = FromType(args, type.returns);
|
|
1969
|
+
return type;
|
|
1970
|
+
}
|
|
1971
|
+
function FromIntersect5(args, type) {
|
|
1972
|
+
type.allOf = FromTypes(args, type.allOf);
|
|
1973
|
+
return type;
|
|
1974
|
+
}
|
|
1975
|
+
function FromUnion7(args, type) {
|
|
1976
|
+
type.anyOf = FromTypes(args, type.anyOf);
|
|
1977
|
+
return type;
|
|
1978
|
+
}
|
|
1979
|
+
function FromTuple4(args, type) {
|
|
1980
|
+
if (IsUndefined(type.items))
|
|
1981
|
+
return type;
|
|
1982
|
+
type.items = FromTypes(args, type.items);
|
|
1983
|
+
return type;
|
|
1984
|
+
}
|
|
1985
|
+
function FromArray5(args, type) {
|
|
1986
|
+
type.items = FromType(args, type.items);
|
|
1987
|
+
return type;
|
|
1988
|
+
}
|
|
1989
|
+
function FromAsyncIterator2(args, type) {
|
|
1990
|
+
type.items = FromType(args, type.items);
|
|
1991
|
+
return type;
|
|
1992
|
+
}
|
|
1993
|
+
function FromIterator2(args, type) {
|
|
1994
|
+
type.items = FromType(args, type.items);
|
|
1995
|
+
return type;
|
|
1996
|
+
}
|
|
1997
|
+
function FromPromise3(args, type) {
|
|
1998
|
+
type.item = FromType(args, type.item);
|
|
1999
|
+
return type;
|
|
2000
|
+
}
|
|
2001
|
+
function FromObject2(args, type) {
|
|
2002
|
+
const mappedProperties = FromProperties11(args, type.properties);
|
|
2003
|
+
return { ...type, ...Object2(mappedProperties) };
|
|
2004
|
+
}
|
|
2005
|
+
function FromRecord2(args, type) {
|
|
2006
|
+
const mappedKey = FromType(args, RecordKey2(type));
|
|
2007
|
+
const mappedValue = FromType(args, RecordValue2(type));
|
|
2008
|
+
const result = Record(mappedKey, mappedValue);
|
|
2009
|
+
return { ...type, ...result };
|
|
2010
|
+
}
|
|
2011
|
+
function FromArgument(args, argument) {
|
|
2012
|
+
return argument.index in args ? args[argument.index] : Unknown();
|
|
2013
|
+
}
|
|
2014
|
+
function FromProperty2(args, type) {
|
|
2015
|
+
const isReadonly = IsReadonly(type);
|
|
2016
|
+
const isOptional = IsOptional(type);
|
|
2017
|
+
const mapped = FromType(args, type);
|
|
2018
|
+
return isReadonly && isOptional ? ReadonlyOptional(mapped) : isReadonly && !isOptional ? Readonly(mapped) : !isReadonly && isOptional ? Optional(mapped) : mapped;
|
|
2019
|
+
}
|
|
2020
|
+
function FromProperties11(args, properties) {
|
|
2021
|
+
return globalThis.Object.getOwnPropertyNames(properties).reduce((result, key) => {
|
|
2022
|
+
return { ...result, [key]: FromProperty2(args, properties[key]) };
|
|
2023
|
+
}, {});
|
|
2024
|
+
}
|
|
2025
|
+
function FromTypes(args, types) {
|
|
2026
|
+
return types.map((type) => FromType(args, type));
|
|
2027
|
+
}
|
|
2028
|
+
function FromType(args, type) {
|
|
2029
|
+
return IsConstructor(type) ? FromConstructor2(args, type) : IsFunction2(type) ? FromFunction2(args, type) : IsIntersect(type) ? FromIntersect5(args, type) : IsUnion(type) ? FromUnion7(args, type) : IsTuple(type) ? FromTuple4(args, type) : IsArray3(type) ? FromArray5(args, type) : IsAsyncIterator2(type) ? FromAsyncIterator2(args, type) : IsIterator2(type) ? FromIterator2(args, type) : IsPromise(type) ? FromPromise3(args, type) : IsObject3(type) ? FromObject2(args, type) : IsRecord(type) ? FromRecord2(args, type) : IsArgument(type) ? FromArgument(args, type) : type;
|
|
2030
|
+
}
|
|
2031
|
+
function Instantiate(type, args) {
|
|
2032
|
+
return FromType(args, CloneType(type));
|
|
1885
2033
|
}
|
|
1886
2034
|
|
|
1887
2035
|
// node_modules/@sinclair/typebox/build/esm/type/integer/integer.mjs
|
|
@@ -1975,14 +2123,14 @@ function Uppercase(T, options = {}) {
|
|
|
1975
2123
|
}
|
|
1976
2124
|
|
|
1977
2125
|
// node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-result.mjs
|
|
1978
|
-
function
|
|
2126
|
+
function FromProperties12(properties, propertyKeys, options) {
|
|
1979
2127
|
const result = {};
|
|
1980
2128
|
for (const K2 of globalThis.Object.getOwnPropertyNames(properties))
|
|
1981
2129
|
result[K2] = Omit(properties[K2], propertyKeys, Clone(options));
|
|
1982
2130
|
return result;
|
|
1983
2131
|
}
|
|
1984
2132
|
function FromMappedResult9(mappedResult, propertyKeys, options) {
|
|
1985
|
-
return
|
|
2133
|
+
return FromProperties12(mappedResult.properties, propertyKeys, options);
|
|
1986
2134
|
}
|
|
1987
2135
|
function OmitFromMappedResult(mappedResult, propertyKeys, options) {
|
|
1988
2136
|
const properties = FromMappedResult9(mappedResult, propertyKeys, options);
|
|
@@ -1990,22 +2138,22 @@ function OmitFromMappedResult(mappedResult, propertyKeys, options) {
|
|
|
1990
2138
|
}
|
|
1991
2139
|
|
|
1992
2140
|
// node_modules/@sinclair/typebox/build/esm/type/omit/omit.mjs
|
|
1993
|
-
function
|
|
2141
|
+
function FromIntersect6(types, propertyKeys) {
|
|
1994
2142
|
return types.map((type) => OmitResolve(type, propertyKeys));
|
|
1995
2143
|
}
|
|
1996
|
-
function
|
|
2144
|
+
function FromUnion8(types, propertyKeys) {
|
|
1997
2145
|
return types.map((type) => OmitResolve(type, propertyKeys));
|
|
1998
2146
|
}
|
|
1999
|
-
function
|
|
2147
|
+
function FromProperty3(properties, key) {
|
|
2000
2148
|
const { [key]: _, ...R } = properties;
|
|
2001
2149
|
return R;
|
|
2002
2150
|
}
|
|
2003
|
-
function
|
|
2004
|
-
return propertyKeys.reduce((T, K2) =>
|
|
2151
|
+
function FromProperties13(properties, propertyKeys) {
|
|
2152
|
+
return propertyKeys.reduce((T, K2) => FromProperty3(T, K2), properties);
|
|
2005
2153
|
}
|
|
2006
|
-
function
|
|
2154
|
+
function FromObject3(properties, propertyKeys) {
|
|
2007
2155
|
const options = Discard(properties, [TransformKind, "$id", "required", "properties"]);
|
|
2008
|
-
const omittedProperties =
|
|
2156
|
+
const omittedProperties = FromProperties13(properties["properties"], propertyKeys);
|
|
2009
2157
|
return Object2(omittedProperties, options);
|
|
2010
2158
|
}
|
|
2011
2159
|
function UnionFromPropertyKeys(propertyKeys) {
|
|
@@ -2013,7 +2161,7 @@ function UnionFromPropertyKeys(propertyKeys) {
|
|
|
2013
2161
|
return Union(result);
|
|
2014
2162
|
}
|
|
2015
2163
|
function OmitResolve(properties, propertyKeys) {
|
|
2016
|
-
return IsIntersect(properties) ? Intersect(
|
|
2164
|
+
return IsIntersect(properties) ? Intersect(FromIntersect6(properties.allOf, propertyKeys)) : IsUnion(properties) ? Union(FromUnion8(properties.anyOf, propertyKeys)) : IsObject3(properties) ? FromObject3(properties, propertyKeys) : Object2({});
|
|
2017
2165
|
}
|
|
2018
2166
|
function Omit(type, key, options) {
|
|
2019
2167
|
const typeKey = IsArray(key) ? UnionFromPropertyKeys(key) : key;
|
|
@@ -2041,14 +2189,14 @@ function OmitFromMappedKey(type, mappedKey, options) {
|
|
|
2041
2189
|
}
|
|
2042
2190
|
|
|
2043
2191
|
// node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-result.mjs
|
|
2044
|
-
function
|
|
2192
|
+
function FromProperties14(properties, propertyKeys, options) {
|
|
2045
2193
|
const result = {};
|
|
2046
2194
|
for (const K2 of globalThis.Object.getOwnPropertyNames(properties))
|
|
2047
2195
|
result[K2] = Pick(properties[K2], propertyKeys, Clone(options));
|
|
2048
2196
|
return result;
|
|
2049
2197
|
}
|
|
2050
2198
|
function FromMappedResult10(mappedResult, propertyKeys, options) {
|
|
2051
|
-
return
|
|
2199
|
+
return FromProperties14(mappedResult.properties, propertyKeys, options);
|
|
2052
2200
|
}
|
|
2053
2201
|
function PickFromMappedResult(mappedResult, propertyKeys, options) {
|
|
2054
2202
|
const properties = FromMappedResult10(mappedResult, propertyKeys, options);
|
|
@@ -2056,22 +2204,22 @@ function PickFromMappedResult(mappedResult, propertyKeys, options) {
|
|
|
2056
2204
|
}
|
|
2057
2205
|
|
|
2058
2206
|
// node_modules/@sinclair/typebox/build/esm/type/pick/pick.mjs
|
|
2059
|
-
function
|
|
2207
|
+
function FromIntersect7(types, propertyKeys) {
|
|
2060
2208
|
return types.map((type) => PickResolve(type, propertyKeys));
|
|
2061
2209
|
}
|
|
2062
|
-
function
|
|
2210
|
+
function FromUnion9(types, propertyKeys) {
|
|
2063
2211
|
return types.map((type) => PickResolve(type, propertyKeys));
|
|
2064
2212
|
}
|
|
2065
|
-
function
|
|
2213
|
+
function FromProperties15(properties, propertyKeys) {
|
|
2066
2214
|
const result = {};
|
|
2067
2215
|
for (const K2 of propertyKeys)
|
|
2068
2216
|
if (K2 in properties)
|
|
2069
2217
|
result[K2] = properties[K2];
|
|
2070
2218
|
return result;
|
|
2071
2219
|
}
|
|
2072
|
-
function
|
|
2220
|
+
function FromObject4(T, K) {
|
|
2073
2221
|
const options = Discard(T, [TransformKind, "$id", "required", "properties"]);
|
|
2074
|
-
const properties =
|
|
2222
|
+
const properties = FromProperties15(T["properties"], K);
|
|
2075
2223
|
return Object2(properties, options);
|
|
2076
2224
|
}
|
|
2077
2225
|
function UnionFromPropertyKeys2(propertyKeys) {
|
|
@@ -2079,7 +2227,7 @@ function UnionFromPropertyKeys2(propertyKeys) {
|
|
|
2079
2227
|
return Union(result);
|
|
2080
2228
|
}
|
|
2081
2229
|
function PickResolve(properties, propertyKeys) {
|
|
2082
|
-
return IsIntersect(properties) ? Intersect(
|
|
2230
|
+
return IsIntersect(properties) ? Intersect(FromIntersect7(properties.allOf, propertyKeys)) : IsUnion(properties) ? Union(FromUnion9(properties.anyOf, propertyKeys)) : IsObject3(properties) ? FromObject4(properties, propertyKeys) : Object2({});
|
|
2083
2231
|
}
|
|
2084
2232
|
function Pick(type, key, options) {
|
|
2085
2233
|
const typeKey = IsArray(key) ? UnionFromPropertyKeys2(key) : key;
|
|
@@ -2115,22 +2263,31 @@ function FromComputed3(target, parameters) {
|
|
|
2115
2263
|
function FromRef3($ref) {
|
|
2116
2264
|
return Computed("Partial", [Ref($ref)]);
|
|
2117
2265
|
}
|
|
2118
|
-
function
|
|
2266
|
+
function FromProperties16(properties) {
|
|
2119
2267
|
const partialProperties = {};
|
|
2120
2268
|
for (const K of globalThis.Object.getOwnPropertyNames(properties))
|
|
2121
2269
|
partialProperties[K] = Optional(properties[K]);
|
|
2122
2270
|
return partialProperties;
|
|
2123
2271
|
}
|
|
2124
|
-
function
|
|
2125
|
-
const options = Discard(
|
|
2126
|
-
const properties =
|
|
2272
|
+
function FromObject5(type) {
|
|
2273
|
+
const options = Discard(type, [TransformKind, "$id", "required", "properties"]);
|
|
2274
|
+
const properties = FromProperties16(type["properties"]);
|
|
2127
2275
|
return Object2(properties, options);
|
|
2128
2276
|
}
|
|
2129
2277
|
function FromRest6(types) {
|
|
2130
2278
|
return types.map((type) => PartialResolve(type));
|
|
2131
2279
|
}
|
|
2132
2280
|
function PartialResolve(type) {
|
|
2133
|
-
return
|
|
2281
|
+
return (
|
|
2282
|
+
// Mappable
|
|
2283
|
+
IsComputed(type) ? FromComputed3(type.target, type.parameters) : IsRef(type) ? FromRef3(type.$ref) : IsIntersect(type) ? Intersect(FromRest6(type.allOf)) : IsUnion(type) ? Union(FromRest6(type.anyOf)) : IsObject3(type) ? FromObject5(type) : (
|
|
2284
|
+
// Intrinsic
|
|
2285
|
+
IsBigInt2(type) ? type : IsBoolean2(type) ? type : IsInteger(type) ? type : IsLiteral(type) ? type : IsNull2(type) ? type : IsNumber3(type) ? type : IsString2(type) ? type : IsSymbol2(type) ? type : IsUndefined3(type) ? type : (
|
|
2286
|
+
// Passthrough
|
|
2287
|
+
Object2({})
|
|
2288
|
+
)
|
|
2289
|
+
)
|
|
2290
|
+
);
|
|
2134
2291
|
}
|
|
2135
2292
|
function Partial(type, options) {
|
|
2136
2293
|
if (IsMappedResult(type)) {
|
|
@@ -2141,62 +2298,20 @@ function Partial(type, options) {
|
|
|
2141
2298
|
}
|
|
2142
2299
|
|
|
2143
2300
|
// node_modules/@sinclair/typebox/build/esm/type/partial/partial-from-mapped-result.mjs
|
|
2144
|
-
function
|
|
2301
|
+
function FromProperties17(K, options) {
|
|
2145
2302
|
const Acc = {};
|
|
2146
2303
|
for (const K2 of globalThis.Object.getOwnPropertyNames(K))
|
|
2147
2304
|
Acc[K2] = Partial(K[K2], Clone(options));
|
|
2148
2305
|
return Acc;
|
|
2149
2306
|
}
|
|
2150
2307
|
function FromMappedResult11(R, options) {
|
|
2151
|
-
return
|
|
2308
|
+
return FromProperties17(R.properties, options);
|
|
2152
2309
|
}
|
|
2153
2310
|
function PartialFromMappedResult(R, options) {
|
|
2154
2311
|
const P = FromMappedResult11(R, options);
|
|
2155
2312
|
return MappedResult(P);
|
|
2156
2313
|
}
|
|
2157
2314
|
|
|
2158
|
-
// node_modules/@sinclair/typebox/build/esm/type/record/record.mjs
|
|
2159
|
-
function RecordCreateFromPattern(pattern, T, options) {
|
|
2160
|
-
return CreateType({ [Kind]: "Record", type: "object", patternProperties: { [pattern]: T } }, options);
|
|
2161
|
-
}
|
|
2162
|
-
function RecordCreateFromKeys(K, T, options) {
|
|
2163
|
-
const result = {};
|
|
2164
|
-
for (const K2 of K)
|
|
2165
|
-
result[K2] = T;
|
|
2166
|
-
return Object2(result, { ...options, [Hint]: "Record" });
|
|
2167
|
-
}
|
|
2168
|
-
function FromTemplateLiteralKey(K, T, options) {
|
|
2169
|
-
return IsTemplateLiteralFinite(K) ? RecordCreateFromKeys(IndexPropertyKeys(K), T, options) : RecordCreateFromPattern(K.pattern, T, options);
|
|
2170
|
-
}
|
|
2171
|
-
function FromUnionKey(key, type, options) {
|
|
2172
|
-
return RecordCreateFromKeys(IndexPropertyKeys(Union(key)), type, options);
|
|
2173
|
-
}
|
|
2174
|
-
function FromLiteralKey(key, type, options) {
|
|
2175
|
-
return RecordCreateFromKeys([key.toString()], type, options);
|
|
2176
|
-
}
|
|
2177
|
-
function FromRegExpKey(key, type, options) {
|
|
2178
|
-
return RecordCreateFromPattern(key.source, type, options);
|
|
2179
|
-
}
|
|
2180
|
-
function FromStringKey(key, type, options) {
|
|
2181
|
-
const pattern = IsUndefined(key.pattern) ? PatternStringExact : key.pattern;
|
|
2182
|
-
return RecordCreateFromPattern(pattern, type, options);
|
|
2183
|
-
}
|
|
2184
|
-
function FromAnyKey(_, type, options) {
|
|
2185
|
-
return RecordCreateFromPattern(PatternStringExact, type, options);
|
|
2186
|
-
}
|
|
2187
|
-
function FromNeverKey(_key, type, options) {
|
|
2188
|
-
return RecordCreateFromPattern(PatternNeverExact, type, options);
|
|
2189
|
-
}
|
|
2190
|
-
function FromIntegerKey(_key, type, options) {
|
|
2191
|
-
return RecordCreateFromPattern(PatternNumberExact, type, options);
|
|
2192
|
-
}
|
|
2193
|
-
function FromNumberKey(_, type, options) {
|
|
2194
|
-
return RecordCreateFromPattern(PatternNumberExact, type, options);
|
|
2195
|
-
}
|
|
2196
|
-
function Record(key, type, options = {}) {
|
|
2197
|
-
return IsComputed(type) ? Computed("Record", [key, Computed(type.target, type.parameters)], options) : IsComputed(key) ? Computed("Record", [Computed(type.target, type.parameters), type], options) : IsRef(key) ? Computed("Record", [Ref(key.$ref), type]) : IsUnion(key) ? FromUnionKey(key.anyOf, type, options) : IsTemplateLiteral(key) ? FromTemplateLiteralKey(key, type, options) : IsLiteral(key) ? FromLiteralKey(key.const, type, options) : IsInteger(key) ? FromIntegerKey(key, type, options) : IsNumber3(key) ? FromNumberKey(key, type, options) : IsRegExp2(key) ? FromRegExpKey(key, type, options) : IsString2(key) ? FromStringKey(key, type, options) : IsAny(key) ? FromAnyKey(key, type, options) : IsNever(key) ? FromNeverKey(key, type, options) : Never(options);
|
|
2198
|
-
}
|
|
2199
|
-
|
|
2200
2315
|
// node_modules/@sinclair/typebox/build/esm/type/required/required.mjs
|
|
2201
2316
|
function FromComputed4(target, parameters) {
|
|
2202
2317
|
return Computed("Required", [Computed(target, parameters)]);
|
|
@@ -2204,22 +2319,31 @@ function FromComputed4(target, parameters) {
|
|
|
2204
2319
|
function FromRef4($ref) {
|
|
2205
2320
|
return Computed("Required", [Ref($ref)]);
|
|
2206
2321
|
}
|
|
2207
|
-
function
|
|
2322
|
+
function FromProperties18(properties) {
|
|
2208
2323
|
const requiredProperties = {};
|
|
2209
2324
|
for (const K of globalThis.Object.getOwnPropertyNames(properties))
|
|
2210
2325
|
requiredProperties[K] = Discard(properties[K], [OptionalKind]);
|
|
2211
2326
|
return requiredProperties;
|
|
2212
2327
|
}
|
|
2213
|
-
function
|
|
2328
|
+
function FromObject6(type) {
|
|
2214
2329
|
const options = Discard(type, [TransformKind, "$id", "required", "properties"]);
|
|
2215
|
-
const properties =
|
|
2330
|
+
const properties = FromProperties18(type["properties"]);
|
|
2216
2331
|
return Object2(properties, options);
|
|
2217
2332
|
}
|
|
2218
2333
|
function FromRest7(types) {
|
|
2219
2334
|
return types.map((type) => RequiredResolve(type));
|
|
2220
2335
|
}
|
|
2221
2336
|
function RequiredResolve(type) {
|
|
2222
|
-
return
|
|
2337
|
+
return (
|
|
2338
|
+
// Mappable
|
|
2339
|
+
IsComputed(type) ? FromComputed4(type.target, type.parameters) : IsRef(type) ? FromRef4(type.$ref) : IsIntersect(type) ? Intersect(FromRest7(type.allOf)) : IsUnion(type) ? Union(FromRest7(type.anyOf)) : IsObject3(type) ? FromObject6(type) : (
|
|
2340
|
+
// Intrinsic
|
|
2341
|
+
IsBigInt2(type) ? type : IsBoolean2(type) ? type : IsInteger(type) ? type : IsLiteral(type) ? type : IsNull2(type) ? type : IsNumber3(type) ? type : IsString2(type) ? type : IsSymbol2(type) ? type : IsUndefined3(type) ? type : (
|
|
2342
|
+
// Passthrough
|
|
2343
|
+
Object2({})
|
|
2344
|
+
)
|
|
2345
|
+
)
|
|
2346
|
+
);
|
|
2223
2347
|
}
|
|
2224
2348
|
function Required(type, options) {
|
|
2225
2349
|
if (IsMappedResult(type)) {
|
|
@@ -2230,14 +2354,14 @@ function Required(type, options) {
|
|
|
2230
2354
|
}
|
|
2231
2355
|
|
|
2232
2356
|
// node_modules/@sinclair/typebox/build/esm/type/required/required-from-mapped-result.mjs
|
|
2233
|
-
function
|
|
2357
|
+
function FromProperties19(P, options) {
|
|
2234
2358
|
const Acc = {};
|
|
2235
2359
|
for (const K2 of globalThis.Object.getOwnPropertyNames(P))
|
|
2236
2360
|
Acc[K2] = Required(P[K2], options);
|
|
2237
2361
|
return Acc;
|
|
2238
2362
|
}
|
|
2239
2363
|
function FromMappedResult12(R, options) {
|
|
2240
|
-
return
|
|
2364
|
+
return FromProperties19(R.properties, options);
|
|
2241
2365
|
}
|
|
2242
2366
|
function RequiredFromMappedResult(R, options) {
|
|
2243
2367
|
const P = FromMappedResult12(R, options);
|
|
@@ -2245,13 +2369,13 @@ function RequiredFromMappedResult(R, options) {
|
|
|
2245
2369
|
}
|
|
2246
2370
|
|
|
2247
2371
|
// node_modules/@sinclair/typebox/build/esm/type/module/compute.mjs
|
|
2248
|
-
function
|
|
2372
|
+
function DereferenceParameters(moduleProperties, types) {
|
|
2249
2373
|
return types.map((type) => {
|
|
2250
|
-
return IsRef(type) ?
|
|
2374
|
+
return IsRef(type) ? Dereference(moduleProperties, type.$ref) : FromType2(moduleProperties, type);
|
|
2251
2375
|
});
|
|
2252
2376
|
}
|
|
2253
|
-
function
|
|
2254
|
-
return ref in moduleProperties ? IsRef(moduleProperties[ref]) ?
|
|
2377
|
+
function Dereference(moduleProperties, ref) {
|
|
2378
|
+
return ref in moduleProperties ? IsRef(moduleProperties[ref]) ? Dereference(moduleProperties, moduleProperties[ref].$ref) : FromType2(moduleProperties, moduleProperties[ref]) : Never();
|
|
2255
2379
|
}
|
|
2256
2380
|
function FromAwaited(parameters) {
|
|
2257
2381
|
return Awaited(parameters[0]);
|
|
@@ -2271,59 +2395,68 @@ function FromOmit(parameters) {
|
|
|
2271
2395
|
function FromPick(parameters) {
|
|
2272
2396
|
return Pick(parameters[0], parameters[1]);
|
|
2273
2397
|
}
|
|
2274
|
-
function FromRecord2(parameters) {
|
|
2275
|
-
return Record(parameters[0], parameters[1]);
|
|
2276
|
-
}
|
|
2277
2398
|
function FromRequired(parameters) {
|
|
2278
2399
|
return Required(parameters[0]);
|
|
2279
2400
|
}
|
|
2280
2401
|
function FromComputed5(moduleProperties, target, parameters) {
|
|
2281
|
-
const dereferenced =
|
|
2282
|
-
return target === "Awaited" ? FromAwaited(dereferenced) : target === "Index" ? FromIndex(dereferenced) : target === "KeyOf" ? FromKeyOf(dereferenced) : target === "Partial" ? FromPartial(dereferenced) : target === "Omit" ? FromOmit(dereferenced) : target === "Pick" ? FromPick(dereferenced) : target === "
|
|
2402
|
+
const dereferenced = DereferenceParameters(moduleProperties, parameters);
|
|
2403
|
+
return target === "Awaited" ? FromAwaited(dereferenced) : target === "Index" ? FromIndex(dereferenced) : target === "KeyOf" ? FromKeyOf(dereferenced) : target === "Partial" ? FromPartial(dereferenced) : target === "Omit" ? FromOmit(dereferenced) : target === "Pick" ? FromPick(dereferenced) : target === "Required" ? FromRequired(dereferenced) : Never();
|
|
2283
2404
|
}
|
|
2284
|
-
function
|
|
2285
|
-
return
|
|
2286
|
-
return { ...result, [key]: FromType(moduleProperties, properties[key]) };
|
|
2287
|
-
}, {}));
|
|
2405
|
+
function FromArray6(moduleProperties, type) {
|
|
2406
|
+
return Array2(FromType2(moduleProperties, type));
|
|
2288
2407
|
}
|
|
2289
|
-
function
|
|
2290
|
-
return
|
|
2408
|
+
function FromAsyncIterator3(moduleProperties, type) {
|
|
2409
|
+
return AsyncIterator(FromType2(moduleProperties, type));
|
|
2291
2410
|
}
|
|
2292
|
-
function
|
|
2293
|
-
return
|
|
2411
|
+
function FromConstructor3(moduleProperties, parameters, instanceType) {
|
|
2412
|
+
return Constructor(FromTypes2(moduleProperties, parameters), FromType2(moduleProperties, instanceType));
|
|
2294
2413
|
}
|
|
2295
|
-
function
|
|
2296
|
-
return
|
|
2414
|
+
function FromFunction3(moduleProperties, parameters, returnType) {
|
|
2415
|
+
return Function(FromTypes2(moduleProperties, parameters), FromType2(moduleProperties, returnType));
|
|
2297
2416
|
}
|
|
2298
|
-
function
|
|
2299
|
-
return Intersect(
|
|
2417
|
+
function FromIntersect8(moduleProperties, types) {
|
|
2418
|
+
return Intersect(FromTypes2(moduleProperties, types));
|
|
2419
|
+
}
|
|
2420
|
+
function FromIterator3(moduleProperties, type) {
|
|
2421
|
+
return Iterator(FromType2(moduleProperties, type));
|
|
2422
|
+
}
|
|
2423
|
+
function FromObject7(moduleProperties, properties) {
|
|
2424
|
+
return Object2(globalThis.Object.keys(properties).reduce((result, key) => {
|
|
2425
|
+
return { ...result, [key]: FromType2(moduleProperties, properties[key]) };
|
|
2426
|
+
}, {}));
|
|
2300
2427
|
}
|
|
2301
|
-
function
|
|
2302
|
-
|
|
2428
|
+
function FromRecord3(moduleProperties, type) {
|
|
2429
|
+
const [value, pattern] = [FromType2(moduleProperties, RecordValue2(type)), RecordPattern(type)];
|
|
2430
|
+
const result = CloneType(type);
|
|
2431
|
+
result.patternProperties[pattern] = value;
|
|
2432
|
+
return result;
|
|
2303
2433
|
}
|
|
2304
|
-
function
|
|
2305
|
-
return
|
|
2434
|
+
function FromTransform(moduleProperties, transform) {
|
|
2435
|
+
return IsRef(transform) ? { ...Dereference(moduleProperties, transform.$ref), [TransformKind]: transform[TransformKind] } : transform;
|
|
2306
2436
|
}
|
|
2307
|
-
function
|
|
2308
|
-
return
|
|
2437
|
+
function FromTuple5(moduleProperties, types) {
|
|
2438
|
+
return Tuple(FromTypes2(moduleProperties, types));
|
|
2309
2439
|
}
|
|
2310
|
-
function
|
|
2311
|
-
return
|
|
2440
|
+
function FromUnion10(moduleProperties, types) {
|
|
2441
|
+
return Union(FromTypes2(moduleProperties, types));
|
|
2312
2442
|
}
|
|
2313
|
-
function
|
|
2314
|
-
return types.map((type) =>
|
|
2443
|
+
function FromTypes2(moduleProperties, types) {
|
|
2444
|
+
return types.map((type) => FromType2(moduleProperties, type));
|
|
2315
2445
|
}
|
|
2316
|
-
function
|
|
2446
|
+
function FromType2(moduleProperties, type) {
|
|
2317
2447
|
return (
|
|
2318
|
-
//
|
|
2319
|
-
IsOptional(type) ? CreateType(
|
|
2320
|
-
//
|
|
2321
|
-
|
|
2448
|
+
// Modifiers
|
|
2449
|
+
IsOptional(type) ? CreateType(FromType2(moduleProperties, Discard(type, [OptionalKind])), type) : IsReadonly(type) ? CreateType(FromType2(moduleProperties, Discard(type, [ReadonlyKind])), type) : (
|
|
2450
|
+
// Transform
|
|
2451
|
+
IsTransform(type) ? CreateType(FromTransform(moduleProperties, type), type) : (
|
|
2452
|
+
// Types
|
|
2453
|
+
IsArray3(type) ? CreateType(FromArray6(moduleProperties, type.items), type) : IsAsyncIterator2(type) ? CreateType(FromAsyncIterator3(moduleProperties, type.items), type) : IsComputed(type) ? CreateType(FromComputed5(moduleProperties, type.target, type.parameters)) : IsConstructor(type) ? CreateType(FromConstructor3(moduleProperties, type.parameters, type.returns), type) : IsFunction2(type) ? CreateType(FromFunction3(moduleProperties, type.parameters, type.returns), type) : IsIntersect(type) ? CreateType(FromIntersect8(moduleProperties, type.allOf), type) : IsIterator2(type) ? CreateType(FromIterator3(moduleProperties, type.items), type) : IsObject3(type) ? CreateType(FromObject7(moduleProperties, type.properties), type) : IsRecord(type) ? CreateType(FromRecord3(moduleProperties, type)) : IsTuple(type) ? CreateType(FromTuple5(moduleProperties, type.items || []), type) : IsUnion(type) ? CreateType(FromUnion10(moduleProperties, type.anyOf), type) : type
|
|
2454
|
+
)
|
|
2322
2455
|
)
|
|
2323
2456
|
);
|
|
2324
2457
|
}
|
|
2325
2458
|
function ComputeType(moduleProperties, key) {
|
|
2326
|
-
return key in moduleProperties ?
|
|
2459
|
+
return key in moduleProperties ? FromType2(moduleProperties, moduleProperties[key]) : Never();
|
|
2327
2460
|
}
|
|
2328
2461
|
function ComputeModuleProperties(moduleProperties) {
|
|
2329
2462
|
return globalThis.Object.getOwnPropertyNames(moduleProperties).reduce((result, key) => {
|
|
@@ -2361,12 +2494,7 @@ function Not(type, options) {
|
|
|
2361
2494
|
|
|
2362
2495
|
// node_modules/@sinclair/typebox/build/esm/type/parameters/parameters.mjs
|
|
2363
2496
|
function Parameters(schema, options) {
|
|
2364
|
-
return Tuple(schema.parameters, options);
|
|
2365
|
-
}
|
|
2366
|
-
|
|
2367
|
-
// node_modules/@sinclair/typebox/build/esm/type/readonly-optional/readonly-optional.mjs
|
|
2368
|
-
function ReadonlyOptional(schema) {
|
|
2369
|
-
return Readonly(Optional(schema));
|
|
2497
|
+
return IsFunction2(schema) ? Tuple(schema.parameters, options) : Never();
|
|
2370
2498
|
}
|
|
2371
2499
|
|
|
2372
2500
|
// node_modules/@sinclair/typebox/build/esm/type/recursive/recursive.mjs
|
|
@@ -2395,7 +2523,7 @@ function Rest(T) {
|
|
|
2395
2523
|
|
|
2396
2524
|
// node_modules/@sinclair/typebox/build/esm/type/return-type/return-type.mjs
|
|
2397
2525
|
function ReturnType(schema, options) {
|
|
2398
|
-
return CreateType(schema.returns, options);
|
|
2526
|
+
return IsFunction2(schema) ? CreateType(schema.returns, options) : Never(options);
|
|
2399
2527
|
}
|
|
2400
2528
|
|
|
2401
2529
|
// node_modules/@sinclair/typebox/build/esm/type/transform/transform.mjs
|
|
@@ -2444,6 +2572,7 @@ function Void(options) {
|
|
|
2444
2572
|
var type_exports2 = {};
|
|
2445
2573
|
__export(type_exports2, {
|
|
2446
2574
|
Any: () => Any,
|
|
2575
|
+
Argument: () => Argument,
|
|
2447
2576
|
Array: () => Array2,
|
|
2448
2577
|
AsyncIterator: () => AsyncIterator,
|
|
2449
2578
|
Awaited: () => Awaited,
|
|
@@ -2462,6 +2591,7 @@ __export(type_exports2, {
|
|
|
2462
2591
|
Function: () => Function,
|
|
2463
2592
|
Index: () => Index,
|
|
2464
2593
|
InstanceType: () => InstanceType,
|
|
2594
|
+
Instantiate: () => Instantiate,
|
|
2465
2595
|
Integer: () => Integer,
|
|
2466
2596
|
Intersect: () => Intersect,
|
|
2467
2597
|
Iterator: () => Iterator,
|
|
@@ -2539,7 +2669,9 @@ var jwt = ({
|
|
|
2539
2669
|
iat: Type.Optional(Type.String())
|
|
2540
2670
|
})
|
|
2541
2671
|
]),
|
|
2542
|
-
{
|
|
2672
|
+
{
|
|
2673
|
+
modules: Type.Module({})
|
|
2674
|
+
}
|
|
2543
2675
|
) : void 0;
|
|
2544
2676
|
return new import_elysia.Elysia({
|
|
2545
2677
|
name: "@elysiajs/jwt",
|