feat(model-security): add read-only models sub-client (model & model-version endpoints)#195
Merged
Merged
Conversation
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
This was referenced Jul 9, 2026
Merged
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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, andlatest_version_*array filters, paginationgetModel(uuid)→GET /v1/models/{uuid}listModelVersions(modelUuid, opts?)→GET /v1/models/{uuid}/model-versionsgetModelVersion(uuid)→GET /v1/model-versions/{uuid}listModelVersionFiles(modelVersionUuid, opts?)→GET /v1/model-versions/{uuid}/files(reuses the existingFileListschema)New schemas
Model/ModelList/ModelVersion/ModelVersionList, reusing the existing pagination, eval-summary, and file schemas. Enum-ish fields modeled asz.string()for forward-compat, consistent with the rest of Model Security.Specs
Refreshes the committed
specs/AIRS-Model-Security-DataPlane.yamlto the latest upstream — 0 preflight drift.Tests
test/model-security/models-client.spec.ts— per-method path/verb, query serialization (incl. repeatedlatest_version_*), UUID validation.client.spec.ts—modelssub-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