How cdot65/prisma-airs-sdk works
Prisma AIRS SDK is a TypeScript client library for configuring and operating four AIRS service domains. Users configure credentials and instantiate a domain client, then issue typed requests for scanning, management, model security, gateway operations, or red-team workflows and receive validated results. Gateway SCM administration and runtime inference use distinct credentials and endpoints. Shared OAuth, pagination, and HTTP transport support the domain clients. The README documents capabilities whose implementation was not sampled; edges for those are based on that documentation, not inspection of their source.
Main entry points: management/client.ts Management client · red-team/client.ts Red team client · request.ts HTTP request pipeline · scanner.ts Scanner
Components 27
Shared transport
- OAuth configuration
src/oauth-config.ts - OAuth token client
src/management/oauth-client.ts - HTTP request pipeline
src/http/request.ts - Pagination helpers
src/listing.ts - Typed models
src/models
Runtime security
- Scanner
src/scan/scanner.ts - Scan content
src/scan/content.ts
Management
- Management client
src/management/client.ts - Profiles and DLP
src/management/profiles.ts - Dashboard and logs
src/management/dashboard.ts - IAM scopes
src/iam/scopes-client.ts
AI Gateway
- Gateway SCM client
src/ai-gateway/client.ts - Gateway administration
src/ai-gateway/workspaces-client.ts - Runtime inference
src/ai-gateway/inference-client.ts - Runtime resources
src/ai-gateway/runtime-resources-client.ts - Public model pricing
src/ai-gateway/model-pricing-client.ts
Model security
- Model security client
src/model-security/client.ts - Model scans
src/model-security/scans-client.ts - Security groups and rules
src/model-security/security-groups-client.ts
AI red teaming
- Red team client
src/red-team/client.ts - Red team scans
src/red-team/scans-client.ts - Reports and targets
src/red-team/reports-client.ts - Custom attacks
src/red-team/custom-attacks-client.ts
Other components
- SDK user
- Prisma AIRS services
- Gateway runtime service
- Public pricing service
Connections 42
- SDK user → Scanner: creates and scans
README.md - Scanner → Scan content: accepts content
src/scan/scanner.ts - Scanner → HTTP request pipeline: sends requests
src/scan/scanner.ts - Scanner → Prisma AIRS services: scans content
README.md - SDK user → Management client: configures and calls
README.md - Management client → OAuth configuration: resolves credentials
src/management/client.ts - OAuth configuration → OAuth token client: creates client
src/oauth-config.ts - Management client → Profiles and DLP: exposes resources
src/management/client.ts - Management client → Dashboard and logs: exposes dashboard
src/management/client.ts - Management client → HTTP request pipeline: sends requests
- Profiles and DLP → Pagination helpers: uses pagination
- Management client → Prisma AIRS services: manages configuration
README.md - SDK user → Gateway SCM client: configures and calls
README.md - Gateway SCM client → Gateway administration: exposes administration
README.md - Gateway SCM client → IAM scopes: exposes IAM scopes
README.md - Gateway SCM client → OAuth configuration: uses OAuth setup
- Gateway administration → HTTP request pipeline: sends requests
- Gateway SCM client → Prisma AIRS services: manages gateway
README.md - SDK user → Runtime inference: sets runtime credentials
README.md - Runtime inference → Runtime resources: exposes runtime operations
src/ai-gateway/inference-client.ts - Runtime inference → HTTP request pipeline: sends requests
src/ai-gateway/inference-client.ts - Runtime inference → Gateway runtime service: runs inference
README.md - SDK user → Public model pricing: requests catalog
README.md - Public model pricing → Public pricing service: fetches public rates
README.md - SDK user → Model security client: configures and calls
README.md - Model security client → Model scans: exposes scans
- Model security client → Security groups and rules: exposes rule management
- Model scans → HTTP request pipeline: sends requests
src/model-security/scans-client.ts - Model scans → Pagination helpers: uses pagination
src/model-security/scans-client.ts - Model security client → OAuth configuration: uses OAuth setup
- Model security client → Prisma AIRS services: secures models
README.md - SDK user → Red team client: configures and calls
README.md - Red team client → Red team scans: exposes scans
src/red-team/client.ts - Red team client → Reports and targets: exposes reports
src/red-team/client.ts - Red team client → Custom attacks: exposes custom attacks
src/red-team/client.ts - Red team scans → HTTP request pipeline: sends requests
src/red-team/scans-client.ts - Red team scans → Pagination helpers: uses pagination
src/red-team/scans-client.ts - Red team client → OAuth configuration: uses OAuth setup
src/red-team/client.ts - Red team client → Prisma AIRS services: runs red-team workflows
README.md - Scanner → Typed models: uses scan models
src/scan/scanner.ts - Model scans → Typed models: uses typed models
src/model-security/scans-client.ts - Red team scans → Typed models: uses typed models
src/red-team/scans-client.ts