Interface: ZodCreditCard
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:310
Extends
ZodStringFormat<"credit_card">
Properties
_def
_def:
$ZodStringFormatDef<"credit_card">
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:11
Deprecated
Use .def instead.
Inherited from
_input
_input:
string
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:15
Deprecated
Use z.input<typeof schema> instead.
Inherited from
_output
_output:
string
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:13
Deprecated
Use z.output<typeof schema> instead.
Inherited from
_zod
_zod:
$ZodCreditCardInternals
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:311
Overrides
~standard
~standard:
ZodStandardSchemaWithJSON<ZodCreditCard>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:16
Inherited from
def
def:
$ZodStringFormatDef<"credit_card">
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
format
format:
string|null
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:91
Inherited from
maxLength
maxLength:
number|null
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:93
Inherited from
minLength
minLength:
number|null
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:92
Inherited from
spa()
spa: (
data,params?) =>Promise<ZodSafeParseResult<string>>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:30
Parameters
data
unknown
params?
Returns
Promise<ZodSafeParseResult<string>>
Inherited from
type
type:
"string"
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:9
Inherited from
Methods
and()
and<
T>(incoming):ZodIntersection<ZodCreditCard,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<ZodCreditCard, 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<ZodCreditCard>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:53
Returns
ZodArray<ZodCreditCard>
Inherited from
brand()
brand<
T,Dir>(value?):PropertyKeyextendsT?ZodCreditCard:$ZodBranded<ZodCreditCard,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 ? ZodCreditCard : $ZodBranded<ZodCreditCard, T, Dir>
Inherited from
catch()
Call Signature
catch(
def):ZodCatch<ZodCreditCard>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:57
Parameters
def
string
Returns
ZodCatch<ZodCreditCard>
Inherited from
Call Signature
catch(
def):ZodCatch<ZodCreditCard>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:58
Parameters
def
(ctx) => string
Returns
ZodCatch<ZodCreditCard>
Inherited from
check()
check(...
checks):this
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:19
Parameters
checks
...($ZodCheck<string> | CheckFn<string>)[]
Returns
this
Inherited from
clone()
clone(
def?,params?):this
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:21
Parameters
def?
$ZodStringFormatDef<"credit_card">
params?
parent
boolean
Returns
this
Inherited from
decode()
decode(
data,params?):string
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:34
Parameters
data
string
params?
Returns
string
Inherited from
decodeAsync()
decodeAsync(
data,params?):Promise<string>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:36
Parameters
data
string
params?
Returns
Promise<string>
Inherited from
default()
Call Signature
default(
def):ZodDefault<ZodCreditCard>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:49
Parameters
def
string
Returns
ZodDefault<ZodCreditCard>
Inherited from
Call Signature
default(
def):ZodDefault<ZodCreditCard>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:50
Parameters
def
() => string
Returns
ZodDefault<ZodCreditCard>
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?):string
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:33
Parameters
data
string
params?
Returns
string
Inherited from
encodeAsync()
encodeAsync(
data,params?):Promise<string>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:35
Parameters
data
string
params?
Returns
Promise<string>
Inherited from
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
Inherited from
exactOptional()
exactOptional():
ZodExactOptional<ZodCreditCard>
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:45
Returns
ZodExactOptional<ZodCreditCard>
Inherited from
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
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
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
Inherited from
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
Inherited from
max()
max(
maxLength,params?):this
Defined in: packages/agentos/node_modules/zod/v4/classic/schemas.d.cts:99