Interface: ZodObject<Shape, Config>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:452
Extends
_ZodType<$ZodObjectInternals<Shape,Config>>.$ZodObject<Shape,Config>
Type Parameters
Shape
Shape extends $ZodShape = $ZodLooseShape
Config
Config extends $ZodObjectConfig = $strip
Properties
_def
_def:
$ZodObjectDef<Shape>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:10
Deprecated
Use .def instead.
Inherited from
_input
_input:
$InferObjectInput<Shape,Config["in"]>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:14
Deprecated
Use z.input<typeof schema> instead.
Inherited from
_output
_output:
$InferObjectOutput<Shape,Config["out"]>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:12
Deprecated
Use z.output<typeof schema> instead.
Inherited from
_zod
_zod:
$ZodObjectInternals
Defined in: packages/agentos/node_modules/zod/v4/core/schemas.d.cts:93
Inherited from
~standard
~standard:
ZodStandardSchemaWithJSON<ZodObject<Shape,Config>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:455
Overrides
def
def:
$ZodObjectDef<Shape>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:7
Inherited from
description?
optionaldescription:string
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:60
Inherited from
shape
shape:
Shape
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:456
spa()
spa: (
data,params?) =>Promise<ZodSafeParseResult<$InferObjectOutput<Shape,Config["out"]>>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:29
Parameters
data
unknown
params?
Returns
Promise<ZodSafeParseResult<$InferObjectOutput<Shape, Config["out"]>>>
Inherited from
type
type:
"object"
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:8
Inherited from
Methods
and()
and<
T>(incoming):ZodIntersection<ZodObject<Shape,Config>,T>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:52
Type Parameters
T
T extends SomeType
Parameters
incoming
T
Returns
ZodIntersection<ZodObject<Shape, Config>, T>
Inherited from
apply()
apply<
T>(fn):T
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:82
Type Parameters
T
T
Parameters
fn
(schema) => T
Returns
T
Inherited from
array()
array():
ZodArray<ZodObject<Shape,Config>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:50
Returns
ZodArray<ZodObject<Shape, Config>>
Inherited from
brand()
brand<
T,Dir>(value?):PropertyKeyextendsT?ZodObject<Shape,Config> :$ZodBranded<ZodObject<Shape,Config>,T,Dir>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:24
Type Parameters
T
T extends PropertyKey = PropertyKey
Dir
Dir extends "inout" | "in" | "out" = "out"
Parameters
value?
T
Returns
PropertyKey extends T ? ZodObject<Shape, Config> : $ZodBranded<ZodObject<Shape, Config>, T, Dir>
Inherited from
catch()
Call Signature
catch(
def):ZodCatch<ZodObject<Shape,Config>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:54
Parameters
def
$InferObjectOutput<Shape>
Returns
ZodCatch<ZodObject<Shape, Config>>
Inherited from
Call Signature
catch(
def):ZodCatch<ZodObject<Shape,Config>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:55
Parameters
def
(ctx) => $InferObjectOutput<Shape>
Returns
ZodCatch<ZodObject<Shape, Config>>
Inherited from
catchall()
catchall<
T>(schema):ZodObject<Shape,$catchall<T>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:459
Define a schema to validate all unrecognized keys. This overrides the existing strict/loose behavior.
Type Parameters
T
T extends SomeType
Parameters
schema
T
Returns
ZodObject<Shape, $catchall<T>>
check()
check(...
checks):this
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:18
Parameters
checks
...(CheckFn<$InferObjectOutput<Shape, Config["out"]>> | $ZodCheck<$InferObjectOutput<Shape, Config["out"]>>)[]
Returns
this
Inherited from
clone()
clone(
def?,params?):this
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:20
Parameters
def?
$ZodObjectDef<Shape>
params?
parent
boolean
Returns
this
Inherited from
decode()
decode(
data,params?):$InferObjectOutput<Shape>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:31
Parameters
data
$InferObjectInput<Shape>
params?
Returns
$InferObjectOutput<Shape>
Inherited from
decodeAsync()
decodeAsync(
data,params?):Promise<$InferObjectOutput<Shape,Config["out"]>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:33
Parameters
data
$InferObjectInput<Shape>
params?
Returns
Promise<$InferObjectOutput<Shape, Config["out"]>>
Inherited from
default()
Call Signature
default(
def):ZodDefault<ZodObject<Shape,Config>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:46
Parameters
def
NoUndefined<$InferObjectOutput<Shape, Config["out"]>>
Returns
ZodDefault<ZodObject<Shape, Config>>
Inherited from
Call Signature
default(
def):ZodDefault<ZodObject<Shape,Config>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:47
Parameters
def
() => NoUndefined<$InferObjectOutput<Shape, Config["out"]>>
Returns
ZodDefault<ZodObject<Shape, Config>>
Inherited from
describe()
describe(
description):this
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:59
Returns a new instance that has been registered in z.globalRegistry with the specified description
Parameters
description
string
Returns
this
Inherited from
encode()
encode(
data,params?):$InferObjectInput<Shape>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:30
Parameters
data
$InferObjectOutput<Shape>
params?
Returns
$InferObjectInput<Shape>
Inherited from
encodeAsync()
encodeAsync(
data,params?):Promise<$InferObjectInput<Shape,Config["in"]>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:32