{
 "openapi": "3.1.0",
 "info": {
  "title": "Agent Feed API",
  "version": "1.2.0",
  "summary": "Открытые данные Agent Feed: инструменты, услуга под ключ и признаки проверки фида.",
  "description": "Только чтение, без ключа и без регистрации. Ответы — статические JSON-файлы, обновляются с выпуском сайта. Расчёта цены и приёма заявок через API нет: заявку отправляет человек на https://agentfeed.ru/pod-klyuch/.",
  "contact": {
   "name": "ООО «САРМАТЕХ»",
   "email": "info@ai-d2c.ru",
   "url": "https://agentfeed.ru/"
  },
  "license": {
   "name": "CC BY 4.0",
   "url": "https://creativecommons.org/licenses/by/4.0/"
  }
 },
 "servers": [
  {
   "url": "https://agentfeed.ru"
  }
 ],
 "paths": {
  "/api/v1/services.json": {
   "get": {
    "operationId": "getServices",
    "summary": "Инструменты и услуга под ключ",
    "description": "Бесплатные инструменты, услуга под ключ, как запросить смету, реквизиты исполнителя.",
    "responses": {
     "200": {
      "description": "Список инструментов и услуг",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Services"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/checks.json": {
   "get": {
    "operationId": "getChecks",
    "summary": "Признаки, по которым проверяется фид",
    "description": "Двенадцать признаков проверщика (девять общих, три только для Google) и пункт, проверяемый по заявке.",
    "responses": {
     "200": {
      "description": "Список признаков",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Checks"
        }
       }
      }
     }
    }
   }
  }
 },
 "components": {
  "schemas": {
   "Price": {
    "type": "object",
    "required": [
     "public",
     "how"
    ],
    "properties": {
     "public": {
      "type": "boolean",
      "description": "есть ли публичная фиксированная цена"
     },
     "final": {
      "type": "boolean"
     },
     "how": {
      "type": "string"
     }
    }
   },
   "Request": {
    "type": "object",
    "properties": {
     "url": {
      "type": "string",
      "format": "uri"
     },
     "email": {
      "type": "string",
      "format": "email"
     },
     "human_required": {
      "type": "boolean"
     },
     "note": {
      "type": "string"
     }
    }
   },
   "Service": {
    "type": "object",
    "required": [
     "id",
     "name",
     "price",
     "request"
    ],
    "properties": {
     "id": {
      "type": "string"
     },
     "name": {
      "type": "string"
     },
     "description": {
      "type": "string"
     },
     "area_served": {
      "type": "string"
     },
     "currency": {
      "type": "string"
     },
     "price": {
      "$ref": "#/components/schemas/Price"
     },
     "steps": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "request": {
      "$ref": "#/components/schemas/Request"
     },
     "terms": {
      "type": "string",
      "format": "uri"
     }
    }
   },
   "Tool": {
    "type": "object",
    "required": [
     "id",
     "name",
     "url",
     "free"
    ],
    "properties": {
     "id": {
      "type": "string"
     },
     "name": {
      "type": "string"
     },
     "url": {
      "type": "string",
      "format": "uri"
     },
     "free": {
      "type": "boolean"
     },
     "registration": {
      "type": "boolean"
     },
     "runs_in": {
      "type": "string"
     },
     "input": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "output": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "max_file_mb": {
      "type": "number"
     },
     "checks": {
      "type": "string",
      "format": "uri"
     }
    }
   },
   "Provider": {
    "type": "object",
    "properties": {
     "name": {
      "type": "string"
     },
     "inn": {
      "type": "string"
     },
     "kpp": {
      "type": "string"
     },
     "ogrn": {
      "type": "string"
     },
     "email": {
      "type": "string"
     },
     "address": {
      "type": "string"
     }
    }
   },
   "Services": {
    "type": "object",
    "required": [
     "version",
     "updated",
     "tools",
     "services"
    ],
    "properties": {
     "version": {
      "type": "string"
     },
     "updated": {
      "type": "string",
      "format": "date"
     },
     "source": {
      "type": "string"
     },
     "provider": {
      "$ref": "#/components/schemas/Provider"
     },
     "tools": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Tool"
      }
     },
     "services": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Service"
      }
     }
    }
   },
   "Check": {
    "type": "object",
    "required": [
     "key",
     "label",
     "kind",
     "scope",
     "rule"
    ],
    "properties": {
     "key": {
      "type": "string"
     },
     "label": {
      "type": "string"
     },
     "kind": {
      "type": "string",
      "enum": [
       "required",
       "recommended",
       "on_request"
      ]
     },
     "scope": {
      "type": "string",
      "enum": [
       "all",
       "google",
       "server"
      ]
     },
     "rule": {
      "type": "string"
     },
     "risk": {
      "type": "string"
     }
    }
   },
   "Checks": {
    "type": "object",
    "required": [
     "version",
     "checks"
    ],
    "properties": {
     "version": {
      "type": "string"
     },
     "updated": {
      "type": "string",
      "format": "date"
     },
     "source": {
      "type": "string"
     },
     "checker": {
      "type": "string"
     },
     "statuses": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      }
     },
     "checks": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/Check"
      }
     },
     "not_checked": {
      "type": "array",
      "items": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
