Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .changeset/0190-red-team-languages-target-errorlog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
'@cdot65/prisma-airs-sdk': minor
---

Add Red Team supported-languages and target-profile error-log endpoints to `RedTeamClient`:

- `getLanguages()` / `getManagementLanguages()` — the tenant's allowed languages for scans (`GET /v1/languages` on the data and management planes), returning `TenantLanguagesResponse` (`multilingual_enabled`, `supported_job_types`, `languages: { code, name }[]`).
- `getTargetProfileErrorLogs(targetId, opts?)` — profiling errors for a target (`GET /v1/error-log/target-profile/{target_id}`), reusing the existing `ErrorLogListResponse` shape.

Also refreshes the committed Red Team OpenAPI specs to the latest upstream revision.
9 changes: 9 additions & 0 deletions docs-site/docs/guides/red-team-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,15 @@ const errors = await client.getErrorLogs('job-uuid', {
limit: 50,
});

// Profiling error logs for a target (the endpoint honors `limit`)
const targetErrors = await client.getTargetProfileErrorLogs('target-uuid', { limit: 50 });

// Tenant's allowed languages for scans (data plane and management plane share the same shape)
const langs = await client.getLanguages();
// { multilingual_enabled: true, supported_job_types: ['STATIC', 'DYNAMIC'],
// languages: [{ code: 'en', name: 'English' }, { code: 'es', name: 'Spanish' }] }
const mgmtLangs = await client.getManagementLanguages();

// Update sentiment (thumbs up/down) for a scan report
const sentiment = await client.updateSentiment({
job_id: 'job-uuid',
Expand Down
Loading
Loading