Vana SDK - v2.2.2
    Preparing search index...

    Interface GenericResponse<TData, TMeta>

    Represents a standardized response structure for SDK operations.

    Provides consistent response handling with success/error states and optional metadata for additional context.

    interface GenericResponse<TData = unknown, TMeta = unknown> {
        data: TData;
        meta?: TMeta;
        success: boolean;
        error?: { code: string; message: string; details?: unknown };
    }

    Type Parameters

    • TData = unknown

      Type of response data

    • TMeta = unknown

      Type of response metadata

    Index

    Properties

    data: TData

    Response data

    meta?: TMeta

    Response metadata

    success: boolean

    Success status

    error?: { code: string; message: string; details?: unknown }

    Error information if not successful