{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hud-ai/json-schema/hud-ai-registry-detail-response-schema.json",
  "title": "RegistryDetailResponse",
  "x-generated": "2026-10-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hud-ai-openapi.yml#/components/schemas/RegistryDetailResponse",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    },
    "name": {
      "type": "string",
      "title": "Name"
    },
    "registry_type": {
      "type": "string",
      "title": "Registry Type"
    },
    "project_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Project Id"
    },
    "public": {
      "type": "boolean",
      "title": "Public"
    },
    "featured": {
      "type": "boolean",
      "title": "Featured"
    },
    "source_public": {
      "type": "boolean",
      "title": "Source Public"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Description"
    },
    "latest_build_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Latest Build Id"
    },
    "github_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Github Url"
    },
    "branch": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Branch"
    },
    "entry_folder": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Entry Folder"
    },
    "build_args": {
      "anyOf": [
        {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Build Args"
    },
    "instance_config": {
      "additionalProperties": true,
      "type": "object",
      "title": "Instance Config",
      "default": {}
    },
    "star_count": {
      "type": "integer",
      "title": "Star Count",
      "default": 0
    },
    "origin": {
      "anyOf": [
        {
          "$ref": "#/$defs/ExternalOrigin"
        },
        {
          "type": "null"
        }
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Updated At"
    },
    "latest_build": {
      "anyOf": [
        {
          "$ref": "#/$defs/LatestBuildSummary"
        },
        {
          "type": "null"
        }
      ]
    },
    "source_build_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Source Build Id"
    },
    "is_starred": {
      "type": "boolean",
      "title": "Is Starred",
      "default": false
    },
    "is_owner": {
      "type": "boolean",
      "title": "Is Owner",
      "default": false
    },
    "can_edit": {
      "type": "boolean",
      "title": "Can Edit",
      "default": false
    },
    "can_manage": {
      "type": "boolean",
      "title": "Can Manage",
      "default": false
    },
    "owner_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Owner Name"
    },
    "owner_avatar_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Owner Avatar Url"
    },
    "team_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Team Name"
    },
    "scenario_count": {
      "type": "integer",
      "title": "Scenario Count",
      "default": 0
    },
    "latest_scenarios": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/ScenarioResponse"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Latest Scenarios"
    },
    "example_trace_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Example Trace Id"
    },
    "featured_source": {
      "anyOf": [
        {
          "$ref": "#/$defs/FeaturedSourceResponse"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "type": "object",
  "required": [
    "id",
    "name",
    "registry_type",
    "project_id",
    "public",
    "featured",
    "source_public",
    "created_at",
    "updated_at"
  ],
  "$defs": {
    "ExternalOrigin": {
      "properties": {
        "system": {
          "$ref": "#/$defs/ExternalSystem"
        },
        "external_id": {
          "type": "string",
          "title": "External Id"
        }
      },
      "type": "object",
      "required": [
        "system",
        "external_id"
      ],
      "title": "ExternalOrigin",
      "description": "Where an imported entity comes from: a system and the entity's id in it."
    },
    "ExternalSystem": {
      "type": "string",
      "enum": [
        "harbor"
      ],
      "title": "ExternalSystem",
      "description": "A system HUD imports environments and runs from."
    },
    "FeaturedSourceResponse": {
      "properties": {
        "repository_url": {
          "type": "string",
          "title": "Repository Url"
        },
        "path": {
          "type": "string",
          "title": "Path",
          "description": "Directory of the environment within the repository"
        },
        "url": {
          "type": "string",
          "title": "Url",
          "description": "Browsable URL of that directory on the default branch"
        }
      },
      "type": "object",
      "required": [
        "repository_url",
        "path",
        "url"
      ],
      "title": "FeaturedSourceResponse",
      "description": "Where a featured environment's source lives in the public SDK repository."
    },
    "LatestBuildSummary": {
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "title": "Id"
        },
        "status": {
          "type": "string",
          "title": "Status"
        },
        "sdk_generation": {
          "type": "string",
          "title": "Sdk Generation"
        },
        "version": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Version"
        },
        "manifest": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Manifest"
        },
        "lock": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Lock"
        }
      },
      "type": "object",
      "required": [
        "id",
        "status",
        "sdk_generation"
      ],
      "title": "LatestBuildSummary",
      "description": "Projection of `builds` returned alongside a registry."
    },
    "ScenarioArgument": {
      "properties": {
        "name": {
          "type": "string",
          "title": "Name"
        },
        "required": {
          "type": "boolean",
          "title": "Required",
          "default": false
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Description"
        },
        "type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Type"
        },
        "default": {
          "anyOf": [
            {},
            {
              "type": "null"
            }
          ],
          "title": "Default"
        },
        "inputSchema": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Inputschema"
        }
      },
      "type": "object",
      "required": [
        "name"
      ],
      "title": "ScenarioArgument"
    },
    "ScenarioResponse": {
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "title": "Id"
        },
        "registry_id": {
          "type": "string",
          "format": "uuid",
          "title": "Registry Id"
        },
        "build_id": {
          "type": "string",
          "format": "uuid",
          "title": "Build Id"
        },
        "name": {
          "type": "string",
          "title": "Name"
        },
        "slug": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Slug"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Description"
        },
        "args_schema": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Args Schema"
        },
        "arguments": {
          "items": {
            "$ref": "#/$defs/ScenarioArgument"
          },
          "type": "array",
          "title": "Arguments",
          "default": []
        },
        "metadata": {
          "additionalProperties": true,
          "type": "object",
          "title": "Metadata",
          "default": {}
        },
        "trace_name_template": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Trace Name Template"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At"
        }
      },
      "type": "object",
      "required": [
        "id",
        "registry_id",
        "build_id",
        "name",
        "created_at"
      ],
      "title": "ScenarioResponse"
    }
  }
}