Interface: $ZodXorInternals<T>
Defined in: packages/agentos/node_modules/zod/v4/core/schemas.d.cts:661
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:71
Internal
A catchall object for bag metadata related to this schema. Commonly modified by checks using onattach.
Inherited from
constr()
constr: (
def) =>$ZodType
Defined in: packages/agentos/node_modules/zod/v4/core/schemas.d.cts:69
Internal
The constructor function of this schema.
Parameters
def
any
Returns
Inherited from
def
def:
$ZodUnionDef<T>
Defined in: packages/agentos/node_modules/zod/v4/core/schemas.d.cts:648
Schema definition.
Inherited from
deferred
deferred:
AnyFunc[] |undefined
Defined in: packages/agentos/node_modules/zod/v4/core/schemas.d.cts:42
Internal
List of deferred initializers.
Inherited from
input
input:
$InferUnionInput<T[number]>
Defined in: packages/agentos/node_modules/zod/v4/core/schemas.d.cts:653
Inherited from
isst
isst:
$ZodIssueInvalidUnion
Defined in: packages/agentos/node_modules/zod/v4/core/schemas.d.cts:649
Internal
The set of issues this schema might throw during type checking.
Inherited from
optin
optin:
IsOptionalIn<T[number]> extendsfalse?"optional"|undefined:"optional"
Defined in: packages/agentos/node_modules/zod/v4/core/schemas.d.cts:654
Internal
Inherited from
optout
optout:
IsOptionalOut<T[number]> extendsfalse?"optional"|undefined:"optional"
Defined in: packages/agentos/node_modules/zod/v4/core/schemas.d.cts:655
Internal
Inherited from
output
output:
$InferUnionOutput<T[number]>
Defined in: packages/agentos/node_modules/zod/v4/core/schemas.d.cts:652
Inherited from
parent?
optionalparent:$ZodType<unknown,unknown,$ZodTypeInternals<unknown,unknown>>
Defined in: packages/agentos/node_modules/zod/v4/core/schemas.d.cts:79
Internal
The parent of this schema. Only set during certain clone operations.
Inherited from
pattern
pattern:
T[number]["_zod"]["pattern"]
Defined in: packages/agentos/node_modules/zod/v4/core/schemas.d.cts:650
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
processJSONSchema()?
optionalprocessJSONSchema: (ctx,json,params) =>void
Defined in: packages/agentos/node_modules/zod/v4/core/schemas.d.cts:75
Internal
Subject to change, not a public API.
Parameters
ctx
json
params
Returns
void
Inherited from
$ZodUnionInternals.processJSONSchema
propValues?
optionalpropValues:PropValues
Defined in: packages/agentos/node_modules/zod/v4/core/schemas.d.cts:65
Internal
A set of literal discriminators used for the fast path in discriminated unions.
Inherited from
toJSONSchema()?
optionaltoJSONSchema: () =>unknown
Defined in: packages/agentos/node_modules/zod/v4/core/schemas.d.cts:77
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:48
Internal
Stores identifiers for the set of traits implemented by this schema.
Inherited from
values
values:
T[number]["_zod"]["values"]
Defined in: packages/agentos/node_modules/zod/v4/core/schemas.d.cts:651
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
version
version:
object
Defined in: packages/agentos/node_modules/zod/v4/core/schemas.d.cts:37
The @zod/core version of this schema
major
readonlymajor:4
minor
readonlyminor:4
patch
readonlypatch:number
Inherited from
Methods
parse()
parse(
payload,ctx):MaybeAsync<ParsePayload<unknown>>
Defined in: packages/agentos/node_modules/zod/v4/core/schemas.d.cts:46
Internal
Parses input, doesn't run checks.
Parameters
payload
ParsePayload<any>
ctx
Returns
MaybeAsync<ParsePayload<unknown>>
Inherited from
run()
run(
payload,ctx):MaybeAsync<ParsePayload<unknown>>
Defined in: packages/agentos/node_modules/zod/v4/core/schemas.d.cts:44
Internal
Parses input and runs all checks (refinements).
Parameters
payload
ParsePayload<any>
ctx
Returns
MaybeAsync<ParsePayload<unknown>>