@cossistant/react 0.0.29 → 0.0.30
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/_virtual/rolldown_runtime.js +9 -23
- package/hooks/index.d.ts +2 -2
- package/hooks/private/store/use-conversations-store.d.ts +2 -0
- package/hooks/private/store/use-conversations-store.d.ts.map +1 -1
- package/hooks/private/store/use-conversations-store.js +15 -8
- package/hooks/private/store/use-conversations-store.js.map +1 -1
- package/hooks/private/store/use-store-selector.d.ts +3 -0
- package/hooks/private/store/use-store-selector.d.ts.map +1 -1
- package/hooks/private/store/use-store-selector.js +4 -8
- package/hooks/private/store/use-store-selector.js.map +1 -1
- package/hooks/private/store/use-website-store.d.ts +3 -1
- package/hooks/private/store/use-website-store.d.ts.map +1 -1
- package/hooks/private/store/use-website-store.js +14 -6
- package/hooks/private/store/use-website-store.js.map +1 -1
- package/hooks/private/use-client-query.d.ts +1 -1
- package/hooks/private/use-client-query.d.ts.map +1 -1
- package/hooks/private/use-client-query.js +1 -0
- package/hooks/private/use-client-query.js.map +1 -1
- package/hooks/private/use-default-messages.d.ts +1 -1
- package/hooks/private/use-grouped-messages.d.ts +2 -2
- package/hooks/private/use-rest-client.d.ts +13 -3
- package/hooks/private/use-rest-client.d.ts.map +1 -1
- package/hooks/private/use-rest-client.js +49 -22
- package/hooks/private/use-rest-client.js.map +1 -1
- package/hooks/private/use-visitor-typing-reporter.d.ts +1 -1
- package/hooks/use-conversation-auto-seen.d.ts +1 -1
- package/hooks/use-conversation-page.d.ts +1 -1
- package/hooks/use-conversation-page.d.ts.map +1 -1
- package/hooks/use-conversation-page.js +10 -3
- package/hooks/use-conversation-page.js.map +1 -1
- package/hooks/use-conversation-preview.d.ts +3 -1
- package/hooks/use-conversation-preview.d.ts.map +1 -1
- package/hooks/use-conversation-preview.js +6 -3
- package/hooks/use-conversation-preview.js.map +1 -1
- package/hooks/use-conversation-seen.d.ts +1 -1
- package/hooks/use-conversation-timeline-items.d.ts +1 -1
- package/hooks/use-conversation-timeline-items.js +2 -3
- package/hooks/use-conversation-timeline-items.js.map +1 -1
- package/hooks/use-conversation-timeline.d.ts +1 -1
- package/hooks/use-conversation.d.ts +1 -1
- package/hooks/use-conversation.js +2 -3
- package/hooks/use-conversation.js.map +1 -1
- package/hooks/use-conversations.d.ts +1 -1
- package/hooks/use-conversations.js +5 -3
- package/hooks/use-conversations.js.map +1 -1
- package/hooks/use-create-conversation.d.ts +3 -3
- package/hooks/use-create-conversation.js +1 -0
- package/hooks/use-create-conversation.js.map +1 -1
- package/hooks/use-file-upload.d.ts +1 -1
- package/hooks/use-file-upload.js +3 -3
- package/hooks/use-file-upload.js.map +1 -1
- package/hooks/use-home-page.js +3 -3
- package/hooks/use-home-page.js.map +1 -1
- package/hooks/use-message-composer.d.ts +10 -3
- package/hooks/use-message-composer.d.ts.map +1 -1
- package/hooks/use-message-composer.js +5 -2
- package/hooks/use-message-composer.js.map +1 -1
- package/hooks/use-realtime-support.d.ts +1 -1
- package/hooks/use-send-message.d.ts +8 -2
- package/hooks/use-send-message.d.ts.map +1 -1
- package/hooks/use-send-message.js +5 -3
- package/hooks/use-send-message.js.map +1 -1
- package/hooks/use-visitor.js +2 -2
- package/hooks/use-visitor.js.map +1 -1
- package/identify-visitor.d.ts.map +1 -1
- package/identify-visitor.js +15 -1
- package/identify-visitor.js.map +1 -1
- package/index.d.ts +2 -2
- package/index.js +1 -1
- package/package.json +5 -3
- package/{conversation.d.ts → packages/types/src/api/conversation.d.ts} +365 -61
- package/packages/types/src/api/conversation.d.ts.map +1 -0
- package/packages/types/src/api/timeline-item.d.ts +460 -0
- package/packages/types/src/api/timeline-item.d.ts.map +1 -0
- package/{realtime-events.d.ts → packages/types/src/realtime-events.d.ts} +443 -45
- package/packages/types/src/realtime-events.d.ts.map +1 -0
- package/{schemas3.d.ts → packages/types/src/schemas.d.ts} +94 -18
- package/packages/types/src/schemas.d.ts.map +1 -0
- package/primitives/avatar/avatar.js +1 -1
- package/primitives/avatar/avatar.js.map +1 -1
- package/primitives/avatar/fallback.js +1 -1
- package/primitives/avatar/fallback.js.map +1 -1
- package/primitives/avatar/image.js +1 -1
- package/primitives/avatar/image.js.map +1 -1
- package/primitives/button.js +1 -1
- package/primitives/button.js.map +1 -1
- package/primitives/conversation-timeline.d.ts +1 -1
- package/primitives/conversation-timeline.js +4 -4
- package/primitives/conversation-timeline.js.map +1 -1
- package/primitives/day-separator.js +3 -3
- package/primitives/day-separator.js.map +1 -1
- package/primitives/multimodal-input.js +2 -2
- package/primitives/multimodal-input.js.map +1 -1
- package/primitives/timeline-item-attachments.d.ts +1 -1
- package/primitives/timeline-item-attachments.js +6 -7
- package/primitives/timeline-item-attachments.js.map +1 -1
- package/primitives/timeline-item-group.d.ts +1 -1
- package/primitives/timeline-item-group.js +7 -7
- package/primitives/timeline-item-group.js.map +1 -1
- package/primitives/timeline-item.d.ts +1 -1
- package/primitives/timeline-item.d.ts.map +1 -1
- package/primitives/timeline-item.js +33 -8
- package/primitives/timeline-item.js.map +1 -1
- package/primitives/trigger.js +1 -1
- package/primitives/trigger.js.map +1 -1
- package/primitives/window.js +1 -1
- package/primitives/window.js.map +1 -1
- package/provider.d.ts +4 -2
- package/provider.d.ts.map +1 -1
- package/provider.js +56 -8
- package/provider.js.map +1 -1
- package/realtime/event-filter.d.ts +4 -1
- package/realtime/event-filter.d.ts.map +1 -1
- package/realtime/event-filter.js +14 -0
- package/realtime/event-filter.js.map +1 -1
- package/realtime/provider.d.ts +1 -1
- package/realtime/provider.d.ts.map +1 -1
- package/realtime/provider.js +1 -2
- package/realtime/provider.js.map +1 -1
- package/realtime/seen-store.d.ts +2 -2
- package/realtime/support-provider.js +3 -2
- package/realtime/support-provider.js.map +1 -1
- package/realtime/typing-store.d.ts +1 -1
- package/realtime/use-realtime.d.ts +1 -1
- package/support/components/avatar-stack.d.ts.map +1 -1
- package/support/components/avatar-stack.js +32 -12
- package/support/components/avatar-stack.js.map +1 -1
- package/support/components/avatar.d.ts +34 -3
- package/support/components/avatar.d.ts.map +1 -1
- package/support/components/avatar.js +61 -8
- package/support/components/avatar.js.map +1 -1
- package/support/components/button.d.ts +3 -1
- package/support/components/button.d.ts.map +1 -1
- package/support/components/button.js +3 -3
- package/support/components/button.js.map +1 -1
- package/support/components/configuration-error.d.ts +16 -0
- package/support/components/configuration-error.d.ts.map +1 -0
- package/support/components/configuration-error.js +162 -0
- package/support/components/configuration-error.js.map +1 -0
- package/support/components/content.js +1 -2
- package/support/components/content.js.map +1 -1
- package/support/components/conversation-button-link.js +18 -23
- package/support/components/conversation-button-link.js.map +1 -1
- package/support/components/conversation-event.d.ts.map +1 -1
- package/support/components/conversation-event.js +7 -5
- package/support/components/conversation-event.js.map +1 -1
- package/support/components/conversation-timeline.d.ts +1 -1
- package/support/components/conversation-timeline.js +3 -3
- package/support/components/conversation-timeline.js.map +1 -1
- package/support/components/header.js +1 -1
- package/support/components/image-lightbox.d.ts +1 -1
- package/support/components/image-lightbox.js +1 -2
- package/support/components/image-lightbox.js.map +1 -1
- package/support/components/index.js +1 -1
- package/support/components/multimodal-input.js +0 -1
- package/support/components/multimodal-input.js.map +1 -1
- package/support/components/navigation-tab.js +1 -1
- package/support/components/online-indicator.d.ts +50 -0
- package/support/components/online-indicator.d.ts.map +1 -0
- package/support/components/online-indicator.js +65 -0
- package/support/components/online-indicator.js.map +1 -0
- package/support/components/root.js +0 -1
- package/support/components/root.js.map +1 -1
- package/support/components/timeline-identification-tool.js +4 -4
- package/support/components/timeline-identification-tool.js.map +1 -1
- package/support/components/timeline-message-group.d.ts +1 -1
- package/support/components/timeline-message-group.d.ts.map +1 -1
- package/support/components/timeline-message-group.js +6 -4
- package/support/components/timeline-message-group.js.map +1 -1
- package/support/components/timeline-message-item.d.ts +1 -1
- package/support/components/timeline-message-item.js +4 -4
- package/support/components/timeline-message-item.js.map +1 -1
- package/support/components/trigger.js +1 -2
- package/support/components/trigger.js.map +1 -1
- package/support/components/typing-indicator.js +1 -1
- package/support/components/typing-indicator.js.map +1 -1
- package/support/context/controlled-state.js +0 -1
- package/support/context/controlled-state.js.map +1 -1
- package/support/context/events.d.ts +1 -1
- package/support/context/events.js +0 -1
- package/support/context/events.js.map +1 -1
- package/support/context/handle.js +0 -1
- package/support/context/handle.js.map +1 -1
- package/support/context/identification.d.ts +33 -0
- package/support/context/identification.d.ts.map +1 -0
- package/support/context/identification.js +34 -0
- package/support/context/identification.js.map +1 -0
- package/support/context/positioning.js +0 -1
- package/support/context/positioning.js.map +1 -1
- package/support/context/slots.js +0 -1
- package/support/context/slots.js.map +1 -1
- package/support/context/websocket.d.ts +1 -1
- package/support/context/websocket.js +0 -1
- package/support/context/websocket.js.map +1 -1
- package/support/index.d.ts.map +1 -1
- package/support/index.js +51 -18
- package/support/index.js.map +1 -1
- package/support/pages/conversation-history.js +2 -1
- package/support/pages/conversation-history.js.map +1 -1
- package/support/pages/conversation.d.ts +1 -1
- package/support/pages/conversation.js +1 -1
- package/support/pages/conversation.js.map +1 -1
- package/support/pages/home.js +5 -3
- package/support/pages/home.js.map +1 -1
- package/support/router.d.ts.map +1 -1
- package/support/router.js +4 -0
- package/support/router.js.map +1 -1
- package/support/store/support-store.js +0 -1
- package/support/store/support-store.js.map +1 -1
- package/support/{support-C7Xaw-N6.css → support-DmViRaga.css} +2 -2
- package/support/{support-C7Xaw-N6.css.map → support-DmViRaga.css.map} +1 -1
- package/support/text/index.js +1 -1
- package/support/text/index.js.map +1 -1
- package/support/text/locales/en.js +1 -1
- package/support/text/locales/en.js.map +1 -1
- package/support/text/locales/es.js +1 -1
- package/support/text/locales/es.js.map +1 -1
- package/support/text/locales/fr.js +1 -1
- package/support/text/locales/fr.js.map +1 -1
- package/support/utils/index.d.ts +1 -1
- package/support-config.js +0 -1
- package/support-config.js.map +1 -1
- package/support.css +1 -1
- package/tailwind.css +1 -1
- package/utils/conversation.d.ts.map +1 -1
- package/utils/conversation.js +1 -3
- package/utils/conversation.js.map +1 -1
- package/utils/use-render-element.js +2 -2
- package/utils/use-render-element.js.map +1 -1
- package/api.d.ts +0 -71
- package/api.d.ts.map +0 -1
- package/checks.d.ts +0 -189
- package/checks.d.ts.map +0 -1
- package/clsx.d.ts +0 -7
- package/clsx.d.ts.map +0 -1
- package/coerce.d.ts +0 -9
- package/coerce.d.ts.map +0 -1
- package/conversation.d.ts.map +0 -1
- package/core.d.ts +0 -35
- package/core.d.ts.map +0 -1
- package/errors.d.ts +0 -130
- package/errors.d.ts.map +0 -1
- package/errors2.d.ts +0 -24
- package/errors2.d.ts.map +0 -1
- package/index2.d.ts +0 -4
- package/index3.d.ts +0 -1
- package/json-schema.d.ts +0 -70
- package/json-schema.d.ts.map +0 -1
- package/metadata.d.ts +0 -1
- package/openapi-generator.d.ts +0 -1
- package/openapi-generator2.d.ts +0 -1
- package/openapi-generator3.d.ts +0 -1
- package/openapi30.d.ts +0 -125
- package/openapi30.d.ts.map +0 -1
- package/openapi31.d.ts +0 -131
- package/openapi31.d.ts.map +0 -1
- package/parse.d.ts +0 -17
- package/parse.d.ts.map +0 -1
- package/realtime-events.d.ts.map +0 -1
- package/registries.d.ts +0 -32
- package/registries.d.ts.map +0 -1
- package/schemas.d.ts +0 -971
- package/schemas.d.ts.map +0 -1
- package/schemas2.d.ts +0 -345
- package/schemas2.d.ts.map +0 -1
- package/schemas3.d.ts.map +0 -1
- package/specification-extension.d.ts +0 -9
- package/specification-extension.d.ts.map +0 -1
- package/standard-schema.d.ts +0 -121
- package/standard-schema.d.ts.map +0 -1
- package/timeline-item.d.ts +0 -227
- package/timeline-item.d.ts.map +0 -1
- package/to-json-schema.d.ts +0 -96
- package/to-json-schema.d.ts.map +0 -1
- package/util.d.ts +0 -45
- package/util.d.ts.map +0 -1
- package/versions.d.ts +0 -9
- package/versions.d.ts.map +0 -1
- package/zod-extensions.d.ts +0 -39
- package/zod-extensions.d.ts.map +0 -1
package/schemas.d.ts
DELETED
|
@@ -1,971 +0,0 @@
|
|
|
1
|
-
import { BaseSchema } from "./json-schema.js";
|
|
2
|
-
import { StandardSchemaV1 } from "./standard-schema.js";
|
|
3
|
-
import { ProcessParams, ToJSONSchemaContext } from "./to-json-schema.js";
|
|
4
|
-
import { AnyFunc, Class, EnumLike, IsAny, JWTAlgorithm, Literal, LoosePartial, MakeReadonly, MaybeAsync, MimeTypes, NoUndefined, Prettify, PrimitiveSet, PropValues, TupleItems } from "./util.js";
|
|
5
|
-
import { version } from "./versions.js";
|
|
6
|
-
import { $ZodCheck, $ZodCheckDef, $ZodCheckInternals, $ZodCheckStringFormatDef, $ZodCheckStringFormatInternals } from "./checks.js";
|
|
7
|
-
import { $ZodErrorMap, $ZodIssue, $ZodIssueBase, $ZodIssueInvalidElement, $ZodIssueInvalidKey, $ZodIssueInvalidType, $ZodIssueInvalidUnion, $ZodIssueInvalidValue, $ZodIssueTooBig, $ZodIssueTooSmall, $ZodIssueUnrecognizedKeys, $ZodRawIssue } from "./errors.js";
|
|
8
|
-
import { $constructor, input, output } from "./core.js";
|
|
9
|
-
|
|
10
|
-
//#region ../../node_modules/.bun/zod@4.2.1/node_modules/zod/v4/core/schemas.d.cts
|
|
11
|
-
interface ParseContext<T$1 extends $ZodIssueBase = never> {
|
|
12
|
-
/** Customize error messages. */
|
|
13
|
-
readonly error?: $ZodErrorMap<T$1>;
|
|
14
|
-
/** Include the `input` field in issue objects. Default `false`. */
|
|
15
|
-
readonly reportInput?: boolean;
|
|
16
|
-
/** Skip eval-based fast path. Default `false`. */
|
|
17
|
-
readonly jitless?: boolean;
|
|
18
|
-
}
|
|
19
|
-
/** @internal */
|
|
20
|
-
interface ParseContextInternal<T$1 extends $ZodIssueBase = never> extends ParseContext<T$1> {
|
|
21
|
-
readonly async?: boolean | undefined;
|
|
22
|
-
readonly direction?: "forward" | "backward";
|
|
23
|
-
readonly skipChecks?: boolean;
|
|
24
|
-
}
|
|
25
|
-
interface ParsePayload<T$1 = unknown> {
|
|
26
|
-
value: T$1;
|
|
27
|
-
issues: $ZodRawIssue[];
|
|
28
|
-
/** A may to mark a whole payload as aborted. Used in codecs/pipes. */
|
|
29
|
-
aborted?: boolean;
|
|
30
|
-
}
|
|
31
|
-
type CheckFn<T$1> = (input: ParsePayload<T$1>) => MaybeAsync<void>;
|
|
32
|
-
interface $ZodTypeDef {
|
|
33
|
-
type: "string" | "number" | "int" | "boolean" | "bigint" | "symbol" | "null" | "undefined" | "void" | "never" | "any" | "unknown" | "date" | "object" | "record" | "file" | "array" | "tuple" | "union" | "intersection" | "map" | "set" | "enum" | "literal" | "nullable" | "optional" | "nonoptional" | "success" | "transform" | "default" | "prefault" | "catch" | "nan" | "pipe" | "readonly" | "template_literal" | "promise" | "lazy" | "function" | "custom";
|
|
34
|
-
error?: $ZodErrorMap<never> | undefined;
|
|
35
|
-
checks?: $ZodCheck<never>[];
|
|
36
|
-
}
|
|
37
|
-
interface _$ZodTypeInternals {
|
|
38
|
-
/** The `@zod/core` version of this schema */
|
|
39
|
-
version: typeof version;
|
|
40
|
-
/** Schema definition. */
|
|
41
|
-
def: $ZodTypeDef;
|
|
42
|
-
/** @internal Randomly generated ID for this schema. */
|
|
43
|
-
/** @internal List of deferred initializers. */
|
|
44
|
-
deferred: AnyFunc[] | undefined;
|
|
45
|
-
/** @internal Parses input and runs all checks (refinements). */
|
|
46
|
-
run(payload: ParsePayload<any>, ctx: ParseContextInternal): MaybeAsync<ParsePayload>;
|
|
47
|
-
/** @internal Parses input, doesn't run checks. */
|
|
48
|
-
parse(payload: ParsePayload<any>, ctx: ParseContextInternal): MaybeAsync<ParsePayload>;
|
|
49
|
-
/** @internal Stores identifiers for the set of traits implemented by this schema. */
|
|
50
|
-
traits: Set<string>;
|
|
51
|
-
/** @internal Indicates that a schema output type should be considered optional inside objects.
|
|
52
|
-
* @default Required
|
|
53
|
-
*/
|
|
54
|
-
/** @internal */
|
|
55
|
-
optin?: "optional" | undefined;
|
|
56
|
-
/** @internal */
|
|
57
|
-
optout?: "optional" | undefined;
|
|
58
|
-
/** @internal The set of literal values that will pass validation. Must be an exhaustive set. Used to determine optionality in z.record().
|
|
59
|
-
*
|
|
60
|
-
* Defined on: enum, const, literal, null, undefined
|
|
61
|
-
* Passthrough: optional, nullable, branded, default, catch, pipe
|
|
62
|
-
* Todo: unions?
|
|
63
|
-
*/
|
|
64
|
-
values?: PrimitiveSet | undefined;
|
|
65
|
-
/** Default value bubbled up from */
|
|
66
|
-
/** @internal A set of literal discriminators used for the fast path in discriminated unions. */
|
|
67
|
-
propValues?: PropValues | undefined;
|
|
68
|
-
/** @internal This flag indicates that a schema validation can be represented with a regular expression. Used to determine allowable schemas in z.templateLiteral(). */
|
|
69
|
-
pattern: RegExp | undefined;
|
|
70
|
-
/** @internal The constructor function of this schema. */
|
|
71
|
-
constr: new (def: any) => $ZodType;
|
|
72
|
-
/** @internal A catchall object for bag metadata related to this schema. Commonly modified by checks using `onattach`. */
|
|
73
|
-
bag: Record<string, unknown>;
|
|
74
|
-
/** @internal The set of issues this schema might throw during type checking. */
|
|
75
|
-
isst: $ZodIssueBase;
|
|
76
|
-
/** @internal Subject to change, not a public API. */
|
|
77
|
-
processJSONSchema?: ((ctx: ToJSONSchemaContext, json: BaseSchema, params: ProcessParams) => void) | undefined;
|
|
78
|
-
/** An optional method used to override `toJSONSchema` logic. */
|
|
79
|
-
toJSONSchema?: () => unknown;
|
|
80
|
-
/** @internal The parent of this schema. Only set during certain clone operations. */
|
|
81
|
-
parent?: $ZodType | undefined;
|
|
82
|
-
}
|
|
83
|
-
/** @internal */
|
|
84
|
-
interface $ZodTypeInternals<out O = unknown, out I = unknown> extends _$ZodTypeInternals {
|
|
85
|
-
/** @internal The inferred output type */
|
|
86
|
-
output: O;
|
|
87
|
-
/** @internal The inferred input type */
|
|
88
|
-
input: I;
|
|
89
|
-
}
|
|
90
|
-
type $ZodStandardSchema<T$1> = StandardSchemaV1.Props<input<T$1>, output<T$1>>;
|
|
91
|
-
type SomeType = {
|
|
92
|
-
_zod: _$ZodTypeInternals;
|
|
93
|
-
};
|
|
94
|
-
interface $ZodType<O = unknown, I = unknown, Internals extends $ZodTypeInternals<O, I> = $ZodTypeInternals<O, I>> {
|
|
95
|
-
_zod: Internals;
|
|
96
|
-
"~standard": $ZodStandardSchema<this>;
|
|
97
|
-
}
|
|
98
|
-
interface _$ZodType<T$1 extends $ZodTypeInternals = $ZodTypeInternals> extends $ZodType<T$1["output"], T$1["input"], T$1> {}
|
|
99
|
-
declare const $ZodType: $constructor<$ZodType>;
|
|
100
|
-
interface $ZodStringDef extends $ZodTypeDef {
|
|
101
|
-
type: "string";
|
|
102
|
-
coerce?: boolean;
|
|
103
|
-
checks?: $ZodCheck<string>[];
|
|
104
|
-
}
|
|
105
|
-
interface $ZodStringInternals<Input> extends $ZodTypeInternals<string, Input> {
|
|
106
|
-
def: $ZodStringDef;
|
|
107
|
-
/** @deprecated Internal API, use with caution (not deprecated) */
|
|
108
|
-
pattern: RegExp;
|
|
109
|
-
/** @deprecated Internal API, use with caution (not deprecated) */
|
|
110
|
-
isst: $ZodIssueInvalidType;
|
|
111
|
-
bag: LoosePartial<{
|
|
112
|
-
minimum: number;
|
|
113
|
-
maximum: number;
|
|
114
|
-
patterns: Set<RegExp>;
|
|
115
|
-
format: string;
|
|
116
|
-
contentEncoding: string;
|
|
117
|
-
}>;
|
|
118
|
-
}
|
|
119
|
-
interface $ZodString<Input = unknown> extends _$ZodType<$ZodStringInternals<Input>> {}
|
|
120
|
-
declare const $ZodString: $constructor<$ZodString>;
|
|
121
|
-
interface $ZodStringFormatDef<Format extends string = string> extends $ZodStringDef, $ZodCheckStringFormatDef<Format> {}
|
|
122
|
-
interface $ZodStringFormatInternals<Format extends string = string> extends $ZodStringInternals<string>, $ZodCheckStringFormatInternals {
|
|
123
|
-
def: $ZodStringFormatDef<Format>;
|
|
124
|
-
}
|
|
125
|
-
interface $ZodStringFormat<Format extends string = string> extends $ZodType {
|
|
126
|
-
_zod: $ZodStringFormatInternals<Format>;
|
|
127
|
-
}
|
|
128
|
-
declare const $ZodStringFormat: $constructor<$ZodStringFormat>;
|
|
129
|
-
interface $ZodGUIDInternals extends $ZodStringFormatInternals<"guid"> {}
|
|
130
|
-
interface $ZodGUID extends $ZodType {
|
|
131
|
-
_zod: $ZodGUIDInternals;
|
|
132
|
-
}
|
|
133
|
-
declare const $ZodGUID: $constructor<$ZodGUID>;
|
|
134
|
-
interface $ZodUUIDDef extends $ZodStringFormatDef<"uuid"> {
|
|
135
|
-
version?: "v1" | "v2" | "v3" | "v4" | "v5" | "v6" | "v7" | "v8";
|
|
136
|
-
}
|
|
137
|
-
interface $ZodUUIDInternals extends $ZodStringFormatInternals<"uuid"> {
|
|
138
|
-
def: $ZodUUIDDef;
|
|
139
|
-
}
|
|
140
|
-
interface $ZodUUID extends $ZodType {
|
|
141
|
-
_zod: $ZodUUIDInternals;
|
|
142
|
-
}
|
|
143
|
-
declare const $ZodUUID: $constructor<$ZodUUID>;
|
|
144
|
-
interface $ZodEmailInternals extends $ZodStringFormatInternals<"email"> {}
|
|
145
|
-
interface $ZodEmail extends $ZodType {
|
|
146
|
-
_zod: $ZodEmailInternals;
|
|
147
|
-
}
|
|
148
|
-
declare const $ZodEmail: $constructor<$ZodEmail>;
|
|
149
|
-
interface $ZodURLDef extends $ZodStringFormatDef<"url"> {
|
|
150
|
-
hostname?: RegExp | undefined;
|
|
151
|
-
protocol?: RegExp | undefined;
|
|
152
|
-
normalize?: boolean | undefined;
|
|
153
|
-
}
|
|
154
|
-
interface $ZodURLInternals extends $ZodStringFormatInternals<"url"> {
|
|
155
|
-
def: $ZodURLDef;
|
|
156
|
-
}
|
|
157
|
-
interface $ZodURL extends $ZodType {
|
|
158
|
-
_zod: $ZodURLInternals;
|
|
159
|
-
}
|
|
160
|
-
declare const $ZodURL: $constructor<$ZodURL>;
|
|
161
|
-
interface $ZodEmojiInternals extends $ZodStringFormatInternals<"emoji"> {}
|
|
162
|
-
interface $ZodEmoji extends $ZodType {
|
|
163
|
-
_zod: $ZodEmojiInternals;
|
|
164
|
-
}
|
|
165
|
-
declare const $ZodEmoji: $constructor<$ZodEmoji>;
|
|
166
|
-
interface $ZodNanoIDInternals extends $ZodStringFormatInternals<"nanoid"> {}
|
|
167
|
-
interface $ZodNanoID extends $ZodType {
|
|
168
|
-
_zod: $ZodNanoIDInternals;
|
|
169
|
-
}
|
|
170
|
-
declare const $ZodNanoID: $constructor<$ZodNanoID>;
|
|
171
|
-
interface $ZodCUIDInternals extends $ZodStringFormatInternals<"cuid"> {}
|
|
172
|
-
interface $ZodCUID extends $ZodType {
|
|
173
|
-
_zod: $ZodCUIDInternals;
|
|
174
|
-
}
|
|
175
|
-
declare const $ZodCUID: $constructor<$ZodCUID>;
|
|
176
|
-
interface $ZodCUID2Internals extends $ZodStringFormatInternals<"cuid2"> {}
|
|
177
|
-
interface $ZodCUID2 extends $ZodType {
|
|
178
|
-
_zod: $ZodCUID2Internals;
|
|
179
|
-
}
|
|
180
|
-
declare const $ZodCUID2: $constructor<$ZodCUID2>;
|
|
181
|
-
interface $ZodULIDInternals extends $ZodStringFormatInternals<"ulid"> {}
|
|
182
|
-
interface $ZodULID extends $ZodType {
|
|
183
|
-
_zod: $ZodULIDInternals;
|
|
184
|
-
}
|
|
185
|
-
declare const $ZodULID: $constructor<$ZodULID>;
|
|
186
|
-
interface $ZodXIDInternals extends $ZodStringFormatInternals<"xid"> {}
|
|
187
|
-
interface $ZodXID extends $ZodType {
|
|
188
|
-
_zod: $ZodXIDInternals;
|
|
189
|
-
}
|
|
190
|
-
declare const $ZodXID: $constructor<$ZodXID>;
|
|
191
|
-
interface $ZodKSUIDInternals extends $ZodStringFormatInternals<"ksuid"> {}
|
|
192
|
-
interface $ZodKSUID extends $ZodType {
|
|
193
|
-
_zod: $ZodKSUIDInternals;
|
|
194
|
-
}
|
|
195
|
-
declare const $ZodKSUID: $constructor<$ZodKSUID>;
|
|
196
|
-
interface $ZodISODateTimeDef extends $ZodStringFormatDef<"datetime"> {
|
|
197
|
-
precision: number | null;
|
|
198
|
-
offset: boolean;
|
|
199
|
-
local: boolean;
|
|
200
|
-
}
|
|
201
|
-
interface $ZodISODateTimeInternals extends $ZodStringFormatInternals {
|
|
202
|
-
def: $ZodISODateTimeDef;
|
|
203
|
-
}
|
|
204
|
-
interface $ZodISODateTime extends $ZodType {
|
|
205
|
-
_zod: $ZodISODateTimeInternals;
|
|
206
|
-
}
|
|
207
|
-
declare const $ZodISODateTime: $constructor<$ZodISODateTime>;
|
|
208
|
-
interface $ZodISODateInternals extends $ZodStringFormatInternals<"date"> {}
|
|
209
|
-
interface $ZodISODate extends $ZodType {
|
|
210
|
-
_zod: $ZodISODateInternals;
|
|
211
|
-
}
|
|
212
|
-
declare const $ZodISODate: $constructor<$ZodISODate>;
|
|
213
|
-
interface $ZodISOTimeDef extends $ZodStringFormatDef<"time"> {
|
|
214
|
-
precision?: number | null;
|
|
215
|
-
}
|
|
216
|
-
interface $ZodISOTimeInternals extends $ZodStringFormatInternals<"time"> {
|
|
217
|
-
def: $ZodISOTimeDef;
|
|
218
|
-
}
|
|
219
|
-
interface $ZodISOTime extends $ZodType {
|
|
220
|
-
_zod: $ZodISOTimeInternals;
|
|
221
|
-
}
|
|
222
|
-
declare const $ZodISOTime: $constructor<$ZodISOTime>;
|
|
223
|
-
interface $ZodISODurationInternals extends $ZodStringFormatInternals<"duration"> {}
|
|
224
|
-
interface $ZodISODuration extends $ZodType {
|
|
225
|
-
_zod: $ZodISODurationInternals;
|
|
226
|
-
}
|
|
227
|
-
declare const $ZodISODuration: $constructor<$ZodISODuration>;
|
|
228
|
-
interface $ZodIPv4Def extends $ZodStringFormatDef<"ipv4"> {
|
|
229
|
-
version?: "v4";
|
|
230
|
-
}
|
|
231
|
-
interface $ZodIPv4Internals extends $ZodStringFormatInternals<"ipv4"> {
|
|
232
|
-
def: $ZodIPv4Def;
|
|
233
|
-
}
|
|
234
|
-
interface $ZodIPv4 extends $ZodType {
|
|
235
|
-
_zod: $ZodIPv4Internals;
|
|
236
|
-
}
|
|
237
|
-
declare const $ZodIPv4: $constructor<$ZodIPv4>;
|
|
238
|
-
interface $ZodIPv6Def extends $ZodStringFormatDef<"ipv6"> {
|
|
239
|
-
version?: "v6";
|
|
240
|
-
}
|
|
241
|
-
interface $ZodIPv6Internals extends $ZodStringFormatInternals<"ipv6"> {
|
|
242
|
-
def: $ZodIPv6Def;
|
|
243
|
-
}
|
|
244
|
-
interface $ZodIPv6 extends $ZodType {
|
|
245
|
-
_zod: $ZodIPv6Internals;
|
|
246
|
-
}
|
|
247
|
-
declare const $ZodIPv6: $constructor<$ZodIPv6>;
|
|
248
|
-
interface $ZodCIDRv4Def extends $ZodStringFormatDef<"cidrv4"> {
|
|
249
|
-
version?: "v4";
|
|
250
|
-
}
|
|
251
|
-
interface $ZodCIDRv4Internals extends $ZodStringFormatInternals<"cidrv4"> {
|
|
252
|
-
def: $ZodCIDRv4Def;
|
|
253
|
-
}
|
|
254
|
-
interface $ZodCIDRv4 extends $ZodType {
|
|
255
|
-
_zod: $ZodCIDRv4Internals;
|
|
256
|
-
}
|
|
257
|
-
declare const $ZodCIDRv4: $constructor<$ZodCIDRv4>;
|
|
258
|
-
interface $ZodCIDRv6Def extends $ZodStringFormatDef<"cidrv6"> {
|
|
259
|
-
version?: "v6";
|
|
260
|
-
}
|
|
261
|
-
interface $ZodCIDRv6Internals extends $ZodStringFormatInternals<"cidrv6"> {
|
|
262
|
-
def: $ZodCIDRv6Def;
|
|
263
|
-
}
|
|
264
|
-
interface $ZodCIDRv6 extends $ZodType {
|
|
265
|
-
_zod: $ZodCIDRv6Internals;
|
|
266
|
-
}
|
|
267
|
-
declare const $ZodCIDRv6: $constructor<$ZodCIDRv6>;
|
|
268
|
-
interface $ZodBase64Internals extends $ZodStringFormatInternals<"base64"> {}
|
|
269
|
-
interface $ZodBase64 extends $ZodType {
|
|
270
|
-
_zod: $ZodBase64Internals;
|
|
271
|
-
}
|
|
272
|
-
declare const $ZodBase64: $constructor<$ZodBase64>;
|
|
273
|
-
interface $ZodBase64URLInternals extends $ZodStringFormatInternals<"base64url"> {}
|
|
274
|
-
interface $ZodBase64URL extends $ZodType {
|
|
275
|
-
_zod: $ZodBase64URLInternals;
|
|
276
|
-
}
|
|
277
|
-
declare const $ZodBase64URL: $constructor<$ZodBase64URL>;
|
|
278
|
-
interface $ZodE164Internals extends $ZodStringFormatInternals<"e164"> {}
|
|
279
|
-
interface $ZodE164 extends $ZodType {
|
|
280
|
-
_zod: $ZodE164Internals;
|
|
281
|
-
}
|
|
282
|
-
declare const $ZodE164: $constructor<$ZodE164>;
|
|
283
|
-
interface $ZodJWTDef extends $ZodStringFormatDef<"jwt"> {
|
|
284
|
-
alg?: JWTAlgorithm | undefined;
|
|
285
|
-
}
|
|
286
|
-
interface $ZodJWTInternals extends $ZodStringFormatInternals<"jwt"> {
|
|
287
|
-
def: $ZodJWTDef;
|
|
288
|
-
}
|
|
289
|
-
interface $ZodJWT extends $ZodType {
|
|
290
|
-
_zod: $ZodJWTInternals;
|
|
291
|
-
}
|
|
292
|
-
declare const $ZodJWT: $constructor<$ZodJWT>;
|
|
293
|
-
interface $ZodNumberDef extends $ZodTypeDef {
|
|
294
|
-
type: "number";
|
|
295
|
-
coerce?: boolean;
|
|
296
|
-
}
|
|
297
|
-
interface $ZodNumberInternals<Input = unknown> extends $ZodTypeInternals<number, Input> {
|
|
298
|
-
def: $ZodNumberDef;
|
|
299
|
-
/** @deprecated Internal API, use with caution (not deprecated) */
|
|
300
|
-
pattern: RegExp;
|
|
301
|
-
/** @deprecated Internal API, use with caution (not deprecated) */
|
|
302
|
-
isst: $ZodIssueInvalidType;
|
|
303
|
-
bag: LoosePartial<{
|
|
304
|
-
minimum: number;
|
|
305
|
-
maximum: number;
|
|
306
|
-
exclusiveMinimum: number;
|
|
307
|
-
exclusiveMaximum: number;
|
|
308
|
-
format: string;
|
|
309
|
-
pattern: RegExp;
|
|
310
|
-
}>;
|
|
311
|
-
}
|
|
312
|
-
interface $ZodNumber<Input = unknown> extends $ZodType {
|
|
313
|
-
_zod: $ZodNumberInternals<Input>;
|
|
314
|
-
}
|
|
315
|
-
declare const $ZodNumber: $constructor<$ZodNumber>;
|
|
316
|
-
interface $ZodBooleanDef extends $ZodTypeDef {
|
|
317
|
-
type: "boolean";
|
|
318
|
-
coerce?: boolean;
|
|
319
|
-
checks?: $ZodCheck<boolean>[];
|
|
320
|
-
}
|
|
321
|
-
interface $ZodBooleanInternals<T$1 = unknown> extends $ZodTypeInternals<boolean, T$1> {
|
|
322
|
-
pattern: RegExp;
|
|
323
|
-
def: $ZodBooleanDef;
|
|
324
|
-
isst: $ZodIssueInvalidType;
|
|
325
|
-
}
|
|
326
|
-
interface $ZodBoolean<T$1 = unknown> extends $ZodType {
|
|
327
|
-
_zod: $ZodBooleanInternals<T$1>;
|
|
328
|
-
}
|
|
329
|
-
declare const $ZodBoolean: $constructor<$ZodBoolean>;
|
|
330
|
-
interface $ZodBigIntDef extends $ZodTypeDef {
|
|
331
|
-
type: "bigint";
|
|
332
|
-
coerce?: boolean;
|
|
333
|
-
}
|
|
334
|
-
interface $ZodBigIntInternals<T$1 = unknown> extends $ZodTypeInternals<bigint, T$1> {
|
|
335
|
-
pattern: RegExp;
|
|
336
|
-
/** @internal Internal API, use with caution */
|
|
337
|
-
def: $ZodBigIntDef;
|
|
338
|
-
isst: $ZodIssueInvalidType;
|
|
339
|
-
bag: LoosePartial<{
|
|
340
|
-
minimum: bigint;
|
|
341
|
-
maximum: bigint;
|
|
342
|
-
format: string;
|
|
343
|
-
}>;
|
|
344
|
-
}
|
|
345
|
-
interface $ZodBigInt<T$1 = unknown> extends $ZodType {
|
|
346
|
-
_zod: $ZodBigIntInternals<T$1>;
|
|
347
|
-
}
|
|
348
|
-
declare const $ZodBigInt: $constructor<$ZodBigInt>;
|
|
349
|
-
interface $ZodSymbolDef extends $ZodTypeDef {
|
|
350
|
-
type: "symbol";
|
|
351
|
-
}
|
|
352
|
-
interface $ZodSymbolInternals extends $ZodTypeInternals<symbol, symbol> {
|
|
353
|
-
def: $ZodSymbolDef;
|
|
354
|
-
isst: $ZodIssueInvalidType;
|
|
355
|
-
}
|
|
356
|
-
interface $ZodSymbol extends $ZodType {
|
|
357
|
-
_zod: $ZodSymbolInternals;
|
|
358
|
-
}
|
|
359
|
-
declare const $ZodSymbol: $constructor<$ZodSymbol>;
|
|
360
|
-
interface $ZodUndefinedDef extends $ZodTypeDef {
|
|
361
|
-
type: "undefined";
|
|
362
|
-
}
|
|
363
|
-
interface $ZodUndefinedInternals extends $ZodTypeInternals<undefined, undefined> {
|
|
364
|
-
pattern: RegExp;
|
|
365
|
-
def: $ZodUndefinedDef;
|
|
366
|
-
values: PrimitiveSet;
|
|
367
|
-
isst: $ZodIssueInvalidType;
|
|
368
|
-
}
|
|
369
|
-
interface $ZodUndefined extends $ZodType {
|
|
370
|
-
_zod: $ZodUndefinedInternals;
|
|
371
|
-
}
|
|
372
|
-
declare const $ZodUndefined: $constructor<$ZodUndefined>;
|
|
373
|
-
interface $ZodNullDef extends $ZodTypeDef {
|
|
374
|
-
type: "null";
|
|
375
|
-
}
|
|
376
|
-
interface $ZodNullInternals extends $ZodTypeInternals<null, null> {
|
|
377
|
-
pattern: RegExp;
|
|
378
|
-
def: $ZodNullDef;
|
|
379
|
-
values: PrimitiveSet;
|
|
380
|
-
isst: $ZodIssueInvalidType;
|
|
381
|
-
}
|
|
382
|
-
interface $ZodNull extends $ZodType {
|
|
383
|
-
_zod: $ZodNullInternals;
|
|
384
|
-
}
|
|
385
|
-
declare const $ZodNull: $constructor<$ZodNull>;
|
|
386
|
-
interface $ZodAnyDef extends $ZodTypeDef {
|
|
387
|
-
type: "any";
|
|
388
|
-
}
|
|
389
|
-
interface $ZodAnyInternals extends $ZodTypeInternals<any, any> {
|
|
390
|
-
def: $ZodAnyDef;
|
|
391
|
-
isst: never;
|
|
392
|
-
}
|
|
393
|
-
interface $ZodAny extends $ZodType {
|
|
394
|
-
_zod: $ZodAnyInternals;
|
|
395
|
-
}
|
|
396
|
-
declare const $ZodAny: $constructor<$ZodAny>;
|
|
397
|
-
interface $ZodUnknownDef extends $ZodTypeDef {
|
|
398
|
-
type: "unknown";
|
|
399
|
-
}
|
|
400
|
-
interface $ZodUnknownInternals extends $ZodTypeInternals<unknown, unknown> {
|
|
401
|
-
def: $ZodUnknownDef;
|
|
402
|
-
isst: never;
|
|
403
|
-
}
|
|
404
|
-
interface $ZodUnknown extends $ZodType {
|
|
405
|
-
_zod: $ZodUnknownInternals;
|
|
406
|
-
}
|
|
407
|
-
declare const $ZodUnknown: $constructor<$ZodUnknown>;
|
|
408
|
-
interface $ZodNeverDef extends $ZodTypeDef {
|
|
409
|
-
type: "never";
|
|
410
|
-
}
|
|
411
|
-
interface $ZodNeverInternals extends $ZodTypeInternals<never, never> {
|
|
412
|
-
def: $ZodNeverDef;
|
|
413
|
-
isst: $ZodIssueInvalidType;
|
|
414
|
-
}
|
|
415
|
-
interface $ZodNever extends $ZodType {
|
|
416
|
-
_zod: $ZodNeverInternals;
|
|
417
|
-
}
|
|
418
|
-
declare const $ZodNever: $constructor<$ZodNever>;
|
|
419
|
-
interface $ZodVoidDef extends $ZodTypeDef {
|
|
420
|
-
type: "void";
|
|
421
|
-
}
|
|
422
|
-
interface $ZodVoidInternals extends $ZodTypeInternals<void, void> {
|
|
423
|
-
def: $ZodVoidDef;
|
|
424
|
-
isst: $ZodIssueInvalidType;
|
|
425
|
-
}
|
|
426
|
-
interface $ZodVoid extends $ZodType {
|
|
427
|
-
_zod: $ZodVoidInternals;
|
|
428
|
-
}
|
|
429
|
-
declare const $ZodVoid: $constructor<$ZodVoid>;
|
|
430
|
-
interface $ZodDateDef extends $ZodTypeDef {
|
|
431
|
-
type: "date";
|
|
432
|
-
coerce?: boolean;
|
|
433
|
-
}
|
|
434
|
-
interface $ZodDateInternals<T$1 = unknown> extends $ZodTypeInternals<Date, T$1> {
|
|
435
|
-
def: $ZodDateDef;
|
|
436
|
-
isst: $ZodIssueInvalidType;
|
|
437
|
-
bag: LoosePartial<{
|
|
438
|
-
minimum: Date;
|
|
439
|
-
maximum: Date;
|
|
440
|
-
format: string;
|
|
441
|
-
}>;
|
|
442
|
-
}
|
|
443
|
-
interface $ZodDate<T$1 = unknown> extends $ZodType {
|
|
444
|
-
_zod: $ZodDateInternals<T$1>;
|
|
445
|
-
}
|
|
446
|
-
declare const $ZodDate: $constructor<$ZodDate>;
|
|
447
|
-
interface $ZodArrayDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
448
|
-
type: "array";
|
|
449
|
-
element: T$1;
|
|
450
|
-
}
|
|
451
|
-
interface $ZodArrayInternals<T$1 extends SomeType = $ZodType> extends _$ZodTypeInternals {
|
|
452
|
-
def: $ZodArrayDef<T$1>;
|
|
453
|
-
isst: $ZodIssueInvalidType;
|
|
454
|
-
output: output<T$1>[];
|
|
455
|
-
input: input<T$1>[];
|
|
456
|
-
}
|
|
457
|
-
interface $ZodArray<T$1 extends SomeType = $ZodType> extends $ZodType<any, any, $ZodArrayInternals<T$1>> {}
|
|
458
|
-
declare const $ZodArray: $constructor<$ZodArray>;
|
|
459
|
-
type OptionalOutSchema = {
|
|
460
|
-
_zod: {
|
|
461
|
-
optout: "optional";
|
|
462
|
-
};
|
|
463
|
-
};
|
|
464
|
-
type OptionalInSchema = {
|
|
465
|
-
_zod: {
|
|
466
|
-
optin: "optional";
|
|
467
|
-
};
|
|
468
|
-
};
|
|
469
|
-
type $InferObjectOutput<T$1 extends $ZodLooseShape, Extra extends Record<string, unknown>> = string extends keyof T$1 ? IsAny<T$1[keyof T$1]> extends true ? Record<string, unknown> : Record<string, output<T$1[keyof T$1]>> : keyof (T$1 & Extra) extends never ? Record<string, never> : Prettify<{ -readonly [k in keyof T$1 as T$1[k] extends OptionalOutSchema ? never : k]: T$1[k]["_zod"]["output"] } & { -readonly [k in keyof T$1 as T$1[k] extends OptionalOutSchema ? k : never]?: T$1[k]["_zod"]["output"] } & Extra>;
|
|
470
|
-
type $InferObjectInput<T$1 extends $ZodLooseShape, Extra extends Record<string, unknown>> = string extends keyof T$1 ? IsAny<T$1[keyof T$1]> extends true ? Record<string, unknown> : Record<string, input<T$1[keyof T$1]>> : keyof (T$1 & Extra) extends never ? Record<string, never> : Prettify<{ -readonly [k in keyof T$1 as T$1[k] extends OptionalInSchema ? never : k]: T$1[k]["_zod"]["input"] } & { -readonly [k in keyof T$1 as T$1[k] extends OptionalInSchema ? k : never]?: T$1[k]["_zod"]["input"] } & Extra>;
|
|
471
|
-
type $ZodObjectConfig = {
|
|
472
|
-
out: Record<string, unknown>;
|
|
473
|
-
in: Record<string, unknown>;
|
|
474
|
-
};
|
|
475
|
-
type $loose = {
|
|
476
|
-
out: Record<string, unknown>;
|
|
477
|
-
in: Record<string, unknown>;
|
|
478
|
-
};
|
|
479
|
-
type $strict = {
|
|
480
|
-
out: {};
|
|
481
|
-
in: {};
|
|
482
|
-
};
|
|
483
|
-
type $strip = {
|
|
484
|
-
out: {};
|
|
485
|
-
in: {};
|
|
486
|
-
};
|
|
487
|
-
type $catchall<T$1 extends SomeType> = {
|
|
488
|
-
out: {
|
|
489
|
-
[k: string]: output<T$1>;
|
|
490
|
-
};
|
|
491
|
-
in: {
|
|
492
|
-
[k: string]: input<T$1>;
|
|
493
|
-
};
|
|
494
|
-
};
|
|
495
|
-
type $ZodShape = Readonly<{
|
|
496
|
-
[k: string]: $ZodType;
|
|
497
|
-
}>;
|
|
498
|
-
interface $ZodObjectDef<Shape extends $ZodShape = $ZodShape> extends $ZodTypeDef {
|
|
499
|
-
type: "object";
|
|
500
|
-
shape: Shape;
|
|
501
|
-
catchall?: $ZodType | undefined;
|
|
502
|
-
}
|
|
503
|
-
interface $ZodObjectInternals< /** @ts-ignore Cast variance */
|
|
504
|
-
out Shape extends $ZodShape = $ZodShape, out Config extends $ZodObjectConfig = $ZodObjectConfig> extends _$ZodTypeInternals {
|
|
505
|
-
def: $ZodObjectDef<Shape>;
|
|
506
|
-
config: Config;
|
|
507
|
-
isst: $ZodIssueInvalidType | $ZodIssueUnrecognizedKeys;
|
|
508
|
-
propValues: PropValues;
|
|
509
|
-
output: $InferObjectOutput<Shape, Config["out"]>;
|
|
510
|
-
input: $InferObjectInput<Shape, Config["in"]>;
|
|
511
|
-
optin?: "optional" | undefined;
|
|
512
|
-
optout?: "optional" | undefined;
|
|
513
|
-
}
|
|
514
|
-
type $ZodLooseShape = Record<string, any>;
|
|
515
|
-
interface $ZodObject< /** @ts-ignore Cast variance */
|
|
516
|
-
out Shape extends Readonly<$ZodShape> = Readonly<$ZodShape>, out Params extends $ZodObjectConfig = $ZodObjectConfig> extends $ZodType<any, any, $ZodObjectInternals<Shape, Params>> {}
|
|
517
|
-
declare const $ZodObject: $constructor<$ZodObject>;
|
|
518
|
-
type $InferUnionOutput<T$1 extends SomeType> = T$1 extends any ? output<T$1> : never;
|
|
519
|
-
type $InferUnionInput<T$1 extends SomeType> = T$1 extends any ? input<T$1> : never;
|
|
520
|
-
interface $ZodUnionDef<Options extends readonly SomeType[] = readonly $ZodType[]> extends $ZodTypeDef {
|
|
521
|
-
type: "union";
|
|
522
|
-
options: Options;
|
|
523
|
-
inclusive?: boolean;
|
|
524
|
-
}
|
|
525
|
-
type IsOptionalIn<T$1 extends SomeType> = T$1 extends OptionalInSchema ? true : false;
|
|
526
|
-
type IsOptionalOut<T$1 extends SomeType> = T$1 extends OptionalOutSchema ? true : false;
|
|
527
|
-
interface $ZodUnionInternals<T$1 extends readonly SomeType[] = readonly $ZodType[]> extends _$ZodTypeInternals {
|
|
528
|
-
def: $ZodUnionDef<T$1>;
|
|
529
|
-
isst: $ZodIssueInvalidUnion;
|
|
530
|
-
pattern: T$1[number]["_zod"]["pattern"];
|
|
531
|
-
values: T$1[number]["_zod"]["values"];
|
|
532
|
-
output: $InferUnionOutput<T$1[number]>;
|
|
533
|
-
input: $InferUnionInput<T$1[number]>;
|
|
534
|
-
optin: IsOptionalIn<T$1[number]> extends false ? "optional" | undefined : "optional";
|
|
535
|
-
optout: IsOptionalOut<T$1[number]> extends false ? "optional" | undefined : "optional";
|
|
536
|
-
}
|
|
537
|
-
interface $ZodUnion<T$1 extends readonly SomeType[] = readonly $ZodType[]> extends $ZodType<any, any, $ZodUnionInternals<T$1>> {
|
|
538
|
-
_zod: $ZodUnionInternals<T$1>;
|
|
539
|
-
}
|
|
540
|
-
declare const $ZodUnion: $constructor<$ZodUnion>;
|
|
541
|
-
interface $ZodIntersectionDef<Left extends SomeType = $ZodType, Right extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
542
|
-
type: "intersection";
|
|
543
|
-
left: Left;
|
|
544
|
-
right: Right;
|
|
545
|
-
}
|
|
546
|
-
interface $ZodIntersectionInternals<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends _$ZodTypeInternals {
|
|
547
|
-
def: $ZodIntersectionDef<A, B>;
|
|
548
|
-
isst: never;
|
|
549
|
-
optin: A["_zod"]["optin"] | B["_zod"]["optin"];
|
|
550
|
-
optout: A["_zod"]["optout"] | B["_zod"]["optout"];
|
|
551
|
-
output: output<A> & output<B>;
|
|
552
|
-
input: input<A> & input<B>;
|
|
553
|
-
}
|
|
554
|
-
interface $ZodIntersection<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodType {
|
|
555
|
-
_zod: $ZodIntersectionInternals<A, B>;
|
|
556
|
-
}
|
|
557
|
-
declare const $ZodIntersection: $constructor<$ZodIntersection>;
|
|
558
|
-
interface $ZodTupleDef<T$1 extends TupleItems = readonly $ZodType[], Rest$1 extends SomeType | null = $ZodType | null> extends $ZodTypeDef {
|
|
559
|
-
type: "tuple";
|
|
560
|
-
items: T$1;
|
|
561
|
-
rest: Rest$1;
|
|
562
|
-
}
|
|
563
|
-
type $InferTupleInputType<T$1 extends TupleItems, Rest$1 extends SomeType | null> = [...TupleInputTypeWithOptionals<T$1>, ...(Rest$1 extends SomeType ? input<Rest$1>[] : [])];
|
|
564
|
-
type TupleInputTypeNoOptionals<T$1 extends TupleItems> = { [k in keyof T$1]: input<T$1[k]> };
|
|
565
|
-
type TupleInputTypeWithOptionals<T$1 extends TupleItems> = T$1 extends readonly [...infer Prefix extends SomeType[], infer Tail extends SomeType] ? Tail["_zod"]["optin"] extends "optional" ? [...TupleInputTypeWithOptionals<Prefix>, input<Tail>?] : TupleInputTypeNoOptionals<T$1> : [];
|
|
566
|
-
type $InferTupleOutputType<T$1 extends TupleItems, Rest$1 extends SomeType | null> = [...TupleOutputTypeWithOptionals<T$1>, ...(Rest$1 extends SomeType ? output<Rest$1>[] : [])];
|
|
567
|
-
type TupleOutputTypeNoOptionals<T$1 extends TupleItems> = { [k in keyof T$1]: output<T$1[k]> };
|
|
568
|
-
type TupleOutputTypeWithOptionals<T$1 extends TupleItems> = T$1 extends readonly [...infer Prefix extends SomeType[], infer Tail extends SomeType] ? Tail["_zod"]["optout"] extends "optional" ? [...TupleOutputTypeWithOptionals<Prefix>, output<Tail>?] : TupleOutputTypeNoOptionals<T$1> : [];
|
|
569
|
-
interface $ZodTupleInternals<T$1 extends TupleItems = readonly $ZodType[], Rest$1 extends SomeType | null = $ZodType | null> extends _$ZodTypeInternals {
|
|
570
|
-
def: $ZodTupleDef<T$1, Rest$1>;
|
|
571
|
-
isst: $ZodIssueInvalidType | $ZodIssueTooBig<unknown[]> | $ZodIssueTooSmall<unknown[]>;
|
|
572
|
-
output: $InferTupleOutputType<T$1, Rest$1>;
|
|
573
|
-
input: $InferTupleInputType<T$1, Rest$1>;
|
|
574
|
-
}
|
|
575
|
-
interface $ZodTuple<T$1 extends TupleItems = readonly $ZodType[], Rest$1 extends SomeType | null = $ZodType | null> extends $ZodType {
|
|
576
|
-
_zod: $ZodTupleInternals<T$1, Rest$1>;
|
|
577
|
-
}
|
|
578
|
-
declare const $ZodTuple: $constructor<$ZodTuple>;
|
|
579
|
-
type $ZodRecordKey = $ZodType<string | number | symbol, string | number | symbol>;
|
|
580
|
-
interface $ZodRecordDef<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
581
|
-
type: "record";
|
|
582
|
-
keyType: Key;
|
|
583
|
-
valueType: Value;
|
|
584
|
-
/** @default "strict" - errors on keys not matching keyType. "loose" passes through non-matching keys unchanged. */
|
|
585
|
-
mode?: "strict" | "loose";
|
|
586
|
-
}
|
|
587
|
-
type $InferZodRecordOutput<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> = Key extends $partial ? Partial<Record<output<Key>, output<Value>>> : Record<output<Key>, output<Value>>;
|
|
588
|
-
type $InferZodRecordInput<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> = Key extends $partial ? Partial<Record<input<Key>, input<Value>>> : Record<input<Key>, input<Value>>;
|
|
589
|
-
interface $ZodRecordInternals<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodTypeInternals<$InferZodRecordOutput<Key, Value>, $InferZodRecordInput<Key, Value>> {
|
|
590
|
-
def: $ZodRecordDef<Key, Value>;
|
|
591
|
-
isst: $ZodIssueInvalidType | $ZodIssueInvalidKey<Record<PropertyKey, unknown>>;
|
|
592
|
-
optin?: "optional" | undefined;
|
|
593
|
-
optout?: "optional" | undefined;
|
|
594
|
-
}
|
|
595
|
-
type $partial = {
|
|
596
|
-
"~~partial": true;
|
|
597
|
-
};
|
|
598
|
-
interface $ZodRecord<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodType {
|
|
599
|
-
_zod: $ZodRecordInternals<Key, Value>;
|
|
600
|
-
}
|
|
601
|
-
declare const $ZodRecord: $constructor<$ZodRecord>;
|
|
602
|
-
interface $ZodMapDef<Key extends SomeType = $ZodType, Value extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
603
|
-
type: "map";
|
|
604
|
-
keyType: Key;
|
|
605
|
-
valueType: Value;
|
|
606
|
-
}
|
|
607
|
-
interface $ZodMapInternals<Key extends SomeType = $ZodType, Value extends SomeType = $ZodType> extends $ZodTypeInternals<Map<output<Key>, output<Value>>, Map<input<Key>, input<Value>>> {
|
|
608
|
-
def: $ZodMapDef<Key, Value>;
|
|
609
|
-
isst: $ZodIssueInvalidType | $ZodIssueInvalidKey | $ZodIssueInvalidElement<unknown>;
|
|
610
|
-
optin?: "optional" | undefined;
|
|
611
|
-
optout?: "optional" | undefined;
|
|
612
|
-
}
|
|
613
|
-
interface $ZodMap<Key extends SomeType = $ZodType, Value extends SomeType = $ZodType> extends $ZodType {
|
|
614
|
-
_zod: $ZodMapInternals<Key, Value>;
|
|
615
|
-
}
|
|
616
|
-
declare const $ZodMap: $constructor<$ZodMap>;
|
|
617
|
-
interface $ZodSetDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
618
|
-
type: "set";
|
|
619
|
-
valueType: T$1;
|
|
620
|
-
}
|
|
621
|
-
interface $ZodSetInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<Set<output<T$1>>, Set<input<T$1>>> {
|
|
622
|
-
def: $ZodSetDef<T$1>;
|
|
623
|
-
isst: $ZodIssueInvalidType;
|
|
624
|
-
optin?: "optional" | undefined;
|
|
625
|
-
optout?: "optional" | undefined;
|
|
626
|
-
}
|
|
627
|
-
interface $ZodSet<T$1 extends SomeType = $ZodType> extends $ZodType {
|
|
628
|
-
_zod: $ZodSetInternals<T$1>;
|
|
629
|
-
}
|
|
630
|
-
declare const $ZodSet: $constructor<$ZodSet>;
|
|
631
|
-
type $InferEnumOutput<T$1 extends EnumLike> = T$1[keyof T$1] & {};
|
|
632
|
-
type $InferEnumInput<T$1 extends EnumLike> = T$1[keyof T$1] & {};
|
|
633
|
-
interface $ZodEnumDef<T$1 extends EnumLike = EnumLike> extends $ZodTypeDef {
|
|
634
|
-
type: "enum";
|
|
635
|
-
entries: T$1;
|
|
636
|
-
}
|
|
637
|
-
interface $ZodEnumInternals< /** @ts-ignore Cast variance */
|
|
638
|
-
out T$1 extends EnumLike = EnumLike> extends $ZodTypeInternals<$InferEnumOutput<T$1>, $InferEnumInput<T$1>> {
|
|
639
|
-
def: $ZodEnumDef<T$1>;
|
|
640
|
-
/** @deprecated Internal API, use with caution (not deprecated) */
|
|
641
|
-
values: PrimitiveSet;
|
|
642
|
-
/** @deprecated Internal API, use with caution (not deprecated) */
|
|
643
|
-
pattern: RegExp;
|
|
644
|
-
isst: $ZodIssueInvalidValue;
|
|
645
|
-
}
|
|
646
|
-
interface $ZodEnum<T$1 extends EnumLike = EnumLike> extends $ZodType {
|
|
647
|
-
_zod: $ZodEnumInternals<T$1>;
|
|
648
|
-
}
|
|
649
|
-
declare const $ZodEnum: $constructor<$ZodEnum>;
|
|
650
|
-
interface $ZodLiteralDef<T$1 extends Literal> extends $ZodTypeDef {
|
|
651
|
-
type: "literal";
|
|
652
|
-
values: T$1[];
|
|
653
|
-
}
|
|
654
|
-
interface $ZodLiteralInternals<T$1 extends Literal = Literal> extends $ZodTypeInternals<T$1, T$1> {
|
|
655
|
-
def: $ZodLiteralDef<T$1>;
|
|
656
|
-
values: Set<T$1>;
|
|
657
|
-
pattern: RegExp;
|
|
658
|
-
isst: $ZodIssueInvalidValue;
|
|
659
|
-
}
|
|
660
|
-
interface $ZodLiteral<T$1 extends Literal = Literal> extends $ZodType {
|
|
661
|
-
_zod: $ZodLiteralInternals<T$1>;
|
|
662
|
-
}
|
|
663
|
-
declare const $ZodLiteral: $constructor<$ZodLiteral>;
|
|
664
|
-
type _File = typeof globalThis extends {
|
|
665
|
-
File: infer F extends new (...args: any[]) => any;
|
|
666
|
-
} ? InstanceType<F> : {};
|
|
667
|
-
/** Do not reference this directly. */
|
|
668
|
-
interface File extends _File {
|
|
669
|
-
readonly type: string;
|
|
670
|
-
readonly size: number;
|
|
671
|
-
}
|
|
672
|
-
interface $ZodFileDef extends $ZodTypeDef {
|
|
673
|
-
type: "file";
|
|
674
|
-
}
|
|
675
|
-
interface $ZodFileInternals extends $ZodTypeInternals<File, File> {
|
|
676
|
-
def: $ZodFileDef;
|
|
677
|
-
isst: $ZodIssueInvalidType;
|
|
678
|
-
bag: LoosePartial<{
|
|
679
|
-
minimum: number;
|
|
680
|
-
maximum: number;
|
|
681
|
-
mime: MimeTypes[];
|
|
682
|
-
}>;
|
|
683
|
-
}
|
|
684
|
-
interface $ZodFile extends $ZodType {
|
|
685
|
-
_zod: $ZodFileInternals;
|
|
686
|
-
}
|
|
687
|
-
declare const $ZodFile: $constructor<$ZodFile>;
|
|
688
|
-
interface $ZodTransformDef extends $ZodTypeDef {
|
|
689
|
-
type: "transform";
|
|
690
|
-
transform: (input: unknown, payload: ParsePayload<unknown>) => MaybeAsync<unknown>;
|
|
691
|
-
}
|
|
692
|
-
interface $ZodTransformInternals<O = unknown, I = unknown> extends $ZodTypeInternals<O, I> {
|
|
693
|
-
def: $ZodTransformDef;
|
|
694
|
-
isst: never;
|
|
695
|
-
}
|
|
696
|
-
interface $ZodTransform<O = unknown, I = unknown> extends $ZodType {
|
|
697
|
-
_zod: $ZodTransformInternals<O, I>;
|
|
698
|
-
}
|
|
699
|
-
declare const $ZodTransform: $constructor<$ZodTransform>;
|
|
700
|
-
interface $ZodOptionalDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
701
|
-
type: "optional";
|
|
702
|
-
innerType: T$1;
|
|
703
|
-
}
|
|
704
|
-
interface $ZodOptionalInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<output<T$1> | undefined, input<T$1> | undefined> {
|
|
705
|
-
def: $ZodOptionalDef<T$1>;
|
|
706
|
-
optin: "optional";
|
|
707
|
-
optout: "optional";
|
|
708
|
-
isst: never;
|
|
709
|
-
values: T$1["_zod"]["values"];
|
|
710
|
-
pattern: T$1["_zod"]["pattern"];
|
|
711
|
-
}
|
|
712
|
-
interface $ZodOptional<T$1 extends SomeType = $ZodType> extends $ZodType {
|
|
713
|
-
_zod: $ZodOptionalInternals<T$1>;
|
|
714
|
-
}
|
|
715
|
-
declare const $ZodOptional: $constructor<$ZodOptional>;
|
|
716
|
-
interface $ZodNullableDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
717
|
-
type: "nullable";
|
|
718
|
-
innerType: T$1;
|
|
719
|
-
}
|
|
720
|
-
interface $ZodNullableInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<output<T$1> | null, input<T$1> | null> {
|
|
721
|
-
def: $ZodNullableDef<T$1>;
|
|
722
|
-
optin: T$1["_zod"]["optin"];
|
|
723
|
-
optout: T$1["_zod"]["optout"];
|
|
724
|
-
isst: never;
|
|
725
|
-
values: T$1["_zod"]["values"];
|
|
726
|
-
pattern: T$1["_zod"]["pattern"];
|
|
727
|
-
}
|
|
728
|
-
interface $ZodNullable<T$1 extends SomeType = $ZodType> extends $ZodType {
|
|
729
|
-
_zod: $ZodNullableInternals<T$1>;
|
|
730
|
-
}
|
|
731
|
-
declare const $ZodNullable: $constructor<$ZodNullable>;
|
|
732
|
-
interface $ZodDefaultDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
733
|
-
type: "default";
|
|
734
|
-
innerType: T$1;
|
|
735
|
-
/** The default value. May be a getter. */
|
|
736
|
-
defaultValue: NoUndefined<output<T$1>>;
|
|
737
|
-
}
|
|
738
|
-
interface $ZodDefaultInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output<T$1>>, input<T$1> | undefined> {
|
|
739
|
-
def: $ZodDefaultDef<T$1>;
|
|
740
|
-
optin: "optional";
|
|
741
|
-
optout?: "optional" | undefined;
|
|
742
|
-
isst: never;
|
|
743
|
-
values: T$1["_zod"]["values"];
|
|
744
|
-
}
|
|
745
|
-
interface $ZodDefault<T$1 extends SomeType = $ZodType> extends $ZodType {
|
|
746
|
-
_zod: $ZodDefaultInternals<T$1>;
|
|
747
|
-
}
|
|
748
|
-
declare const $ZodDefault: $constructor<$ZodDefault>;
|
|
749
|
-
interface $ZodPrefaultDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
750
|
-
type: "prefault";
|
|
751
|
-
innerType: T$1;
|
|
752
|
-
/** The default value. May be a getter. */
|
|
753
|
-
defaultValue: input<T$1>;
|
|
754
|
-
}
|
|
755
|
-
interface $ZodPrefaultInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output<T$1>>, input<T$1> | undefined> {
|
|
756
|
-
def: $ZodPrefaultDef<T$1>;
|
|
757
|
-
optin: "optional";
|
|
758
|
-
optout?: "optional" | undefined;
|
|
759
|
-
isst: never;
|
|
760
|
-
values: T$1["_zod"]["values"];
|
|
761
|
-
}
|
|
762
|
-
interface $ZodPrefault<T$1 extends SomeType = $ZodType> extends $ZodType {
|
|
763
|
-
_zod: $ZodPrefaultInternals<T$1>;
|
|
764
|
-
}
|
|
765
|
-
declare const $ZodPrefault: $constructor<$ZodPrefault>;
|
|
766
|
-
interface $ZodNonOptionalDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
767
|
-
type: "nonoptional";
|
|
768
|
-
innerType: T$1;
|
|
769
|
-
}
|
|
770
|
-
interface $ZodNonOptionalInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output<T$1>>, NoUndefined<input<T$1>>> {
|
|
771
|
-
def: $ZodNonOptionalDef<T$1>;
|
|
772
|
-
isst: $ZodIssueInvalidType;
|
|
773
|
-
values: T$1["_zod"]["values"];
|
|
774
|
-
optin: "optional" | undefined;
|
|
775
|
-
optout: "optional" | undefined;
|
|
776
|
-
}
|
|
777
|
-
interface $ZodNonOptional<T$1 extends SomeType = $ZodType> extends $ZodType {
|
|
778
|
-
_zod: $ZodNonOptionalInternals<T$1>;
|
|
779
|
-
}
|
|
780
|
-
declare const $ZodNonOptional: $constructor<$ZodNonOptional>;
|
|
781
|
-
interface $ZodSuccessDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
782
|
-
type: "success";
|
|
783
|
-
innerType: T$1;
|
|
784
|
-
}
|
|
785
|
-
interface $ZodSuccessInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<boolean, input<T$1>> {
|
|
786
|
-
def: $ZodSuccessDef<T$1>;
|
|
787
|
-
isst: never;
|
|
788
|
-
optin: T$1["_zod"]["optin"];
|
|
789
|
-
optout: "optional" | undefined;
|
|
790
|
-
}
|
|
791
|
-
interface $ZodSuccess<T$1 extends SomeType = $ZodType> extends $ZodType {
|
|
792
|
-
_zod: $ZodSuccessInternals<T$1>;
|
|
793
|
-
}
|
|
794
|
-
declare const $ZodSuccess: $constructor<$ZodSuccess>;
|
|
795
|
-
interface $ZodCatchCtx extends ParsePayload {
|
|
796
|
-
/** @deprecated Use `ctx.issues` */
|
|
797
|
-
error: {
|
|
798
|
-
issues: $ZodIssue[];
|
|
799
|
-
};
|
|
800
|
-
/** @deprecated Use `ctx.value` */
|
|
801
|
-
input: unknown;
|
|
802
|
-
}
|
|
803
|
-
interface $ZodCatchDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
804
|
-
type: "catch";
|
|
805
|
-
innerType: T$1;
|
|
806
|
-
catchValue: (ctx: $ZodCatchCtx) => unknown;
|
|
807
|
-
}
|
|
808
|
-
interface $ZodCatchInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<output<T$1>, input<T$1>> {
|
|
809
|
-
def: $ZodCatchDef<T$1>;
|
|
810
|
-
optin: T$1["_zod"]["optin"];
|
|
811
|
-
optout: T$1["_zod"]["optout"];
|
|
812
|
-
isst: never;
|
|
813
|
-
values: T$1["_zod"]["values"];
|
|
814
|
-
}
|
|
815
|
-
interface $ZodCatch<T$1 extends SomeType = $ZodType> extends $ZodType {
|
|
816
|
-
_zod: $ZodCatchInternals<T$1>;
|
|
817
|
-
}
|
|
818
|
-
declare const $ZodCatch: $constructor<$ZodCatch>;
|
|
819
|
-
interface $ZodNaNDef extends $ZodTypeDef {
|
|
820
|
-
type: "nan";
|
|
821
|
-
}
|
|
822
|
-
interface $ZodNaNInternals extends $ZodTypeInternals<number, number> {
|
|
823
|
-
def: $ZodNaNDef;
|
|
824
|
-
isst: $ZodIssueInvalidType;
|
|
825
|
-
}
|
|
826
|
-
interface $ZodNaN extends $ZodType {
|
|
827
|
-
_zod: $ZodNaNInternals;
|
|
828
|
-
}
|
|
829
|
-
declare const $ZodNaN: $constructor<$ZodNaN>;
|
|
830
|
-
interface $ZodPipeDef<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
831
|
-
type: "pipe";
|
|
832
|
-
in: A;
|
|
833
|
-
out: B;
|
|
834
|
-
/** Only defined inside $ZodCodec instances. */
|
|
835
|
-
transform?: (value: output<A>, payload: ParsePayload<output<A>>) => MaybeAsync<input<B>>;
|
|
836
|
-
/** Only defined inside $ZodCodec instances. */
|
|
837
|
-
reverseTransform?: (value: input<B>, payload: ParsePayload<input<B>>) => MaybeAsync<output<A>>;
|
|
838
|
-
}
|
|
839
|
-
interface $ZodPipeInternals<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodTypeInternals<output<B>, input<A>> {
|
|
840
|
-
def: $ZodPipeDef<A, B>;
|
|
841
|
-
isst: never;
|
|
842
|
-
values: A["_zod"]["values"];
|
|
843
|
-
optin: A["_zod"]["optin"];
|
|
844
|
-
optout: B["_zod"]["optout"];
|
|
845
|
-
propValues: A["_zod"]["propValues"];
|
|
846
|
-
}
|
|
847
|
-
interface $ZodPipe<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodType {
|
|
848
|
-
_zod: $ZodPipeInternals<A, B>;
|
|
849
|
-
}
|
|
850
|
-
declare const $ZodPipe: $constructor<$ZodPipe>;
|
|
851
|
-
interface $ZodReadonlyDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
852
|
-
type: "readonly";
|
|
853
|
-
innerType: T$1;
|
|
854
|
-
}
|
|
855
|
-
interface $ZodReadonlyInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<MakeReadonly<output<T$1>>, MakeReadonly<input<T$1>>> {
|
|
856
|
-
def: $ZodReadonlyDef<T$1>;
|
|
857
|
-
optin: T$1["_zod"]["optin"];
|
|
858
|
-
optout: T$1["_zod"]["optout"];
|
|
859
|
-
isst: never;
|
|
860
|
-
propValues: T$1["_zod"]["propValues"];
|
|
861
|
-
values: T$1["_zod"]["values"];
|
|
862
|
-
}
|
|
863
|
-
interface $ZodReadonly<T$1 extends SomeType = $ZodType> extends $ZodType {
|
|
864
|
-
_zod: $ZodReadonlyInternals<T$1>;
|
|
865
|
-
}
|
|
866
|
-
declare const $ZodReadonly: $constructor<$ZodReadonly>;
|
|
867
|
-
interface $ZodTemplateLiteralDef extends $ZodTypeDef {
|
|
868
|
-
type: "template_literal";
|
|
869
|
-
parts: $ZodTemplateLiteralPart[];
|
|
870
|
-
format?: string | undefined;
|
|
871
|
-
}
|
|
872
|
-
interface $ZodTemplateLiteralInternals<Template extends string = string> extends $ZodTypeInternals<Template, Template> {
|
|
873
|
-
pattern: RegExp;
|
|
874
|
-
def: $ZodTemplateLiteralDef;
|
|
875
|
-
isst: $ZodIssueInvalidType;
|
|
876
|
-
}
|
|
877
|
-
interface $ZodTemplateLiteral<Template extends string = string> extends $ZodType {
|
|
878
|
-
_zod: $ZodTemplateLiteralInternals<Template>;
|
|
879
|
-
}
|
|
880
|
-
type LiteralPart = Exclude<Literal, symbol>;
|
|
881
|
-
interface SchemaPartInternals extends $ZodTypeInternals<LiteralPart, LiteralPart> {
|
|
882
|
-
pattern: RegExp;
|
|
883
|
-
}
|
|
884
|
-
interface SchemaPart extends $ZodType {
|
|
885
|
-
_zod: SchemaPartInternals;
|
|
886
|
-
}
|
|
887
|
-
type $ZodTemplateLiteralPart = LiteralPart | SchemaPart;
|
|
888
|
-
declare const $ZodTemplateLiteral: $constructor<$ZodTemplateLiteral>;
|
|
889
|
-
type $ZodFunctionArgs = $ZodType<unknown[], unknown[]>;
|
|
890
|
-
type $ZodFunctionIn = $ZodFunctionArgs;
|
|
891
|
-
type $ZodFunctionOut = $ZodType;
|
|
892
|
-
type $InferInnerFunctionType<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : output<Args>) => input<Returns>;
|
|
893
|
-
type $InferInnerFunctionTypeAsync<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : output<Args>) => MaybeAsync<input<Returns>>;
|
|
894
|
-
type $InferOuterFunctionType<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : input<Args>) => output<Returns>;
|
|
895
|
-
type $InferOuterFunctionTypeAsync<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : input<Args>) => MaybeAsync<output<Returns>>;
|
|
896
|
-
interface $ZodFunctionDef<In extends $ZodFunctionIn = $ZodFunctionIn, Out extends $ZodFunctionOut = $ZodFunctionOut> extends $ZodTypeDef {
|
|
897
|
-
type: "function";
|
|
898
|
-
input: In;
|
|
899
|
-
output: Out;
|
|
900
|
-
}
|
|
901
|
-
interface $ZodFunctionInternals<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> extends $ZodTypeInternals<$InferOuterFunctionType<Args, Returns>, $InferInnerFunctionType<Args, Returns>> {
|
|
902
|
-
def: $ZodFunctionDef<Args, Returns>;
|
|
903
|
-
isst: $ZodIssueInvalidType;
|
|
904
|
-
}
|
|
905
|
-
interface $ZodFunction<Args extends $ZodFunctionIn = $ZodFunctionIn, Returns extends $ZodFunctionOut = $ZodFunctionOut> extends $ZodType<any, any, $ZodFunctionInternals<Args, Returns>> {
|
|
906
|
-
/** @deprecated */
|
|
907
|
-
_def: $ZodFunctionDef<Args, Returns>;
|
|
908
|
-
_input: $InferInnerFunctionType<Args, Returns>;
|
|
909
|
-
_output: $InferOuterFunctionType<Args, Returns>;
|
|
910
|
-
implement<F$1 extends $InferInnerFunctionType<Args, Returns>>(func: F$1): (...args: Parameters<this["_output"]>) => ReturnType<F$1> extends ReturnType<this["_output"]> ? ReturnType<F$1> : ReturnType<this["_output"]>;
|
|
911
|
-
implementAsync<F$1 extends $InferInnerFunctionTypeAsync<Args, Returns>>(func: F$1): F$1 extends $InferOuterFunctionTypeAsync<Args, Returns> ? F$1 : $InferOuterFunctionTypeAsync<Args, Returns>;
|
|
912
|
-
input<const Items extends TupleItems, const Rest$1 extends $ZodFunctionOut = $ZodFunctionOut>(args: Items, rest?: Rest$1): $ZodFunction<$ZodTuple<Items, Rest$1>, Returns>;
|
|
913
|
-
input<NewArgs extends $ZodFunctionIn>(args: NewArgs): $ZodFunction<NewArgs, Returns>;
|
|
914
|
-
input(...args: any[]): $ZodFunction<any, Returns>;
|
|
915
|
-
output<NewReturns extends $ZodType>(output: NewReturns): $ZodFunction<Args, NewReturns>;
|
|
916
|
-
}
|
|
917
|
-
declare const $ZodFunction: $constructor<$ZodFunction>;
|
|
918
|
-
interface $ZodPromiseDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
919
|
-
type: "promise";
|
|
920
|
-
innerType: T$1;
|
|
921
|
-
}
|
|
922
|
-
interface $ZodPromiseInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<Promise<output<T$1>>, MaybeAsync<input<T$1>>> {
|
|
923
|
-
def: $ZodPromiseDef<T$1>;
|
|
924
|
-
isst: never;
|
|
925
|
-
}
|
|
926
|
-
interface $ZodPromise<T$1 extends SomeType = $ZodType> extends $ZodType {
|
|
927
|
-
_zod: $ZodPromiseInternals<T$1>;
|
|
928
|
-
}
|
|
929
|
-
declare const $ZodPromise: $constructor<$ZodPromise>;
|
|
930
|
-
interface $ZodLazyDef<T$1 extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
931
|
-
type: "lazy";
|
|
932
|
-
getter: () => T$1;
|
|
933
|
-
}
|
|
934
|
-
interface $ZodLazyInternals<T$1 extends SomeType = $ZodType> extends $ZodTypeInternals<output<T$1>, input<T$1>> {
|
|
935
|
-
def: $ZodLazyDef<T$1>;
|
|
936
|
-
isst: never;
|
|
937
|
-
/** Auto-cached way to retrieve the inner schema */
|
|
938
|
-
innerType: T$1;
|
|
939
|
-
pattern: T$1["_zod"]["pattern"];
|
|
940
|
-
propValues: T$1["_zod"]["propValues"];
|
|
941
|
-
optin: T$1["_zod"]["optin"];
|
|
942
|
-
optout: T$1["_zod"]["optout"];
|
|
943
|
-
}
|
|
944
|
-
interface $ZodLazy<T$1 extends SomeType = $ZodType> extends $ZodType {
|
|
945
|
-
_zod: $ZodLazyInternals<T$1>;
|
|
946
|
-
}
|
|
947
|
-
declare const $ZodLazy: $constructor<$ZodLazy>;
|
|
948
|
-
interface $ZodCustomDef<O = unknown> extends $ZodTypeDef, $ZodCheckDef {
|
|
949
|
-
type: "custom";
|
|
950
|
-
check: "custom";
|
|
951
|
-
path?: PropertyKey[] | undefined;
|
|
952
|
-
error?: $ZodErrorMap | undefined;
|
|
953
|
-
params?: Record<string, any> | undefined;
|
|
954
|
-
fn: (arg: O) => unknown;
|
|
955
|
-
}
|
|
956
|
-
interface $ZodCustomInternals<O = unknown, I = unknown> extends $ZodTypeInternals<O, I>, $ZodCheckInternals<O> {
|
|
957
|
-
def: $ZodCustomDef;
|
|
958
|
-
issc: $ZodIssue;
|
|
959
|
-
isst: never;
|
|
960
|
-
bag: LoosePartial<{
|
|
961
|
-
Class: typeof Class;
|
|
962
|
-
}>;
|
|
963
|
-
}
|
|
964
|
-
interface $ZodCustom<O = unknown, I = unknown> extends $ZodType {
|
|
965
|
-
_zod: $ZodCustomInternals<O, I>;
|
|
966
|
-
}
|
|
967
|
-
declare const $ZodCustom: $constructor<$ZodCustom>;
|
|
968
|
-
type $ZodTypes = $ZodString | $ZodNumber | $ZodBigInt | $ZodBoolean | $ZodDate | $ZodSymbol | $ZodUndefined | $ZodNullable | $ZodNull | $ZodAny | $ZodUnknown | $ZodNever | $ZodVoid | $ZodArray | $ZodObject | $ZodUnion | $ZodIntersection | $ZodTuple | $ZodRecord | $ZodMap | $ZodSet | $ZodLiteral | $ZodEnum | $ZodFunction | $ZodPromise | $ZodLazy | $ZodOptional | $ZodDefault | $ZodPrefault | $ZodTemplateLiteral | $ZodCustom | $ZodTransform | $ZodNonOptional | $ZodReadonly | $ZodNaN | $ZodPipe | $ZodSuccess | $ZodCatch | $ZodFile;
|
|
969
|
-
//#endregion
|
|
970
|
-
export { $ZodArray, $ZodArrayInternals, $ZodBase64, $ZodBase64URL, $ZodBooleanInternals, $ZodCIDRv4, $ZodCIDRv6, $ZodCUID, $ZodCUID2, $ZodCatch, $ZodCatchCtx, $ZodCatchInternals, $ZodCustom, $ZodDefault, $ZodDefaultInternals, $ZodE164, $ZodEmail, $ZodEmailInternals, $ZodEmoji, $ZodEnum, $ZodEnumInternals, $ZodGUID, $ZodIPv4, $ZodIPv6, $ZodISODate, $ZodISODateTime, $ZodISODuration, $ZodISOTime, $ZodIntersection, $ZodIntersectionInternals, $ZodJWT, $ZodKSUID, $ZodLiteral, $ZodLiteralInternals, $ZodLooseShape, $ZodNanoID, $ZodNonOptional, $ZodNonOptionalInternals, $ZodNullInternals, $ZodNullable, $ZodNullableInternals, $ZodNumberInternals, $ZodObject, $ZodObjectConfig, $ZodObjectInternals, $ZodOptional, $ZodOptionalInternals, $ZodPipe, $ZodPipeInternals, $ZodPrefault, $ZodPrefaultInternals, $ZodReadonly, $ZodReadonlyInternals, $ZodRecord, $ZodRecordInternals, $ZodRecordKey, $ZodShape, $ZodStringFormat, $ZodStringFormatInternals, $ZodStringInternals, $ZodTransform, $ZodTransformInternals, $ZodType, $ZodTypeInternals, $ZodTypes, $ZodULID, $ZodULIDInternals, $ZodURL, $ZodURLInternals, $ZodUUID, $ZodUnion, $ZodUnionInternals, $ZodUnknownInternals, $ZodXID, $catchall, $loose, $strict, $strip, CheckFn, ParseContext, ParsePayload, SomeType };
|
|
971
|
-
//# sourceMappingURL=schemas.d.ts.map
|