Skip to main content
Prisma AIRS SDK shield with terminal and spectrum

TypeScript SDK for Palo Alto Networks Prisma AIRS

CI npm License: MIT Node 18+ TypeScript

Type-safe clients for all five AIRS service domains — real-time content scanning, security configuration management, model security analysis, AI red teaming, and AI Gateway telemetry/configuration. Zero external HTTP dependencies. Native fetch + crypto for transport, with zod for response validation. ESM-first with dual CJS/ESM exports.

Features​

  • Real-Time Content Scanning — Synchronous and asynchronous scanning of AI prompts and responses. Detect prompt injection, toxic content, data leaks, and malicious URLs inline.
  • Security Management — Manage security profiles, custom topics, API keys, dashboard data, and DLP resources through OAuth2 clients.
  • Model Security — Scan ML models for supply chain threats: malicious code execution, backdoors, unapproved file formats. Manage security groups and rule instances; platform security rules are read-only.
  • AI Red Teaming — Run automated red team scans against AI targets. Static attack libraries, dynamic agent-based testing, custom prompt sets, and comprehensive reporting.
  • AI Gateway — Read telemetry (cost, latency, tokens, blocked requests) and manage workspaces, routing configs, guardrails, providers, API keys, integrations, and deployments for the SCM-managed AI Gateway, with Zod-validated write requests.
  • Type-Safe Everything — Exported TypeScript types, enum const objects, Zod schemas with .passthrough() for forward compatibility, and JSDoc examples on public symbols.
  • Zero External HTTP Dependencies — Native fetch + crypto for requests. Exponential backoff retry is built in; zod validates API responses. ES2022 target, Node 18+.

Five Independent APIs​

Get Started​

  • Install — Install the SDK, configure credentials, and connect to AIRS.
  • Quick Start — Scanning, management, and more in under 5 minutes.
  • Configure — Environment variables, auth methods, and endpoint setup.
  • API Reference — Complete method signatures, types, enums, and error handling.