{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pipeshub/json-schema/pipeshub-get-model-roles-response-schema.json",
  "title": "GetModelRolesResponse",
  "description": "Current model role assignments for the organisation.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pipeshub-configuration-manager-api-openapi.yml#/components/schemas/GetModelRolesResponse",
  "type": "object",
  "required": [
    "status",
    "modelRoles"
  ],
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "success"
      ]
    },
    "modelRoles": {
      "type": "object",
      "description": "Map of role name → assignment. Empty object when no roles are configured.",
      "additionalProperties": {
        "$ref": "#/$defs/ModelRoleAssignment"
      }
    }
  },
  "$defs": {
    "ModelRoleAssignment": {
      "type": "object",
      "description": "Identifies which configured model is assigned to a named role.",
      "required": [
        "modelType",
        "modelKey"
      ],
      "properties": {
        "modelType": {
          "type": "string",
          "description": "The model-type bucket the assigned model lives in (e.g. `llm`, `slm`, `multiModal`)."
        },
        "modelKey": {
          "type": "string",
          "description": "UUID of the model entry within the bucket."
        }
      }
    }
  }
}