npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@llm-dev-ops/incident-manager-types

v1.0.1

Published

TypeScript type definitions for LLM Incident Manager - Enterprise-grade incident management system

Readme

@llm-dev-ops/incident-manager-types

TypeScript type definitions for the LLM Incident Manager - Enterprise-grade incident management system for LLM operations.

Installation

npm install @llm-dev-ops/incident-manager-types

Or with yarn:

yarn add @llm-dev-ops/incident-manager-types

Usage

import {
  Incident,
  Severity,
  IncidentStatus,
  CreateIncidentRequest,
  EscalationPolicy,
  NotificationTemplate,
  RawEvent,
  LLMRequest,
  LLMResponse
} from '@llm-dev-ops/incident-manager-types';

// Create an incident event
const event: RawEvent = {
  event_id: 'evt-123',
  source: 'llm-sentinel',
  source_version: '1.0.0',
  timestamp: new Date().toISOString(),
  event_type: 'anomaly',
  category: 'performance',
  title: 'High Latency Detected',
  description: 'API latency exceeded threshold',
  severity: 'P1',
  resource: {
    type: 'service',
    id: 'api-gateway',
    name: 'API Gateway',
    metadata: {}
  },
  metrics: {
    latency_ms: 5000,
    error_rate: 0.15
  },
  tags: {
    environment: 'production',
    region: 'us-east-1'
  },
  payload: {}
};

// Type-safe incident creation
const request: CreateIncidentRequest = {
  event,
  options: {
    skip_deduplication: false
  }
};

// Work with typed incidents
function handleIncident(incident: Incident): void {
  console.log(`Incident ${incident.id}: ${incident.title}`);
  console.log(`Severity: ${incident.severity}`);
  console.log(`Status: ${incident.status}`);

  if (incident.severity === 'P0' || incident.severity === 'P1') {
    // Handle critical incident
    console.log('Critical incident - triggering escalation');
  }
}

Available Types

Core Types

  • Incident - Main incident record
  • RawEvent - Raw event from source systems
  • IncidentEvent - Normalized incident event
  • Severity - P0, P1, P2, P3, P4
  • IncidentStatus - NEW, ACKNOWLEDGED, IN_PROGRESS, ESCALATED, RESOLVED, CLOSED
  • Category - performance, security, availability, compliance, cost, other

LLM Integration Types

  • LLMRequest - Base LLM request structure
  • LLMResponse - LLM response structure
  • LLMError - Error handling
  • SentinelLLMConfig - Sentinel monitoring configuration
  • ShieldLLMConfig - Shield security configuration
  • EdgeAgentLLMConfig - Edge-Agent configuration
  • GovernanceLLMConfig - Governance configuration

Policy & Workflow Types

  • EscalationPolicy - Escalation policy configuration
  • EscalationLevel - Individual escalation level
  • NotificationTemplate - Notification templates
  • RoutingRule - Incident routing rules
  • Playbook - Automated playbook definitions

User & Team Types

  • User - User model
  • Team - Team model
  • OnCallSchedule - On-call schedule
  • TeamMetrics - Team performance metrics

Analytics Types

  • IncidentAnalytics - Aggregated incident metrics
  • TeamMetrics - Team performance data
  • PostMortem - Post-mortem documents

Integration Types

  • Integration - Integration configuration
  • IntegrationType - Supported integrations
  • RetryPolicy - Retry configuration

API Types

  • CreateIncidentRequest - API request to create incident
  • CreateIncidentResponse - API response
  • UpdateIncidentRequest - Update incident request
  • QueryIncidentsRequest - Query incidents with filters

Type Categories

All types are organized into logical modules:

// Core incident types
import { Incident, RawEvent, IncidentEvent } from '@llm-dev-ops/incident-manager-types';

// Data model types
import {
  EscalationPolicy,
  NotificationTemplate,
  RoutingRule
} from '@llm-dev-ops/incident-manager-types';

// LLM client types
import {
  LLMRequest,
  LLMResponse,
  SentinelLLMConfig,
  ShieldLLMConfig
} from '@llm-dev-ops/incident-manager-types';

Features

Complete Type Coverage - 2,400+ lines of TypeScript definitions ✅ LLM Integration Types - Types for Sentinel, Shield, Edge-Agent, Governance ✅ Strict Type Safety - Compiled with strict mode enabled ✅ Zero Dependencies - Pure TypeScript definitions ✅ Tree-Shakeable - ES modules for optimal bundle size ✅ Documentation - Comprehensive JSDoc comments

Related Packages

Documentation

For complete documentation, see the LLM Incident Manager repository.

License

MIT OR Apache-2.0

Version

Current version: 1.0.1 (matches main package version)