Interface: ZodSet<T>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:591
Extends
_ZodType<$ZodSetInternals<T>>.$ZodSet<T>
Type Parameters
T
Properties
_def
_def:
$ZodSetDef<T>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:11
Deprecated
Use .def instead.
Inherited from
_input
_input:
Set<input<T>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:15
Deprecated
Use z.input<typeof schema> instead.
Inherited from
_output
_output:
Set<output<T>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:13
Deprecated
Use z.output<typeof schema> instead.
Inherited from
_zod
_zod:
$ZodSetInternals
Defined in: packages/agentos/node_modules/zod/v4/core/schemas.d.cts:111
Inherited from
~standard
~standard:
ZodStandardSchemaWithJSON<ZodSet<T>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:592
Overrides
def
def:
$ZodSetDef<T>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:8
Inherited from
description?
optionaldescription:string
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:63
Inherited from
spa()
spa: (
data,params?) =>Promise<ZodSafeParseResult<Set<output<T>>>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:30
Parameters
data
unknown
params?
Returns
Promise<ZodSafeParseResult<Set<output<T>>>>
Inherited from
type
type:
"set"
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:9
Inherited from
Methods
and()
and<
T>(incoming):ZodIntersection<ZodSet<T>,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<ZodSet<T>, T>
Inherited from
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
array()
array():
ZodArray<ZodSet<T>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:53
Returns
ZodArray<ZodSet<T>>
Inherited from
brand()
brand<
T,Dir>(value?):PropertyKeyextendsT?ZodSet<T> :$ZodBranded<ZodSet<T>,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 ? ZodSet<T> : $ZodBranded<ZodSet<T>, T, Dir>
Inherited from
catch()
Call Signature
catch(
def):ZodCatch<ZodSet<T>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:57
Parameters
def
Set<output<T>>
Returns
ZodCatch<ZodSet<T>>
Inherited from
Call Signature
catch(
def):ZodCatch<ZodSet<T>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:58
Parameters
def
(ctx) => Set<output<T>>
Returns
ZodCatch<ZodSet<T>>
Inherited from
check()
check(...
checks):this
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:19
Parameters
checks
...(CheckFn<Set<output<T>>> | $ZodCheck<Set<output<T>>>)[]
Returns
this
Inherited from
clone()
clone(
def?,params?):this
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:21
Parameters
def?
$ZodSetDef<T>
params?
parent
boolean
Returns
this
Inherited from
decode()
decode(
data,params?):Set<output<T>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:34
Parameters
data
Set<input<T>>
params?
Returns
Set<output<T>>
Inherited from
decodeAsync()
decodeAsync(
data,params?):Promise<Set<output<T>>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:36
Parameters
data
Set<input<T>>
params?
Returns
Promise<Set<output<T>>>
Inherited from
default()
Call Signature
default(
def):ZodDefault<ZodSet<T>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:49
Parameters
def
Set<output<T>>
Returns
ZodDefault<ZodSet<T>>
Inherited from
Call Signature
default(
def):ZodDefault<ZodSet<T>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:50
Parameters
def
() => Set<output<T>>
Returns
ZodDefault<ZodSet<T>>
Inherited from
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
encode()
encode(
data,params?):Set<input<T>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:33
Parameters
data
Set<output<T>>
params?
Returns
Set<input<T>>
Inherited from
encodeAsync()
encodeAsync(
data,params?):Promise<Set<input<T>>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:35
Parameters
data
Set<output<T>>
params?
Returns
Promise<Set<input<T>>>
Inherited from
exactOptional()
exactOptional():
ZodExactOptional<ZodSet<T>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:45
Returns
ZodExactOptional<ZodSet<T>>
Inherited from
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
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
max()
max(
maxSize,params?):this
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:595
Parameters
maxSize
number
params?
string |
{ abort?: boolean; error?: string | $ZodErrorMap<$ZodIssueTooBig<HasSize>>; message?: string; }
abort?
boolean
If true, no later checks will be executed if this check fails. Default false.
error?
string | $ZodErrorMap<$ZodIssueTooBig<HasSize>>
message?
string
Deprecated
This parameter is deprecated. Use error instead.
Returns
this
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
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
min()
min(
minSize,params?):this
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:593
Parameters
minSize
number
params?
string |
{ abort?: boolean; error?: string | $ZodErrorMap<$ZodIssueTooSmall<HasSize>>; message?: string; }
abort?
boolean
If true, no later checks will be executed if this check fails. Default false.
error?
string | $ZodErrorMap<$ZodIssueTooSmall<HasSize>>
message?
string
Deprecated
This parameter is deprecated. Use error instead.