@mastra/voice-aws-nova-sonic 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/dist/_types/@internal_voice/dist/_types/@internal_ai-sdk-v5/dist/index.d.ts +371 -29
  2. package/dist/_types/@internal_voice/dist/_types/@internal_core/dist/request-context/index.d.ts +35 -1
  3. package/dist/_types/@internal_voice/dist/_types/zod/v3/ZodError.d.ts +1 -1
  4. package/dist/_types/@internal_voice/dist/_types/zod/v4/classic/checks.d.ts +1 -1
  5. package/dist/_types/@internal_voice/dist/_types/zod/v4/classic/compat.d.ts +9 -11
  6. package/dist/_types/@internal_voice/dist/_types/zod/v4/classic/deep-partial.d.ts +14 -0
  7. package/dist/_types/@internal_voice/dist/_types/zod/v4/classic/errors.d.ts +3 -4
  8. package/dist/_types/@internal_voice/dist/_types/zod/v4/classic/external.d.ts +5 -2
  9. package/dist/_types/@internal_voice/dist/_types/zod/v4/classic/in-out.d.ts +8 -0
  10. package/dist/_types/@internal_voice/dist/_types/zod/v4/classic/index.d.ts +1 -2
  11. package/dist/_types/@internal_voice/dist/_types/zod/v4/classic/iso.d.ts +2 -17
  12. package/dist/_types/@internal_voice/dist/_types/zod/v4/classic/parse.d.ts +17 -4
  13. package/dist/_types/@internal_voice/dist/_types/zod/v4/classic/schemas.d.ts +68 -19
  14. package/dist/_types/@internal_voice/dist/_types/zod/v4/core/api.d.ts +22 -12
  15. package/dist/_types/@internal_voice/dist/_types/zod/v4/core/checks.d.ts +29 -13
  16. package/dist/_types/@internal_voice/dist/_types/zod/v4/core/compile.d.ts +65 -0
  17. package/dist/_types/@internal_voice/dist/_types/zod/v4/core/core.d.ts +16 -4
  18. package/dist/_types/@internal_voice/dist/_types/zod/v4/core/doc.d.ts +3 -1
  19. package/dist/_types/@internal_voice/dist/_types/zod/v4/core/errors.d.ts +4 -0
  20. package/dist/_types/@internal_voice/dist/_types/zod/v4/core/index.d.ts +3 -0
  21. package/dist/_types/@internal_voice/dist/_types/zod/v4/core/json-schema-generator.d.ts +2 -2
  22. package/dist/_types/@internal_voice/dist/_types/zod/v4/core/json-schema-processors.d.ts +16 -0
  23. package/dist/_types/@internal_voice/dist/_types/zod/v4/core/json-schema.d.ts +2 -1
  24. package/dist/_types/@internal_voice/dist/_types/zod/v4/core/memoizer.d.ts +15 -0
  25. package/dist/_types/@internal_voice/dist/_types/zod/v4/core/parse.d.ts +14 -11
  26. package/dist/_types/@internal_voice/dist/_types/zod/v4/core/regexes.d.ts +5 -0
  27. package/dist/_types/@internal_voice/dist/_types/zod/v4/core/schemas.d.ts +123 -34
  28. package/dist/_types/@internal_voice/dist/_types/zod/v4/core/to-json-schema.d.ts +45 -5
  29. package/dist/_types/@internal_voice/dist/_types/zod/v4/core/util.d.ts +79 -1
  30. package/dist/_types/@internal_voice/dist/_types/zod/v4/core/versions.d.ts +1 -1
  31. package/dist/_types/@internal_voice/dist/_types/zod/v4/index.d.cts +2 -2
  32. package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/bn.d.ts +4 -0
  33. package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/ckb.d.ts +4 -0
  34. package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/gu.d.ts +4 -0
  35. package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/hi.d.ts +4 -0
  36. package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/index.d.ts +11 -0
  37. package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/kn.d.ts +4 -0
  38. package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/ne.d.ts +4 -0
  39. package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/nn.d.ts +4 -0
  40. package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/pt-BR.d.ts +4 -0
  41. package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/sk.d.ts +4 -0
  42. package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/tg.d.ts +4 -0
  43. package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/tk.d.ts +4 -0
  44. package/dist/_types/@internal_voice/dist/index.d.ts +2 -2
  45. package/dist/_types/@internal_voice/dist/voice/aisdk/speech.d.ts +1 -1
  46. package/dist/_types/@internal_voice/dist/voice/aisdk/transcription.d.ts +1 -1
  47. package/dist/_types/@internal_voice/dist/voice/composite-voice.d.ts +2 -2
  48. package/dist/_types/@internal_voice/dist/voice/voice.d.ts +2 -2
  49. package/dist/_types/@internal_voice/package.json +1 -0
  50. package/dist/docs/SKILL.md +1 -1
  51. package/dist/docs/assets/SOURCE_MAP.json +1 -1
  52. package/dist/docs/references/reference-voice-overview.md +25 -0
  53. package/dist/index.cjs +4 -5
  54. package/dist/index.cjs.map +1 -1
  55. package/dist/index.d.ts +2 -2
  56. package/dist/index.d.ts.map +1 -1
  57. package/dist/index.js +4 -5
  58. package/dist/index.js.map +1 -1
  59. package/package.json +8 -8
  60. package/dist/_types/@internal_voice/dist/_types/zod/v3/index.d.cts +0 -4
@@ -0,0 +1,65 @@
1
+ import type * as core from "./core.js";
2
+ import type { SomeType } from "./schemas.js";
3
+ /** @internal Sentinel the compiled fast path returns when validation fails. */
4
+ export declare const INVALID: unique symbol;
5
+ /** @internal */
6
+ export type INVALID = typeof INVALID;
7
+ interface CompileFnOptions {
8
+ debug?: boolean | undefined;
9
+ /** Emit a validator instead of a parser: skip building the output value where nothing reads it. */
10
+ assertOnly?: boolean | undefined;
11
+ }
12
+ type CompiledFn<T> = ((input: unknown) => T | INVALID) & {
13
+ code?: string | undefined;
14
+ /** False when this function's INVALID does not strictly mean "the runtime would reject". */
15
+ definite?: boolean | undefined;
16
+ };
17
+ /** Raised when the schema contains async refinements or transforms. Surfaces only under `compile(schema, { strict: true })`. */
18
+ export declare class ZodCompileAsyncError extends Error {
19
+ constructor(message?: string);
20
+ }
21
+ /**
22
+ * Raised when the schema contains a feature whose semantics the fast path
23
+ * can't fully model. Both the shim in `zod/compile` and the default
24
+ * `compile()` fall back to the runtime parser for that schema; only
25
+ * `compile(schema, { strict: true })` lets it surface.
26
+ */
27
+ export declare class ZodCompileUnsupportedError extends Error {
28
+ /** Whether a container may absorb this refusal by running the child through the runtime (see `compileChild`). False when running only that node on the runtime is not equivalent to running the whole parse there — a runtime island gets no parse context, so a node that *consumes* issues rather than propagating them would finalize them against the wrong error map and still succeed. */
29
+ readonly islandable: boolean;
30
+ constructor(feature: string, islandable?: boolean);
31
+ }
32
+ export interface CompileOptions {
33
+ /** Throw the refusal instead of returning the schema uncompiled. */
34
+ strict?: boolean | undefined;
35
+ }
36
+ /**
37
+ * AOT-compile a Zod schema. Returns a clone whose `_zod.run` calls a generated
38
+ * fast path first and falls back to the original runtime parser on failure.
39
+ *
40
+ * - Forward direction only. Backward (encode), async, and `skipChecks` paths
41
+ * bypass the fast path and use the runtime directly.
42
+ * - Never throws. A schema the fast path can't model is returned unchanged and
43
+ * keeps using the runtime parser. Pass `{ strict: true }` to get the refusal
44
+ * as a thrown `ZodCompileUnsupportedError` / `ZodCompileAsyncError` instead.
45
+ * - The original schema is unchanged. The clone shares children by reference.
46
+ */
47
+ export declare function compile<T extends SomeType>(schema: T, options?: CompileOptions): T;
48
+ /**
49
+ * Install an already-generated parser as a schema's fast path. Returns a clone; the original is
50
+ * unchanged.
51
+ *
52
+ * The parser takes the input and returns the parsed value, or `INVALID` to hand the parse to the
53
+ * runtime. It must be synchronous and forward-direction, and it must build fresh output rather than
54
+ * return its input — Zod cannot check either, and a wrong *success* is returned to the caller as-is.
55
+ *
56
+ * `compile()` is the ordinary entry point. This is for a build-time or native compiler that produces
57
+ * a parser where `new Function` is unavailable.
58
+ */
59
+ export declare function withParser<T extends SomeType>(schema: T, parser: (input: unknown) => core.output<T> | INVALID): T;
60
+ /**
61
+ * @internal Generate the standalone compiled function: a parser by default, a validator under
62
+ * `assertOnly`. Returns the parsed value, `true` where nothing reads the output, or `INVALID`. Consumers use `compile()`.
63
+ */
64
+ export declare function compileFn<T extends SomeType>(schema: T, options?: CompileFnOptions): CompiledFn<core.output<T>>;
65
+ export {};
@@ -1,6 +1,6 @@
1
1
  import type * as errors from "./errors.js";
2
2
  import type * as schemas from "./schemas.js";
3
- import type { Class } from "./util.js";
3
+ import type { Class, ProtoOf } from "./util.js";
4
4
  type ZodTrait = {
5
5
  _zod: {
6
6
  def: any;
@@ -11,11 +11,14 @@ export interface $constructor<T extends ZodTrait, D = T["_zod"]["def"]> {
11
11
  new (def: D): T;
12
12
  init(inst: T, def: D): asserts inst is T;
13
13
  }
14
+ export interface $constructorParams {
15
+ Parent?: typeof Class;
16
+ }
14
17
  /** A special constant with type `never` */
15
18
  export declare const NEVER: never;
16
- export declare function $constructor<T extends ZodTrait, D = T["_zod"]["def"]>(name: string, initializer: (inst: T, def: D) => void, params?: {
17
- Parent?: typeof Class;
18
- }): $constructor<T, D>;
19
+ export declare function $constructor<T extends ZodTrait, D = T["_zod"]["def"]>(name: string, initializer: (inst: T, def: D) => void,
20
+ /** This trait's members, installed once on every prototype that composes it. They cannot be declared in the initializer above: that runs per instance, and the prototype is shared. */
21
+ proto?: ProtoOf<T>, params?: $constructorParams): $constructor<T, D>;
19
22
  export declare const $brand: unique symbol;
20
23
  export type $brand<T extends string | number | symbol = string | number | symbol> = {
21
24
  [$brand]: {
@@ -65,6 +68,15 @@ export interface $ZodConfig {
65
68
  localeError?: errors.$ZodErrorMap | undefined;
66
69
  /** Disable JIT schema compilation. Useful in environments that disallow `eval`. */
67
70
  jitless?: boolean | undefined;
71
+ /** Enables parsing input that contains reference cycles. Read when a schema is constructed. */
72
+ memoizer?: schemas.$ZodMemoizer | undefined;
73
+ /**
74
+ * Internal: post-processor invoked on every freshly-constructed schema
75
+ * instance, after init and deferred fns run. Set by `import "zod/compile"`
76
+ * to install AOT compilation. Not part of the public API.
77
+ * @internal
78
+ */
79
+ postProcessor?: ((inst: any) => void) | undefined;
68
80
  }
69
81
  export declare const globalConfig: $ZodConfig;
70
82
  export declare function config(newConfig?: Partial<$ZodConfig>): $ZodConfig;
@@ -3,9 +3,11 @@ type ModeWriter = (doc: Doc, modes: {
3
3
  }) => void;
4
4
  export declare class Doc {
5
5
  args: string[];
6
+ /** Bindings the compiled function closes over, by name. */
7
+ closed: Record<string, unknown>;
6
8
  content: string[];
7
9
  indent: number;
8
- constructor(args?: string[]);
10
+ constructor(args?: string[], closed?: Record<string, unknown>);
9
11
  indented(fn: (doc: Doc) => void): void;
10
12
  write(fn: ModeWriter): void;
11
13
  write(line: string): void;
@@ -63,6 +63,8 @@ interface $ZodIssueInvalidUnionMultipleMatch extends $ZodIssueBase {
63
63
  readonly input?: unknown;
64
64
  readonly discriminator?: string | undefined;
65
65
  readonly inclusive: false;
66
+ /** Indices of the options that matched */
67
+ readonly matches: number[];
66
68
  }
67
69
  export type $ZodIssueInvalidUnion = $ZodIssueInvalidUnionNoMatch | $ZodIssueInvalidUnionMultipleMatch;
68
70
  export interface $ZodIssueInvalidKey<Input = unknown> extends $ZodIssueBase {
@@ -120,6 +122,8 @@ type RawIssue<T extends $ZodIssueBase> = T extends any ? util.Flatten<util.MakeP
120
122
  readonly input: unknown;
121
123
  /** The schema or check that originated this issue. */
122
124
  readonly inst?: $ZodType | $ZodCheck;
125
+ /** The schema that owns the issue. Equal to `inst` when a schema originated the issue, and the schema the check was attached to when a check did. */
126
+ readonly schema?: $ZodType | undefined;
123
127
  /** If `true`, Zod will continue executing checks/refinements after this issue. */
124
128
  readonly continue?: boolean | undefined;
125
129
  } & Record<string, unknown>> : never;
@@ -2,13 +2,16 @@ export * from "./core.js";
2
2
  export * from "./parse.js";
3
3
  export * from "./errors.js";
4
4
  export * from "./schemas.js";
5
+ export * from "./memoizer.js";
5
6
  export * from "./checks.js";
6
7
  export * from "./versions.js";
7
8
  export * as util from "./util.js";
9
+ export { toZod } from "./util.js";
8
10
  export * as regexes from "./regexes.js";
9
11
  export * as locales from "../locales/index.js";
10
12
  export * from "./registries.js";
11
13
  export * from "./doc.js";
14
+ export * from "./compile.js";
12
15
  export * from "./api.js";
13
16
  export * from "./to-json-schema.js";
14
17
  export { toJSONSchema } from "./json-schema-processors.js";
@@ -1,7 +1,7 @@
1
1
  import type * as JSONSchema from "./json-schema.js";
2
2
  import type { $ZodRegistry } from "./registries.js";
3
3
  import type * as schemas from "./schemas.js";
4
- import { type JSONSchemaGeneratorParams, type ProcessParams, type Seen } from "./to-json-schema.js";
4
+ import { type JSONSchemaGeneratorParams, type ProcessParams, type Seen, type ToJSONSchemaContext } from "./to-json-schema.js";
5
5
  /**
6
6
  * Parameters for the emit method of JSONSchemaGenerator.
7
7
  * @deprecated Use toJSONSchema function instead
@@ -36,7 +36,7 @@ export declare class JSONSchemaGenerator {
36
36
  /** @deprecated Access via ctx instead */
37
37
  get target(): ({} & string) | "draft-2020-12" | "draft-07" | "openapi-3.0" | "draft-04";
38
38
  /** @deprecated Access via ctx instead */
39
- get unrepresentable(): "any" | "throw";
39
+ get unrepresentable(): ToJSONSchemaContext["unrepresentable"];
40
40
  /** @deprecated Access via ctx instead */
41
41
  get override(): (ctx: {
42
42
  zodSchema: schemas.$ZodType;
@@ -1,6 +1,21 @@
1
1
  import type { $ZodRegistry } from "./registries.js";
2
2
  import type * as schemas from "./schemas.js";
3
3
  import { type Processor, type RegistryToJSONSchemaParams, type ToJSONSchemaParams, type ZodStandardJSONSchemaPayload } from "./to-json-schema.js";
4
+ type Bound = number | bigint | Date;
5
+ interface CheckAggregate<N extends Bound = Bound> {
6
+ minimum?: N;
7
+ maximum?: N;
8
+ exclusiveMinimum?: N;
9
+ exclusiveMaximum?: N;
10
+ multipleOf?: number[];
11
+ format?: string;
12
+ isInt?: boolean;
13
+ patterns?: Set<RegExp>;
14
+ mime?: string[];
15
+ contentEncoding?: string;
16
+ laxFormat?: boolean;
17
+ }
18
+ export declare function aggregateChecks<N extends Bound = Bound>(schema: schemas.$ZodType): CheckAggregate<N>;
4
19
  export declare const stringProcessor: Processor<schemas.$ZodString>;
5
20
  export declare const numberProcessor: Processor<schemas.$ZodNumber>;
6
21
  export declare const booleanProcessor: Processor<schemas.$ZodBoolean>;
@@ -47,3 +62,4 @@ export declare function toJSONSchema(registry: $ZodRegistry<{
47
62
  }>, params?: RegistryToJSONSchemaParams): {
48
63
  schemas: Record<string, ZodStandardJSONSchemaPayload<schemas.$ZodType>>;
49
64
  };
65
+ export {};
@@ -1,5 +1,6 @@
1
1
  export type Schema = ObjectSchema | ArraySchema | StringSchema | NumberSchema | IntegerSchema | BooleanSchema | NullSchema;
2
2
  export type _JSONSchema = boolean | JSONSchema;
3
+ export type SchemaType = "object" | "array" | "string" | "number" | "boolean" | "null" | "integer";
3
4
  export type JSONSchema = {
4
5
  [k: string]: unknown;
5
6
  $schema?: "https://json-schema.org/draft/2020-12/schema" | "http://json-schema.org/draft-07/schema#" | "http://json-schema.org/draft-04/schema#";
@@ -11,7 +12,7 @@ export type JSONSchema = {
11
12
  $vocabulary?: Record<string, boolean>;
12
13
  $comment?: string;
13
14
  $defs?: Record<string, JSONSchema>;
14
- type?: "object" | "array" | "string" | "number" | "boolean" | "null" | "integer";
15
+ type?: SchemaType | SchemaType[];
15
16
  additionalItems?: _JSONSchema;
16
17
  unevaluatedItems?: _JSONSchema;
17
18
  prefixItems?: _JSONSchema[];
@@ -0,0 +1,15 @@
1
+ import type { $ZodMemoizer, $ZodType } from "./schemas.js";
2
+ export declare class $ZodCyclicError extends Error {
3
+ constructor();
4
+ }
5
+ /**
6
+ * Whether one parse can re-enter this schema, i.e. its subtree contains a cycle.
7
+ * Exported for `z.compile`, which refuses to compile such a schema: cycle
8
+ * breaking is driven from here off state keyed on the parse context, and a
9
+ * generated fast path has no context to key on.
10
+ */
11
+ export declare function isRecursiveSchema(inst: $ZodType): boolean;
12
+ /** The memoizer that gives containers cycle support. `zod` installs it by default; `zod/mini` opts in with `config({ memoizer: memoizer() })`. */
13
+ export declare function memoizer(): $ZodMemoizer;
14
+ /** Whether this value is a node a back-edge resolved to before it finished. */
15
+ export declare function isBackEdge(ctx: object, value: unknown): boolean;
@@ -5,16 +5,14 @@ import * as util from "./util.js";
5
5
  export type $ZodErrorClass = {
6
6
  new (issues: errors.$ZodIssue[]): errors.$ZodError;
7
7
  };
8
- export type $Parse = <T extends schemas.$ZodType>(schema: T, value: unknown, _ctx?: schemas.ParseContext<errors.$ZodIssue>, _params?: {
8
+ type $ParseParams = {
9
9
  callee?: util.AnyFunc;
10
- Err?: $ZodErrorClass;
11
- }) => core.output<T>;
10
+ Err?: $ZodErrorClass | undefined;
11
+ };
12
+ export type $Parse = <T extends schemas.$ZodType>(schema: T, value: unknown, _ctx?: schemas.ParseContext<errors.$ZodIssue>, _params?: $ParseParams) => core.output<T>;
12
13
  export declare const _parse: (_Err: $ZodErrorClass) => $Parse;
13
14
  export declare const parse: $Parse;
14
- export type $ParseAsync = <T extends schemas.$ZodType>(schema: T, value: unknown, _ctx?: schemas.ParseContext<errors.$ZodIssue>, _params?: {
15
- callee?: util.AnyFunc;
16
- Err?: $ZodErrorClass;
17
- }) => Promise<core.output<T>>;
15
+ export type $ParseAsync = <T extends schemas.$ZodType>(schema: T, value: unknown, _ctx?: schemas.ParseContext<errors.$ZodIssue>, _params?: $ParseParams) => Promise<core.output<T>>;
18
16
  export declare const _parseAsync: (_Err: $ZodErrorClass) => $ParseAsync;
19
17
  export declare const parseAsync: $ParseAsync;
20
18
  export type $SafeParse = <T extends schemas.$ZodType>(schema: T, value: unknown, _ctx?: schemas.ParseContext<errors.$ZodIssue>) => util.SafeParseResult<core.output<T>>;
@@ -23,16 +21,20 @@ export declare const safeParse: $SafeParse;
23
21
  export type $SafeParseAsync = <T extends schemas.$ZodType>(schema: T, value: unknown, _ctx?: schemas.ParseContext<errors.$ZodIssue>) => Promise<util.SafeParseResult<core.output<T>>>;
24
22
  export declare const _safeParseAsync: (_Err: $ZodErrorClass) => $SafeParseAsync;
25
23
  export declare const safeParseAsync: $SafeParseAsync;
26
- export type $Encode = <T extends schemas.$ZodType>(schema: T, value: core.output<T>, _ctx?: schemas.ParseContext<errors.$ZodIssue>) => core.input<T>;
24
+ export type $Validate = <T extends schemas.$ZodType>(schema: T, value: unknown, _ctx?: schemas.ParseContext<errors.$ZodIssue>) => value is core.input<T>;
25
+ export declare const validate: $Validate;
26
+ export type $ValidateAsync = <T extends schemas.$ZodType>(schema: T, value: unknown, _ctx?: schemas.ParseContext<errors.$ZodIssue>) => Promise<boolean>;
27
+ export declare const validateAsync: $ValidateAsync;
28
+ export type $Encode = <T extends schemas.$ZodType>(schema: T, value: core.output<T>, _ctx?: schemas.ParseContext<errors.$ZodIssue>, _params?: $ParseParams) => core.input<T>;
27
29
  export declare const _encode: (_Err: $ZodErrorClass) => $Encode;
28
30
  export declare const encode: $Encode;
29
- export type $Decode = <T extends schemas.$ZodType>(schema: T, value: core.input<T>, _ctx?: schemas.ParseContext<errors.$ZodIssue>) => core.output<T>;
31
+ export type $Decode = <T extends schemas.$ZodType>(schema: T, value: core.input<T>, _ctx?: schemas.ParseContext<errors.$ZodIssue>, _params?: $ParseParams) => core.output<T>;
30
32
  export declare const _decode: (_Err: $ZodErrorClass) => $Decode;
31
33
  export declare const decode: $Decode;
32
- export type $EncodeAsync = <T extends schemas.$ZodType>(schema: T, value: core.output<T>, _ctx?: schemas.ParseContext<errors.$ZodIssue>) => Promise<core.input<T>>;
34
+ export type $EncodeAsync = <T extends schemas.$ZodType>(schema: T, value: core.output<T>, _ctx?: schemas.ParseContext<errors.$ZodIssue>, _params?: $ParseParams) => Promise<core.input<T>>;
33
35
  export declare const _encodeAsync: (_Err: $ZodErrorClass) => $EncodeAsync;
34
36
  export declare const encodeAsync: $EncodeAsync;
35
- export type $DecodeAsync = <T extends schemas.$ZodType>(schema: T, value: core.input<T>, _ctx?: schemas.ParseContext<errors.$ZodIssue>) => Promise<core.output<T>>;
37
+ export type $DecodeAsync = <T extends schemas.$ZodType>(schema: T, value: core.input<T>, _ctx?: schemas.ParseContext<errors.$ZodIssue>, _params?: $ParseParams) => Promise<core.output<T>>;
36
38
  export declare const _decodeAsync: (_Err: $ZodErrorClass) => $DecodeAsync;
37
39
  export declare const decodeAsync: $DecodeAsync;
38
40
  export type $SafeEncode = <T extends schemas.$ZodType>(schema: T, value: core.output<T>, _ctx?: schemas.ParseContext<errors.$ZodIssue>) => util.SafeParseResult<core.input<T>>;
@@ -47,3 +49,4 @@ export declare const safeEncodeAsync: $SafeEncodeAsync;
47
49
  export type $SafeDecodeAsync = <T extends schemas.$ZodType>(schema: T, value: core.input<T>, _ctx?: schemas.ParseContext<errors.$ZodIssue>) => Promise<util.SafeParseResult<core.output<T>>>;
48
50
  export declare const _safeDecodeAsync: (_Err: $ZodErrorClass) => $SafeDecodeAsync;
49
51
  export declare const safeDecodeAsync: $SafeDecodeAsync;
52
+ export {};
@@ -9,6 +9,7 @@ export declare const ulid: RegExp;
9
9
  export declare const xid: RegExp;
10
10
  export declare const ksuid: RegExp;
11
11
  export declare const nanoid: RegExp;
12
+ export declare function nanoidOfLength(length: number): RegExp;
12
13
  /** ISO 8601-1 duration regex. Does not support the 8601-2 extensions like negative durations or fractional/negative components. */
13
14
  export declare const duration: RegExp;
14
15
  /** Implements ISO 8601-2 extensions like explicit +- prefixes, mixing weeks with other units, and fractional/negative components. */
@@ -44,6 +45,9 @@ export declare const hostname: RegExp;
44
45
  export declare const domain: RegExp;
45
46
  export declare const httpProtocol: RegExp;
46
47
  export declare const e164: RegExp;
48
+ export declare const creditCard: RegExp;
49
+ export declare const currencyCode: RegExp;
50
+ export declare const iban: RegExp;
47
51
  export declare const date: RegExp;
48
52
  export declare function time(args: {
49
53
  precision?: number | null;
@@ -53,6 +57,7 @@ export declare function datetime(args: {
53
57
  offset?: boolean;
54
58
  local?: boolean;
55
59
  }): RegExp;
60
+ export declare const anyString: RegExp;
56
61
  export declare const string: (params?: {
57
62
  minimum?: number | undefined;
58
63
  maximum?: number | undefined;