Skip to content

feat(red-team): supported-languages + target-profile error-log endpoints#193

Merged
cdot65 merged 1 commit into
mainfrom
cdot65/feat/red-team-languages-target-errorlog
Jul 9, 2026
Merged

feat(red-team): supported-languages + target-profile error-log endpoints#193
cdot65 merged 1 commit into
mainfrom
cdot65/feat/red-team-languages-target-errorlog

Conversation

@cdot65

@cdot65 cdot65 commented Jul 9, 2026

Copy link
Copy Markdown
Owner

Closes #190
Closes #191

What

Two Red Team endpoints from the latest OpenAPI specs, added as RedTeamClient convenience methods:

  • Supported languagesgetLanguages() (data plane) and getManagementLanguages() (management plane), both GET /v1/languages. Returns TenantLanguagesResponse = { multilingual_enabled, supported_job_types, languages: { code, name }[] }. New TenantLanguagesResponseSchema / LanguageOptionSchema.
  • Target-profile error loggetTargetProfileErrorLogs(targetId, opts?)GET /v1/error-log/target-profile/{target_id}. Reuses the existing ErrorLogListResponse (same upstream component as the job error-log). UUID-validated.

Specs

Refreshes the committed Red Team OpenAPI specs (PaloAltoNetworks-AIRS-RedTeam-DataPlane.yaml, -management.yaml) to the latest upstream — 0 preflight drift after refresh.

Tests

test/red-team/client.spec.ts — path/plane assertions for both language methods and the target error-log (incl. limit serialization + UUID rejection). test/models/red-team.spec.ts — language schema parsing + required fields + passthrough.

Verification

format:check, lint, typecheck, preflight (0 unacknowledged drift), docs:check, full Vitest (1336) pass locally.

Notes

🤖 Generated with Claude Code

…endpoints

- getLanguages() / getManagementLanguages() -> GET /v1/languages (dp + mp),
  new TenantLanguagesResponse / LanguageOption schemas
- getTargetProfileErrorLogs(targetId, opts?) -> GET
  /v1/error-log/target-profile/{target_id}, reuses ErrorLogListResponse
- Refresh committed Red Team OpenAPI specs to latest upstream (0 preflight drift)

Closes #190
Closes #191
@cdot65
cdot65 merged commit bc77115 into main Jul 9, 2026
4 checks passed
@cdot65
cdot65 deleted the cdot65/feat/red-team-languages-target-errorlog branch July 9, 2026 00:17
cdot65 added a commit that referenced this pull request Jul 9, 2026
- feat(red-team): Network Broker channel sub-client (#187)
- feat(red-team): supported-languages and target-profile error-log endpoints (#193)
- feat(model-security): read-only models sub-client (#195)
- fix(management): percent-encode TSG ID in customer-apps list path (#189)
- fix(red-team): correct Network Broker ChannelStats field names (#199)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(red-team): add target-profile error-log endpoint feat(red-team): add supported-languages endpoints (/v1/languages, both planes)

1 participant