{
  "openapi": "3.1.1",
  "info": {
    "title": "HARDATA API",
    "description": "HTTP API for authentication, materials, catalogs, traffic, metadata and scheduling in HARDATA. This document is generated from code and is intended to be consumed by Scalar and external integrators.",
    "contact": {
      "name": "HARDATA",
      "url": "https://github.com/hardatacorp/hardata-api-backend"
    },
    "version": "v1.0"
  },
  "paths": {
    "/api/v1/traffic/agency": {
      "post": {
        "tags": [
          "Agency"
        ],
        "description": "Crea una nueva agencia.",
        "operationId": "postApiV1TrafficAgency",
        "requestBody": {
          "description": "Datos iniciales de la agencia.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAgencyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Agencia creada correctamente.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgencyResponse"
                }
              }
            }
          },
          "401": {
            "description": "Se requiere un token JWT válido.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "El usuario autenticado no tiene permiso para esta operación.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "No se pudo crear la agencia por conflicto o restricción de base de datos.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "get": {
        "tags": [
          "Agency"
        ],
        "description": "Lista todas las agencias ordenadas por nombre.",
        "operationId": "getApiV1TrafficAgency",
        "responses": {
          "200": {
            "description": "Listado completo de agencias.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AgencyResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Se requiere un token JWT válido.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "El usuario autenticado no tiene permiso para esta operación.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/agency/{agencyId}": {
      "get": {
        "tags": [
          "Agency"
        ],
        "description": "Obtiene una agencia por su identificador.",
        "operationId": "getApiV1TrafficAgencyAgencyId",
        "parameters": [
          {
            "name": "agencyId",
            "in": "path",
            "description": "Identificador de la agencia.",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Agencia encontrada.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgencyResponse"
                }
              }
            }
          },
          "401": {
            "description": "Se requiere un token JWT válido.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "El usuario autenticado no tiene permiso para esta operación.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "No existe una agencia con ese identificador.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "tags": [
          "Agency"
        ],
        "description": "Elimina una agencia.",
        "operationId": "deleteApiV1TrafficAgencyAgencyId",
        "parameters": [
          {
            "name": "agencyId",
            "in": "path",
            "description": "Identificador de la agencia a eliminar.",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Agencia eliminada correctamente.",
            "content": {
              "application/json": {}
            }
          },
          "401": {
            "description": "Se requiere un token JWT válido.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "El usuario autenticado no tiene permiso para esta operación.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "No existe una agencia con ese identificador.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "No se puede eliminar la agencia porque tiene dependencias.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "put": {
        "tags": [
          "Agency"
        ],
        "description": "Actualiza una agencia existente.",
        "operationId": "putApiV1TrafficAgencyAgencyId",
        "parameters": [
          {
            "name": "agencyId",
            "in": "path",
            "description": "Identificador de la agencia a actualizar.",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "description": "Nuevos datos de la agencia.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAgencyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Agencia actualizada correctamente.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgencyResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Se requiere un token JWT válido.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "El usuario autenticado no tiene permiso para esta operación.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "No existe una agencia con ese identificador.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "No se pudo actualizar la agencia por conflicto o restricción de base de datos.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/agency/statuses": {
      "get": {
        "tags": [
          "Agency"
        ],
        "description": "Lista los estados de agencia disponibles.",
        "operationId": "getApiV1TrafficAgencyStatuses",
        "responses": {
          "200": {
            "description": "Catálogo de estados de agencia.",
            "content": {
              "application/json": {}
            }
          },
          "401": {
            "description": "Se requiere un token JWT válido.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "El usuario autenticado no tiene permiso para esta operación.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/agency/types": {
      "get": {
        "tags": [
          "Agency"
        ],
        "description": "Lista los tipos de agencia disponibles.",
        "operationId": "getApiV1TrafficAgencyTypes",
        "responses": {
          "200": {
            "description": "Catálogo de tipos de agencia.",
            "content": {
              "application/json": {}
            }
          },
          "401": {
            "description": "Se requiere un token JWT válido.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "El usuario autenticado no tiene permiso para esta operación.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/album": {
      "get": {
        "tags": [
          "Album"
        ],
        "operationId": "getApiV1Album",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AlbumResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "Album"
        ],
        "operationId": "postApiV1Album",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAlbumRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AlbumResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/album/{id}": {
      "get": {
        "tags": [
          "Album"
        ],
        "operationId": "getApiV1AlbumId",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AlbumResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "tags": [
          "Album"
        ],
        "operationId": "deleteApiV1AlbumId",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {}
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "put": {
        "tags": [
          "Album"
        ],
        "operationId": "putApiV1AlbumId",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAlbumRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AlbumResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/algorithm/schedule": {
      "post": {
        "tags": [
          "Algorithm"
        ],
        "description": "Execute the scheduling algorithm for a specific date and station.",
        "operationId": "postApiV1TrafficAlgorithmSchedule",
        "requestBody": {
          "description": "Scheduling request with date, station, and options.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScheduleRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Scheduling completed successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SchedulingResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized - JWT token required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "500": {
            "description": "Internal server error during scheduling.",
            "content": {
              "application/json": {}
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/algorithm/stats": {
      "get": {
        "tags": [
          "Algorithm"
        ],
        "description": "Get scheduling statistics for a specific date and station.\r\nUseful for preview before running the full algorithm.",
        "operationId": "getApiV1TrafficAlgorithmStats",
        "parameters": [
          {
            "name": "stationId",
            "in": "query",
            "description": "Station ID.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "date",
            "in": "query",
            "description": "Schedule date (YYYY-MM-DD).",
            "schema": {
              "type": "string",
              "format": "date"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Statistics retrieved successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SchedulingStats"
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized - JWT token required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/asset-type": {
      "get": {
        "tags": [
          "AssetType"
        ],
        "operationId": "getApiV1AssetType",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AssetTypeResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/asset-type/{assetTypeId}": {
      "get": {
        "tags": [
          "AssetType"
        ],
        "operationId": "getApiV1AssetTypeAssetTypeId",
        "parameters": [
          {
            "name": "assetTypeId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssetTypeResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/auth/login": {
      "post": {
        "tags": [
          "Auth"
        ],
        "description": "Autentica un usuario HDX y devuelve access token y refresh token.",
        "operationId": "postApiV1AuthLogin",
        "requestBody": {
          "description": "Credenciales del usuario que inicia sesión.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HdxLoginRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Login exitoso con tokens JWT listos para usar.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoginResponse"
                }
              }
            }
          },
          "400": {
            "description": "Faltan credenciales requeridas.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoginResponse"
                }
              }
            }
          },
          "401": {
            "description": "Usuario inexistente, deshabilitado o contraseña inválida.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoginResponse"
                }
              }
            }
          },
          "403": {
            "description": "El usuario no tiene licencia activa o no está autorizado para usar la API.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoginResponse"
                }
              }
            }
          },
          "500": {
            "description": "Error interno al validar credenciales.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoginResponse"
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/api/v1/auth/refresh": {
      "post": {
        "tags": [
          "Auth"
        ],
        "description": "Renueva un access token usando un refresh token válido.",
        "operationId": "postApiV1AuthRefresh",
        "requestBody": {
          "description": "Refresh token emitido previamente por la API.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RefreshTokenRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Token renovado correctamente.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoginResponse"
                }
              }
            }
          },
          "400": {
            "description": "No se envió el refresh token requerido.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoginResponse"
                }
              }
            }
          },
          "401": {
            "description": "El refresh token es inválido, expiró o no contiene los claims esperados.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoginResponse"
                }
              }
            }
          },
          "403": {
            "description": "No hay una licencia activa para emitir nuevos tokens.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoginResponse"
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/api/v1/traffic/breaktemplate": {
      "post": {
        "tags": [
          "Break Templates"
        ],
        "operationId": "postApiV1TrafficBreaktemplate",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBreakTemplateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BreakTemplateResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "get": {
        "tags": [
          "Break Templates"
        ],
        "description": "Obtiene todos los templates de tanda con sus zonas y clips fijos asociados. Por defecto filtra solo los activos.",
        "operationId": "getApiV1TrafficBreaktemplate",
        "parameters": [
          {
            "name": "includeInactive",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BreakTemplateResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/breaktemplate/{id}": {
      "delete": {
        "tags": [
          "Break Templates"
        ],
        "operationId": "deleteApiV1TrafficBreaktemplateId",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "get": {
        "tags": [
          "Break Templates"
        ],
        "operationId": "getApiV1TrafficBreaktemplateId",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BreakTemplateResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "put": {
        "tags": [
          "Break Templates"
        ],
        "operationId": "putApiV1TrafficBreaktemplateId",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateBreakTemplateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BreakTemplateResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/breaktemplate/station/{stationId}": {
      "get": {
        "tags": [
          "Break Templates"
        ],
        "description": "Filtra los templates de una emisora específica. Útil para cargar la programación de una emisora.",
        "operationId": "getApiV1TrafficBreaktemplateStationStationId",
        "parameters": [
          {
            "name": "stationId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "includeInactive",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BreakTemplateResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/breaktemplate/{id}/hard": {
      "delete": {
        "tags": [
          "Break Templates"
        ],
        "operationId": "deleteApiV1TrafficBreaktemplateIdHard",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/break-types/{id}": {
      "put": {
        "tags": [
          "BreakType"
        ],
        "operationId": "putApiV1TrafficBreakTypesId",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateBreakTypeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "tags": [
          "BreakType"
        ],
        "operationId": "deleteApiV1TrafficBreakTypesId",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {}
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/break-types": {
      "post": {
        "tags": [
          "BreakType"
        ],
        "operationId": "postApiV1TrafficBreakTypes",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBreakTypeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {}
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "get": {
        "tags": [
          "BreakType"
        ],
        "operationId": "getApiV1TrafficBreakTypes",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/campaign/{campaignId}": {
      "put": {
        "tags": [
          "Campaign"
        ],
        "operationId": "putApiV1TrafficCampaignCampaignId",
        "parameters": [
          {
            "name": "campaignId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCampaignRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "get": {
        "tags": [
          "Campaign"
        ],
        "operationId": "getApiV1TrafficCampaignCampaignId",
        "parameters": [
          {
            "name": "campaignId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "tags": [
          "Campaign"
        ],
        "operationId": "deleteApiV1TrafficCampaignCampaignId",
        "parameters": [
          {
            "name": "campaignId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/campaign/statuses": {
      "get": {
        "tags": [
          "Campaign"
        ],
        "operationId": "getApiV1TrafficCampaignStatuses",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/campaign": {
      "get": {
        "tags": [
          "Campaign"
        ],
        "operationId": "getApiV1TrafficCampaign",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CampaignResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "Campaign"
        ],
        "operationId": "postApiV1TrafficCampaign",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCampaignRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/category/{categoryId}/ancestors": {
      "get": {
        "tags": [
          "Category"
        ],
        "operationId": "getApiV1CategoryCategoryIdAncestors",
        "parameters": [
          {
            "name": "categoryId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CategoryResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/category/{categoryId}/nextcode": {
      "get": {
        "tags": [
          "Category"
        ],
        "operationId": "getApiV1CategoryCategoryIdNextcode",
        "parameters": [
          {
            "name": "categoryId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NextCodeResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/category/{categoryId}/children": {
      "get": {
        "tags": [
          "Category"
        ],
        "operationId": "getApiV1CategoryCategoryIdChildren",
        "parameters": [
          {
            "name": "categoryId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CategoryResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/category/{categoryId}": {
      "delete": {
        "tags": [
          "Category"
        ],
        "operationId": "deleteApiV1CategoryCategoryId",
        "parameters": [
          {
            "name": "categoryId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {}
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "get": {
        "tags": [
          "Category"
        ],
        "operationId": "getApiV1CategoryCategoryId",
        "parameters": [
          {
            "name": "categoryId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CategoryResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "put": {
        "tags": [
          "Category"
        ],
        "operationId": "putApiV1CategoryCategoryId",
        "parameters": [
          {
            "name": "categoryId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCategoryRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CategoryResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/category": {
      "post": {
        "tags": [
          "Category"
        ],
        "operationId": "postApiV1Category",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCategoryRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CategoryResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "get": {
        "tags": [
          "Category"
        ],
        "operationId": "getApiV1Category",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CategoryResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/category/storages": {
      "get": {
        "tags": [
          "Category"
        ],
        "operationId": "getApiV1CategoryStorages",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CategoryResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/category/{categoryId}/descendants": {
      "get": {
        "tags": [
          "Category"
        ],
        "operationId": "getApiV1CategoryCategoryIdDescendants",
        "parameters": [
          {
            "name": "categoryId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CategoryResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/client": {
      "post": {
        "tags": [
          "Client"
        ],
        "description": "Crea un nuevo cliente.",
        "operationId": "postApiV1TrafficClient",
        "requestBody": {
          "description": "Datos del cliente a crear.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateClientRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Cliente creado.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "get": {
        "tags": [
          "Client"
        ],
        "description": "Obtiene todos los clientes.",
        "operationId": "getApiV1TrafficClient",
        "responses": {
          "200": {
            "description": "Lista de clientes.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ClientResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/client/{clientId}": {
      "delete": {
        "tags": [
          "Client"
        ],
        "description": "Elimina un cliente por su ID.",
        "operationId": "deleteApiV1TrafficClientClientId",
        "parameters": [
          {
            "name": "clientId",
            "in": "path",
            "description": "ID del cliente a eliminar.",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "get": {
        "tags": [
          "Client"
        ],
        "description": "Obtiene un cliente por su ID.",
        "operationId": "getApiV1TrafficClientClientId",
        "parameters": [
          {
            "name": "clientId",
            "in": "path",
            "description": "ID del cliente.",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Cliente encontrado.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "put": {
        "tags": [
          "Client"
        ],
        "description": "Actualiza un cliente existente.",
        "operationId": "putApiV1TrafficClientClientId",
        "parameters": [
          {
            "name": "clientId",
            "in": "path",
            "description": "ID del cliente a actualizar.",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "description": "Datos actualizados del cliente.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateClientRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Cliente actualizado.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/client/statuses": {
      "get": {
        "tags": [
          "Client"
        ],
        "operationId": "getApiV1TrafficClientStatuses",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/clip_metadata": {
      "get": {
        "tags": [
          "Clip Metadata"
        ],
        "operationId": "getApiV1TrafficClipMetadata",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ClipMetadataResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "Clip Metadata"
        ],
        "operationId": "postApiV1TrafficClipMetadata",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateClipMetadataRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClipMetadataResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/clip_metadata/{clipMetadataId}": {
      "delete": {
        "tags": [
          "Clip Metadata"
        ],
        "operationId": "deleteApiV1TrafficClipMetadataClipMetadataId",
        "parameters": [
          {
            "name": "clipMetadataId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "get": {
        "tags": [
          "Clip Metadata"
        ],
        "operationId": "getApiV1TrafficClipMetadataClipMetadataId",
        "parameters": [
          {
            "name": "clipMetadataId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClipMetadataResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/common/scopes": {
      "get": {
        "tags": [
          "Common"
        ],
        "description": "Alcances posibles (National / Local).\r\nUsado en Order, BreakTemplateZone y ClipMetadata.",
        "operationId": "getApiV1TrafficCommonScopes",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/common/weekdays": {
      "get": {
        "tags": [
          "Common"
        ],
        "description": "Valores base del bitmask de días de la semana.\r\nUsado en OrderDaypart y BreakTemplate.",
        "operationId": "getApiV1TrafficCommonWeekdays",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/common/break-types": {
      "get": {
        "tags": [
          "Common"
        ],
        "description": "Tipos de tanda disponibles (Simple, Rotativa, etc.).\r\nUsado en BreakTemplate.",
        "operationId": "getApiV1TrafficCommonBreakTypes",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/company": {
      "get": {
        "tags": [
          "Company"
        ],
        "operationId": "getApiV1Company",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CompanyResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "Company"
        ],
        "operationId": "postApiV1Company",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCompanyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/company/{companyId}": {
      "get": {
        "tags": [
          "Company"
        ],
        "operationId": "getApiV1CompanyCompanyId",
        "parameters": [
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "put": {
        "tags": [
          "Company"
        ],
        "operationId": "putApiV1CompanyCompanyId",
        "parameters": [
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCompanyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "tags": [
          "Company"
        ],
        "operationId": "deleteApiV1CompanyCompanyId",
        "parameters": [
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {}
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/stations/external-control": {
      "get": {
        "tags": [
          "Station"
        ],
        "description": "Devuelve las conexiones de las emisoras que tienen habilitado el control externo.",
        "operationId": "getApiV1StationsExternalControl",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Connection"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/file-type/{fileTypeId}": {
      "get": {
        "tags": [
          "FileType"
        ],
        "operationId": "getApiV1FileTypeFileTypeId",
        "parameters": [
          {
            "name": "fileTypeId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileTypeResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/file-type": {
      "get": {
        "tags": [
          "FileType"
        ],
        "operationId": "getApiV1FileType",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FileTypeResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/genre": {
      "get": {
        "tags": [
          "Genre"
        ],
        "operationId": "getApiV1Genre",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GenreResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "Genre"
        ],
        "operationId": "postApiV1Genre",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateGenreRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenreResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/genre/{id}": {
      "get": {
        "tags": [
          "Genre"
        ],
        "operationId": "getApiV1GenreId",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenreResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "put": {
        "tags": [
          "Genre"
        ],
        "operationId": "putApiV1GenreId",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateGenreRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenreResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "tags": [
          "Genre"
        ],
        "operationId": "deleteApiV1GenreId",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {}
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/industry": {
      "get": {
        "tags": [
          "Industry"
        ],
        "description": "Obtiene todos los rubros.",
        "operationId": "getApiV1TrafficIndustry",
        "responses": {
          "200": {
            "description": "Lista de rubros.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/IndustryResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "Industry"
        ],
        "description": "Crea nuevos rubros.",
        "operationId": "postApiV1TrafficIndustry",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Lista de rubros creados.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/IndustryResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/industry/{industryId}": {
      "put": {
        "tags": [
          "Industry"
        ],
        "description": "Actualiza un rubro existente.",
        "operationId": "putApiV1TrafficIndustryIndustryId",
        "parameters": [
          {
            "name": "industryId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateIndustryRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Rubro actualizado.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IndustryResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "get": {
        "tags": [
          "Industry"
        ],
        "description": "Obtiene rubro especifico por id.",
        "operationId": "getApiV1TrafficIndustryIndustryId",
        "parameters": [
          {
            "name": "industryId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Rubro especifico.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IndustryResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "tags": [
          "Industry"
        ],
        "description": "Elimina un rubro existente.",
        "operationId": "deleteApiV1TrafficIndustryIndustryId",
        "parameters": [
          {
            "name": "industryId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Rubro eliminado."
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/license": {
      "get": {
        "tags": [
          "License"
        ],
        "description": "Devuelve la información de licencia leída desde los archivos LicenseInfo.xml.\r\nEn Dinesat se lee un único archivo; en HDX se recorren todas las instancias\r\ndisponibles (\"Hdx Server\", \"Hdx Server_2\", ...) y se combinan los resultados.",
        "operationId": "getApiV1License",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LicenseInfoResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {}
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "License"
        ],
        "description": "Ejecuta el cambio de licencia enviando la función correspondiente a Hardata\r\npor named pipe.",
        "operationId": "postApiV1License",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LicenseChangeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {}
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/material/{materialId}": {
      "get": {
        "tags": [
          "Material"
        ],
        "description": "Obtiene un material por su ID.",
        "operationId": "getApiV1MaterialMaterialId",
        "parameters": [
          {
            "name": "materialId",
            "in": "path",
            "description": "Identificador del material.",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Material encontrado.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MaterialResponse"
                }
              }
            }
          },
          "401": {
            "description": "Se requiere un token JWT válido.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "El usuario autenticado no tiene permiso para esta operación.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "No existe un material con ese identificador.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "put": {
        "tags": [
          "Material"
        ],
        "description": "Actualiza la metadata de un material existente.",
        "operationId": "putApiV1MaterialMaterialId",
        "parameters": [
          {
            "name": "materialId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateMaterialRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MaterialResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "tags": [
          "Material"
        ],
        "description": "Elimina un material completo: archivos físicos, MATERIALFILE, FILE,\r\nCATEGORYMATERIAL y finalmente MATERIAL. Orden secuencial para respetar FKs.",
        "operationId": "deleteApiV1MaterialMaterialId",
        "parameters": [
          {
            "name": "materialId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {}
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/material/batch-delete": {
      "post": {
        "tags": [
          "Material"
        ],
        "description": "Elimina múltiples materiales en una sola transacción secuencial para evitar deadlocks.",
        "operationId": "postApiV1MaterialBatchDelete",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BatchDeleteRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/material/{materialId}/files": {
      "get": {
        "tags": [
          "Material"
        ],
        "description": "Obtiene todos los archivos asociados a un material.",
        "operationId": "getApiV1MaterialMaterialIdFiles",
        "parameters": [
          {
            "name": "materialId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MaterialFileResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/material/{materialId}/category/{categoryId}": {
      "put": {
        "tags": [
          "Material"
        ],
        "description": "Mueve un material a otra categoría. Reemplaza todos los vínculos de categoría existentes.",
        "operationId": "putApiV1MaterialMaterialIdCategoryCategoryId",
        "parameters": [
          {
            "name": "materialId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "categoryId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/material/fill": {
      "post": {
        "tags": [
          "Material"
        ],
        "description": "Adjunta un archivo de audio o video a un material existente.",
        "operationId": "postApiV1MaterialFill",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "allOf": [
                  {
                    "type": "object",
                    "properties": {
                      "materialId": {
                        "pattern": "^-?(?:0|[1-9]\\d*)$",
                        "type": [
                          "integer",
                          "string"
                        ],
                        "format": "int64"
                      }
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "file": {
                        "$ref": "#/components/schemas/IFormFile"
                      }
                    }
                  }
                ]
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MaterialFillResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/material/{materialId}/stream": {
      "get": {
        "tags": [
          "Material"
        ],
        "description": "Streams the selected audio or video file. Supports HTTP range requests for seeking. The token can be sent either in the Authorization header or as the token query parameter for media clients that cannot set headers.",
        "operationId": "getApiV1MaterialMaterialIdStream",
        "parameters": [
          {
            "name": "materialId",
            "in": "path",
            "description": "Identificador del material a reproducir.",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "token",
            "in": "query",
            "description": "JWT access token as a query parameter alternative for streaming clients.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Range",
            "in": "header",
            "description": "Optional byte range request header, for example bytes=0-1048575.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fileId",
            "in": "query",
            "description": "Optional file identifier when the material has multiple associated files.",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Complete media stream response.",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "206": {
            "description": "Partial media stream response for a valid byte range.",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "description": "Missing, invalid or expired token.",
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "error",
                    "message"
                  ],
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "Stable error code for programmatic handling."
                    },
                    "message": {
                      "type": "string",
                      "description": "Human-readable error message."
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Material or file not found.",
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "error",
                    "message"
                  ],
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "Stable error code for programmatic handling."
                    },
                    "message": {
                      "type": "string",
                      "description": "Human-readable error message."
                    }
                  }
                }
              }
            }
          },
          "416": {
            "description": "Requested byte range is invalid for the selected file.",
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "error",
                    "message"
                  ],
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "Stable error code for programmatic handling."
                    },
                    "message": {
                      "type": "string",
                      "description": "Human-readable error message."
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          },
          {
            "AccessTokenQuery": []
          }
        ]
      }
    },
    "/api/v1/material/{materialId}/files/{fileId}": {
      "delete": {
        "tags": [
          "Material"
        ],
        "description": "Elimina un archivo asociado a un material, incluyendo el archivo físico del storage.",
        "operationId": "deleteApiV1MaterialMaterialIdFilesFileId",
        "parameters": [
          {
            "name": "materialId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "fileId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {}
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/material/search": {
      "get": {
        "tags": [
          "Material"
        ],
        "description": "Busca materiales por texto libre en todos los campos relevantes\r\n(title, code, comments, rdsText, tags, customFields, artist/author names, album, genre, company).",
        "operationId": "getApiV1MaterialSearch",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "description": "Texto libre a buscar.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Número de página basado en 1.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "Cantidad máxima de elementos por página.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Página de resultados recuperada correctamente.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedResponseOfMaterialResponse"
                }
              }
            }
          },
          "401": {
            "description": "Se requiere un token JWT válido.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "El usuario autenticado no tiene permiso para esta operación.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/material/placeholder": {
      "post": {
        "tags": [
          "Material"
        ],
        "description": "Crea un material placeholder sin audio.",
        "operationId": "postApiV1MaterialPlaceholder",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MaterialPlaceholderRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MaterialResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/material": {
      "get": {
        "tags": [
          "Material"
        ],
        "description": "Obtiene todos los materiales, con filtros opcionales y paginación.\r\nCada fila de CATEGORYMATERIAL (master o link) se devuelve como un material.\r\nPor defecto excluye la papelera (isDeleted=false).",
        "operationId": "getApiV1Material",
        "parameters": [
          {
            "name": "CategoryId",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          },
          {
            "name": "Title",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Code",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "MediaTypeId",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "MaterialStateId",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "HasFiles",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "IsDeleted",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Número de página basado en 1.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "Cantidad máxima de elementos por página.",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Página de materiales recuperada correctamente.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedResponseOfMaterialResponse"
                }
              }
            }
          },
          "401": {
            "description": "Se requiere un token JWT válido.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "El usuario autenticado no tiene permiso para esta operación.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/material/{materialId}/authors": {
      "get": {
        "tags": [
          "Material"
        ],
        "operationId": "getApiV1MaterialMaterialIdAuthors",
        "parameters": [
          {
            "name": "materialId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MaterialAuthorResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "Material"
        ],
        "operationId": "postApiV1MaterialMaterialIdAuthors",
        "parameters": [
          {
            "name": "materialId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LinkAuthorRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MaterialAuthorResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/material/{materialId}/authors/{personId}": {
      "delete": {
        "tags": [
          "Material"
        ],
        "operationId": "deleteApiV1MaterialMaterialIdAuthorsPersonId",
        "parameters": [
          {
            "name": "materialId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "personId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {}
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/material/{materialId}/artists": {
      "get": {
        "tags": [
          "Material"
        ],
        "operationId": "getApiV1MaterialMaterialIdArtists",
        "parameters": [
          {
            "name": "materialId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MaterialArtistResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "Material"
        ],
        "operationId": "postApiV1MaterialMaterialIdArtists",
        "parameters": [
          {
            "name": "materialId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LinkArtistRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MaterialArtistResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/material/{materialId}/artists/{personId}": {
      "delete": {
        "tags": [
          "Material"
        ],
        "operationId": "deleteApiV1MaterialMaterialIdArtistsPersonId",
        "parameters": [
          {
            "name": "materialId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "personId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {}
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/media-type/{mediaTypeId}": {
      "get": {
        "tags": [
          "MediaType"
        ],
        "operationId": "getApiV1MediaTypeMediaTypeId",
        "parameters": [
          {
            "name": "mediaTypeId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaTypeResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/media-type": {
      "get": {
        "tags": [
          "MediaType"
        ],
        "operationId": "getApiV1MediaType",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MediaTypeResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/order/missing-files": {
      "get": {
        "tags": [
          "Order"
        ],
        "operationId": "getApiV1TrafficOrderMissingFiles",
        "parameters": [
          {
            "name": "hoursAhead",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 72
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OrderMissingFilesResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/order/statuses": {
      "get": {
        "tags": [
          "Order"
        ],
        "operationId": "getApiV1TrafficOrderStatuses",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/order/position-types": {
      "get": {
        "tags": [
          "Order"
        ],
        "operationId": "getApiV1TrafficOrderPositionTypes",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/order/protection-levels": {
      "get": {
        "tags": [
          "Order"
        ],
        "operationId": "getApiV1TrafficOrderProtectionLevels",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/order/{orderId}": {
      "put": {
        "tags": [
          "Order"
        ],
        "operationId": "putApiV1TrafficOrderOrderId",
        "parameters": [
          {
            "name": "orderId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateOrderRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "get": {
        "tags": [
          "Order"
        ],
        "operationId": "getApiV1TrafficOrderOrderId",
        "parameters": [
          {
            "name": "orderId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "tags": [
          "Order"
        ],
        "operationId": "deleteApiV1TrafficOrderOrderId",
        "parameters": [
          {
            "name": "orderId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/order": {
      "get": {
        "tags": [
          "Order"
        ],
        "operationId": "getApiV1TrafficOrder",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OrderResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "Order"
        ],
        "operationId": "postApiV1TrafficOrder",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateOrderRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/order_daypart/{id}": {
      "delete": {
        "tags": [
          "Order Daypart"
        ],
        "operationId": "deleteApiV1TrafficOrderDaypartId",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "get": {
        "tags": [
          "Order Daypart"
        ],
        "operationId": "getApiV1TrafficOrderDaypartId",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderDaypartDto"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "put": {
        "tags": [
          "Order Daypart"
        ],
        "operationId": "putApiV1TrafficOrderDaypartId",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateOrderDaypartRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderDaypartDto"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/order_daypart": {
      "get": {
        "tags": [
          "Order Daypart"
        ],
        "operationId": "getApiV1TrafficOrderDaypart",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OrderDaypartDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "Order Daypart"
        ],
        "operationId": "postApiV1TrafficOrderDaypart",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateOrderDaypartRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderDaypartDto"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/person": {
      "post": {
        "tags": [
          "Person"
        ],
        "operationId": "postApiV1Person",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePersonRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PersonResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "get": {
        "tags": [
          "Person"
        ],
        "operationId": "getApiV1Person",
        "parameters": [
          {
            "name": "personName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PersonResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/person/{id}": {
      "delete": {
        "tags": [
          "Person"
        ],
        "operationId": "deleteApiV1PersonId",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {}
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "put": {
        "tags": [
          "Person"
        ],
        "operationId": "putApiV1PersonId",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePersonRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PersonResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "get": {
        "tags": [
          "Person"
        ],
        "operationId": "getApiV1PersonId",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PersonResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/pgm5/all": {
      "get": {
        "tags": [
          "PGM5"
        ],
        "operationId": "getApiV1TrafficPgm5All",
        "parameters": [
          {
            "name": "FromDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "ToDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "Status",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "uint8"
            }
          },
          {
            "name": "StationId",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Pgm5SummaryResponse"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/pgm5": {
      "post": {
        "tags": [
          "PGM5"
        ],
        "operationId": "postApiV1TrafficPgm5",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SavePgm5Request"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SavePgm5Response"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "get": {
        "tags": [
          "PGM5"
        ],
        "operationId": "getApiV1TrafficPgm5",
        "parameters": [
          {
            "name": "stationId",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          },
          {
            "name": "date",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SchedulingResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/pgm5/{pgmId}/status": {
      "patch": {
        "tags": [
          "PGM5"
        ],
        "operationId": "patchApiV1TrafficPgm5PgmIdStatus",
        "parameters": [
          {
            "name": "pgmId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePgm5StatusRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Pgm5SummaryResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/pgm5/{pgmId}": {
      "get": {
        "tags": [
          "PGM5"
        ],
        "operationId": "getApiV1TrafficPgm5PgmId",
        "parameters": [
          {
            "name": "pgmId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SchedulingResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "tags": [
          "PGM5"
        ],
        "operationId": "deleteApiV1TrafficPgm5PgmId",
        "parameters": [
          {
            "name": "pgmId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {}
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/pgm5/exists": {
      "get": {
        "tags": [
          "PGM5"
        ],
        "operationId": "getApiV1TrafficPgm5Exists",
        "parameters": [
          {
            "name": "stationId",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          },
          {
            "name": "date",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Pgm5ExistsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/pgm/types": {
      "get": {
        "tags": [
          "PGM"
        ],
        "operationId": "getApiV1PgmTypes",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProgrammingTypeResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/pgm/{pgmId}": {
      "put": {
        "tags": [
          "PGM"
        ],
        "operationId": "putApiV1PgmPgmId",
        "parameters": [
          {
            "name": "pgmId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePgmRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PgmResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "get": {
        "tags": [
          "PGM"
        ],
        "operationId": "getApiV1PgmPgmId",
        "parameters": [
          {
            "name": "pgmId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PgmResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "tags": [
          "PGM"
        ],
        "operationId": "deleteApiV1PgmPgmId",
        "parameters": [
          {
            "name": "pgmId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {}
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/pgm": {
      "post": {
        "tags": [
          "PGM"
        ],
        "operationId": "postApiV1Pgm",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePgmRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PgmResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "get": {
        "tags": [
          "PGM"
        ],
        "operationId": "getApiV1Pgm",
        "parameters": [
          {
            "name": "StationId",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          },
          {
            "name": "Date",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ProgrammingTypeId",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "Active",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/pgm/conditions": {
      "get": {
        "tags": [
          "PGM"
        ],
        "operationId": "getApiV1PgmConditions",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PgmConditionResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/priority-type/{priorityTypeId}": {
      "get": {
        "tags": [
          "PriorityType"
        ],
        "operationId": "getApiV1PriorityTypePriorityTypeId",
        "parameters": [
          {
            "name": "priorityTypeId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PriorityTypeResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/priority-type": {
      "get": {
        "tags": [
          "PriorityType"
        ],
        "operationId": "getApiV1PriorityType",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PriorityTypeResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/reports/schedule": {
      "get": {
        "tags": [
          "Report"
        ],
        "operationId": "getApiV1TrafficReportsSchedule",
        "parameters": [
          {
            "name": "startDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "endDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "stationId",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ReportScheduleItem"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/reports/break-occupancy": {
      "get": {
        "tags": [
          "Report"
        ],
        "operationId": "getApiV1TrafficReportsBreakOccupancy",
        "parameters": [
          {
            "name": "startDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "endDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "stationId",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ReportBreakOccupancyItem"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/reports/audit": {
      "get": {
        "tags": [
          "Report"
        ],
        "operationId": "getApiV1TrafficReportsAudit",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "method",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "statusCode",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "userId",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ReportAuditLogItem"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/reports/industry-share": {
      "get": {
        "tags": [
          "Report"
        ],
        "operationId": "getApiV1TrafficReportsIndustryShare",
        "parameters": [
          {
            "name": "startDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "endDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "stationId",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ReportIndustryShareItem"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/reports/programming": {
      "get": {
        "tags": [
          "Report"
        ],
        "operationId": "getApiV1TrafficReportsProgramming",
        "parameters": [
          {
            "name": "startDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "endDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "stationId",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          },
          {
            "name": "clientId",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "orderId",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SchedulingResponse"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/reports/orders": {
      "get": {
        "tags": [
          "Report"
        ],
        "operationId": "getApiV1TrafficReportsOrders",
        "parameters": [
          {
            "name": "startDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "endDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "stationId",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          },
          {
            "name": "clientId",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "orderId",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ReportOrdenesItem"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/rythm-type/{rythmTypeId}": {
      "get": {
        "tags": [
          "RythmType"
        ],
        "operationId": "getApiV1RythmTypeRythmTypeId",
        "parameters": [
          {
            "name": "rythmTypeId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RythmTypeResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/rythm-type": {
      "get": {
        "tags": [
          "RythmType"
        ],
        "operationId": "getApiV1RythmType",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RythmTypeResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/settings": {
      "get": {
        "tags": [
          "Settings"
        ],
        "operationId": "getApiV1TrafficSettings",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SettingsResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "patch": {
        "tags": [
          "Settings"
        ],
        "operationId": "patchApiV1TrafficSettings",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSettingsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SettingsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/station/{stationId}/canvases": {
      "get": {
        "tags": [
          "Station"
        ],
        "operationId": "getApiV1StationStationIdCanvases",
        "parameters": [
          {
            "name": "stationId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "put": {
        "tags": [
          "Station"
        ],
        "operationId": "putApiV1StationStationIdCanvases",
        "parameters": [
          {
            "name": "stationId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/station": {
      "get": {
        "tags": [
          "Station"
        ],
        "description": "Devuelve todas las filas y columnas de la tabla STATION.",
        "operationId": "getApiV1Station",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/station/{stationId}": {
      "get": {
        "tags": [
          "Station"
        ],
        "description": "Devuelve todas las columnas de la fila de STATION que coincide con el stationId.",
        "operationId": "getApiV1StationStationId",
        "parameters": [
          {
            "name": "stationId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/station/{stationId}/image": {
      "get": {
        "tags": [
          "Station"
        ],
        "description": "Devuelve la imagen de STATIONIMG desde la carpeta Image de System Storage.",
        "operationId": "getApiV1StationStationIdImage",
        "parameters": [
          {
            "name": "stationId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/health": {
      "get": {
        "tags": [
          "System"
        ],
        "description": "Devuelve el estado de disponibilidad del proceso de la API.",
        "operationId": "getHealth",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/version": {
      "get": {
        "tags": [
          "System"
        ],
        "description": "Devuelve la versión del ensamblado y el entorno de ejecución.",
        "operationId": "getVersion",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {}
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/template": {
      "post": {
        "tags": [
          "Template"
        ],
        "operationId": "postApiV1TrafficTemplate",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateTemplateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemplateResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "get": {
        "tags": [
          "Template"
        ],
        "operationId": "getApiV1TrafficTemplate",
        "parameters": [
          {
            "name": "includeInactive",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TemplateResponse"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/template/{id}": {
      "put": {
        "tags": [
          "Template"
        ],
        "operationId": "putApiV1TrafficTemplateId",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTemplateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemplateResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "get": {
        "tags": [
          "Template"
        ],
        "operationId": "getApiV1TrafficTemplateId",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemplateResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "delete": {
        "tags": [
          "Template"
        ],
        "operationId": "deleteApiV1TrafficTemplateId",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {}
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/template/{id}/duplicate": {
      "post": {
        "tags": [
          "Template"
        ],
        "operationId": "postApiV1TrafficTemplateIdDuplicate",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DuplicateTemplateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemplateResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/template/{id}/hard": {
      "delete": {
        "tags": [
          "Template"
        ],
        "operationId": "deleteApiV1TrafficTemplateIdHard",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {}
            }
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/user/{userid}": {
      "get": {
        "tags": [
          "User"
        ],
        "description": "Obtiene un usuario por su ID.",
        "operationId": "getApiV1TrafficUserUserid",
        "parameters": [
          {
            "name": "userid",
            "in": "path",
            "description": "ID del usuario.",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      },
      "put": {
        "tags": [
          "User"
        ],
        "description": "Actualiza el roleid de un usuario (endpoint singular).",
        "operationId": "putApiV1TrafficUserUserid",
        "parameters": [
          {
            "name": "userid",
            "in": "path",
            "description": "ID del usuario.",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "description": "Objeto con el nuevo roleid.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateUserRoleDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/users/{userid}": {
      "put": {
        "tags": [
          "User"
        ],
        "description": "Actualiza el roleid de un usuario (endpoint plural).",
        "operationId": "putApiV1TrafficUsersUserid",
        "parameters": [
          {
            "name": "userid",
            "in": "path",
            "description": "ID del usuario.",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "description": "Objeto con el nuevo roleid.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateUserRoleDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/users": {
      "get": {
        "tags": [
          "User"
        ],
        "description": "Obtiene todos los usuarios.",
        "operationId": "getApiV1TrafficUsers",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    },
    "/api/v1/traffic/user/refreshusers": {
      "post": {
        "tags": [
          "User"
        ],
        "operationId": "postApiV1TrafficUserRefreshusers",
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "Authentication required or access token expired."
          },
          "403": {
            "description": "Authenticated user is not allowed to access this resource."
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "ActiveStage": {
        "type": "integer",
        "description": "Active stage of the scheduler. Controls which logic is enabled."
      },
      "AgencyResponse": {
        "type": "object",
        "properties": {
          "agencyId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Identificador único de la agencia.",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "description": "Nombre comercial de la agencia."
          },
          "type": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Código del tipo de agencia.",
            "format": "uint8"
          },
          "typeName": {
            "type": [
              "null",
              "string"
            ],
            "description": "Nombre del tipo de agencia."
          },
          "contact": {
            "type": [
              "null",
              "string"
            ],
            "description": "Persona de contacto principal."
          },
          "phone": {
            "type": [
              "null",
              "string"
            ],
            "description": "Teléfono de contacto."
          },
          "email": {
            "type": [
              "null",
              "string"
            ],
            "description": "Correo electrónico de contacto."
          },
          "commission": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "description": "Comisión porcentual o comercial de la agencia.",
            "format": "double"
          },
          "notes": {
            "type": [
              "null",
              "string"
            ],
            "description": "Observaciones internas o comerciales."
          },
          "status": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Código del estado de la agencia.",
            "format": "uint8"
          },
          "statusName": {
            "type": [
              "null",
              "string"
            ],
            "description": "Nombre del estado de la agencia."
          }
        },
        "description": "Agencia de tráfico con datos descriptivos y referencias a catálogos."
      },
      "AlbumResponse": {
        "type": "object",
        "properties": {
          "albumId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "albumName": {
            "type": "string"
          },
          "albumYear": {
            "type": [
              "null",
              "string"
            ]
          },
          "genreId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "catalogCode": {
            "type": [
              "null",
              "string"
            ]
          },
          "companyId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "comments": {
            "type": [
              "null",
              "string"
            ]
          },
          "imageFileId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          }
        }
      },
      "AssetTypeResponse": {
        "type": "object",
        "properties": {
          "assetTypeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "assetTypeName": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "BatchDeleteRequest": {
        "type": "object",
        "properties": {
          "materialIds": {
            "type": "array",
            "items": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          }
        }
      },
      "BreakClipResponse": {
        "required": [
          "position",
          "clipId",
          "materialId",
          "assetTypeName",
          "durationSeconds"
        ],
        "type": "object",
        "properties": {
          "position": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "clipId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "materialId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "materialCode": {
            "type": [
              "null",
              "string"
            ]
          },
          "assetTypeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "assetTypeName": {
            "type": "string"
          },
          "title": {
            "type": [
              "null",
              "string"
            ]
          },
          "durationSeconds": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "playedDate": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "aired": {
            "type": "boolean"
          }
        },
        "description": "Clip fijo pre-asignado."
      },
      "BreakResponse": {
        "required": [
          "breakId",
          "templateId",
          "name",
          "startTime",
          "startDayOffset",
          "totalDuration",
          "breakType",
          "zones",
          "clips"
        ],
        "type": "object",
        "properties": {
          "breakId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "templateId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "startTime": {
            "type": "string",
            "format": "time"
          },
          "startDayOffset": {
            "type": "boolean"
          },
          "totalDuration": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "breakType": {
            "type": "string"
          },
          "zones": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ZoneResponse"
            }
          },
          "clips": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BreakClipResponse"
            }
          }
        },
        "description": "Información de un break (tanda) programado."
      },
      "BreakTemplateClipResponse": {
        "required": [
          "clipId",
          "durationSeconds",
          "position"
        ],
        "type": "object",
        "properties": {
          "clipId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "materialId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "randomArtisticCategoryId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "assetTypeName": {
            "type": [
              "null",
              "string"
            ]
          },
          "title": {
            "type": [
              "null",
              "string"
            ]
          },
          "durationSeconds": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "position": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        },
        "description": "DTO de respuesta para un clip de template."
      },
      "BreakTemplateResponse": {
        "required": [
          "breakTemplateId",
          "templateId",
          "stationId",
          "templateName",
          "name",
          "startTime",
          "dayOffset",
          "totalDuration",
          "breakType",
          "breakTypeName",
          "dayOfWeek",
          "isActive",
          "utcCreated",
          "utcModified"
        ],
        "type": "object",
        "properties": {
          "breakTemplateId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "templateId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "stationId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "templateName": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "startTime": {
            "type": "string",
            "format": "time"
          },
          "dayOffset": {
            "type": "boolean"
          },
          "totalDuration": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "breakType": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "uint8"
          },
          "breakTypeName": {
            "type": [
              "null",
              "string"
            ]
          },
          "dayOfWeek": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "uint8"
          },
          "specificDate": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "isActive": {
            "type": "boolean"
          },
          "utcCreated": {
            "type": "string",
            "format": "date-time"
          },
          "utcModified": {
            "type": "string",
            "format": "date-time"
          },
          "zones": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BreakTemplateZoneResponse"
            }
          },
          "clips": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BreakTemplateClipResponse"
            }
          }
        },
        "description": "DTO de respuesta para un template de tanda."
      },
      "BreakTemplateZoneResponse": {
        "required": [
          "zoneId",
          "scope",
          "scopeName",
          "maxDuration",
          "position"
        ],
        "type": "object",
        "properties": {
          "zoneId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "scope": {
            "$ref": "#/components/schemas/Scope"
          },
          "scopeName": {
            "type": [
              "null",
              "string"
            ]
          },
          "maxDuration": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "position": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        },
        "description": "DTO de respuesta para una zona de template."
      },
      "CampaignResponse": {
        "type": "object",
        "properties": {
          "campaignId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "clientId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "clientName": {
            "type": [
              "null",
              "string"
            ]
          },
          "agencyId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "agencyName": {
            "type": [
              "null",
              "string"
            ]
          },
          "name": {
            "type": "string"
          },
          "startDate": {
            "type": "string",
            "format": "date"
          },
          "endDate": {
            "type": "string",
            "format": "date"
          },
          "status": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "uint8"
          },
          "statusName": {
            "type": [
              "null",
              "string"
            ]
          },
          "notes": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CategoryResponse": {
        "type": "object",
        "properties": {
          "categoryId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "categoryName": {
            "type": "string"
          },
          "nodeLevel": {
            "type": [
              "null",
              "string"
            ]
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "counter": {
            "type": [
              "null",
              "string"
            ]
          },
          "prefix": {
            "type": [
              "null",
              "string"
            ]
          },
          "isStorage": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "assetTypeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "storageName": {
            "type": [
              "null",
              "string"
            ]
          },
          "utcCreatedDate": {
            "type": [
              "null",
              "string"
            ]
          },
          "utcCreatedTime": {
            "type": [
              "null",
              "string"
            ]
          },
          "utcModifiedDate": {
            "type": [
              "null",
              "string"
            ]
          },
          "utcModifiedTime": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ClientResponse": {
        "type": "object",
        "properties": {
          "clientId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "companyName": {
            "type": "string"
          },
          "industries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IndustryItem"
            }
          },
          "contact": {
            "type": [
              "null",
              "string"
            ]
          },
          "phone": {
            "type": [
              "null",
              "string"
            ]
          },
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "status": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "uint8"
          },
          "statusName": {
            "type": [
              "null",
              "string"
            ]
          },
          "notes": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ClipMetadataResponse": {
        "type": "object",
        "properties": {
          "clipMetadataId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "materialId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "orderId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "ClipRequest": {
        "type": "object",
        "properties": {
          "materialId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          }
        }
      },
      "ClipResponse": {
        "type": "object",
        "properties": {
          "materialId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "code": {
            "type": [
              "null",
              "string"
            ]
          },
          "title": {
            "type": [
              "null",
              "string"
            ]
          },
          "duration": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "categoryId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "categoryName": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CompanyResponse": {
        "type": "object",
        "properties": {
          "companyId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "companyName": {
            "type": "string"
          },
          "utcCreatedDate": {
            "type": [
              "null",
              "string"
            ]
          },
          "utcCreatedTime": {
            "type": [
              "null",
              "string"
            ]
          },
          "utcModifiedDate": {
            "type": [
              "null",
              "string"
            ]
          },
          "utcModifiedTime": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "Connection": {
        "type": "object",
        "properties": {
          "workstationIp": {
            "type": "string"
          },
          "workstationName": {
            "type": "string"
          },
          "remoteAccess": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "station": {
            "type": "string"
          },
          "studio": {
            "type": [
              "null",
              "string"
            ]
          },
          "stationId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          }
        }
      },
      "CreateAgencyRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Nombre comercial de la agencia."
          },
          "type": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Código del tipo de agencia.",
            "format": "uint8"
          },
          "contact": {
            "type": [
              "null",
              "string"
            ],
            "description": "Persona de contacto principal."
          },
          "phone": {
            "type": [
              "null",
              "string"
            ],
            "description": "Teléfono de contacto."
          },
          "email": {
            "type": [
              "null",
              "string"
            ],
            "description": "Correo electrónico de contacto."
          },
          "commission": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "description": "Comisión porcentual o comercial de la agencia.",
            "format": "double"
          },
          "notes": {
            "type": [
              "null",
              "string"
            ],
            "description": "Observaciones internas o comerciales."
          },
          "status": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Código del estado inicial de la agencia.",
            "format": "uint8"
          }
        },
        "description": "Datos requeridos para crear una agencia."
      },
      "CreateAlbumRequest": {
        "required": [
          "albumName"
        ],
        "type": "object",
        "properties": {
          "albumName": {
            "type": "string"
          },
          "albumYear": {
            "type": [
              "null",
              "string"
            ]
          },
          "genreId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "catalogCode": {
            "type": [
              "null",
              "string"
            ]
          },
          "companyId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "comments": {
            "type": [
              "null",
              "string"
            ]
          },
          "imageFileId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          }
        }
      },
      "CreateBreakTemplateClipRequest": {
        "required": [
          "position"
        ],
        "type": "object",
        "properties": {
          "materialId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "randomArtisticCategoryId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "position": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        },
        "description": "DTO para crear un clip dentro de un template."
      },
      "CreateBreakTemplateRequest": {
        "required": [
          "templateId",
          "name",
          "startTime",
          "dayOffset",
          "totalDuration"
        ],
        "type": "object",
        "properties": {
          "templateId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "startTime": {
            "type": "string",
            "format": "time"
          },
          "dayOffset": {
            "type": "boolean"
          },
          "totalDuration": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "breakType": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "uint8"
          },
          "isActive": {
            "type": "boolean"
          },
          "zones": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreateBreakTemplateZoneRequest"
            }
          },
          "clips": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreateBreakTemplateClipRequest"
            }
          }
        },
        "description": "DTO para crear un nuevo template de tanda.\r\nIncluye zonas y clips asociados."
      },
      "CreateBreakTemplateZoneRequest": {
        "required": [
          "maxDuration",
          "position"
        ],
        "type": "object",
        "properties": {
          "scope": {
            "$ref": "#/components/schemas/Scope"
          },
          "maxDuration": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "position": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        },
        "description": "DTO para crear una zona dentro de un template."
      },
      "CreateBreakTypeRequest": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          }
        }
      },
      "CreateCampaignRequest": {
        "type": "object",
        "properties": {
          "clientId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "agencyId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "startDate": {
            "type": "string",
            "format": "date"
          },
          "endDate": {
            "type": "string",
            "format": "date"
          },
          "status": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "uint8"
          },
          "notes": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CreateCategoryRequest": {
        "type": "object",
        "properties": {
          "categoryName": {
            "type": "string"
          },
          "parentCategoryId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "assetTypeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "prefix": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CreateClientRequest": {
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string"
          },
          "industryIds": {
            "type": "array",
            "items": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          "contact": {
            "type": [
              "null",
              "string"
            ]
          },
          "phone": {
            "type": [
              "null",
              "string"
            ]
          },
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "status": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "uint8"
          },
          "notes": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CreateClipMetadataRequest": {
        "type": "object",
        "properties": {
          "materialId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          }
        }
      },
      "CreateCompanyRequest": {
        "required": [
          "companyName"
        ],
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string"
          }
        }
      },
      "CreateGenreRequest": {
        "required": [
          "genreName"
        ],
        "type": "object",
        "properties": {
          "genreName": {
            "type": "string"
          }
        }
      },
      "CreateOrderDaypartRequest": {
        "type": "object",
        "properties": {
          "orderId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "stationId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "fixedTime": {
            "type": "boolean"
          },
          "startTime": {
            "type": "string",
            "format": "time"
          },
          "endTime": {
            "type": "string",
            "format": "time"
          },
          "startDayOffset": {
            "type": "boolean"
          },
          "endDayOffset": {
            "type": "boolean"
          },
          "weekdays": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "uint8"
          },
          "orderRuns": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "CreateOrderRequest": {
        "type": "object",
        "properties": {
          "campaignId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "clientId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "duration": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "startDate": {
            "type": "string",
            "format": "date"
          },
          "endDate": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "priority": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "breakTypeFilter": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "uint8"
          },
          "positionType": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "uint8"
          },
          "scope": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "uint8"
          },
          "protectionLevel": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "uint8"
          },
          "minSeparation": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "maxFrequency": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "interleaveArtistic": {
            "type": "boolean"
          },
          "title": {
            "type": [
              "null",
              "string"
            ]
          },
          "status": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "uint8"
          },
          "dayparts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrderDaypartDto"
            }
          },
          "clips": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ClipRequest"
            }
          },
          "industryIds": {
            "type": "array",
            "items": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        }
      },
      "CreatePersonRequest": {
        "required": [
          "personName"
        ],
        "type": "object",
        "properties": {
          "personName": {
            "type": "string"
          }
        }
      },
      "CreatePgmRequest": {
        "required": [
          "stationId",
          "date",
          "programmingTypeId",
          "blocks"
        ],
        "type": "object",
        "properties": {
          "stationId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "date": {
            "type": "string"
          },
          "programmingTypeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "active": {
            "type": "boolean"
          },
          "blocks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PgmBlockRequest"
            }
          }
        }
      },
      "CreateTemplateRequest": {
        "required": [
          "stationId",
          "name",
          "startTime",
          "endTime",
          "endDayOffset"
        ],
        "type": "object",
        "properties": {
          "stationId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "name": {
            "type": "string"
          },
          "dayOfWeek": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "uint8"
          },
          "startTime": {
            "type": "string",
            "format": "time"
          },
          "endTime": {
            "type": "string",
            "format": "time"
          },
          "endDayOffset": {
            "type": "boolean"
          },
          "specificDate": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "isActive": {
            "type": "boolean"
          }
        }
      },
      "DuplicateTemplateRequest": {
        "required": [
          "targetStationId",
          "name"
        ],
        "type": "object",
        "properties": {
          "targetStationId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "name": {
            "type": "string"
          },
          "dayOfWeek": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "uint8"
          },
          "specificDate": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          }
        }
      },
      "FileTypeResponse": {
        "type": "object",
        "properties": {
          "fileTypeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "fileTypeName": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "GenreResponse": {
        "type": "object",
        "properties": {
          "genreId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "genreName": {
            "type": "string"
          }
        }
      },
      "HdxLoginRequest": {
        "type": "object",
        "properties": {
          "username": {
            "type": "string",
            "description": "Nombre de usuario HDX."
          },
          "password": {
            "type": "string",
            "description": "Contraseña en texto plano enviada para autenticación."
          }
        },
        "description": "Credenciales de autenticación de un usuario HDX."
      },
      "IFormFile": {
        "type": "string",
        "format": "binary"
      },
      "IndustryItem": {
        "type": "object",
        "properties": {
          "industryId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "name": {
            "type": "string"
          }
        }
      },
      "IndustryResponse": {
        "type": "object",
        "properties": {
          "industryId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "name": {
            "type": "string"
          }
        }
      },
      "JsonElement": {},
      "LicenseChangeRequest": {
        "type": "object",
        "properties": {
          "machineName": {
            "type": [
              "null",
              "string"
            ],
            "description": "Nombre de la máquina destino (por ejemplo \"PDV-01\")."
          },
          "appName": {
            "type": [
              "null",
              "string"
            ],
            "description": "Aplicación destino (por ejemplo \"Dinesat 12 Visual\")."
          },
          "userCode": {
            "type": [
              "null",
              "string"
            ],
            "description": "Nuevo código de licencia a aplicar."
          }
        },
        "description": "Solicitud para cambiar la licencia. Se envía a Hardata por named pipe con el\r\nmensaje `{ meta: { msgType: \"ChangeProductLicense\" }, data: { MachineName, AppName, UserCode } }`.\r\nMismo modelo para Dinesat y HDX."
      },
      "LicenseGeneralDto": {
        "type": "object",
        "properties": {
          "key": {
            "type": [
              "null",
              "string"
            ],
            "description": "Clave de licencia. Presente en HDX; se omite en Dinesat."
          },
          "expiration": {
            "type": [
              "null",
              "string"
            ],
            "description": "Fecha de expiración de la licencia en el formato provisto por Hardata. Presente en HDX; se omite en Dinesat."
          },
          "serverWorkstation": {
            "type": [
              "null",
              "string"
            ],
            "description": "Nombre de la workstation del servidor (nodo `General\\ServerWorkstation`).\r\nOpcional: se omite si el XML no incluye el nodo."
          },
          "ip": {
            "type": [
              "null",
              "string"
            ],
            "description": "IP del servidor (nodo `General\\IP`). Opcional: se omite si el XML no incluye el nodo."
          },
          "users": {
            "description": "Conteo de usuarios de la licencia.",
            "$ref": "#/components/schemas/LicenseUsersDto"
          }
        },
        "description": "Datos generales de la licencia."
      },
      "LicenseInfoResponse": {
        "type": "object",
        "properties": {
          "general": {
            "description": "Datos generales de la licencia.",
            "$ref": "#/components/schemas/LicenseGeneralDto"
          },
          "servers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LicenseServerDto"
            },
            "description": "Servidores o instancias de la licencia con sus workstations."
          }
        },
        "description": "Información de licencia leída desde los archivos `LicenseInfo.xml`.\r\nEl shape es único para ambos productos: HDX expone la clave y expiración en\r\nLicenseGeneralDto, mientras que Dinesat las expone por cada workstation.\r\nLos campos que no aplican al producto se omiten en la respuesta."
      },
      "LicenseServerDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Nombre del servidor (atributo `name` del nodo `Server`)."
          },
          "port": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "description": "Puerto del servidor, proveniente del atributo `port` del nodo\r\n`Server` del XML. Opcional: se omite si el XML no incluye el atributo.",
            "format": "int32"
          },
          "workstations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LicenseWorkstationDto"
            },
            "description": "Workstations registradas para este servidor."
          }
        },
        "description": "Servidor o instancia incluida en la licencia."
      },
      "LicenseUsersDto": {
        "type": "object",
        "properties": {
          "current": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Cantidad de usuarios actualmente en uso.",
            "format": "int32"
          },
          "limit": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Límite de usuarios habilitados.",
            "format": "int32"
          },
          "maxHistoric": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Máximo histórico de usuarios registrado.",
            "format": "int32"
          }
        },
        "description": "Conteo de usuarios de la licencia."
      },
      "LicenseWorkstationDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "null",
              "string"
            ],
            "description": "Nombre de la workstation."
          },
          "ip": {
            "type": [
              "null",
              "string"
            ],
            "description": "Dirección IP de la workstation."
          },
          "application": {
            "type": [
              "null",
              "string"
            ],
            "description": "Aplicación asociada (por ejemplo \"HARDATA HDX 5\")."
          },
          "user": {
            "type": [
              "null",
              "string"
            ],
            "description": "Usuario registrado en la workstation."
          },
          "active": {
            "type": [
              "null",
              "string"
            ],
            "description": "Fecha/estado de actividad provisto por Hardata."
          },
          "key": {
            "type": [
              "null",
              "string"
            ],
            "description": "Clave de licencia. Presente en Dinesat; se omite en HDX."
          },
          "expiration": {
            "type": [
              "null",
              "string"
            ],
            "description": "Fecha de expiración de la licencia. Presente en Dinesat; se omite en HDX."
          }
        },
        "description": "Workstation registrada en la licencia."
      },
      "LinkArtistRequest": {
        "type": "object",
        "properties": {
          "personId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "order": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "unique": {
            "type": "boolean"
          }
        }
      },
      "LinkAuthorRequest": {
        "type": "object",
        "properties": {
          "personId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "order": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "unique": {
            "type": "boolean"
          }
        }
      },
      "LoginResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "description": "Indica si la operación se completó correctamente."
          },
          "message": {
            "type": "string",
            "description": "Mensaje descriptivo del resultado."
          },
          "token": {
            "type": [
              "null",
              "string"
            ],
            "description": "Access token JWT para llamadas autenticadas."
          },
          "refreshToken": {
            "type": [
              "null",
              "string"
            ],
            "description": "Refresh token para obtener nuevos access tokens."
          }
        },
        "description": "Resultado de autenticación o renovación de token."
      },
      "MaterialArtistResponse": {
        "type": "object",
        "properties": {
          "personId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "personName": {
            "type": "string"
          },
          "order": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "unique": {
            "type": "boolean"
          }
        }
      },
      "MaterialAuthorResponse": {
        "type": "object",
        "properties": {
          "personId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "personName": {
            "type": "string"
          },
          "order": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "unique": {
            "type": "boolean"
          }
        }
      },
      "MaterialFileResponse": {
        "type": "object",
        "properties": {
          "fileId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "fileName": {
            "type": "string"
          },
          "fileTypeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "subFolder": {
            "type": "string"
          },
          "mimeType": {
            "type": [
              "null",
              "string"
            ]
          },
          "fileSize": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "utcCreatedDate": {
            "type": "string"
          },
          "utcCreatedTime": {
            "type": "string"
          },
          "fullPath": {
            "type": "string"
          }
        }
      },
      "MaterialFillResponse": {
        "type": "object",
        "properties": {
          "materialId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "fileId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          }
        }
      },
      "MaterialPlaceholderRequest": {
        "required": [
          "rdsText",
          "code",
          "comments",
          "title",
          "categoryId"
        ],
        "type": "object",
        "properties": {
          "rdsText": {
            "type": [
              "null",
              "string"
            ]
          },
          "code": {
            "type": "string"
          },
          "comments": {
            "type": [
              "null",
              "string"
            ]
          },
          "title": {
            "type": "string"
          },
          "categoryId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "assetTypeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "mediaTypeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "albumId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "companyId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "genreId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "rythmId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "artistIds": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          },
          "authorIds": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          }
        }
      },
      "MaterialResponse": {
        "type": "object",
        "properties": {
          "materialId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "title": {
            "type": [
              "null",
              "string"
            ]
          },
          "code": {
            "type": [
              "null",
              "string"
            ]
          },
          "rdsText": {
            "type": [
              "null",
              "string"
            ]
          },
          "comments": {
            "type": [
              "null",
              "string"
            ]
          },
          "priorityId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "assetTypeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "mediaTypeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "materialStateId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "startPos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "endPos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "intro": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "outro": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "punchIn": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "punchOut": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "punchInFadeLength": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "punchOutFadeLength": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "punchInFadeTypeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "punchOutFadeTypeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "insertOver": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "length": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "contractStartDate": {
            "type": [
              "null",
              "string"
            ]
          },
          "contractEndDate": {
            "type": [
              "null",
              "string"
            ]
          },
          "utcCreatedDate": {
            "type": [
              "null",
              "string"
            ]
          },
          "utcCreatedTime": {
            "type": [
              "null",
              "string"
            ]
          },
          "utcModifiedDate": {
            "type": [
              "null",
              "string"
            ]
          },
          "utcModifiedTime": {
            "type": [
              "null",
              "string"
            ]
          },
          "contentTypeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "contentDate": {
            "type": [
              "null",
              "string"
            ]
          },
          "contentTime": {
            "type": [
              "null",
              "string"
            ]
          },
          "oldMaterialId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "vStandard": {
            "type": [
              "null",
              "string"
            ]
          },
          "archiveStateId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "customField0": {
            "type": [
              "null",
              "string"
            ]
          },
          "customField1": {
            "type": [
              "null",
              "string"
            ]
          },
          "customField2": {
            "type": [
              "null",
              "string"
            ]
          },
          "customField3": {
            "type": [
              "null",
              "string"
            ]
          },
          "customField4": {
            "type": [
              "null",
              "string"
            ]
          },
          "customField5": {
            "type": [
              "null",
              "string"
            ]
          },
          "customField6": {
            "type": [
              "null",
              "string"
            ]
          },
          "customField7": {
            "type": [
              "null",
              "string"
            ]
          },
          "customField8": {
            "type": [
              "null",
              "string"
            ]
          },
          "customField9": {
            "type": [
              "null",
              "string"
            ]
          },
          "national": {
            "type": "boolean"
          },
          "independent": {
            "type": "boolean"
          },
          "skipSadaic": {
            "type": "boolean"
          },
          "useTypeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "recordingTypeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "personType": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "languageId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "bpm": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "tags": {
            "type": [
              "null",
              "string"
            ]
          },
          "rythmId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "utcDcsCuratedDate": {
            "type": [
              "null",
              "string"
            ]
          },
          "utcDcsCuratedTime": {
            "type": [
              "null",
              "string"
            ]
          },
          "acousticId": {
            "type": [
              "null",
              "string"
            ]
          },
          "companyId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "albumId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "genreId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "categoryId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "categoryName": {
            "type": [
              "null",
              "string"
            ]
          },
          "isDeleted": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "master": {
            "type": [
              "null",
              "boolean"
            ]
          }
        }
      },
      "MediaTypeResponse": {
        "type": "object",
        "properties": {
          "mediaTypeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "mediaTypeName": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "NextCodeResponse": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          }
        }
      },
      "OrderDaypartDto": {
        "type": "object",
        "properties": {
          "daypartId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "orderId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "stationId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "fixedTime": {
            "type": "boolean"
          },
          "startTime": {
            "type": "string",
            "format": "time"
          },
          "endTime": {
            "type": "string",
            "format": "time"
          },
          "startDayOffset": {
            "type": "boolean"
          },
          "endDayOffset": {
            "type": "boolean"
          },
          "weekdays": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "uint8"
          },
          "orderRuns": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "OrderMissingFilesResponse": {
        "type": "object",
        "properties": {
          "orderId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "title": {
            "type": [
              "null",
              "string"
            ]
          },
          "clientId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "clientName": {
            "type": [
              "null",
              "string"
            ]
          },
          "campaignId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "campaignName": {
            "type": [
              "null",
              "string"
            ]
          },
          "startDate": {
            "type": "string",
            "format": "date"
          },
          "endDate": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "status": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "uint8"
          },
          "statusName": {
            "type": [
              "null",
              "string"
            ]
          },
          "firstAirDate": {
            "type": "string",
            "description": "Primera fecha de PGM dentro de la ventana donde sale un clip sin file.",
            "format": "date"
          },
          "stationIds": {
            "type": "array",
            "items": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          },
          "missingClips": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ClipResponse"
            }
          }
        },
        "description": "Alerta para frontend: orden con al menos un clip pautado en PGM\r\ncuyo material no tiene file asociado (placeholder olvidado)."
      },
      "OrderResponse": {
        "type": "object",
        "properties": {
          "orderId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "campaignId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "campaignName": {
            "type": [
              "null",
              "string"
            ]
          },
          "clientId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "clientName": {
            "type": [
              "null",
              "string"
            ]
          },
          "duration": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "startDate": {
            "type": "string",
            "format": "date"
          },
          "endDate": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "priority": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "breakTypeFilter": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "uint8"
          },
          "breakTypeFilterName": {
            "type": [
              "null",
              "string"
            ]
          },
          "positionType": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "uint8"
          },
          "positionTypeName": {
            "type": [
              "null",
              "string"
            ]
          },
          "scopeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "uint8"
          },
          "scopeName": {
            "type": [
              "null",
              "string"
            ]
          },
          "protectionLevel": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "uint8"
          },
          "protectionLevelName": {
            "type": [
              "null",
              "string"
            ]
          },
          "interleaveArtistic": {
            "type": "boolean"
          },
          "title": {
            "type": [
              "null",
              "string"
            ]
          },
          "status": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "uint8"
          },
          "statusName": {
            "type": [
              "null",
              "string"
            ]
          },
          "dayparts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrderDaypartDto"
            }
          },
          "clips": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ClipResponse"
            }
          },
          "industries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IndustryResponse"
            }
          }
        }
      },
      "PagedResponseOfMaterialResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MaterialResponse"
            }
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "PersonResponse": {
        "type": "object",
        "properties": {
          "personId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "personName": {
            "type": "string"
          }
        }
      },
      "Pgm5ExistsResponse": {
        "type": "object",
        "properties": {
          "exists": {
            "type": "boolean"
          },
          "pgmId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "status": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "uint8"
          },
          "statusName": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "Pgm5SummaryResponse": {
        "type": "object",
        "properties": {
          "pgmId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "stationId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "pgmDate": {
            "type": "string",
            "format": "date"
          },
          "templateId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "status": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "uint8"
          },
          "statusName": {
            "type": [
              "null",
              "string"
            ]
          },
          "reviewReasons": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "unplaced": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "forced": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "conflict": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "PgmBlockRequest": {
        "required": [
          "blockTime",
          "events"
        ],
        "type": "object",
        "properties": {
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "blockTime": {
            "type": "string"
          },
          "events": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PgmEventRequest"
            }
          }
        }
      },
      "PgmBlockResponse": {
        "type": "object",
        "properties": {
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "blockTime": {
            "type": "string"
          },
          "events": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PgmEventResponse"
            }
          }
        }
      },
      "PgmConditionResponse": {
        "type": "object",
        "properties": {
          "condition": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          }
        }
      },
      "PgmEventRequest": {
        "required": [
          "materialId",
          "condition"
        ],
        "type": "object",
        "properties": {
          "materialId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "condition": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "trafficCode": {
            "type": [
              "null",
              "string"
            ]
          },
          "trafficIndex": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PgmEventResponse": {
        "type": "object",
        "properties": {
          "materialId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "condition": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "trafficCode": {
            "type": [
              "null",
              "string"
            ]
          },
          "trafficIndex": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PgmResponse": {
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "stationId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "date": {
            "type": "string"
          },
          "programmingTypeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "programmingTypeName": {
            "type": [
              "null",
              "string"
            ]
          },
          "active": {
            "type": "boolean"
          },
          "utcModifiedDate": {
            "type": "string"
          },
          "utcModifiedTime": {
            "type": "string"
          },
          "blocks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PgmBlockResponse"
            }
          }
        }
      },
      "PriorityTypeResponse": {
        "type": "object",
        "properties": {
          "priorityTypeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "priorityTypeName": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": [
              "null",
              "string"
            ]
          },
          "title": {
            "type": [
              "null",
              "string"
            ]
          },
          "status": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "detail": {
            "type": [
              "null",
              "string"
            ]
          },
          "instance": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ProgrammingTypeResponse": {
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "name": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "RefreshTokenRequest": {
        "type": "object",
        "properties": {
          "refreshToken": {
            "type": "string",
            "description": "Refresh token emitido previamente por la API."
          }
        },
        "description": "Solicitud para renovar un access token usando un refresh token."
      },
      "ReportAuditLogItem": {
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "userId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "username": {
            "type": [
              "null",
              "string"
            ]
          },
          "method": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "action": {
            "type": "string"
          },
          "detail": {
            "type": [
              "null",
              "string"
            ]
          },
          "statusCode": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "elapsedMs": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "error": {
            "type": [
              "null",
              "string"
            ]
          }
        },
        "description": "Fila de auditoría de acciones de usuarios."
      },
      "ReportBreakOccupancyItem": {
        "required": [
          "hour",
          "ocupacionPct",
          "zonaUsadaSeg",
          "zonaMaxSeg",
          "zonas"
        ],
        "type": "object",
        "properties": {
          "hour": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "ocupacionPct": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "zonaUsadaSeg": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "zonaMaxSeg": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "zonas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        },
        "description": "Ocupación promedio de tanda por hora en el rango."
      },
      "ReportIndustryShareItem": {
        "required": [
          "rubro",
          "segundos",
          "spots",
          "porcentaje"
        ],
        "type": "object",
        "properties": {
          "rubro": {
            "type": "string"
          },
          "segundos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "spots": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "porcentaje": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          }
        },
        "description": "Participación por rubro (industria) en el rango."
      },
      "ReportOrdenesItem": {
        "required": [
          "orderId",
          "clientId",
          "duration",
          "vecesQueSaldra",
          "programadosReal"
        ],
        "type": "object",
        "properties": {
          "orderId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "orderTitle": {
            "type": [
              "null",
              "string"
            ]
          },
          "clientId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "clientName": {
            "type": [
              "null",
              "string"
            ]
          },
          "campaignId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "campaignName": {
            "type": [
              "null",
              "string"
            ]
          },
          "duration": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "vecesQueSaldra": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "programadosReal": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        },
        "description": "Proyección de airings por orden en un rango de fechas."
      },
      "ReportScheduleItem": {
        "required": [
          "duration"
        ],
        "type": "object",
        "properties": {
          "playedDate": {
            "type": [
              "null",
              "string"
            ],
            "description": "Actual air date (null if not aired yet).",
            "format": "date"
          },
          "playedTime": {
            "type": [
              "null",
              "string"
            ],
            "description": "Actual air time (null if not aired yet).",
            "format": "time"
          },
          "orderTitle": {
            "type": [
              "null",
              "string"
            ],
            "description": "Advertising order title."
          },
          "clientName": {
            "type": [
              "null",
              "string"
            ]
          },
          "campaignName": {
            "type": [
              "null",
              "string"
            ]
          },
          "industry": {
            "type": [
              "null",
              "string"
            ],
            "description": "Advertiser industry."
          },
          "hdxMaterialName": {
            "type": [
              "null",
              "string"
            ],
            "description": "HDX material name."
          },
          "duration": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "aired": {
            "type": "boolean"
          }
        },
        "description": "As-run log: una fila por emisión de material (spot o clip) en el rango."
      },
      "RythmTypeResponse": {
        "type": "object",
        "properties": {
          "rythmTypeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "rythmTypeName": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "SaveBreakClipRequest": {
        "required": [
          "position",
          "clipId",
          "materialId",
          "durationSeconds"
        ],
        "type": "object",
        "properties": {
          "position": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "clipId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "materialId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "assetTypeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "assetTypeName": {
            "type": [
              "null",
              "string"
            ]
          },
          "title": {
            "type": [
              "null",
              "string"
            ]
          },
          "durationSeconds": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "SaveBreakRequest": {
        "required": [
          "breakId",
          "templateId",
          "name",
          "startTime",
          "totalDuration",
          "breakType",
          "zones",
          "clips"
        ],
        "type": "object",
        "properties": {
          "breakId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "templateId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "startTime": {
            "type": "string",
            "format": "time"
          },
          "totalDuration": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "breakType": {
            "type": "string"
          },
          "zones": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SaveZoneRequest"
            }
          },
          "clips": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SaveBreakClipRequest"
            }
          }
        }
      },
      "SavePgm5Request": {
        "required": [
          "scheduleDate",
          "stationId",
          "breaks",
          "summary",
          "unplaced",
          "metrics",
          "statusId"
        ],
        "type": "object",
        "properties": {
          "pgmId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "scheduleDate": {
            "type": "string",
            "format": "date"
          },
          "stationId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "status": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "uint8"
          },
          "statusName": {
            "type": [
              "null",
              "string"
            ]
          },
          "reviewReasons": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "breaks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SaveBreakRequest"
            }
          },
          "summary": {
            "$ref": "#/components/schemas/SchedulingSummary"
          },
          "unplaced": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SaveUnplacedRequest"
            }
          },
          "metrics": {
            "$ref": "#/components/schemas/SchedulingMetricsResponse"
          },
          "statusId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "uint8"
          },
          "reviewReason": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "SavePgm5Response": {
        "type": "object",
        "properties": {
          "pgmId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "stationId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "pgmDate": {
            "type": "string",
            "format": "date"
          },
          "templateId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "status": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "uint8"
          },
          "statusName": {
            "type": [
              "null",
              "string"
            ]
          },
          "breakCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "zoneCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "clipCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "spotCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "unplacedCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "overwritten": {
            "type": "boolean"
          }
        }
      },
      "SaveRequest": {
        "required": [
          "revisions",
          "entries",
          "deleted"
        ],
        "type": "object",
        "properties": {
          "revisions": {
            "type": [
              "null",
              "object"
            ],
            "additionalProperties": {
              "type": "string"
            }
          },
          "entries": {
            "$ref": "#/components/schemas/JsonElement"
          },
          "deleted": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string",
              "format": "uuid"
            }
          }
        }
      },
      "SaveSpotRequest": {
        "required": [
          "position",
          "materialId",
          "durationSeconds",
          "lockState"
        ],
        "type": "object",
        "properties": {
          "position": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "orderId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "orderTitle": {
            "type": [
              "null",
              "string"
            ]
          },
          "campaignId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "campaignName": {
            "type": [
              "null",
              "string"
            ]
          },
          "clientId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "clientName": {
            "type": [
              "null",
              "string"
            ]
          },
          "industry": {
            "type": [
              "null",
              "string"
            ]
          },
          "materialId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "durationSeconds": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "assetTypeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "assetTypeName": {
            "type": [
              "null",
              "string"
            ]
          },
          "positionType": {
            "type": [
              "null",
              "string"
            ]
          },
          "lockState": {
            "type": "string"
          },
          "conflictReason": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "SaveUnplacedRequest": {
        "required": [
          "materialId",
          "durationSeconds",
          "probableCause"
        ],
        "type": "object",
        "properties": {
          "instanceId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "orderId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "orderTitle": {
            "type": [
              "null",
              "string"
            ]
          },
          "campaignId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "campaignName": {
            "type": [
              "null",
              "string"
            ]
          },
          "clientId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "clientName": {
            "type": [
              "null",
              "string"
            ]
          },
          "industry": {
            "type": [
              "null",
              "string"
            ]
          },
          "materialId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "durationSeconds": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "assetTypeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "assetTypeName": {
            "type": [
              "null",
              "string"
            ]
          },
          "positionType": {
            "type": [
              "null",
              "string"
            ]
          },
          "probableCause": {
            "type": "string"
          }
        }
      },
      "SaveZoneRequest": {
        "required": [
          "zoneId",
          "scopeId",
          "scopeName",
          "position",
          "maxDuration",
          "usedDuration",
          "spots"
        ],
        "type": "object",
        "properties": {
          "zoneId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "scopeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "uint8"
          },
          "scopeName": {
            "type": "string"
          },
          "position": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "maxDuration": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "usedDuration": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "spots": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SaveSpotRequest"
            }
          }
        }
      },
      "ScheduleRequest": {
        "required": [
          "stationId",
          "scheduleDate"
        ],
        "type": "object",
        "properties": {
          "stationId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Station ID to schedule.",
            "format": "int32"
          },
          "scheduleDate": {
            "type": "string",
            "description": "Date to schedule (commercial day).",
            "format": "date"
          },
          "activeStage": {
            "description": "Active algorithm stage (Stage1, Stage2, or Stage3).\r\nDefault: Stage1.",
            "$ref": "#/components/schemas/ActiveStage"
          },
          "scoreWeights": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "description": "Custom scoring weights (optional).\r\nIf null, uses default weights.",
                "$ref": "#/components/schemas/ScoreWeights"
              }
            ]
          },
          "ignoreSoftConstraints": {
            "type": "boolean",
            "description": "If true, ignores soft constraints (separation, frequency, competitive protection).\r\nSpots that violate soft constraints will be assigned with state FORCED.\r\nDefault: false (respects all constraints)."
          },
          "ignoreHardConstraints": {
            "type": "boolean",
            "description": "If true, ignores all constraints except physical duration.\r\nSpots will be assigned with state FORCED even if they violate hard constraints.\r\nImplies IgnoreSoftConstraints = true.\r\nDefault: false (respects hard constraints)."
          },
          "savePgm": {
            "type": "boolean",
            "description": "If true, persists the generated PGM5 in HDX. If false, only returns the generated result."
          }
        },
        "description": "Request to execute the scheduling algorithm."
      },
      "SchedulingMetricsResponse": {
        "required": [
          "totalConflicts",
          "totalForced",
          "totalUnplaced",
          "overallFulfillmentPercentage"
        ],
        "type": "object",
        "properties": {
          "totalConflicts": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "totalForced": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "totalUnplaced": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "overallFulfillmentPercentage": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          }
        },
        "description": "Métricas del resultado."
      },
      "SchedulingResponse": {
        "required": [
          "scheduleDate",
          "stationId",
          "breaks",
          "summary",
          "unplaced",
          "metrics"
        ],
        "type": "object",
        "properties": {
          "pgmId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "scheduleDate": {
            "type": "string",
            "format": "date"
          },
          "stationId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "status": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "uint8"
          },
          "statusName": {
            "type": [
              "null",
              "string"
            ]
          },
          "reviewReasons": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "breaks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BreakResponse"
            }
          },
          "summary": {
            "$ref": "#/components/schemas/SchedulingSummary"
          },
          "unplaced": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UnplacedResponse"
            }
          },
          "metrics": {
            "$ref": "#/components/schemas/SchedulingMetricsResponse"
          }
        },
        "description": "Respuesta jerárquica del algoritmo de scheduling.\r\nEstructura: Breaks → Zones → Spots"
      },
      "SchedulingStats": {
        "required": [
          "stationId",
          "scheduleDate",
          "breakCount",
          "totalBreakDurationSeconds",
          "campaignCount",
          "orderCount",
          "totalDesiredRuns"
        ],
        "type": "object",
        "properties": {
          "stationId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "scheduleDate": {
            "type": "string",
            "format": "date"
          },
          "breakCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "totalBreakDurationSeconds": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "campaignCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "orderCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "totalDesiredRuns": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        },
        "description": "Statistics about scheduling availability for a date."
      },
      "SchedulingSummary": {
        "required": [
          "totalBreaks",
          "totalSpots",
          "totalCommands",
          "totalDuration",
          "usedDuration"
        ],
        "type": "object",
        "properties": {
          "totalBreaks": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "totalSpots": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "totalCommands": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "totalDuration": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "usedDuration": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        },
        "description": "Resumen general del resultado."
      },
      "Scope": {
        "type": "integer",
        "description": "Scope of a spot or zone: National or Local."
      },
      "ScoreWeights": {
        "type": "object",
        "properties": {
          "w1_Priority": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "w2_Separation": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "w3_Distribution": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "w4_Variety": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "w5_Frequency": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "w6_Occupation": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          }
        },
        "description": "Pesos para el cálculo de puntaje de candidatos en el scoring del algoritmo."
      },
      "SettingsResponse": {
        "type": "object",
        "properties": {
          "settingId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "uint8"
          },
          "autoApprovePgm": {
            "type": "boolean"
          },
          "forceFullPlacement": {
            "type": "boolean"
          },
          "enableAdvancedLog": {
            "type": "boolean"
          },
          "materialCodeByCategory": {
            "type": "boolean"
          },
          "defaultArtisticCategoryId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "utcModified": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "SpotResponse": {
        "required": [
          "position",
          "orderId",
          "clientId",
          "materialId",
          "durationSeconds",
          "assetTypeName",
          "lockState"
        ],
        "type": "object",
        "properties": {
          "position": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "orderId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "orderTitle": {
            "type": [
              "null",
              "string"
            ]
          },
          "campaignId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "campaignName": {
            "type": [
              "null",
              "string"
            ]
          },
          "clientId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "clientName": {
            "type": [
              "null",
              "string"
            ]
          },
          "industry": {
            "type": [
              "null",
              "string"
            ]
          },
          "materialId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "materialCode": {
            "type": [
              "null",
              "string"
            ]
          },
          "durationSeconds": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "assetTypeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "assetTypeName": {
            "type": "string"
          },
          "positionType": {
            "type": [
              "null",
              "string"
            ]
          },
          "lockState": {
            "type": "string"
          },
          "conflictReason": {
            "type": [
              "null",
              "string"
            ]
          },
          "playedDate": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "aired": {
            "type": "boolean"
          }
        },
        "description": "Spot (comercial/artístico) asignado."
      },
      "TemplateBreakTemplateSummaryResponse": {
        "required": [
          "breakTemplateId",
          "name",
          "startTime",
          "dayOffset",
          "totalDuration",
          "breakType",
          "isActive"
        ],
        "type": "object",
        "properties": {
          "breakTemplateId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "startTime": {
            "type": "string",
            "format": "time"
          },
          "dayOffset": {
            "type": "boolean"
          },
          "totalDuration": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "breakType": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "uint8"
          },
          "breakTypeName": {
            "type": [
              "null",
              "string"
            ]
          },
          "isActive": {
            "type": "boolean"
          }
        }
      },
      "TemplateResponse": {
        "required": [
          "templateId",
          "stationId",
          "name",
          "dayOfWeek",
          "startTime",
          "endTime",
          "endDayOffset",
          "isActive",
          "utcCreated",
          "utcModified"
        ],
        "type": "object",
        "properties": {
          "templateId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "stationId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "name": {
            "type": "string"
          },
          "dayOfWeek": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "uint8"
          },
          "startTime": {
            "type": "string",
            "format": "time"
          },
          "endTime": {
            "type": "string",
            "format": "time"
          },
          "endDayOffset": {
            "type": "boolean"
          },
          "specificDate": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "isActive": {
            "type": "boolean"
          },
          "utcCreated": {
            "type": "string",
            "format": "date-time"
          },
          "utcModified": {
            "type": "string",
            "format": "date-time"
          },
          "breakTemplates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TemplateBreakTemplateSummaryResponse"
            }
          }
        }
      },
      "UnplacedResponse": {
        "required": [
          "instanceId",
          "orderId",
          "clientId",
          "materialId",
          "durationSeconds",
          "assetTypeName",
          "probableCause"
        ],
        "type": "object",
        "properties": {
          "instanceId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "orderId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "orderTitle": {
            "type": [
              "null",
              "string"
            ]
          },
          "campaignId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "campaignName": {
            "type": [
              "null",
              "string"
            ]
          },
          "clientId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "clientName": {
            "type": [
              "null",
              "string"
            ]
          },
          "industry": {
            "type": [
              "null",
              "string"
            ]
          },
          "materialId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "materialCode": {
            "type": [
              "null",
              "string"
            ]
          },
          "durationSeconds": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "assetTypeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "assetTypeName": {
            "type": "string"
          },
          "positionType": {
            "type": [
              "null",
              "string"
            ]
          },
          "probableCause": {
            "type": "string"
          }
        },
        "description": "Spot que no pudo ser asignado."
      },
      "UpdateAgencyRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Nombre comercial de la agencia."
          },
          "type": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Código del tipo de agencia.",
            "format": "uint8"
          },
          "contact": {
            "type": [
              "null",
              "string"
            ],
            "description": "Persona de contacto principal."
          },
          "phone": {
            "type": [
              "null",
              "string"
            ],
            "description": "Teléfono de contacto."
          },
          "email": {
            "type": [
              "null",
              "string"
            ],
            "description": "Correo electrónico de contacto."
          },
          "commission": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "description": "Comisión porcentual o comercial de la agencia.",
            "format": "double"
          },
          "notes": {
            "type": [
              "null",
              "string"
            ],
            "description": "Observaciones internas o comerciales."
          },
          "status": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "description": "Código del estado actual de la agencia.",
            "format": "uint8"
          }
        },
        "description": "Datos permitidos para actualizar una agencia."
      },
      "UpdateAlbumRequest": {
        "required": [
          "albumName"
        ],
        "type": "object",
        "properties": {
          "albumName": {
            "type": "string"
          },
          "albumYear": {
            "type": [
              "null",
              "string"
            ]
          },
          "genreId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "catalogCode": {
            "type": [
              "null",
              "string"
            ]
          },
          "companyId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "comments": {
            "type": [
              "null",
              "string"
            ]
          },
          "imageFileId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          }
        }
      },
      "UpdateBreakTemplateRequest": {
        "required": [
          "templateId",
          "name",
          "startTime",
          "dayOffset",
          "totalDuration"
        ],
        "type": "object",
        "properties": {
          "templateId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "startTime": {
            "type": "string",
            "format": "time"
          },
          "dayOffset": {
            "type": "boolean"
          },
          "totalDuration": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "breakType": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "uint8"
          },
          "isActive": {
            "type": "boolean"
          },
          "zones": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreateBreakTemplateZoneRequest"
            }
          },
          "clips": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreateBreakTemplateClipRequest"
            }
          }
        },
        "description": "DTO para actualizar un template existente."
      },
      "UpdateBreakTypeRequest": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          }
        }
      },
      "UpdateCampaignRequest": {
        "type": "object",
        "properties": {
          "clientId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "agencyId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "startDate": {
            "type": "string",
            "format": "date"
          },
          "endDate": {
            "type": "string",
            "format": "date"
          },
          "status": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "uint8"
          },
          "notes": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "UpdateCategoryRequest": {
        "type": "object",
        "properties": {
          "categoryName": {
            "type": "string"
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "prefix": {
            "type": [
              "null",
              "string"
            ]
          },
          "assetTypeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "UpdateClientRequest": {
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string"
          },
          "industryIds": {
            "type": "array",
            "items": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          "contact": {
            "type": [
              "null",
              "string"
            ]
          },
          "phone": {
            "type": [
              "null",
              "string"
            ]
          },
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "status": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "uint8"
          },
          "notes": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "UpdateCompanyRequest": {
        "required": [
          "companyName"
        ],
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string"
          }
        }
      },
      "UpdateGenreRequest": {
        "required": [
          "genreName"
        ],
        "type": "object",
        "properties": {
          "genreName": {
            "type": "string"
          }
        }
      },
      "UpdateIndustryRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          }
        }
      },
      "UpdateMaterialRequest": {
        "type": "object",
        "properties": {
          "title": {
            "type": [
              "null",
              "string"
            ]
          },
          "code": {
            "type": [
              "null",
              "string"
            ]
          },
          "comments": {
            "type": [
              "null",
              "string"
            ]
          },
          "rdsText": {
            "type": [
              "null",
              "string"
            ]
          },
          "assetTypeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "mediaTypeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "albumId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "companyId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "genreId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "priorityId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "materialStateId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "startPos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "endPos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "intro": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "outro": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "punchIn": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "punchOut": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "punchInFadeLength": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "punchOutFadeLength": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "punchInFadeTypeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "punchOutFadeTypeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "insertOver": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "contractStartDate": {
            "type": [
              "null",
              "string"
            ]
          },
          "contractEndDate": {
            "type": [
              "null",
              "string"
            ]
          },
          "contentTypeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "contentDate": {
            "type": [
              "null",
              "string"
            ]
          },
          "contentTime": {
            "type": [
              "null",
              "string"
            ]
          },
          "vStandard": {
            "type": [
              "null",
              "string"
            ]
          },
          "archiveStateId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "customField0": {
            "type": [
              "null",
              "string"
            ]
          },
          "customField1": {
            "type": [
              "null",
              "string"
            ]
          },
          "customField2": {
            "type": [
              "null",
              "string"
            ]
          },
          "customField3": {
            "type": [
              "null",
              "string"
            ]
          },
          "customField4": {
            "type": [
              "null",
              "string"
            ]
          },
          "customField5": {
            "type": [
              "null",
              "string"
            ]
          },
          "customField6": {
            "type": [
              "null",
              "string"
            ]
          },
          "customField7": {
            "type": [
              "null",
              "string"
            ]
          },
          "customField8": {
            "type": [
              "null",
              "string"
            ]
          },
          "customField9": {
            "type": [
              "null",
              "string"
            ]
          },
          "national": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "independent": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "skipSadaic": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "useTypeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "recordingTypeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "personType": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "languageId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "bpm": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "tags": {
            "type": [
              "null",
              "string"
            ]
          },
          "rythmId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "UpdateOrderDaypartRequest": {
        "type": "object",
        "properties": {
          "stationId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "fixedTime": {
            "type": "boolean"
          },
          "startTime": {
            "type": "string",
            "format": "time"
          },
          "endTime": {
            "type": "string",
            "format": "time"
          },
          "startDayOffset": {
            "type": "boolean"
          },
          "endDayOffset": {
            "type": "boolean"
          },
          "weekdays": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "uint8"
          },
          "orderRuns": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "UpdateOrderRequest": {
        "type": "object",
        "properties": {
          "campaignId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "clientId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "duration": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "startDate": {
            "type": "string",
            "format": "date"
          },
          "endDate": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "priority": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "breakTypeFilter": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "uint8"
          },
          "positionType": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "uint8"
          },
          "scope": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "uint8"
          },
          "protectionLevel": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "uint8"
          },
          "minSeparation": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "maxFrequency": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "interleaveArtistic": {
            "type": "boolean"
          },
          "title": {
            "type": [
              "null",
              "string"
            ]
          },
          "status": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "uint8"
          },
          "dayparts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrderDaypartDto"
            }
          },
          "clips": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ClipRequest"
            }
          },
          "industryIds": {
            "type": "array",
            "items": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        }
      },
      "UpdatePersonRequest": {
        "required": [
          "personName"
        ],
        "type": "object",
        "properties": {
          "personName": {
            "type": "string"
          }
        }
      },
      "UpdatePgm5StatusRequest": {
        "required": [
          "statusId"
        ],
        "type": "object",
        "properties": {
          "statusId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "uint8"
          },
          "reviewReason": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "UpdatePgmRequest": {
        "required": [
          "stationId",
          "date",
          "programmingTypeId",
          "blocks"
        ],
        "type": "object",
        "properties": {
          "stationId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "date": {
            "type": "string"
          },
          "programmingTypeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "active": {
            "type": "boolean"
          },
          "blocks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PgmBlockRequest"
            }
          }
        }
      },
      "UpdateSettingsRequest": {
        "type": "object",
        "properties": {
          "autoApprovePgm": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "forceFullPlacement": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "enableAdvancedLog": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "materialCodeByCategory": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "defaultArtisticCategoryId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          }
        }
      },
      "UpdateTemplateRequest": {
        "required": [
          "stationId",
          "name",
          "startTime",
          "endTime",
          "endDayOffset"
        ],
        "type": "object",
        "properties": {
          "stationId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "name": {
            "type": "string"
          },
          "dayOfWeek": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "uint8"
          },
          "startTime": {
            "type": "string",
            "format": "time"
          },
          "endTime": {
            "type": "string",
            "format": "time"
          },
          "endDayOffset": {
            "type": "boolean"
          },
          "specificDate": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "isActive": {
            "type": "boolean"
          }
        }
      },
      "UpdateUserRoleDto": {
        "type": "object",
        "properties": {
          "roleid": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "ZoneResponse": {
        "required": [
          "zoneId",
          "scopeId",
          "scopeName",
          "position",
          "maxDuration",
          "usedDuration",
          "spots"
        ],
        "type": "object",
        "properties": {
          "zoneId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "scopeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "uint8"
          },
          "scopeName": {
            "type": "string"
          },
          "position": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "maxDuration": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "usedDuration": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "spots": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SpotResponse"
            }
          }
        },
        "description": "Zona dentro de un break."
      }
    },
    "securitySchemes": {
      "Bearer": {
        "type": "http",
        "description": "JWT access token obtained from POST /api/v1/auth/login and sent as Authorization: Bearer <token>.",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      },
      "AccessTokenQuery": {
        "type": "apiKey",
        "description": "Alternative token transport for media streaming when the client cannot send an Authorization header.",
        "name": "token",
        "in": "query"
      }
    }
  },
  "tags": [
    {
      "name": "Agency",
      "description": "Traffic agencies and supporting agency catalogs."
    },
    {
      "name": "Album",
      "description": "Album catalog operations."
    },
    {
      "name": "Algorithm",
      "description": "Scheduling execution and scheduling statistics."
    },
    {
      "name": "AssetType",
      "description": "Asset type catalog operations."
    },
    {
      "name": "Auth",
      "description": "Authentication and token refresh endpoints."
    },
    {
      "name": "Break Templates",
      "description": "Break template definitions used by traffic scheduling."
    },
    {
      "name": "BreakType",
      "description": "Break type catalog operations."
    },
    {
      "name": "Campaign",
      "description": "Traffic campaign management."
    },
    {
      "name": "Category",
      "description": "Material category management."
    },
    {
      "name": "Client",
      "description": "Traffic client management."
    },
    {
      "name": "Clip Metadata",
      "description": "Clip metadata operations."
    },
    {
      "name": "Common",
      "description": "Shared traffic lookup endpoints."
    },
    {
      "name": "Company",
      "description": "Company catalog operations."
    },
    {
      "name": "Station",
      "description": "Station catalog operations."
    },
    {
      "name": "FileType",
      "description": "HDX file type catalog operations."
    },
    {
      "name": "Genre",
      "description": "Genre catalog operations."
    },
    {
      "name": "Industry",
      "description": "Traffic industry catalog operations."
    },
    {
      "name": "License",
      "description": "License information read from the Hardata LicenseInfo.xml files."
    },
    {
      "name": "Material",
      "description": "Material search, metadata, media and placeholder operations."
    },
    {
      "name": "MediaType",
      "description": "Media type catalog operations."
    },
    {
      "name": "Order",
      "description": "Traffic order management."
    },
    {
      "name": "Order Daypart",
      "description": "Traffic order daypart management."
    },
    {
      "name": "Person",
      "description": "Person catalog operations."
    },
    {
      "name": "PGM5",
      "description": "PGM5 programming endpoints."
    },
    {
      "name": "PGM",
      "description": "Programming management endpoints."
    },
    {
      "name": "PriorityType",
      "description": "Priority type catalog operations."
    },
    {
      "name": "Report",
      "description": "Traffic and scheduling reports."
    },
    {
      "name": "RythmType",
      "description": "Rhythm type catalog operations."
    },
    {
      "name": "Settings",
      "description": "Station and scheduling settings."
    },
    {
      "name": "System"
    },
    {
      "name": "Template",
      "description": "Traffic template management."
    },
    {
      "name": "User",
      "description": "User and permission related operations."
    }
  ],
  "x-tagGroups": [
    {
      "name": "Hardata API",
      "tags": [
        "Album",
        "AssetType",
        "Auth",
        "Category",
        "Company",
        "FileType",
        "Genre",
        "License",
        "Material",
        "MediaType",
        "Person",
        "PGM",
        "Permissions",
        "PriorityType",
        "RythmType",
        "Station",
        "System"
      ]
    },
    {
      "name": "Traffic",
      "tags": [
        "Agency",
        "Algorithm",
        "Break Templates",
        "BreakType",
        "Campaign",
        "Client",
        "Clip Metadata",
        "Common",
        "Industry",
        "Order",
        "Order Daypart",
        "PGM5",
        "Report",
        "Settings",
        "Template",
        "User"
      ]
    }
  ]
}