Skip to main content

Interface: ZodObject<Shape, Config>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:486

Extends​

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:11

Deprecated​

Use .def instead.

Inherited from​

_ZodType._def


_input​

_input: $InferObjectInput<Shape, Config["in"]>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:15

Deprecated​

Use z.input<typeof schema> instead.

Inherited from​

_ZodType._input


_output​

_output: $InferObjectOutput<Shape, Config["out"]>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:13

Deprecated​

Use z.output<typeof schema> instead.

Inherited from​

_ZodType._output


_zod​

_zod: $ZodObjectInternals

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

Inherited from​

_ZodType._zod


~standard​

~standard: ZodStandardSchemaWithJSON<ZodObject<Shape, Config>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:489

Overrides​

_ZodType.~standard


def​

def: $ZodObjectDef<Shape>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:8

Inherited from​

_ZodType.def


description?​

optional description: string

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:63

Inherited from​

_ZodType.description


shape​

shape: Shape

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:490


spa()​

spa: (data, params?) => Promise<ZodSafeParseResult<$InferObjectOutput<Shape, Config["out"]>>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:30

Parameters​

data​

unknown

params?​

ParseContext<$ZodIssue>

Returns​

Promise<ZodSafeParseResult<$InferObjectOutput<Shape, Config["out"]>>>

Inherited from​

_ZodType.spa


type​

type: "object"

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:9

Inherited from​

_ZodType.type

Methods​

and()​

and<T>(incoming): ZodIntersection<ZodObject<Shape, Config>, T>

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

Type Parameters​

T​

T extends SomeType

Parameters​

incoming​

T

Returns​

ZodIntersection<ZodObject<Shape, Config>, T>

Inherited from​

_ZodType.and


apply()​

apply<T, TArgs>(fn, ...args): T

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:85

Type Parameters​

T​

T

TArgs​

TArgs extends unknown[] = []

Parameters​

fn​

(schema, ...args) => T

args​

...TArgs

Returns​

T

Inherited from​

_ZodType.apply


array()​

array(): ZodArray<ZodObject<Shape, Config>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:53

Returns​

ZodArray<ZodObject<Shape, Config>>

Inherited from​

_ZodType.array


brand()​

brand<T, Dir>(value?): PropertyKey extends T ? ZodObject<Shape, Config> : $ZodBranded<ZodObject<Shape, Config>, T, Dir>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:25

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​

_ZodType.brand


catch()​

Call Signature​

catch(def): ZodCatch<ZodObject<Shape, Config>>

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

Parameters​
def​

$InferObjectOutput<Shape>

Returns​

ZodCatch<ZodObject<Shape, Config>>

Inherited from​

_ZodType.catch

Call Signature​

catch(def): ZodCatch<ZodObject<Shape, Config>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:58

Parameters​
def​

(ctx) => $InferObjectOutput<Shape>

Returns​

ZodCatch<ZodObject<Shape, Config>>

Inherited from​

_ZodType.catch


catchall()​

catchall<T>(schema): ZodObject<Shape, $catchall<T>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:493

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:19

Parameters​

checks​

...(CheckFn<$InferObjectOutput<Shape, Config["out"]>> | $ZodCheck<$InferObjectOutput<Shape, Config["out"]>>)[]

Returns​

this

Inherited from​

_ZodType.check


clone()​

clone(def?, params?): this

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:21

Parameters​

def?​

$ZodObjectDef<Shape>

params?​
parent​

boolean

Returns​

this

Inherited from​

_ZodType.clone


decode()​

decode(data, params?): $InferObjectOutput<Shape>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:34

Parameters​

data​

$InferObjectInput<Shape>

params?​

ParseContext<$ZodIssue>

Returns​

$InferObjectOutput<Shape>

Inherited from​

_ZodType.decode


decodeAsync()​

decodeAsync(data, params?): Promise<$InferObjectOutput<Shape, Config["out"]>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:36

Parameters​

data​

$InferObjectInput<Shape>

params?​

ParseContext<$ZodIssue>

Returns​

Promise<$InferObjectOutput<Shape, Config["out"]>>

Inherited from​

_ZodType.decodeAsync


default()​

Call Signature​

default(def): ZodDefault<ZodObject<Shape, Config>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:49

Parameters​
def​

NoUndefined<$InferObjectOutput<Shape, Config["out"]>>

Returns​

ZodDefault<ZodObject<Shape, Config>>

Inherited from​

_ZodType.default

Call Signature​

default(def): ZodDefault<ZodObject<Shape, Config>>

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

Parameters​
def​

() => NoUndefined<$InferObjectOutput<Shape, Config["out"]>>

Returns​

ZodDefault<ZodObject<Shape, Config>>

Inherited from​

_ZodType.default


describe()​

describe(description): this

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:62

Returns a new instance that has been registered in z.globalRegistry with the specified description

Parameters​

description​

string

Returns​

this

Inherited from​

_ZodType.describe


encode()​

encode(data, params?): $InferObjectInput<Shape>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:33

Parameters​

data​

$InferObjectOutput<Shape>

params?​

ParseContext<$ZodIssue>

Returns​

$InferObjectInput<Shape>

Inherited from​

_ZodType.encode


encodeAsync()​

encodeAsync(data, params?): Promise<$InferObjectInput<Shape, Config["in"]>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:35

Parameters​

data​

$InferObjectOutput<Shape>

params?​

ParseContext<$ZodIssue>

Returns​

Promise<$InferObjectInput<Shape, Config["in"]>>

Inherited from​

_ZodType.encodeAsync


exactOptional()​

exactOptional(): ZodExactOptional<ZodObject<Shape, Config>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:45

Returns​

ZodExactOptional<ZodObject<Shape, Config>>

Inherited from​

_ZodType.exactOptional


exactPartial()​

Call Signature​

exactPartial(): ZodObject<{ -readonly [k in string | number | symbol]: ZodExactOptional<Shape[k]> }, Config>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:516

Returns​

ZodObject<{ -readonly [k in string | number | symbol]: ZodExactOptional<Shape[k]> }, Config>

Call Signature​

exactPartial<M>(mask): ZodObject<{ -readonly [k in string | number | symbol]: k extends keyof M ? ZodExactOptional<Shape[k<k>]> : Shape[k] }, Config>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:519

Type Parameters​
M​

M extends Mask<keyof Shape>

Parameters​
mask​

M & Record<Exclude<keyof M, keyof Shape>, never>

Returns​

ZodObject<{ -readonly [k in string | number | symbol]: k extends keyof M ? ZodExactOptional<Shape[k<k>]> : Shape[k] }, Config>


extend()​

extend<U>(shape): ZodObject<{ [k in string | number | symbol]: ((keyof Shape & keyof U) extends never ? Shape & { -readonly [P in string | number | symbol]: U[P] } : { [K in string | number | symbol as K extends keyof U ? never : K]: Shape[K] } & { [K in string | number | symbol]: { -readonly [P in string | number | symbol]: U[P] }[K] })[k] }, Config>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:502

Type Parameters​

U​

U extends $ZodLooseShape

Parameters​

shape​

U

Returns​

ZodObject<{ [k in string | number | symbol]: ((keyof Shape & keyof U) extends never ? Shape & { -readonly [P in string | number | symbol]: U[P] } : { [K in string | number | symbol as K extends keyof U ? never : K]: Shape[K] } & { [K in string | number | symbol]: { -readonly [P in string | number | symbol]: U[P] }[K] })[k] }, Config>


isNullable()​

isNullable(): boolean

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:84

Returns​

boolean

Deprecated​

Try safe-parsing null (this is what isNullable does internally):

const schema = z.string().nullable();
const isNullable = schema.safeParse(null).success; // true

Inherited from​

_ZodType.isNullable


isOptional()​

isOptional(): boolean

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:75

Returns​

boolean

Deprecated​

Try safe-parsing undefined (this is what isOptional does internally):

const schema = z.string().optional();
const isOptional = schema.safeParse(undefined).success; // true

Inherited from​

_ZodType.isOptional


keyof()​

keyof(): ZodEnum<{ [k in string]: { [k in string]: k }[k] }>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:491

Returns​

ZodEnum<{ [k in string]: { [k in string]: k }[k] }>


loose()​

loose(): ZodObject<Shape, $loose>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:497

Consider z.looseObject(A.shape) instead

Returns​

ZodObject<Shape, $loose>


merge()​

merge<U>(other): ZodObject<{ [k in string | number | symbol]: ((keyof Shape & keyof U["shape"]) extends never ? Shape & U["shape"] : { [K in string | number | symbol as K extends keyof U["shape"] ? never : K]: Shape[K] } & { [K in string | number | symbol]: U["shape"][K] })[k] }, U["_zod"]["config"]>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:507

Type Parameters​

U​

U extends ZodObject<$ZodLooseShape, $strip>

Parameters​

other​

U

Returns​

ZodObject<{ [k in string | number | symbol]: ((keyof Shape & keyof U["shape"]) extends never ? Shape & U["shape"] : { [K in string | number | symbol as K extends keyof U["shape"] ? never : K]: Shape[K] } & { [K in string | number | symbol]: U["shape"][K] })[k] }, U["_zod"]["config"]>

Deprecated​

Use A.extend(B.shape) instead.


meta()​

Call Signature​

meta(): {[key: string]: unknown; deprecated?: boolean; description?: string; id?: string; title?: string; } | undefined

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:65

Returns the metadata associated with this instance in z.globalRegistry

Returns​

{[key: string]: unknown; deprecated?: boolean; description?: string; id?: string; title?: string; } | undefined

Inherited from​

_ZodType.meta

Call Signature​

meta(data): this

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:67

Returns a new instance that has been registered in z.globalRegistry with the specified metadata

Parameters​
data​
deprecated?​

boolean

description?​

string

id?​

string

title?​

string

Returns​

this

Inherited from​

_ZodType.meta


nonoptional()​

nonoptional(params?): ZodNonOptional<ZodObject<Shape, Config>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:46

Parameters​

params?​

string |

{ error?: string | $ZodErrorMap<$ZodIssueInvalidType<unknown>>; message?: string; }

error?​

string | $ZodErrorMap<$ZodIssueInvalidType<unknown>>

message?​

string

Deprecated

This parameter is deprecated. Use error instead.

Returns​

ZodNonOptional<ZodObject<Shape, Config>>

Inherited from​

_ZodType.nonoptional


nullable()​

nullable(): ZodNullable<ZodObject<Shape, Config>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:47

Returns​

ZodNullable<ZodObject<Shape, Config>>

Inherited from​

_ZodType.nullable


nullish()​

nullish(): ZodOptional<ZodNullable<ZodObject<Shape, Config>>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:48

Returns​

ZodOptional<ZodNullable<ZodObject<Shape, Config>>>

Inherited from​

_ZodType.nullish


omit()​

omit<M>(mask): ZodObject<{ [k in string | number | symbol]: Omit<Shape, Extract<keyof Shape, keyof M>>[k] }, Config>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:509

Type Parameters​

M​

M extends Mask<keyof Shape>

Parameters​

mask​

M & Record<Exclude<keyof M, keyof Shape>, never>

Returns​

ZodObject<{ [k in string | number | symbol]: Omit<Shape, Extract<keyof Shape, keyof M>>[k] }, Config>


optional()​

optional(): ZodOptional<ZodObject<Shape, Config>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:44

Returns​

ZodOptional<ZodObject<Shape, Config>>

Inherited from​

_ZodType.optional


or()​

or<T>(option): ZodUnion<[ZodObject<Shape, Config>, T]>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:54

Type Parameters​

T​

T extends SomeType

Parameters​

option​

T

Returns​

ZodUnion<[ZodObject<Shape, Config>, T]>

Inherited from​

_ZodType.or


overwrite()​

overwrite(fn): this

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:43

Parameters​

fn​

(x) => $InferObjectOutput<Shape>

Returns​

this

Inherited from​

_ZodType.overwrite


parse()​

parse(data, params?): $InferObjectOutput<Shape>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:26

Parameters​

data​

unknown

params?​

ParseContext<$ZodIssue>

Returns​

$InferObjectOutput<Shape>

Inherited from​

_ZodType.parse


parseAsync()​

parseAsync(data, params?): Promise<$InferObjectOutput<Shape, Config["out"]>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:28

Parameters​

data​

unknown

params?​

ParseContext<$ZodIssue>

Returns​

Promise<$InferObjectOutput<Shape, Config["out"]>>

Inherited from​

_ZodType.parseAsync


partial()​

Call Signature​

partial(): ZodObject<{ -readonly [k in string | number | symbol]: ZodOptional<Shape[k]> }, Config>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:510

Returns​

ZodObject<{ -readonly [k in string | number | symbol]: ZodOptional<Shape[k]> }, Config>

Call Signature​

partial<M>(mask): ZodObject<{ -readonly [k in string | number | symbol]: k extends keyof M ? ZodOptional<Shape[k<k>]> : Shape[k] }, Config>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:513

Type Parameters​
M​

M extends Mask<keyof Shape>

Parameters​
mask​

M & Record<Exclude<keyof M, keyof Shape>, never>

Returns​

ZodObject<{ -readonly [k in string | number | symbol]: k extends keyof M ? ZodOptional<Shape[k<k>]> : Shape[k] }, Config>


passthrough()​

passthrough(): ZodObject<Shape, $loose>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:495

Returns​

ZodObject<Shape, $loose>

Deprecated​

Use z.looseObject() or .loose() instead.


pick()​

pick<M>(mask): ZodObject<{ [k in string | number | symbol]: Pick<Shape, Extract<keyof Shape, keyof M>>[k] }, Config>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:508

Type Parameters​

M​

M extends Mask<keyof Shape>

Parameters​

mask​

M & Record<Exclude<keyof M, keyof Shape>, never>

Returns​

ZodObject<{ [k in string | number | symbol]: Pick<Shape, Extract<keyof Shape, keyof M>>[k] }, Config>


pipe()​

pipe<T>(target): ZodPipe<ZodObject<Shape, Config>, T>

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

Type Parameters​

T​

T extends $ZodType<any, $InferObjectOutput<Shape, Config["out"]>, $ZodTypeInternals<any, $InferObjectOutput<Shape, Config["out"]>>>

Parameters​

target​

T | $ZodType<any, $InferObjectOutput<Shape, Config["out"]>, $ZodTypeInternals<any, $InferObjectOutput<Shape, Config["out"]>>>

Returns​

ZodPipe<ZodObject<Shape, Config>, T>

Inherited from​

_ZodType.pipe


prefault()​

Call Signature​

prefault(def): ZodPrefault<ZodObject<Shape, Config>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:51

Parameters​
def​

() => $InferObjectInput<Shape>

Returns​

ZodPrefault<ZodObject<Shape, Config>>

Inherited from​

_ZodType.prefault

Call Signature​

prefault(def): ZodPrefault<ZodObject<Shape, Config>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:52

Parameters​
def​

$InferObjectInput<Shape>

Returns​

ZodPrefault<ZodObject<Shape, Config>>

Inherited from​

_ZodType.prefault


readonly()​

readonly(): ZodReadonly<ZodObject<Shape, Config>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:60

Returns​

ZodReadonly<ZodObject<Shape, Config>>

Inherited from​

_ZodType.readonly


refine()​

refine<Ch>(check, params?): Ch extends (arg) => arg is R ? ZodObject<Shape, Config> & ZodType<R, $InferObjectInput<Shape, Config["in"]>, $ZodTypeInternals<R, $InferObjectInput<Shape, Config["in"]>>> : ZodObject<Shape, Config>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:41

Type Parameters​

Ch​

Ch extends (arg) => unknown

Parameters​

check​

Ch

params?​

string |

{ abort?: boolean; error?: string | $ZodErrorMap<NonNullable<$ZodIssue>>; message?: string; params?: Record<string, any>; path?: PropertyKey[]; when?: (payload) => boolean; }

abort?​

boolean

If true, no later checks will be executed if this check fails. Default false.

error?​

string | $ZodErrorMap<NonNullable<$ZodIssue>>

message?​

string

Deprecated

This parameter is deprecated. Use error instead.

params?​

Record<string, any>

path?​

PropertyKey[]

when?​

(payload) => boolean

If provided, the check runs only when this returns true. By default, it is skipped if prior parsing produced aborting issues.

Returns​

Ch extends (arg) => arg is R ? ZodObject<Shape, Config> & ZodType<R, $InferObjectInput<Shape, Config["in"]>, $ZodTypeInternals<R, $InferObjectInput<Shape, Config["in"]>>> : ZodObject<Shape, Config>

Inherited from​

_ZodType.refine


register()​

register<R>(registry, ...meta): this

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:24

Type Parameters​

R​

R extends $ZodRegistry<MetadataType, $ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>>

Parameters​

registry​

R

meta​

...ZodObject<Shape, Config> extends R["_schema"] ? undefined extends R["_meta"] ? [$replace<R["_meta"], R["_schema"] & ZodObject<Shape, Config>>?] : [$replace<R["_meta"], R["_schema"] & ZodObject<Shape, Config>>] : ["Incompatible schema"]

Returns​

this

Inherited from​

_ZodType.register


required()​

Call Signature​

required(): ZodObject<{ -readonly [k in string | number | symbol]: ZodNonOptional<Shape[k]> }, Config>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:522

Returns​

ZodObject<{ -readonly [k in string | number | symbol]: ZodNonOptional<Shape[k]> }, Config>

Call Signature​

required<M>(mask): ZodObject<{ -readonly [k in string | number | symbol]: k extends keyof M ? ZodNonOptional<Shape[k<k>]> : Shape[k] }, Config>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:525

Type Parameters​
M​

M extends Mask<keyof Shape>

Parameters​
mask​

M & Record<Exclude<keyof M, keyof Shape>, never>

Returns​

ZodObject<{ -readonly [k in string | number | symbol]: k extends keyof M ? ZodNonOptional<Shape[k<k>]> : Shape[k] }, Config>


safeDecode()​

safeDecode(data, params?): ZodSafeParseResult<$InferObjectOutput<Shape, Config["out"]>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:38

Parameters​

data​

$InferObjectInput<Shape>

params?​

ParseContext<$ZodIssue>

Returns​

ZodSafeParseResult<$InferObjectOutput<Shape, Config["out"]>>

Inherited from​

_ZodType.safeDecode


safeDecodeAsync()​

safeDecodeAsync(data, params?): Promise<ZodSafeParseResult<$InferObjectOutput<Shape, Config["out"]>>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:40

Parameters​

data​

$InferObjectInput<Shape>

params?​

ParseContext<$ZodIssue>

Returns​

Promise<ZodSafeParseResult<$InferObjectOutput<Shape, Config["out"]>>>

Inherited from​

_ZodType.safeDecodeAsync


safeEncode()​

safeEncode(data, params?): ZodSafeParseResult<$InferObjectInput<Shape, Config["in"]>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:37

Parameters​

data​

$InferObjectOutput<Shape>

params?​

ParseContext<$ZodIssue>

Returns​

ZodSafeParseResult<$InferObjectInput<Shape, Config["in"]>>

Inherited from​

_ZodType.safeEncode


safeEncodeAsync()​

safeEncodeAsync(data, params?): Promise<ZodSafeParseResult<$InferObjectInput<Shape, Config["in"]>>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:39

Parameters​

data​

$InferObjectOutput<Shape>

params?​

ParseContext<$ZodIssue>

Returns​

Promise<ZodSafeParseResult<$InferObjectInput<Shape, Config["in"]>>>

Inherited from​

_ZodType.safeEncodeAsync


safeExtend()​

safeExtend<U>(shape): ZodObject<{ [k in string | number | symbol]: ((keyof Shape & keyof U) extends never ? Shape & { -readonly [P in string | number | symbol]: U[P] } : { [K in string | number | symbol as K extends keyof U ? never : K]: Shape[K] } & { [K in string | number | symbol]: { -readonly [P in string | number | symbol]: U[P] }[K] })[k] }, Config>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:503

Type Parameters​

U​

U extends $ZodLooseShape

Parameters​

shape​

SafeExtendShape<Shape, U> & Partial<Record<keyof Shape, SomeType>>

Returns​

ZodObject<{ [k in string | number | symbol]: ((keyof Shape & keyof U) extends never ? Shape & { -readonly [P in string | number | symbol]: U[P] } : { [K in string | number | symbol as K extends keyof U ? never : K]: Shape[K] } & { [K in string | number | symbol]: { -readonly [P in string | number | symbol]: U[P] }[K] })[k] }, Config>


safeParse()​

safeParse(data, params?): ZodSafeParseResult<$InferObjectOutput<Shape, Config["out"]>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:27

Parameters​

data​

unknown

params?​

ParseContext<$ZodIssue>

Returns​

ZodSafeParseResult<$InferObjectOutput<Shape, Config["out"]>>

Inherited from​

_ZodType.safeParse


safeParseAsync()​

safeParseAsync(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?​

ParseContext<$ZodIssue>

Returns​

Promise<ZodSafeParseResult<$InferObjectOutput<Shape, Config["out"]>>>

Inherited from​

_ZodType.safeParseAsync


strict()​

strict(): ZodObject<Shape, $strict>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:499

Consider z.strictObject(A.shape) instead

Returns​

ZodObject<Shape, $strict>


strip()​

strip(): ZodObject<Shape, $strip>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:501

This is the default behavior. This method call is likely unnecessary.

Returns​

ZodObject<Shape, $strip>


superRefine()​

superRefine(refinement, params?): this

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:42

Parameters​

refinement​

(arg, ctx) => void | Promise<void>

params?​

$ZodSuperRefineParams

Returns​

this

Inherited from​

_ZodType.superRefine


toJSONSchema()​

toJSONSchema(params?): ZodStandardJSONSchemaPayload<ZodObject<Shape, Config>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:18

Converts this schema to a JSON Schema representation.

Parameters​

params?​

ToJSONSchemaParams

Returns​

ZodStandardJSONSchemaPayload<ZodObject<Shape, Config>>

Inherited from​

_ZodType.toJSONSchema


transform()​

transform<NewOut>(transform): ZodPipe<ZodObject<Shape, Config>, ZodTransform<Awaited<NewOut>, $InferObjectOutput<Shape, Config["out"]>>>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:56

Type Parameters​

NewOut​

NewOut

Parameters​

transform​

(arg, ctx) => NewOut | Promise<NewOut>

Returns​

ZodPipe<ZodObject<Shape, Config>, ZodTransform<Awaited<NewOut>, $InferObjectOutput<Shape, Config["out"]>>>

Inherited from​

_ZodType.transform


validate()​

validate(data, params?): data is $InferObjectInput<Shape, Config["in"]>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:31

Parameters​

data​

unknown

params?​

ParseContext<$ZodIssue>

Returns​

data is $InferObjectInput<Shape, Config["in"]>

Inherited from​

_ZodType.validate


validateAsync()​

validateAsync(data, params?): Promise<boolean>

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:32

Parameters​

data​

unknown

params?​

ParseContext<$ZodIssue>

Returns​

Promise<boolean>

Inherited from​

_ZodType.validateAsync


with()​

with(...checks): this

Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:20

Parameters​

checks​

...(CheckFn<$InferObjectOutput<Shape, Config["out"]>> | $ZodCheck<$InferObjectOutput<Shape, Config["out"]>>)[]

Returns​

this

Inherited from​

_ZodType.with