UNPKG

watchtower-node-sdk

Version:

A TypeScript Node.js SDK for the Watchtower API, providing API key management, connection string generation, and more

27 lines (24 loc) 770 B
import { AnalysisResult } from '../analyze/types'; export interface PDFExportRequest { organization_apikey: string; app_apikey: string; tenant_apikey?: string; item_id: string; format?: 'A4' | 'Letter'; include_charts?: boolean; include_tables?: boolean; } export interface PDFExportResponse { pdf_data: string; // Base64 encoded PDF data created_at: string; // ISO date string page_count: number; analysis: AnalysisResult; // The analysis data used to generate the PDF } export interface PDFExportStatus { export_id: string; status: 'pending' | 'processing' | 'completed' | 'failed'; progress: number; created_at: string; // ISO date string completed_at?: string; // ISO date string error?: string; }