{
  "swagger": "2.0",
  "info": {
    "title": "evey/v1/transcode_cache.proto",
    "version": "version not set"
  },
  "tags": [
    {
      "name": "TranscodeCacheService"
    }
  ],
  "consumes": [
    "application/json"
  ],
  "produces": [
    "application/json"
  ],
  "paths": {
    "/api/v1/admin/transcode-cache": {
      "get": {
        "operationId": "TranscodeCacheService_GetTranscodeCache",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/v1TranscodeCacheInfo"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "tags": [
          "TranscodeCacheService"
        ]
      },
      "delete": {
        "operationId": "TranscodeCacheService_ClearTranscodeCache",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/v1ClearTranscodeCacheResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "tags": [
          "TranscodeCacheService"
        ]
      }
    },
    "/api/v1/admin/transcode-cache/{filename}": {
      "delete": {
        "operationId": "TranscodeCacheService_DeleteTranscodeCacheFile",
        "responses": {
          "200": {
            "description": "A successful response.",
            "schema": {
              "$ref": "#/definitions/v1DeleteTranscodeCacheFileResponse"
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "schema": {
              "$ref": "#/definitions/rpcStatus"
            }
          }
        },
        "parameters": [
          {
            "name": "filename",
            "in": "path",
            "required": true,
            "type": "string"
          }
        ],
        "tags": [
          "TranscodeCacheService"
        ]
      }
    }
  },
  "definitions": {
    "protobufAny": {
      "type": "object",
      "properties": {
        "@type": {
          "type": "string"
        }
      },
      "additionalProperties": {}
    },
    "rpcStatus": {
      "type": "object",
      "properties": {
        "code": {
          "type": "integer",
          "format": "int32"
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/protobufAny"
          }
        }
      }
    },
    "v1CacheFileEntry": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "size": {
          "type": "string",
          "format": "int64"
        },
        "lastModified": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "v1ClearTranscodeCacheResponse": {
      "type": "object"
    },
    "v1DeleteTranscodeCacheFileResponse": {
      "type": "object"
    },
    "v1TranscodeCacheInfo": {
      "type": "object",
      "properties": {
        "totalSize": {
          "type": "string",
          "format": "int64"
        },
        "fileCount": {
          "type": "integer",
          "format": "int32"
        },
        "files": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/definitions/v1CacheFileEntry"
          }
        },
        "activeEncodingSessions": {
          "type": "integer",
          "format": "int32",
          "description": "Viewers whose stream is being ENCODED right now - the ones a wipe cuts off,\nbecause their ffmpeg is writing into the very directory it removes. Surfaced\nso the confirmation can say so: the server logged the warning, but nobody\nreads a server log while clicking a button. Direct-play viewers are not\ncounted; a wipe never touches them."
        }
      }
    }
  }
}
