/**
 * Universal Response Contracts for Vorion API
 * All API responses MUST conform to these shapes.
 */
// --- Helper Functions ---
export function createSuccessResponse(data, requestId, options) {
    return {
        success: true,
        data,
        meta: {
            requestId,
            timestamp: new Date().toISOString(),
            pagination: options?.pagination,
        },
        trace: options?.trace,
        evidence: options?.evidence,
    };
}
export function createErrorResponse(code, message, requestId, options) {
    return {
        success: false,
        error: {
            code,
            message,
            details: options?.details,
            retryAfter: options?.retryAfter,
        },
        meta: {
            requestId,
            timestamp: new Date().toISOString(),
        },
        trace: options?.trace,
    };
}
export function isErrorResponse(response) {
    return response.success === false;
}
//# sourceMappingURL=output.js.map