Interface: ZodJSONSchemaInternals
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:808
Extends
_ZodJSONSchemaInternals
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
_ZodJSONSchemaInternals.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
Inherited from
_ZodJSONSchemaInternals.constr
def
def:
$ZodUnionDef<[ZodString,ZodNumber,ZodBoolean,ZodNull,ZodArray<ZodJSONSchema>,ZodRecord<ZodString,ZodJSONSchema>]>
Defined in: packages/agentos/node_modules/zod/v4/core/schemas.d.cts:711
Schema definition.
Inherited from
_ZodJSONSchemaInternals.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
_ZodJSONSchemaInternals.deferred
input
input:
JSONType
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:810
Overrides
_ZodJSONSchemaInternals.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
_ZodJSONSchemaInternals.isst
optin
optin:
"optional"|"defaulted"|undefined
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
_ZodJSONSchemaInternals.optin
optout
optout:
"optional"|undefined
Defined in: packages/agentos/node_modules/zod/v4/core/schemas.d.cts:718
Internal
Inherited from
_ZodJSONSchemaInternals.optout
output
output:
JSONType
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:809
Overrides
_ZodJSONSchemaInternals.output
parent?
optionalparent:$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
_ZodJSONSchemaInternals.parent
pattern
pattern:
RegExp|undefined
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
_ZodJSONSchemaInternals.pattern
processJSONSchema()?
optionalprocessJSONSchema: (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
json
params
Returns
void
Inherited from
_ZodJSONSchemaInternals.processJSONSchema
propValues?
optionalpropValues: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
_ZodJSONSchemaInternals.propValues
toJSONSchema()?
optionaltoJSONSchema: () =>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
_ZodJSONSchemaInternals.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
_ZodJSONSchemaInternals.traits
values
values:
PrimitiveSet|undefined
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
_ZodJSONSchemaInternals.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
readonlymajor:4
minor
readonlyminor:6
patch
readonlypatch:number
Inherited from
_ZodJSONSchemaInternals.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
Returns
MaybeAsync<ParsePayload<unknown>>
Inherited from
_ZodJSONSchemaInternals.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
Returns
MaybeAsync<ParsePayload<unknown>>
Inherited from
_ZodJSONSchemaInternals.run