{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tru-stock-ai/json-schema/tru-stock-ai-get-api-parts-companions-response-schema.json",
  "title": "GetApiPartsCompanionsResponse",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/tru-stock-ai-openapi-generated.yml#/components/schemas/GetApiPartsCompanionsResponse",
  "type": "object",
  "properties": {
    "product-uuid-1": {
      "type": "object",
      "description": "Keyed by product UUID, contains kits and companionOf arrays."
    },
    "kits": {
      "type": "array",
      "description": "List of kits the product belongs to."
    },
    "kits[].id": {
      "type": "string",
      "description": "Kit UUID."
    },
    "kits[].name": {
      "type": "string",
      "description": "Kit name."
    },
    "kits[].quantity": {
      "type": "integer",
      "description": "Quantity of the kit."
    },
    "kits[].isCompanion": {
      "type": "boolean",
      "description": "Whether the product is a companion in this kit."
    },
    "companionOf": {
      "type": "array",
      "description": "Kits where the product is a companion."
    },
    "companionOf[].kitId": {
      "type": "string",
      "description": "Kit UUID."
    },
    "companionOf[].kitName": {
      "type": "string",
      "description": "Kit name."
    },
    "companionOf[].quantity": {
      "type": "integer",
      "description": "Quantity required as companion."
    }
  }
}