Skip to main content

Interface: _ZodString<T>

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

Extends​

Extended by​

Type Parameters​

T​

T extends $ZodStringInternals<unknown> = $ZodStringInternals<unknown>

Properties​

_def​

_def: T["def"]

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

Deprecated​

Use .def instead.

Inherited from​

_ZodType._def


_input​

_input: T["input"]

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: T["output"]

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

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

Inherited from​

_ZodType._zod


~standard​

~standard: ZodStandardSchemaWithJSON<_ZodString<T>>

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

Inherited from​

_ZodType.~standard


def​

def: T["def"]

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


format​

format: string | null

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


maxLength​

maxLength: number | null

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


minLength​

minLength: number | null

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


spa()​

spa: (data, params?) => Promise<ZodSafeParseResult<output<_ZodString<T>>>>

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

Parameters​

data​

unknown

params?​

ParseContext<$ZodIssue>

Returns​

Promise<ZodSafeParseResult<output<_ZodString<T>>>>

Inherited from​

_ZodType.spa


type​

type: T["def"]["type"]

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

Inherited from​

_ZodType.type

Methods​

and()​

and<T>(incoming): ZodIntersection<_ZodString<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<_ZodString<T>, 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<_ZodString<T>>

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

Returns​

ZodArray<_ZodString<T>>

Inherited from​

_ZodType.array


brand()​

brand<T, Dir>(value?): PropertyKey extends T ? _ZodString<T> : $ZodBranded<_ZodString<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 ? _ZodString<T> : $ZodBranded<_ZodString<T>, T, Dir>

Inherited from​

_ZodType.brand


catch()​

Call Signature​

catch(def): ZodCatch<_ZodString<T>>

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

Parameters​
def​

output<_ZodString<T>>

Returns​

ZodCatch<_ZodString<T>>

Inherited from​

_ZodType.catch

Call Signature​

catch(def): ZodCatch<_ZodString<T>>

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

Parameters​
def​

(ctx) => output<_ZodString<T>>

Returns​

ZodCatch<_ZodString<T>>

Inherited from​

_ZodType.catch


check()​

check(...checks): this

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

Parameters​

checks​

...(CheckFn<output<_ZodString<T>>> | $ZodCheck<output<_ZodString<T>>>)[]

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

T["def"]

params?​
parent​

boolean

Returns​

this

Inherited from​

_ZodType.clone


decode()​

decode(data, params?): output<_ZodString<T>>

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

Parameters​

data​

input<_ZodString<T>>

params?​

ParseContext<$ZodIssue>

Returns​

output<_ZodString<T>>

Inherited from​

_ZodType.decode


decodeAsync()​

decodeAsync(data, params?): Promise<output<_ZodString<T>>>

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

Parameters​

data​

input<_ZodString<T>>

params?​

ParseContext<$ZodIssue>

Returns​

Promise<output<_ZodString<T>>>

Inherited from​

_ZodType.decodeAsync


default()​

Call Signature​

default(def): ZodDefault<_ZodString<T>>

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

Parameters​
def​

NoUndefined<output<_ZodString<T>>>

Returns​

ZodDefault<_ZodString<T>>

Inherited from​

_ZodType.default

Call Signature​

default(def): ZodDefault<_ZodString<T>>

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

Parameters​
def​

() => NoUndefined<output<_ZodString<T>>>

Returns​

ZodDefault<_ZodString<T>>

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?): input<_ZodString<T>>

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

Parameters​

data​

output<_ZodString<T>>

params?​

ParseContext<$ZodIssue>

Returns​

input<_ZodString<T>>

Inherited from​

_ZodType.encode


encodeAsync()​

encodeAsync(data, params?): Promise<input<_ZodString<T>>>

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

Parameters​

data​

output<_ZodString<T>>

params?​

ParseContext<$ZodIssue>

Returns​

Promise<input<_ZodString<T>>>

Inherited from​

_ZodType.encodeAsync


endsWith()​

endsWith(value, params?): this

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

Parameters​

value​

string

params?​

string |

{ abort?: boolean; error?: string | $ZodErrorMap<$ZodIssueInvalidStringFormat>; message?: string; }

abort?​

boolean

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

error?​

string | $ZodErrorMap<$ZodIssueInvalidStringFormat>

message?​

string

Deprecated

This parameter is deprecated. Use error instead.

Returns​

this


exactOptional()​

exactOptional(): ZodExactOptional<_ZodString<T>>

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

Returns​

ZodExactOptional<_ZodString<T>>

Inherited from​

_ZodType.exactOptional


includes()​

includes(value, params?): this

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

Parameters​

value​

string

params?​

string |

{ abort?: boolean; error?: string | $ZodErrorMap<$ZodIssueInvalidStringFormat>; message?: string; position?: number; }

abort?​

boolean

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

error?​

string | $ZodErrorMap<$ZodIssueInvalidStringFormat>

message?​

string

Deprecated

This parameter is deprecated. Use error instead.

position?​

number

Returns​

this


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


length()​

length(len, params?): this

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

Parameters​

len​

number

params?​

string |

{ abort?: boolean; error?: string | $ZodErrorMap<NonNullable<$ZodIssueTooSmall<HasLength> | $ZodIssueTooBig<HasLength>>>; message?: string; }

abort?​

boolean

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

error?​

string | $ZodErrorMap<NonNullable<$ZodIssueTooSmall<HasLength> | $ZodIssueTooBig<HasLength>>>

message?​

string

Deprecated

This parameter is deprecated. Use error instead.

Returns​

this


lowercase()​

lowercase(params?): this

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

Parameters​

params?​

string |

{ abort?: boolean; error?: string | $ZodErrorMap<$ZodIssueInvalidStringFormat>; message?: string; pattern?: RegExp; }

abort?​

boolean

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

error?​

string | $ZodErrorMap<$ZodIssueInvalidStringFormat>

message?​

string

Deprecated

This parameter is deprecated. Use error instead.

pattern?​

RegExp

Returns​

this


max()​

max(maxLength, params?): this

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

Parameters​

maxLength​

number

params?​

string |

{ abort?: boolean; error?: string | $ZodErrorMap<$ZodIssueTooBig<HasLength>>; message?: string; }

abort?​

boolean

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

error?​

string | $ZodErrorMap<$ZodIssueTooBig<HasLength>>

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​

_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


min()​

min(minLength, params?): this

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

Parameters​

minLength​

number

params?​

string |

{ abort?: boolean; error?: string | $ZodErrorMap<$ZodIssueTooSmall<HasLength>>; message?: string; }

abort?​

boolean

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

error?​

string | $ZodErrorMap<$ZodIssueTooSmall<HasLength>>

message?​

string

Deprecated

This parameter is deprecated. Use error instead.

Returns​

this


nonempty()​

nonempty(params?): this

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

Parameters​

params?​

string |

{ abort?: boolean; error?: string | $ZodErrorMap<$ZodIssueTooSmall<HasLength>>; message?: string; }

abort?​

boolean

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

error?​

string | $ZodErrorMap<$ZodIssueTooSmall<HasLength>>

message?​

string

Deprecated

This parameter is deprecated. Use error instead.

Returns​

this


nonoptional()​

nonoptional(params?): ZodNonOptional<_ZodString<T>>

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<_ZodString<T>>

Inherited from​

_ZodType.nonoptional


normalize()​

normalize(form?): this

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

Parameters​

form?​

string & object | "NFC" | "NFD" | "NFKC" | "NFKD"

Returns​

this


nullable()​

nullable(): ZodNullable<_ZodString<T>>

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

Returns​

ZodNullable<_ZodString<T>>

Inherited from​

_ZodType.nullable


nullish()​

nullish(): ZodOptional<ZodNullable<_ZodString<T>>>

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

Returns​

ZodOptional<ZodNullable<_ZodString<T>>>

Inherited from​

_ZodType.nullish


optional()​

optional(): ZodOptional<_ZodString<T>>

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

Returns​

ZodOptional<_ZodString<T>>

Inherited from​

_ZodType.optional


or()​

or<T>(option): ZodUnion<[_ZodString<T>, 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<[_ZodString<T>, 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) => output<_ZodString<T>>

Returns​

this

Inherited from​

_ZodType.overwrite


parse()​

parse(data, params?): output<_ZodString<T>>

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

Parameters​

data​

unknown

params?​

ParseContext<$ZodIssue>

Returns​

output<_ZodString<T>>

Inherited from​

_ZodType.parse


parseAsync()​

parseAsync(data, params?): Promise<output<_ZodString<T>>>

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

Parameters​

data​

unknown

params?​

ParseContext<$ZodIssue>

Returns​

Promise<output<_ZodString<T>>>

Inherited from​

_ZodType.parseAsync


pipe()​

pipe<T>(target): ZodPipe<_ZodString<T>, T>

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

Type Parameters​

T​

T extends $ZodType<any, output<_ZodString<T>>, $ZodTypeInternals<any, output<_ZodString<T>>>>

Parameters​

target​

T | $ZodType<any, output<_ZodString<T>>, $ZodTypeInternals<any, output<_ZodString<T>>>>

Returns​

ZodPipe<_ZodString<T>, T>

Inherited from​

_ZodType.pipe


prefault()​

Call Signature​

prefault(def): ZodPrefault<_ZodString<T>>

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

Parameters​
def​

() => input<_ZodString<T>>

Returns​

ZodPrefault<_ZodString<T>>

Inherited from​

_ZodType.prefault

Call Signature​

prefault(def): ZodPrefault<_ZodString<T>>

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

Parameters​
def​

input<_ZodString<T>>

Returns​

ZodPrefault<_ZodString<T>>

Inherited from​

_ZodType.prefault


readonly()​

readonly(): ZodReadonly<_ZodString<T>>

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

Returns​

ZodReadonly<_ZodString<T>>

Inherited from​

_ZodType.readonly


refine()​

refine<Ch>(check, params?): Ch extends (arg) => arg is R ? _ZodString<T> & ZodType<R, input<_ZodString<T>>, $ZodTypeInternals<R, input<_ZodString<T>>>> : _ZodString<T>

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 ? _ZodString<T> & ZodType<R, input<_ZodString<T>>, $ZodTypeInternals<R, input<_ZodString<T>>>> : _ZodString<T>

Inherited from​

_ZodType.refine


regex()​

regex(regex, params?): this

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

Parameters​

regex​

RegExp

params?​

string |

{ abort?: boolean; error?: string | $ZodErrorMap<$ZodIssueInvalidStringFormat>; message?: string; }

abort?​

boolean

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

error?​

string | $ZodErrorMap<$ZodIssueInvalidStringFormat>

message?​

string

Deprecated

This parameter is deprecated. Use error instead.

Returns​

this


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​

..._ZodString<T> extends R["_schema"] ? undefined extends R["_meta"] ? [$replace<R["_meta"], R["_schema"] & _ZodString<T>>?] : [$replace<R["_meta"], R["_schema"] & _ZodString<T>>] : ["Incompatible schema"]

Returns​

this

Inherited from​

_ZodType.register


safeDecode()​

safeDecode(data, params?): ZodSafeParseResult<output<_ZodString<T>>>

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

Parameters​

data​

input<_ZodString<T>>

params?​

ParseContext<$ZodIssue>

Returns​

ZodSafeParseResult<output<_ZodString<T>>>

Inherited from​

_ZodType.safeDecode


safeDecodeAsync()​

safeDecodeAsync(data, params?): Promise<ZodSafeParseResult<output<_ZodString<T>>>>

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

Parameters​

data​

input<_ZodString<T>>

params?​

ParseContext<$ZodIssue>

Returns​

Promise<ZodSafeParseResult<output<_ZodString<T>>>>

Inherited from​

_ZodType.safeDecodeAsync


safeEncode()​

safeEncode(data, params?): ZodSafeParseResult<input<_ZodString<T>>>

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

Parameters​

data​

output<_ZodString<T>>

params?​

ParseContext<$ZodIssue>

Returns​

ZodSafeParseResult<input<_ZodString<T>>>

Inherited from​

_ZodType.safeEncode


safeEncodeAsync()​

safeEncodeAsync(data, params?): Promise<ZodSafeParseResult<input<_ZodString<T>>>>

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

Parameters​

data​

output<_ZodString<T>>

params?​

ParseContext<$ZodIssue>

Returns​

Promise<ZodSafeParseResult<input<_ZodString<T>>>>

Inherited from​

_ZodType.safeEncodeAsync


safeParse()​

safeParse(data, params?): ZodSafeParseResult<output<_ZodString<T>>>

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

Parameters​

data​

unknown

params?​

ParseContext<$ZodIssue>

Returns​

ZodSafeParseResult<output<_ZodString<T>>>

Inherited from​

_ZodType.safeParse


safeParseAsync()​

safeParseAsync(data, params?): Promise<ZodSafeParseResult<output<_ZodString<T>>>>

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

Parameters​

data​

unknown

params?​

ParseContext<$ZodIssue>

Returns​

Promise<ZodSafeParseResult<output<_ZodString<T>>>>

Inherited from​

_ZodType.safeParseAsync


slugify()​

slugify(): this

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

Returns​

this


startsWith()​

startsWith(value, params?): this

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

Parameters​

value​

string

params?​

string |

{ abort?: boolean; error?: string | $ZodErrorMap<$ZodIssueInvalidStringFormat>; message?: string; }

abort?​

boolean

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

error?​

string | $ZodErrorMap<$ZodIssueInvalidStringFormat>

message?​

string

Deprecated

This parameter is deprecated. Use error instead.

Returns​

this


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<_ZodString<T>>

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<_ZodString<T>>

Inherited from​

_ZodType.toJSONSchema


toLowerCase()​

toLowerCase(): this

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

Returns​

this


toUpperCase()​

toUpperCase(): this

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

Returns​

this


transform()​

transform<NewOut>(transform): ZodPipe<_ZodString<T>, ZodTransform<Awaited<NewOut>, output<_ZodString<T>>>>

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<_ZodString<T>, ZodTransform<Awaited<NewOut>, output<_ZodString<T>>>>

Inherited from​

_ZodType.transform


trim()​

trim(): this

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

Returns​

this


uppercase()​

uppercase(params?): this

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

Parameters​

params?​

string |

{ abort?: boolean; error?: string | $ZodErrorMap<$ZodIssueInvalidStringFormat>; message?: string; pattern?: RegExp; }

abort?​

boolean

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

error?​

string | $ZodErrorMap<$ZodIssueInvalidStringFormat>

message?​

string

Deprecated

This parameter is deprecated. Use error instead.

pattern?​

RegExp

Returns​

this


validate()​

validate(data, params?): data is input<_ZodString<T>>

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

Parameters​

data​

unknown

params?​

ParseContext<$ZodIssue>

Returns​

data is input<_ZodString<T>>

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<output<_ZodString<T>>> | $ZodCheck<output<_ZodString<T>>>)[]

Returns​

this

Inherited from​

_ZodType.with