fullstacked 0.12.0-1272 → 0.12.0-1290
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/fullstacked_modules/@fullstacked/ai-agent/index.ts +20 -2
- package/fullstacked_modules/@fullstacked/ai-agent/lock.json +469 -38
- package/fullstacked_modules/@fullstacked/ai-agent/package.json +11 -1
- package/fullstacked_modules/@fullstacked/ai-agent/src/conversation.ts +72 -14
- package/fullstacked_modules/@fullstacked/ai-agent/src/index.ts +1 -2
- package/fullstacked_modules/@fullstacked/ai-agent/src/markdown.ts +8 -4
- package/fullstacked_modules/@fullstacked/ai-agent/src/providers/anthropic.ts +46 -0
- package/fullstacked_modules/@fullstacked/ai-agent/src/providers/deepseek.ts +46 -0
- package/fullstacked_modules/@fullstacked/ai-agent/src/providers/google.ts +40 -0
- package/fullstacked_modules/@fullstacked/ai-agent/src/providers/index.ts +41 -0
- package/fullstacked_modules/@fullstacked/ai-agent/src/providers/interface.ts +19 -0
- package/fullstacked_modules/@fullstacked/ai-agent/src/providers/mistral.ts +47 -0
- package/fullstacked_modules/@fullstacked/ai-agent/src/providers/ollama.ts +26 -9
- package/fullstacked_modules/@fullstacked/ai-agent/src/providers/openai.ts +21 -9
- package/fullstacked_modules/@fullstacked/ai-agent/src/providers/xai.ts +43 -0
- package/fullstacked_modules/@fullstacked/ai-agent/summary.txt +7 -0
- package/fullstacked_modules/ai/index.js +155662 -87448
- package/fullstacked_modules/esbuild/sass.ts +1 -1
- package/fullstacked_modules/fetch/index.ts +1 -4
- package/fullstacked_modules/sass/index.js +3 -3
- package/fullstacked_modules/zod/README.md +3 -3
- package/fullstacked_modules/zod/index.d.cts +2 -2
- package/fullstacked_modules/zod/index.d.ts +2 -2
- package/fullstacked_modules/zod/package.json +10 -26
- package/fullstacked_modules/zod/src/index.ts +2 -2
- package/fullstacked_modules/zod/src/v3/tests/string.test.ts +2 -2
- package/fullstacked_modules/zod/src/v3/types.ts +1 -3
- package/fullstacked_modules/zod/src/v4/classic/checks.ts +0 -1
- package/fullstacked_modules/zod/src/v4/classic/compat.ts +0 -4
- package/fullstacked_modules/zod/src/v4/classic/errors.ts +2 -9
- package/fullstacked_modules/zod/src/v4/classic/schemas.ts +47 -24
- package/fullstacked_modules/zod/src/v4/classic/tests/catch.test.ts +5 -4
- package/fullstacked_modules/zod/src/v4/classic/tests/datetime.test.ts +0 -6
- package/fullstacked_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +0 -42
- package/fullstacked_modules/zod/src/v4/classic/tests/error-utils.test.ts +2 -70
- package/fullstacked_modules/zod/src/v4/classic/tests/file.test.ts +2 -5
- package/fullstacked_modules/zod/src/v4/classic/tests/literal.test.ts +0 -25
- package/fullstacked_modules/zod/src/v4/classic/tests/number.test.ts +0 -23
- package/fullstacked_modules/zod/src/v4/classic/tests/optional.test.ts +0 -13
- package/fullstacked_modules/zod/src/v4/classic/tests/partial.test.ts +0 -193
- package/fullstacked_modules/zod/src/v4/classic/tests/pickomit.test.ts +5 -5
- package/fullstacked_modules/zod/src/v4/classic/tests/preprocess.test.ts +15 -4
- package/fullstacked_modules/zod/src/v4/classic/tests/record.test.ts +1 -15
- package/fullstacked_modules/zod/src/v4/classic/tests/recursive-types.test.ts +0 -121
- package/fullstacked_modules/zod/src/v4/classic/tests/string.test.ts +4 -119
- package/fullstacked_modules/zod/src/v4/classic/tests/template-literal.test.ts +0 -3
- package/fullstacked_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +0 -27
- package/fullstacked_modules/zod/src/v4/classic/tests/transform.test.ts +0 -104
- package/fullstacked_modules/zod/src/v4/classic/tests/tuple.test.ts +2 -2
- package/fullstacked_modules/zod/src/v4/classic/tests/union.test.ts +3 -90
- package/fullstacked_modules/zod/src/v4/core/api.ts +96 -130
- package/fullstacked_modules/zod/src/v4/core/checks.ts +2 -4
- package/fullstacked_modules/zod/src/v4/core/doc.ts +2 -2
- package/fullstacked_modules/zod/src/v4/core/errors.ts +44 -43
- package/fullstacked_modules/zod/src/v4/core/json-schema.ts +3 -6
- package/fullstacked_modules/zod/src/v4/core/regexes.ts +6 -9
- package/fullstacked_modules/zod/src/v4/core/registries.ts +2 -3
- package/fullstacked_modules/zod/src/v4/core/schemas.ts +107 -165
- package/fullstacked_modules/zod/src/v4/core/to-json-schema.ts +11 -38
- package/fullstacked_modules/zod/src/v4/core/util.ts +105 -157
- package/fullstacked_modules/zod/src/v4/core/versions.ts +1 -1
- package/fullstacked_modules/zod/src/v4/locales/index.ts +0 -3
- package/fullstacked_modules/zod/src/v4/mini/schemas.ts +1 -14
- package/fullstacked_modules/zod/src/v4/mini/tests/assignability.test.ts +1 -1
- package/fullstacked_modules/zod/src/v4/mini/tests/computed.test.ts +1 -1
- package/fullstacked_modules/zod/src/v4/mini/tests/error.test.ts +1 -1
- package/fullstacked_modules/zod/src/v4/mini/tests/index.test.ts +1 -1
- package/fullstacked_modules/zod/src/v4/mini/tests/number.test.ts +1 -1
- package/fullstacked_modules/zod/src/v4/mini/tests/object.test.ts +1 -1
- package/fullstacked_modules/zod/src/v4/mini/tests/prototypes.test.ts +1 -1
- package/fullstacked_modules/zod/src/v4/mini/tests/recursive-types.test.ts +1 -1
- package/fullstacked_modules/zod/src/v4/mini/tests/string.test.ts +1 -1
- package/fullstacked_modules/zod/v3/ZodError.d.cts +6 -6
- package/fullstacked_modules/zod/v3/ZodError.d.ts +6 -6
- package/fullstacked_modules/zod/v3/locales/en.d.cts +1 -1
- package/fullstacked_modules/zod/v3/types.d.cts +1 -4
- package/fullstacked_modules/zod/v3/types.d.ts +1 -4
- package/fullstacked_modules/zod/v4/classic/checks.d.cts +1 -1
- package/fullstacked_modules/zod/v4/classic/checks.d.ts +1 -1
- package/fullstacked_modules/zod/v4/classic/compat.d.cts +0 -4
- package/fullstacked_modules/zod/v4/classic/compat.d.ts +0 -4
- package/fullstacked_modules/zod/v4/classic/schemas.d.cts +20 -9
- package/fullstacked_modules/zod/v4/classic/schemas.d.ts +20 -9
- package/fullstacked_modules/zod/v4/core/api.d.cts +72 -84
- package/fullstacked_modules/zod/v4/core/api.d.ts +72 -84
- package/fullstacked_modules/zod/v4/core/checks.d.cts +2 -2
- package/fullstacked_modules/zod/v4/core/checks.d.ts +2 -2
- package/fullstacked_modules/zod/v4/core/doc.d.cts +1 -1
- package/fullstacked_modules/zod/v4/core/doc.d.ts +1 -1
- package/fullstacked_modules/zod/v4/core/errors.d.cts +22 -24
- package/fullstacked_modules/zod/v4/core/errors.d.ts +22 -24
- package/fullstacked_modules/zod/v4/core/json-schema.d.cts +3 -3
- package/fullstacked_modules/zod/v4/core/json-schema.d.ts +3 -3
- package/fullstacked_modules/zod/v4/core/regexes.d.cts +2 -2
- package/fullstacked_modules/zod/v4/core/regexes.d.ts +2 -2
- package/fullstacked_modules/zod/v4/core/registries.d.cts +1 -1
- package/fullstacked_modules/zod/v4/core/registries.d.ts +1 -1
- package/fullstacked_modules/zod/v4/core/schemas.d.cts +6 -20
- package/fullstacked_modules/zod/v4/core/schemas.d.ts +6 -20
- package/fullstacked_modules/zod/v4/core/to-json-schema.d.cts +3 -4
- package/fullstacked_modules/zod/v4/core/to-json-schema.d.ts +3 -4
- package/fullstacked_modules/zod/v4/core/util.d.cts +0 -2
- package/fullstacked_modules/zod/v4/core/util.d.ts +0 -2
- package/fullstacked_modules/zod/v4/locales/ar.d.cts +1 -2
- package/fullstacked_modules/zod/v4/locales/az.d.cts +1 -2
- package/fullstacked_modules/zod/v4/locales/be.d.cts +1 -2
- package/fullstacked_modules/zod/v4/locales/ca.d.cts +1 -2
- package/fullstacked_modules/zod/v4/locales/cs.d.cts +1 -2
- package/fullstacked_modules/zod/v4/locales/de.d.cts +1 -2
- package/fullstacked_modules/zod/v4/locales/es.d.cts +1 -2
- package/fullstacked_modules/zod/v4/locales/fa.d.cts +1 -2
- package/fullstacked_modules/zod/v4/locales/fi.d.cts +1 -2
- package/fullstacked_modules/zod/v4/locales/fr-CA.d.cts +1 -2
- package/fullstacked_modules/zod/v4/locales/fr.d.cts +1 -2
- package/fullstacked_modules/zod/v4/locales/he.d.cts +1 -2
- package/fullstacked_modules/zod/v4/locales/hu.d.cts +1 -2
- package/fullstacked_modules/zod/v4/locales/id.d.cts +1 -2
- package/fullstacked_modules/zod/v4/locales/index.d.cts +0 -3
- package/fullstacked_modules/zod/v4/locales/index.d.ts +0 -3
- package/fullstacked_modules/zod/v4/locales/it.d.cts +1 -2
- package/fullstacked_modules/zod/v4/locales/ja.d.cts +1 -2
- package/fullstacked_modules/zod/v4/locales/kh.d.cts +1 -2
- package/fullstacked_modules/zod/v4/locales/ko.d.cts +1 -2
- package/fullstacked_modules/zod/v4/locales/mk.d.cts +1 -2
- package/fullstacked_modules/zod/v4/locales/ms.d.cts +1 -2
- package/fullstacked_modules/zod/v4/locales/nl.d.cts +1 -2
- package/fullstacked_modules/zod/v4/locales/no.d.cts +1 -2
- package/fullstacked_modules/zod/v4/locales/ota.d.cts +1 -2
- package/fullstacked_modules/zod/v4/locales/pl.d.cts +1 -2
- package/fullstacked_modules/zod/v4/locales/ps.d.cts +1 -2
- package/fullstacked_modules/zod/v4/locales/pt.d.cts +1 -2
- package/fullstacked_modules/zod/v4/locales/ru.d.cts +1 -2
- package/fullstacked_modules/zod/v4/locales/sl.d.cts +1 -2
- package/fullstacked_modules/zod/v4/locales/sv.d.cts +1 -2
- package/fullstacked_modules/zod/v4/locales/ta.d.cts +1 -2
- package/fullstacked_modules/zod/v4/locales/th.d.cts +1 -2
- package/fullstacked_modules/zod/v4/locales/ua.d.cts +1 -2
- package/fullstacked_modules/zod/v4/locales/ur.d.cts +1 -2
- package/fullstacked_modules/zod/v4/locales/vi.d.cts +1 -2
- package/fullstacked_modules/zod/v4/locales/zh-CN.d.cts +1 -2
- package/fullstacked_modules/zod/v4/locales/zh-TW.d.cts +1 -2
- package/fullstacked_modules/zod/v4/mini/schemas.d.cts +0 -2
- package/fullstacked_modules/zod/v4/mini/schemas.d.ts +0 -2
- package/index.js +1 -1
- package/package.json +7 -7
- package/fullstacked_modules/ai/package.json +0 -5
- package/fullstacked_modules/zod/locales/index.d.cts +0 -1
- package/fullstacked_modules/zod/locales/index.d.ts +0 -1
- package/fullstacked_modules/zod/mini/index.d.cts +0 -1
- package/fullstacked_modules/zod/mini/index.d.ts +0 -1
- package/fullstacked_modules/zod/src/locales/index.ts +0 -1
- package/fullstacked_modules/zod/src/mini/index.ts +0 -1
- package/fullstacked_modules/zod/src/v4/core/tests/extend.test.ts +0 -18
- package/fullstacked_modules/zod/src/v4/locales/bg.ts +0 -136
- package/fullstacked_modules/zod/src/v4/locales/da.ts +0 -141
- package/fullstacked_modules/zod/src/v4/locales/is.ts +0 -127
- package/fullstacked_modules/zod/src/v4/locales/yo.ts +0 -131
- package/fullstacked_modules/zod/v4/locales/bg.d.cts +0 -5
- package/fullstacked_modules/zod/v4/locales/bg.d.ts +0 -5
- package/fullstacked_modules/zod/v4/locales/da.d.cts +0 -5
- package/fullstacked_modules/zod/v4/locales/da.d.ts +0 -4
- package/fullstacked_modules/zod/v4/locales/is.d.cts +0 -5
- package/fullstacked_modules/zod/v4/locales/is.d.ts +0 -5
- package/fullstacked_modules/zod/v4/locales/yo.d.cts +0 -5
- package/fullstacked_modules/zod/v4/locales/yo.d.ts +0 -4
|
@@ -10,7 +10,7 @@ export declare const duration: RegExp;
|
|
|
10
10
|
export declare const extendedDuration: RegExp;
|
|
11
11
|
/** A regex for any UUID-like identifier: 8-4-4-4-12 hex pattern */
|
|
12
12
|
export declare const guid: RegExp;
|
|
13
|
-
/** Returns a regex for validating an RFC
|
|
13
|
+
/** Returns a regex for validating an RFC 4122 UUID.
|
|
14
14
|
*
|
|
15
15
|
* @param version Optionally specify a version 1-8. If no version is specified, all versions are supported. */
|
|
16
16
|
export declare const uuid: (version?: number | undefined) => RegExp;
|
|
@@ -25,8 +25,8 @@ export declare const html5Email: RegExp;
|
|
|
25
25
|
export declare const rfc5322Email: RegExp;
|
|
26
26
|
/** A loose regex that allows Unicode characters, enforces length limits, and that's about it. */
|
|
27
27
|
export declare const unicodeEmail: RegExp;
|
|
28
|
-
export declare const idnEmail: RegExp;
|
|
29
28
|
export declare const browserEmail: RegExp;
|
|
29
|
+
export declare const _emoji = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
30
30
|
export declare function emoji(): RegExp;
|
|
31
31
|
export declare const ipv4: RegExp;
|
|
32
32
|
export declare const ipv6: RegExp;
|
|
@@ -10,7 +10,7 @@ export declare const duration: RegExp;
|
|
|
10
10
|
export declare const extendedDuration: RegExp;
|
|
11
11
|
/** A regex for any UUID-like identifier: 8-4-4-4-12 hex pattern */
|
|
12
12
|
export declare const guid: RegExp;
|
|
13
|
-
/** Returns a regex for validating an RFC
|
|
13
|
+
/** Returns a regex for validating an RFC 4122 UUID.
|
|
14
14
|
*
|
|
15
15
|
* @param version Optionally specify a version 1-8. If no version is specified, all versions are supported. */
|
|
16
16
|
export declare const uuid: (version?: number | undefined) => RegExp;
|
|
@@ -25,8 +25,8 @@ export declare const html5Email: RegExp;
|
|
|
25
25
|
export declare const rfc5322Email: RegExp;
|
|
26
26
|
/** A loose regex that allows Unicode characters, enforces length limits, and that's about it. */
|
|
27
27
|
export declare const unicodeEmail: RegExp;
|
|
28
|
-
export declare const idnEmail: RegExp;
|
|
29
28
|
export declare const browserEmail: RegExp;
|
|
29
|
+
export declare const _emoji = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
30
30
|
export declare function emoji(): RegExp;
|
|
31
31
|
export declare const ipv4: RegExp;
|
|
32
32
|
export declare const ipv6: RegExp;
|
|
@@ -9,7 +9,7 @@ export type $replace<Meta, S extends $ZodType> = Meta extends $output ? core.out
|
|
|
9
9
|
}) => $replace<R, S> : Meta extends object ? {
|
|
10
10
|
[K in keyof Meta]: $replace<Meta[K], S>;
|
|
11
11
|
} : Meta;
|
|
12
|
-
type MetadataType =
|
|
12
|
+
type MetadataType = Record<string, unknown> | undefined;
|
|
13
13
|
export declare class $ZodRegistry<Meta extends MetadataType = MetadataType, Schema extends $ZodType = $ZodType> {
|
|
14
14
|
_meta: Meta;
|
|
15
15
|
_schema: Schema;
|
|
@@ -9,7 +9,7 @@ export type $replace<Meta, S extends $ZodType> = Meta extends $output ? core.out
|
|
|
9
9
|
}) => $replace<R, S> : Meta extends object ? {
|
|
10
10
|
[K in keyof Meta]: $replace<Meta[K], S>;
|
|
11
11
|
} : Meta;
|
|
12
|
-
type MetadataType =
|
|
12
|
+
type MetadataType = Record<string, unknown> | undefined;
|
|
13
13
|
export declare class $ZodRegistry<Meta extends MetadataType = MetadataType, Schema extends $ZodType = $ZodType> {
|
|
14
14
|
_meta: Meta;
|
|
15
15
|
_schema: Schema;
|
|
@@ -54,7 +54,6 @@ export interface _$ZodTypeInternals {
|
|
|
54
54
|
* Todo: unions?
|
|
55
55
|
*/
|
|
56
56
|
values?: util.PrimitiveSet | undefined;
|
|
57
|
-
/** Default value bubbled up from */
|
|
58
57
|
/** @internal A set of literal discriminators used for the fast path in discriminated unions. */
|
|
59
58
|
propValues?: util.PropValues | undefined;
|
|
60
59
|
/** @internal This flag indicates that a schema validation can be represented with a regular expression. Used to determine allowable schemas in z.templateLiteral(). */
|
|
@@ -149,7 +148,6 @@ export declare const $ZodEmail: core.$constructor<$ZodEmail>;
|
|
|
149
148
|
export interface $ZodURLDef extends $ZodStringFormatDef<"url"> {
|
|
150
149
|
hostname?: RegExp | undefined;
|
|
151
150
|
protocol?: RegExp | undefined;
|
|
152
|
-
normalize?: boolean | undefined;
|
|
153
151
|
}
|
|
154
152
|
export interface $ZodURLInternals extends $ZodStringFormatInternals<"url"> {
|
|
155
153
|
def: $ZodURLDef;
|
|
@@ -587,8 +585,6 @@ out Shape extends Readonly<$ZodShape> = Readonly<$ZodShape>, out Config extends
|
|
|
587
585
|
propValues: util.PropValues;
|
|
588
586
|
output: $InferObjectOutput<Shape, Config["out"]>;
|
|
589
587
|
input: $InferObjectInput<Shape, Config["in"]>;
|
|
590
|
-
optin?: "optional" | undefined;
|
|
591
|
-
optout?: "optional" | undefined;
|
|
592
588
|
}
|
|
593
589
|
export type $ZodLooseShape = Record<string, any>;
|
|
594
590
|
export interface $ZodObject<
|
|
@@ -636,13 +632,11 @@ export interface $ZodIntersectionDef<Left extends SomeType = $ZodType, Right ext
|
|
|
636
632
|
left: Left;
|
|
637
633
|
right: Right;
|
|
638
634
|
}
|
|
639
|
-
export interface $ZodIntersectionInternals<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends
|
|
635
|
+
export interface $ZodIntersectionInternals<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodTypeInternals<core.output<A> & core.output<B>, core.input<A> & core.input<B>> {
|
|
640
636
|
def: $ZodIntersectionDef<A, B>;
|
|
641
637
|
isst: never;
|
|
642
638
|
optin: A["_zod"]["optin"] | B["_zod"]["optin"];
|
|
643
639
|
optout: A["_zod"]["optout"] | B["_zod"]["optout"];
|
|
644
|
-
output: core.output<A> & core.output<B>;
|
|
645
|
-
input: core.input<A> & core.input<B>;
|
|
646
640
|
}
|
|
647
641
|
export interface $ZodIntersection<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodType {
|
|
648
642
|
_zod: $ZodIntersectionInternals<A, B>;
|
|
@@ -675,11 +669,9 @@ type TupleOutputTypeWithOptionals<T extends util.TupleItems> = T extends readonl
|
|
|
675
669
|
...infer Prefix extends SomeType[],
|
|
676
670
|
infer Tail extends SomeType
|
|
677
671
|
] ? Tail["_zod"]["optout"] extends "optional" ? [...TupleOutputTypeWithOptionals<Prefix>, core.output<Tail>?] : TupleOutputTypeNoOptionals<T> : [];
|
|
678
|
-
export interface $ZodTupleInternals<T extends util.TupleItems = readonly $ZodType[], Rest extends SomeType | null = $ZodType | null> extends
|
|
672
|
+
export interface $ZodTupleInternals<T extends util.TupleItems = readonly $ZodType[], Rest extends SomeType | null = $ZodType | null> extends $ZodTypeInternals<$InferTupleOutputType<T, Rest>, $InferTupleInputType<T, Rest>> {
|
|
679
673
|
def: $ZodTupleDef<T, Rest>;
|
|
680
674
|
isst: errors.$ZodIssueInvalidType | errors.$ZodIssueTooBig<unknown[]> | errors.$ZodIssueTooSmall<unknown[]>;
|
|
681
|
-
output: $InferTupleOutputType<T, Rest>;
|
|
682
|
-
input: $InferTupleInputType<T, Rest>;
|
|
683
675
|
}
|
|
684
676
|
export interface $ZodTuple<T extends util.TupleItems = readonly $ZodType[], Rest extends SomeType | null = $ZodType | null> extends $ZodType {
|
|
685
677
|
_zod: $ZodTupleInternals<T, Rest>;
|
|
@@ -769,13 +761,9 @@ export interface $ZodLiteral<T extends util.Literal = util.Literal> extends $Zod
|
|
|
769
761
|
_zod: $ZodLiteralInternals<T>;
|
|
770
762
|
}
|
|
771
763
|
export declare const $ZodLiteral: core.$constructor<$ZodLiteral>;
|
|
772
|
-
|
|
773
|
-
File
|
|
774
|
-
}
|
|
775
|
-
/** Do not reference this directly. */
|
|
776
|
-
export interface File extends _File {
|
|
777
|
-
readonly type: string;
|
|
778
|
-
readonly size: number;
|
|
764
|
+
declare global {
|
|
765
|
+
interface File {
|
|
766
|
+
}
|
|
779
767
|
}
|
|
780
768
|
export interface $ZodFileDef extends $ZodTypeDef {
|
|
781
769
|
type: "file";
|
|
@@ -913,7 +901,7 @@ export interface $ZodCatchDef<T extends SomeType = $ZodType> extends $ZodTypeDef
|
|
|
913
901
|
innerType: T;
|
|
914
902
|
catchValue: (ctx: $ZodCatchCtx) => unknown;
|
|
915
903
|
}
|
|
916
|
-
export interface $ZodCatchInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<core.output<T>, core.input<T
|
|
904
|
+
export interface $ZodCatchInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<core.output<T>, core.input<T> | util.Whatever> {
|
|
917
905
|
def: $ZodCatchDef<T>;
|
|
918
906
|
optin: T["_zod"]["optin"];
|
|
919
907
|
optout: T["_zod"]["optout"];
|
|
@@ -946,7 +934,6 @@ export interface $ZodPipeInternals<A extends SomeType = $ZodType, B extends Some
|
|
|
946
934
|
values: A["_zod"]["values"];
|
|
947
935
|
optin: A["_zod"]["optin"];
|
|
948
936
|
optout: B["_zod"]["optout"];
|
|
949
|
-
propValues: A["_zod"]["propValues"];
|
|
950
937
|
}
|
|
951
938
|
export interface $ZodPipe<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodType {
|
|
952
939
|
_zod: $ZodPipeInternals<A, B>;
|
|
@@ -971,7 +958,6 @@ export declare const $ZodReadonly: core.$constructor<$ZodReadonly>;
|
|
|
971
958
|
export interface $ZodTemplateLiteralDef extends $ZodTypeDef {
|
|
972
959
|
type: "template_literal";
|
|
973
960
|
parts: $ZodTemplateLiteralPart[];
|
|
974
|
-
format?: string | undefined;
|
|
975
961
|
}
|
|
976
962
|
export interface $ZodTemplateLiteralInternals<Template extends string = string> extends $ZodTypeInternals<Template, Template> {
|
|
977
963
|
pattern: RegExp;
|
|
@@ -54,7 +54,6 @@ export interface _$ZodTypeInternals {
|
|
|
54
54
|
* Todo: unions?
|
|
55
55
|
*/
|
|
56
56
|
values?: util.PrimitiveSet | undefined;
|
|
57
|
-
/** Default value bubbled up from */
|
|
58
57
|
/** @internal A set of literal discriminators used for the fast path in discriminated unions. */
|
|
59
58
|
propValues?: util.PropValues | undefined;
|
|
60
59
|
/** @internal This flag indicates that a schema validation can be represented with a regular expression. Used to determine allowable schemas in z.templateLiteral(). */
|
|
@@ -149,7 +148,6 @@ export declare const $ZodEmail: core.$constructor<$ZodEmail>;
|
|
|
149
148
|
export interface $ZodURLDef extends $ZodStringFormatDef<"url"> {
|
|
150
149
|
hostname?: RegExp | undefined;
|
|
151
150
|
protocol?: RegExp | undefined;
|
|
152
|
-
normalize?: boolean | undefined;
|
|
153
151
|
}
|
|
154
152
|
export interface $ZodURLInternals extends $ZodStringFormatInternals<"url"> {
|
|
155
153
|
def: $ZodURLDef;
|
|
@@ -587,8 +585,6 @@ out Shape extends Readonly<$ZodShape> = Readonly<$ZodShape>, out Config extends
|
|
|
587
585
|
propValues: util.PropValues;
|
|
588
586
|
output: $InferObjectOutput<Shape, Config["out"]>;
|
|
589
587
|
input: $InferObjectInput<Shape, Config["in"]>;
|
|
590
|
-
optin?: "optional" | undefined;
|
|
591
|
-
optout?: "optional" | undefined;
|
|
592
588
|
}
|
|
593
589
|
export type $ZodLooseShape = Record<string, any>;
|
|
594
590
|
export interface $ZodObject<
|
|
@@ -636,13 +632,11 @@ export interface $ZodIntersectionDef<Left extends SomeType = $ZodType, Right ext
|
|
|
636
632
|
left: Left;
|
|
637
633
|
right: Right;
|
|
638
634
|
}
|
|
639
|
-
export interface $ZodIntersectionInternals<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends
|
|
635
|
+
export interface $ZodIntersectionInternals<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodTypeInternals<core.output<A> & core.output<B>, core.input<A> & core.input<B>> {
|
|
640
636
|
def: $ZodIntersectionDef<A, B>;
|
|
641
637
|
isst: never;
|
|
642
638
|
optin: A["_zod"]["optin"] | B["_zod"]["optin"];
|
|
643
639
|
optout: A["_zod"]["optout"] | B["_zod"]["optout"];
|
|
644
|
-
output: core.output<A> & core.output<B>;
|
|
645
|
-
input: core.input<A> & core.input<B>;
|
|
646
640
|
}
|
|
647
641
|
export interface $ZodIntersection<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodType {
|
|
648
642
|
_zod: $ZodIntersectionInternals<A, B>;
|
|
@@ -675,11 +669,9 @@ type TupleOutputTypeWithOptionals<T extends util.TupleItems> = T extends readonl
|
|
|
675
669
|
...infer Prefix extends SomeType[],
|
|
676
670
|
infer Tail extends SomeType
|
|
677
671
|
] ? Tail["_zod"]["optout"] extends "optional" ? [...TupleOutputTypeWithOptionals<Prefix>, core.output<Tail>?] : TupleOutputTypeNoOptionals<T> : [];
|
|
678
|
-
export interface $ZodTupleInternals<T extends util.TupleItems = readonly $ZodType[], Rest extends SomeType | null = $ZodType | null> extends
|
|
672
|
+
export interface $ZodTupleInternals<T extends util.TupleItems = readonly $ZodType[], Rest extends SomeType | null = $ZodType | null> extends $ZodTypeInternals<$InferTupleOutputType<T, Rest>, $InferTupleInputType<T, Rest>> {
|
|
679
673
|
def: $ZodTupleDef<T, Rest>;
|
|
680
674
|
isst: errors.$ZodIssueInvalidType | errors.$ZodIssueTooBig<unknown[]> | errors.$ZodIssueTooSmall<unknown[]>;
|
|
681
|
-
output: $InferTupleOutputType<T, Rest>;
|
|
682
|
-
input: $InferTupleInputType<T, Rest>;
|
|
683
675
|
}
|
|
684
676
|
export interface $ZodTuple<T extends util.TupleItems = readonly $ZodType[], Rest extends SomeType | null = $ZodType | null> extends $ZodType {
|
|
685
677
|
_zod: $ZodTupleInternals<T, Rest>;
|
|
@@ -769,13 +761,9 @@ export interface $ZodLiteral<T extends util.Literal = util.Literal> extends $Zod
|
|
|
769
761
|
_zod: $ZodLiteralInternals<T>;
|
|
770
762
|
}
|
|
771
763
|
export declare const $ZodLiteral: core.$constructor<$ZodLiteral>;
|
|
772
|
-
|
|
773
|
-
File
|
|
774
|
-
}
|
|
775
|
-
/** Do not reference this directly. */
|
|
776
|
-
export interface File extends _File {
|
|
777
|
-
readonly type: string;
|
|
778
|
-
readonly size: number;
|
|
764
|
+
declare global {
|
|
765
|
+
interface File {
|
|
766
|
+
}
|
|
779
767
|
}
|
|
780
768
|
export interface $ZodFileDef extends $ZodTypeDef {
|
|
781
769
|
type: "file";
|
|
@@ -913,7 +901,7 @@ export interface $ZodCatchDef<T extends SomeType = $ZodType> extends $ZodTypeDef
|
|
|
913
901
|
innerType: T;
|
|
914
902
|
catchValue: (ctx: $ZodCatchCtx) => unknown;
|
|
915
903
|
}
|
|
916
|
-
export interface $ZodCatchInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<core.output<T>, core.input<T
|
|
904
|
+
export interface $ZodCatchInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<core.output<T>, core.input<T> | util.Whatever> {
|
|
917
905
|
def: $ZodCatchDef<T>;
|
|
918
906
|
optin: T["_zod"]["optin"];
|
|
919
907
|
optout: T["_zod"]["optout"];
|
|
@@ -946,7 +934,6 @@ export interface $ZodPipeInternals<A extends SomeType = $ZodType, B extends Some
|
|
|
946
934
|
values: A["_zod"]["values"];
|
|
947
935
|
optin: A["_zod"]["optin"];
|
|
948
936
|
optout: B["_zod"]["optout"];
|
|
949
|
-
propValues: A["_zod"]["propValues"];
|
|
950
937
|
}
|
|
951
938
|
export interface $ZodPipe<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodType {
|
|
952
939
|
_zod: $ZodPipeInternals<A, B>;
|
|
@@ -971,7 +958,6 @@ export declare const $ZodReadonly: core.$constructor<$ZodReadonly>;
|
|
|
971
958
|
export interface $ZodTemplateLiteralDef extends $ZodTypeDef {
|
|
972
959
|
type: "template_literal";
|
|
973
960
|
parts: $ZodTemplateLiteralPart[];
|
|
974
|
-
format?: string | undefined;
|
|
975
961
|
}
|
|
976
962
|
export interface $ZodTemplateLiteralInternals<Template extends string = string> extends $ZodTypeInternals<Template, Template> {
|
|
977
963
|
pattern: RegExp;
|
|
@@ -7,9 +7,8 @@ interface JSONSchemaGeneratorParams {
|
|
|
7
7
|
metadata?: $ZodRegistry<Record<string, any>>;
|
|
8
8
|
/** The JSON Schema version to target.
|
|
9
9
|
* - `"draft-2020-12"` — Default. JSON Schema Draft 2020-12
|
|
10
|
-
* - `"draft-7"` — JSON Schema Draft 7
|
|
11
|
-
|
|
12
|
-
target?: "draft-4" | "draft-7" | "draft-2020-12";
|
|
10
|
+
* - `"draft-7"` — JSON Schema Draft 7 */
|
|
11
|
+
target?: "draft-7" | "draft-2020-12";
|
|
13
12
|
/** How to handle unrepresentable types.
|
|
14
13
|
* - `"throw"` — Default. Unrepresentable types throw an error
|
|
15
14
|
* - `"any"` — Unrepresentable types become `{}` */
|
|
@@ -61,7 +60,7 @@ interface Seen {
|
|
|
61
60
|
}
|
|
62
61
|
export declare class JSONSchemaGenerator {
|
|
63
62
|
metadataRegistry: $ZodRegistry<Record<string, any>>;
|
|
64
|
-
target: "draft-
|
|
63
|
+
target: "draft-7" | "draft-2020-12";
|
|
65
64
|
unrepresentable: "throw" | "any";
|
|
66
65
|
override: (ctx: {
|
|
67
66
|
zodSchema: schemas.$ZodTypes;
|
|
@@ -7,9 +7,8 @@ interface JSONSchemaGeneratorParams {
|
|
|
7
7
|
metadata?: $ZodRegistry<Record<string, any>>;
|
|
8
8
|
/** The JSON Schema version to target.
|
|
9
9
|
* - `"draft-2020-12"` — Default. JSON Schema Draft 2020-12
|
|
10
|
-
* - `"draft-7"` — JSON Schema Draft 7
|
|
11
|
-
|
|
12
|
-
target?: "draft-4" | "draft-7" | "draft-2020-12";
|
|
10
|
+
* - `"draft-7"` — JSON Schema Draft 7 */
|
|
11
|
+
target?: "draft-7" | "draft-2020-12";
|
|
13
12
|
/** How to handle unrepresentable types.
|
|
14
13
|
* - `"throw"` — Default. Unrepresentable types throw an error
|
|
15
14
|
* - `"any"` — Unrepresentable types become `{}` */
|
|
@@ -61,7 +60,7 @@ interface Seen {
|
|
|
61
60
|
}
|
|
62
61
|
export declare class JSONSchemaGenerator {
|
|
63
62
|
metadataRegistry: $ZodRegistry<Record<string, any>>;
|
|
64
|
-
target: "draft-
|
|
63
|
+
target: "draft-7" | "draft-2020-12";
|
|
65
64
|
unrepresentable: "throw" | "any";
|
|
66
65
|
override: (ctx: {
|
|
67
66
|
zodSchema: schemas.$ZodTypes;
|
|
@@ -121,8 +121,6 @@ export declare function cleanRegex(source: string): string;
|
|
|
121
121
|
export declare function floatSafeRemainder(val: number, step: number): number;
|
|
122
122
|
export declare function defineLazy<T, K extends keyof T>(object: T, key: K, getter: () => T[K]): void;
|
|
123
123
|
export declare function assignProp<T extends object, K extends PropertyKey>(target: T, prop: K, value: K extends keyof T ? T[K] : any): void;
|
|
124
|
-
export declare function mergeDefs(...defs: Record<string, any>[]): any;
|
|
125
|
-
export declare function cloneDef(schema: schemas.$ZodType): any;
|
|
126
124
|
export declare function getElementAtPath(obj: any, path: (string | number)[] | null | undefined): any;
|
|
127
125
|
export declare function promiseAllObject<T extends object>(promisesObj: T): Promise<{
|
|
128
126
|
[k in keyof T]: Awaited<T[k]>;
|
|
@@ -121,8 +121,6 @@ export declare function cleanRegex(source: string): string;
|
|
|
121
121
|
export declare function floatSafeRemainder(val: number, step: number): number;
|
|
122
122
|
export declare function defineLazy<T, K extends keyof T>(object: T, key: K, getter: () => T[K]): void;
|
|
123
123
|
export declare function assignProp<T extends object, K extends PropertyKey>(target: T, prop: K, value: K extends keyof T ? T[K] : any): void;
|
|
124
|
-
export declare function mergeDefs(...defs: Record<string, any>[]): any;
|
|
125
|
-
export declare function cloneDef(schema: schemas.$ZodType): any;
|
|
126
124
|
export declare function getElementAtPath(obj: any, path: (string | number)[] | null | undefined): any;
|
|
127
125
|
export declare function promiseAllObject<T extends object>(promisesObj: T): Promise<{
|
|
128
126
|
[k in keyof T]: Awaited<T[k]>;
|
|
@@ -3,7 +3,6 @@ export { default as az } from "./az.cjs";
|
|
|
3
3
|
export { default as be } from "./be.cjs";
|
|
4
4
|
export { default as ca } from "./ca.cjs";
|
|
5
5
|
export { default as cs } from "./cs.cjs";
|
|
6
|
-
export { default as da } from "./da.cjs";
|
|
7
6
|
export { default as de } from "./de.cjs";
|
|
8
7
|
export { default as en } from "./en.cjs";
|
|
9
8
|
export { default as eo } from "./eo.cjs";
|
|
@@ -15,7 +14,6 @@ export { default as frCA } from "./fr-CA.cjs";
|
|
|
15
14
|
export { default as he } from "./he.cjs";
|
|
16
15
|
export { default as hu } from "./hu.cjs";
|
|
17
16
|
export { default as id } from "./id.cjs";
|
|
18
|
-
export { default as is } from "./is.cjs";
|
|
19
17
|
export { default as it } from "./it.cjs";
|
|
20
18
|
export { default as ja } from "./ja.cjs";
|
|
21
19
|
export { default as kh } from "./kh.cjs";
|
|
@@ -39,4 +37,3 @@ export { default as ur } from "./ur.cjs";
|
|
|
39
37
|
export { default as vi } from "./vi.cjs";
|
|
40
38
|
export { default as zhCN } from "./zh-CN.cjs";
|
|
41
39
|
export { default as zhTW } from "./zh-TW.cjs";
|
|
42
|
-
export { default as yo } from "./yo.cjs";
|
|
@@ -3,7 +3,6 @@ export { default as az } from "./az.js";
|
|
|
3
3
|
export { default as be } from "./be.js";
|
|
4
4
|
export { default as ca } from "./ca.js";
|
|
5
5
|
export { default as cs } from "./cs.js";
|
|
6
|
-
export { default as da } from "./da.js";
|
|
7
6
|
export { default as de } from "./de.js";
|
|
8
7
|
export { default as en } from "./en.js";
|
|
9
8
|
export { default as eo } from "./eo.js";
|
|
@@ -15,7 +14,6 @@ export { default as frCA } from "./fr-CA.js";
|
|
|
15
14
|
export { default as he } from "./he.js";
|
|
16
15
|
export { default as hu } from "./hu.js";
|
|
17
16
|
export { default as id } from "./id.js";
|
|
18
|
-
export { default as is } from "./is.js";
|
|
19
17
|
export { default as it } from "./it.js";
|
|
20
18
|
export { default as ja } from "./ja.js";
|
|
21
19
|
export { default as kh } from "./kh.js";
|
|
@@ -39,4 +37,3 @@ export { default as ur } from "./ur.js";
|
|
|
39
37
|
export { default as vi } from "./vi.js";
|
|
40
38
|
export { default as zhCN } from "./zh-CN.js";
|
|
41
39
|
export { default as zhTW } from "./zh-TW.js";
|
|
42
|
-
export { default as yo } from "./yo.js";
|