Skip to main content

Interface: $ZodXorInternals<T>

Defined in: packages/agentos/node_modules/zod/v4/core/schemas.d.cts:724

Extends​

Type Parameters​

T​

T extends readonly SomeType[] = readonly $ZodType[]

Properties​

bag​

bag: Record<string, unknown>

Defined in: packages/agentos/node_modules/zod/v4/core/schemas.d.cts:89

Internal

A catchall object for bag metadata related to this schema. Commonly modified by checks using onattach.

Inherited from​

$ZodUnionInternals.bag


constr()​

constr: (def) => $ZodType

Defined in: packages/agentos/node_modules/zod/v4/core/schemas.d.cts:87

Internal

The constructor function of this schema.

Parameters​

def​

any

Returns​

$ZodType

Inherited from​

$ZodUnionInternals.constr


def​

def: $ZodUnionDef<T>

Defined in: packages/agentos/node_modules/zod/v4/core/schemas.d.cts:711

Schema definition.

Inherited from​

$ZodUnionInternals.def


deferred​

deferred: AnyFunc[] | undefined

Defined in: packages/agentos/node_modules/zod/v4/core/schemas.d.cts:55

Internal

List of deferred initializers.

Inherited from​

$ZodUnionInternals.deferred


input​

input: $InferUnionInput<T[number]>

Defined in: packages/agentos/node_modules/zod/v4/core/schemas.d.cts:716

Inherited from​

$ZodUnionInternals.input


isst​

isst: $ZodIssueInvalidUnion

Defined in: packages/agentos/node_modules/zod/v4/core/schemas.d.cts:712

Internal

The set of issues this schema might throw during type checking.

Inherited from​

$ZodUnionInternals.isst


optin​

optin: IsOptionalIn<T[number]> extends false ? "optional" | "defaulted" | undefined : "optional" | "defaulted"

Defined in: packages/agentos/node_modules/zod/v4/core/schemas.d.cts:717

Internal

Three rungs, each strictly stronger than the last: undefined — required; the container may not omit this slot "optional" — the container may omit it; nothing is supplied in its place "defaulted" — the container may omit it AND this schema substitutes a value Consumers asking "may the slot be absent?" test !== undefined. $ZodOptional asks the stronger question and tests === "defaulted".

Inherited from​

$ZodUnionInternals.optin


optout​

optout: IsOptionalOut<T[number]> extends false ? "optional" | undefined : "optional"

Defined in: packages/agentos/node_modules/zod/v4/core/schemas.d.cts:718

Internal

Inherited from​

$ZodUnionInternals.optout


output​

output: $InferUnionOutput<T[number]>

Defined in: packages/agentos/node_modules/zod/v4/core/schemas.d.cts:715

Inherited from​

$ZodUnionInternals.output


parent?​

optional parent: $ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>

Defined in: packages/agentos/node_modules/zod/v4/core/schemas.d.cts:97

Internal

The parent of this schema. Only set during certain clone operations.

Inherited from​

$ZodUnionInternals.parent


pattern​

pattern: T[number]["_zod"]["pattern"]

Defined in: packages/agentos/node_modules/zod/v4/core/schemas.d.cts:713

Internal

This flag indicates that a schema validation can be represented with a regular expression. Used to determine allowable schemas in z.templateLiteral().

Inherited from​

$ZodUnionInternals.pattern


processJSONSchema()?​

optional processJSONSchema: (ctx, json, params) => void

Defined in: packages/agentos/node_modules/zod/v4/core/schemas.d.cts:93

Internal

Subject to change, not a public API.

Parameters​

ctx​

ToJSONSchemaContext

json​

JSONSchema

params​

ProcessParams

Returns​

void

Inherited from​

$ZodUnionInternals.processJSONSchema


propValues?​

optional propValues: PropValues

Defined in: packages/agentos/node_modules/zod/v4/core/schemas.d.cts:83

Internal

A set of literal discriminators used for the fast path in discriminated unions.

Inherited from​

$ZodUnionInternals.propValues


toJSONSchema()?​

optional toJSONSchema: () => unknown

Defined in: packages/agentos/node_modules/zod/v4/core/schemas.d.cts:95

An optional method used to override toJSONSchema logic.

Returns​

unknown

Inherited from​

$ZodUnionInternals.toJSONSchema


traits​

traits: Set<string>

Defined in: packages/agentos/node_modules/zod/v4/core/schemas.d.cts:61

Internal

Stores identifiers for the set of traits implemented by this schema.

Inherited from​

$ZodUnionInternals.traits


values​

values: T[number]["_zod"]["values"]

Defined in: packages/agentos/node_modules/zod/v4/core/schemas.d.cts:714

Internal

The set of literal values that will pass validation. Must be an exhaustive set. Used to determine optionality in z.record().

Defined on: enum, const, literal, null, undefined Passthrough: optional, nullable, branded, default, catch, pipe Todo: unions?

Inherited from​

$ZodUnionInternals.values


version​

version: object

Defined in: packages/agentos/node_modules/zod/v4/core/schemas.d.cts:50

The @zod/core version of this schema

major​

readonly major: 4

minor​

readonly minor: 6

patch​

readonly patch: number

Inherited from​

$ZodUnionInternals.version

Methods​

parse()​

parse(payload, ctx): MaybeAsync<ParsePayload<unknown>>

Defined in: packages/agentos/node_modules/zod/v4/core/schemas.d.cts:59

Internal

Parses input, doesn't run checks.

Parameters​

payload​

ParsePayload<any>

ctx​

ParseContextInternal

Returns​

MaybeAsync<ParsePayload<unknown>>

Inherited from​

$ZodUnionInternals.parse


run()​

run(payload, ctx): MaybeAsync<ParsePayload<unknown>>

Defined in: packages/agentos/node_modules/zod/v4/core/schemas.d.cts:57

Internal

Parses input and runs all checks (refinements).

Parameters​

payload​

ParsePayload<any>

ctx​

ParseContextInternal

Returns​

MaybeAsync<ParsePayload<unknown>>

Inherited from​

$ZodUnionInternals.run