@rendley/sdk - v1.12.7
    Preparing search index...

    Class ZodObject<T, UnknownKeys, Catchall, Output, Input>

    Type Parameters

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _input: Input
    _output: Output
    _type: Output
    augment: <Augmentation extends Zod.ZodRawShape>(
        augmentation: Augmentation,
    ) => Zod.ZodObject<
        {
            [k in string
            | number
            | symbol]: (Omit<T, keyof Augmentation> & Augmentation)[k]
        },
        UnknownKeys,
        Catchall,
        Zod.objectOutputType<
            {
                [k in string
                | number
                | symbol]: (Omit<T, keyof Augmentation> & Augmentation)[k]
            },
            Catchall,
            UnknownKeys,
        >,
        Zod.objectInputType<
            {
                [k in string
                | number
                | symbol]: (Omit<T, keyof Augmentation> & Augmentation)[k]
            },
            Catchall,
            UnknownKeys,
        >,
    >

    Use .extend instead

    nonstrict: () => Zod.ZodObject<T, "passthrough", Catchall>

    In most cases, this is no longer needed - unknown properties are now silently stripped. If you want to pass through unknown properties, use .passthrough() instead.

    spa: (
        data: unknown,
        params?: Partial<Zod.ParseParams>,
    ) => Promise<Zod.SafeParseReturnType<Input, Output>>

    Alias of safeParseAsync

    create: <T_1 extends Zod.ZodRawShape>(
        shape: T_1,
        params?: Zod.RawCreateParams,
    ) => Zod.ZodObject<
        T_1,
        "strip",
        Zod.ZodTypeAny,
        {
            [k_1 in string
            | number
            | symbol]: addQuestionMarks<
                Zod.baseObjectOutputType<T_1>,
                {
                    [k in string | number | symbol]: undefined extends Zod.baseObjectOutputType<
                        T_1,
                    >[k]
                        ? never
                        : k
                }[keyof T_1],
            >[k_1]
        },
        { [k_2 in string
        | number
        | symbol]: Zod.baseObjectInputType<T_1>[k_2] },
    >
    lazycreate: <T_1 extends Zod.ZodRawShape>(
        shape: () => T_1,
        params?: Zod.RawCreateParams,
    ) => Zod.ZodObject<
        T_1,
        "strip",
        Zod.ZodTypeAny,
        {
            [k_1 in string
            | number
            | symbol]: addQuestionMarks<
                Zod.baseObjectOutputType<T_1>,
                {
                    [k in string | number | symbol]: undefined extends Zod.baseObjectOutputType<
                        T_1,
                    >[k]
                        ? never
                        : k
                }[keyof T_1],
            >[k_1]
        },
        { [k_2 in string
        | number
        | symbol]: Zod.baseObjectInputType<T_1>[k_2] },
    >
    strictCreate: <T_1 extends Zod.ZodRawShape>(
        shape: T_1,
        params?: Zod.RawCreateParams,
    ) => Zod.ZodObject<
        T_1,
        "strict",
        Zod.ZodTypeAny,
        {
            [k_1 in string
            | number
            | symbol]: addQuestionMarks<
                Zod.baseObjectOutputType<T_1>,
                {
                    [k in string | number | symbol]: undefined extends Zod.baseObjectOutputType<
                        T_1,
                    >[k]
                        ? never
                        : k
                }[keyof T_1],
            >[k_1]
        },
        { [k_2 in string
        | number
        | symbol]: Zod.baseObjectInputType<T_1>[k_2] },
    >

    Accessors

    • get description(): undefined | string

      Returns undefined | string

    • get shape(): T

      Returns T

    Methods

    • Returns { keys: string[]; shape: T }

    • Parameters

      • description: string

      Returns this

    • Returns Zod.ZodEnum<CastToStringTuple<UnionToTuple<keyof T, []>>>

    • Returns Zod.ZodObject<
          { [k in string
          | number
          | symbol]: Zod.ZodOptional<T[k]> },
          UnknownKeys,
          Catchall,
      >

    • Type Parameters

      • Mask extends { [k in string | number | symbol]?: true }

      Parameters

      Returns Zod.ZodObject<
          {
              [k in string
              | number
              | symbol]: k extends keyof T
                  ? {
                      [k in string | number | symbol]: k extends keyof Mask
                          ? Zod.ZodOptional<T[k<k>]>
                          : T[k]
                  }[k<k>]
                  : never
          },
          UnknownKeys,
          Catchall,
      >

    • Returns Zod.ZodObject<
          { [k in string
          | number
          | symbol]: Zod.deoptional<T[k]> },
          UnknownKeys,
          Catchall,
      >

    • Type Parameters

      • Mask extends { [k in string | number | symbol]?: true }

      Parameters

      Returns Zod.ZodObject<
          {
              [k in string
              | number
              | symbol]: k extends keyof T
                  ? {
                      [k in string | number | symbol]: k extends keyof Mask
                          ? Zod.deoptional<T[k<k>]>
                          : T[k]
                  }[k<k>]
                  : never
          },
          UnknownKeys,
          Catchall,
      >