Skip to content

feat(model-security): add read-only models sub-client (model & model-version endpoints)#195

Merged
cdot65 merged 1 commit into
mainfrom
cdot65/feat/model-security-models
Jul 9, 2026
Merged

feat(model-security): add read-only models sub-client (model & model-version endpoints)#195
cdot65 merged 1 commit into
mainfrom
cdot65/feat/model-security-models

Conversation

@cdot65

@cdot65 cdot65 commented Jul 9, 2026

Copy link
Copy Markdown
Owner

Closes #194

What

Adds a first-class Models / Model Versions resource to Model Security, from the latest data-plane spec. ModelSecurityClient.models (read-only, data plane):

  • listModels(opts?)GET /v1/models — search, sort, and latest_version_* array filters, pagination
  • getModel(uuid)GET /v1/models/{uuid}
  • listModelVersions(modelUuid, opts?)GET /v1/models/{uuid}/model-versions
  • getModelVersion(uuid)GET /v1/model-versions/{uuid}
  • listModelVersionFiles(modelVersionUuid, opts?)GET /v1/model-versions/{uuid}/files (reuses the existing FileList schema)

New schemas Model / ModelList / ModelVersion / ModelVersionList, reusing the existing pagination, eval-summary, and file schemas. Enum-ish fields modeled as z.string() for forward-compat, consistent with the rest of Model Security.

Specs

Refreshes the committed specs/AIRS-Model-Security-DataPlane.yaml to the latest upstream — 0 preflight drift.

Tests

test/model-security/models-client.spec.ts — per-method path/verb, query serialization (incl. repeated latest_version_*), UUID validation. client.spec.tsmodels sub-client wiring. test/models/model-security.spec.ts — schema parsing (required fields, eval summary, passthrough).

Verification

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

Non-breaking; ships minor.

🤖 Generated with Claude Code

New ModelSecurityClient.models with listModels, getModel,
listModelVersions, getModelVersion, listModelVersionFiles against the
data-plane model/model-version endpoints. Adds Model/ModelVersion
schemas (reusing pagination, eval-summary, and file schemas). Refresh
committed MS data-plane spec to latest upstream (0 preflight drift).

Closes #194
@cdot65
cdot65 merged commit 2fcb732 into main Jul 9, 2026
4 checks passed
@cdot65
cdot65 deleted the cdot65/feat/model-security-models branch July 9, 2026 00:23
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(model-security): add model & model-version read endpoints (new models sub-client)

1 participant