UNPKG

sjursen-digital-watchtower

Version:

A TypeScript Node.js SDK for Watchtower, an Intelligence as a Service (IaaS) platform that uses Google's Gemini AI model to transform traditional logging into an active intelligence system with predictive analytics and automated decision-making capabiliti

36 lines (31 loc) 817 B
export class WatchtowerError extends Error { constructor(message: string) { super(message); this.name = 'WatchtowerError'; } } export class InvalidRequestError extends WatchtowerError { constructor(message: string) { super(message); this.name = 'InvalidRequestError'; } } export class AuthenticationError extends WatchtowerError { constructor(message: string) { super(message); this.name = 'AuthenticationError'; } } export class NotFoundError extends WatchtowerError { constructor(message: string) { super(message); this.name = 'NotFoundError'; } } export class ServerError extends WatchtowerError { constructor(message: string) { super(message); this.name = 'ServerError'; } } export const BATCH_SIZE_LIMIT = 1000;