{
  "openapi": "3.1.1",
  "info": {
    "title": "Sábio Sistemas API",
    "description": "Dados de gestão da saúde municipal. Autenticação por sessão: cookie (painel web) ou `Authorization: Bearer sbs_…` (obtido em POST /api/v1/sessoes com modo \"token\").",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://api.sabiosistemas.com.br/"
    }
  ],
  "paths": {
    "/api/v1/saude": {
      "get": {
        "tags": [
          "Operação"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Saude"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/sessoes": {
      "post": {
        "tags": [
          "Sessões"
        ],
        "summary": "Entrar. Modo \"navegador\" grava cookie; modo \"token\" devolve o token no corpo.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeEntrada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/sessoes/atual": {
      "get": {
        "tags": [
          "Sessões"
        ],
        "summary": "Quem está na sessão. Responde 200 com usuario nulo quando não há sessão.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessaoAtual"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Sessões"
        ],
        "summary": "Sair: encerra a sessão no servidor (vale para cookie e token).",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/sessoes/atual/orgaos": {
      "get": {
        "tags": [
          "Sessões"
        ],
        "summary": "Os órgãos em que esta pessoa pode trabalhar.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OrgaoResumo"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/sessoes/atual/orgao": {
      "put": {
        "tags": [
          "Sessões"
        ],
        "summary": "Troca o órgão ativo da sessão (só quem não pertence a um órgão).",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeTrocaDeOrgao"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessaoAtual"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/orgaos": {
      "get": {
        "tags": [
          "Órgãos"
        ],
        "summary": "Órgãos visíveis a quem pergunta (o administrador global vê todos).",
        "parameters": [
          {
            "name": "ativos",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "busca",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pagina",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "tamanho",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginaOfOrgaoResumo"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Órgãos"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FormularioDeOrgao"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/orgaos/{codigo}": {
      "get": {
        "tags": [
          "Órgãos"
        ],
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrgaoDetalhe"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Órgãos"
        ],
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FormularioDeOrgao"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrgaoDetalhe"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/orgaos/{codigo}/situacao": {
      "put": {
        "tags": [
          "Órgãos"
        ],
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeSituacao"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrgaoDetalhe"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/orgaos/{codigo}/modulos": {
      "get": {
        "tags": [
          "Órgãos"
        ],
        "summary": "O catálogo, marcando o que este órgão contratou.",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ModuloDoOrgao"
                  }
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Órgãos"
        ],
        "summary": "Define a lista inteira do que fica contratado (só o administrador global). Desligar não apaga dado.",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeModulos"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ModuloDoOrgao"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/orgaos/{codigo}/brasao": {
      "get": {
        "tags": [
          "Órgãos"
        ],
        "summary": "O brasão do órgão (PNG, JPEG ou WebP). 404 quando não há.",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Órgãos"
        ],
        "summary": "Envia (ou troca) o brasão: multipart, campo \"arquivo\". PNG, JPEG ou WebP, até 2 MB.",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "arquivo": {
                    "$ref": "#/components/schemas/IFormFile"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrgaoDetalhe"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Órgãos"
        ],
        "summary": "Remove o brasão.",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrgaoDetalhe"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/usuarios": {
      "get": {
        "tags": [
          "Usuários"
        ],
        "summary": "As contas do órgão ativo da sessão (e, para o administrador global, os outros administradores).",
        "parameters": [
          {
            "name": "busca",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "papel",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ativos",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "pagina",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "tamanho",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginaOfUsuarioResumo"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Usuários"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FormularioDeUsuario"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/usuarios/papeis": {
      "get": {
        "tags": [
          "Usuários"
        ],
        "summary": "Os papéis que quem pergunta pode atribuir.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PapelAtribuivel"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/usuarios/paineis": {
      "get": {
        "tags": [
          "Usuários"
        ],
        "summary": "Os sistemas (painéis) que quem pergunta pode liberar para uma conta.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PainelAtribuivel"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/usuarios/{codigo}": {
      "get": {
        "tags": [
          "Usuários"
        ],
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsuarioResumo"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Usuários"
        ],
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FormularioDeUsuario"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsuarioResumo"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/usuarios/{codigo}/situacao": {
      "put": {
        "tags": [
          "Usuários"
        ],
        "summary": "Ativa ou desativa. Desativar encerra as sessões da conta; conta não se exclui.",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeSituacao"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsuarioResumo"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/usuarios/{codigo}/senha": {
      "put": {
        "tags": [
          "Usuários"
        ],
        "summary": "Redefine a senha de outra conta e encerra todas as sessões dela.",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeSenha"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/perfil/senha": {
      "put": {
        "tags": [
          "Perfil"
        ],
        "summary": "Troca a própria senha (exige a atual). Encerra as outras sessões.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeTrocaDeSenha"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/ufs": {
      "get": {
        "tags": [
          "Base pública"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UfResposta"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/coletas": {
      "get": {
        "tags": [
          "Base pública"
        ],
        "parameters": [
          {
            "name": "pagina",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "tamanho",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginaOfColetaResposta"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/modulos": {
      "get": {
        "tags": [
          "Módulos"
        ],
        "summary": "O catálogo: os módulos que um órgão pode contratar.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ModuloDoCatalogo"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/paineis": {
      "get": {
        "tags": [
          "Painéis"
        ],
        "summary": "Os painéis clientes da API (Sabio Saúde, GoveSUS…) e o que cada um mostra no menu.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PainelCliente"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/paineis/{codigo}": {
      "get": {
        "tags": [
          "Painéis"
        ],
        "summary": "Um painel: os módulos que ele põe no menu. O menu mostra o que o painel lista E o órgão contratou.",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PainelCliente"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Painéis"
        ],
        "summary": "Define a lista INTEIRA de módulos que o painel mostra (só o administrador global). Não mexe em contrato.",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeMenuDoPainel"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PainelCliente"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/municipios": {
      "get": {
        "tags": [
          "Base pública"
        ],
        "parameters": [
          {
            "name": "uf",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "busca",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "monitorados",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "pagina",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "tamanho",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginaOfMunicipioResposta"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/municipios/{ibge}": {
      "get": {
        "tags": [
          "Base pública"
        ],
        "parameters": [
          {
            "name": "ibge",
            "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/MunicipioResposta"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/fns/anos": {
      "get": {
        "tags": [
          "FNS — repasses federais"
        ],
        "summary": "Os anos (competência) com repasse, do mais recente ao mais antigo.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AnoFns"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/fns/resumo": {
      "get": {
        "tags": [
          "FNS — repasses federais"
        ],
        "summary": "Totais do ano por competência (bruto, desconto, líquido), por mês e por grupo, e a conciliação com o portal.",
        "parameters": [
          {
            "name": "ano",
            "in": "query",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResumoFns"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/fns/serie": {
      "get": {
        "tags": [
          "FNS — repasses federais"
        ],
        "summary": "Os últimos N meses de competência (padrão 12), atravessando a virada do ano, com custeio e investimento.",
        "parameters": [
          {
            "name": "meses",
            "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/PontoFns"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/fns/repasses": {
      "get": {
        "tags": [
          "FNS — repasses federais"
        ],
        "parameters": [
          {
            "name": "ano",
            "in": "query",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "grupo",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "mes",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "busca",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pagina",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "tamanho",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginaDeRepassesFns"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/fns/matriz": {
      "get": {
        "tags": [
          "FNS — repasses federais"
        ],
        "summary": "Programa × mês do ano, em líquido por competência, com subtotal por componente e bloco e os meses sem repasse entre pagamentos.",
        "parameters": [
          {
            "name": "ano",
            "in": "query",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MatrizFns"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/fns/repasses/{id}": {
      "get": {
        "tags": [
          "FNS — repasses federais"
        ],
        "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/RepasseFnsDetalhe"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/fns/repasses.csv": {
      "get": {
        "tags": [
          "FNS — repasses federais"
        ],
        "summary": "O filtro INTEIRO em CSV (separador ;, BOM, vírgula decimal), para o Excel em português.",
        "parameters": [
          {
            "name": "ano",
            "in": "query",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "grupo",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "mes",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "busca",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/fns/repasses.xlsx": {
      "get": {
        "tags": [
          "FNS — repasses federais"
        ],
        "summary": "Excel com resumo, a lista do filtro inteiro (com SUBTOTAL, filtro e cabeçalho congelado) e a matriz programa × mês.",
        "parameters": [
          {
            "name": "ano",
            "in": "query",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "grupo",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "mes",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "busca",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/fns/repasses.pdf": {
      "get": {
        "tags": [
          "FNS — repasses federais"
        ],
        "summary": "PDF para o processo (conselho, TCE): resumo, conferência com o portal, matriz programa × mês e a lista do filtro.",
        "parameters": [
          {
            "name": "ano",
            "in": "query",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "grupo",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "mes",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "busca",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/fns/coletas": {
      "post": {
        "tags": [
          "FNS — repasses federais"
        ],
        "summary": "Põe o ano na fila do coletor e devolve na hora. Acompanhe por GET /fns/coletas/{id}.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeColeta"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ColetaDoModulo"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/fns/coletas/{id}": {
      "get": {
        "tags": [
          "FNS — repasses federais"
        ],
        "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/ColetaDoModulo"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/emendas-federais/anos": {
      "get": {
        "tags": [
          "Emendas parlamentares federais"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AnoDeEmendas"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/emendas-federais/resumo": {
      "get": {
        "tags": [
          "Emendas parlamentares federais"
        ],
        "summary": "Proposto, empenhado, pago e a pagar; por tipo de emenda, por situação, e o ranking de parlamentares.",
        "parameters": [
          {
            "name": "ano",
            "in": "query",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResumoDeEmendasFederais"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/emendas-federais": {
      "get": {
        "tags": [
          "Emendas parlamentares federais"
        ],
        "parameters": [
          {
            "name": "ano",
            "in": "query",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "tipo",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "busca",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pagina",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "tamanho",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginaOfEmendaFederalResumo"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/emendas-federais/{id}": {
      "get": {
        "tags": [
          "Emendas parlamentares federais"
        ],
        "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/EmendaFederalDetalhe"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/emendas-federais/emendas.csv": {
      "get": {
        "tags": [
          "Emendas parlamentares federais"
        ],
        "parameters": [
          {
            "name": "ano",
            "in": "query",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "tipo",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "busca",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/emendas-federais/coletas": {
      "post": {
        "tags": [
          "Emendas parlamentares federais"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeColeta"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ColetaDoModulo"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/emendas-federais/coletas/{id}": {
      "get": {
        "tags": [
          "Emendas parlamentares federais"
        ],
        "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/ColetaDoModulo"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/emendas/carteira": {
      "get": {
        "tags": [
          "Emendas parlamentares — carteira"
        ],
        "summary": "Federais (FNS) e estaduais (ALMG) numa lista só, com o que a fonte diz pago e o que se confirmou chegando ao fundo.",
        "parameters": [
          {
            "name": "ano",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "esfera",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tipo",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "parlamentar",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "situacao",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "busca",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pagina",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "tamanho",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CarteiraDeEmendas"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/emendas/carteira/{chave}": {
      "get": {
        "tags": [
          "Emendas parlamentares — carteira"
        ],
        "summary": "O caminho do dinheiro da emenda, passo a passo, cada um com a fonte que o afirma.",
        "parameters": [
          {
            "name": "chave",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmendaDetalhe"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/emendas/visao": {
      "get": {
        "tags": [
          "Emendas parlamentares — carteira"
        ],
        "summary": "O ano por esfera, tipo, grupo de despesa e parlamentar; os anos anteriores; e o que ainda pede cobrança.",
        "parameters": [
          {
            "name": "ano",
            "in": "query",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VisaoDasEmendas"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/emendas/dinheiro": {
      "get": {
        "tags": [
          "Emendas parlamentares — carteira"
        ],
        "summary": "Tudo o que chegou ao fundo no ano por causa de emenda, ligado pelo documento — e o que chegou sem emenda na base.",
        "parameters": [
          {
            "name": "ano",
            "in": "query",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DinheiroDasEmendas"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/emendas/carteira.csv": {
      "get": {
        "tags": [
          "Emendas parlamentares — carteira"
        ],
        "parameters": [
          {
            "name": "ano",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "esfera",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tipo",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "parlamentar",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "situacao",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "busca",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/siops": {
      "get": {
        "tags": [
          "SIOPS — aplicação em saúde"
        ],
        "summary": "O último bimestre homologado, a série do ano e o histórico de todos os anos.",
        "parameters": [
          {
            "name": "ano",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PainelSiops"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/siops/coletas": {
      "post": {
        "tags": [
          "SIOPS — aplicação em saúde"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeColeta"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ColetaDoModulo"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/siops/coletas/{id}": {
      "get": {
        "tags": [
          "SIOPS — aplicação em saúde"
        ],
        "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/ColetaDoModulo"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/emendas-estaduais/anos": {
      "get": {
        "tags": [
          "Emendas parlamentares estaduais (ALMG)"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AnoDeEmendas"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/emendas-estaduais/resumo": {
      "get": {
        "tags": [
          "Emendas parlamentares estaduais (ALMG)"
        ],
        "parameters": [
          {
            "name": "ano",
            "in": "query",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResumoDeEmendasEstaduais"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/emendas-estaduais": {
      "get": {
        "tags": [
          "Emendas parlamentares estaduais (ALMG)"
        ],
        "parameters": [
          {
            "name": "ano",
            "in": "query",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "tipo",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "busca",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pagina",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "tamanho",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginaOfEmendaEstadualResumo"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/emendas-estaduais/{id}": {
      "get": {
        "tags": [
          "Emendas parlamentares estaduais (ALMG)"
        ],
        "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/EmendaEstadualDetalhe"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/emendas-estaduais/emendas.csv": {
      "get": {
        "tags": [
          "Emendas parlamentares estaduais (ALMG)"
        ],
        "parameters": [
          {
            "name": "ano",
            "in": "query",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "tipo",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "busca",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/emendas-estaduais/coletas": {
      "post": {
        "tags": [
          "Emendas parlamentares estaduais (ALMG)"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeColeta"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ColetaDoModulo"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/emendas-estaduais/coletas/{id}": {
      "get": {
        "tags": [
          "Emendas parlamentares estaduais (ALMG)"
        ],
        "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/ColetaDoModulo"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/fes/anos": {
      "get": {
        "tags": [
          "FES — repasses do Estado (MG)"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AnoFes"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/fes/resumo": {
      "get": {
        "tags": [
          "FES — repasses do Estado (MG)"
        ],
        "summary": "Consolidado do portal contra a soma dos empenhos, por subfunção e por resolução da SES citada.",
        "parameters": [
          {
            "name": "ano",
            "in": "query",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResumoFes"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/fes/empenhos": {
      "get": {
        "tags": [
          "FES — repasses do Estado (MG)"
        ],
        "parameters": [
          {
            "name": "ano",
            "in": "query",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "subfuncao",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "situacao",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "busca",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pagina",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "tamanho",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginaOfEmpenhoFesResumo"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/fes/empenhos/{id}": {
      "get": {
        "tags": [
          "FES — repasses do Estado (MG)"
        ],
        "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/EmpenhoFesDetalhe"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/fes/empenhos.csv": {
      "get": {
        "tags": [
          "FES — repasses do Estado (MG)"
        ],
        "parameters": [
          {
            "name": "ano",
            "in": "query",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "subfuncao",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "situacao",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "busca",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/fes/coletas": {
      "post": {
        "tags": [
          "FES — repasses do Estado (MG)"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeColeta"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ColetaDoModulo"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/fes/coletas/{id}": {
      "get": {
        "tags": [
          "FES — repasses do Estado (MG)"
        ],
        "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/ColetaDoModulo"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/resolucoes": {
      "get": {
        "tags": [
          "Resoluções da SES"
        ],
        "summary": "Resoluções do órgão ativo com o recebido do FES; ordem padrão: urgência.",
        "parameters": [
          {
            "name": "busca",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "situacao",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ano",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "divida",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "natureza",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pendentes",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "ordem",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pagina",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "tamanho",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginaOfResolucaoResumo"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Resoluções da SES"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResolucaoEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/resolucoes/resumo": {
      "get": {
        "tags": [
          "Resoluções da SES"
        ],
        "summary": "Pactuado, recebido e o passivo da LC 171/23 — calculado, nunca digitado.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResumoDeResolucoes"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/resolucoes/anos": {
      "get": {
        "tags": [
          "Resoluções da SES"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "pattern": "^-?(?:0|[1-9]\\d*)$",
                    "type": [
                      "integer",
                      "string"
                    ],
                    "format": "int32"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/resolucoes/situacoes": {
      "get": {
        "tags": [
          "Resoluções da SES"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OpcaoDeResolucao"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/resolucoes/naturezas": {
      "get": {
        "tags": [
          "Resoluções da SES"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OpcaoDeResolucao"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/resolucoes/descobertas": {
      "get": {
        "tags": [
          "Resoluções da SES"
        ],
        "summary": "Citadas no histórico de empenhos do FES e ainda sem cadastro.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ResolucaoDescoberta"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Resoluções da SES"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DescobertasCadastradas"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/resolucoes/{ano}/{numero}": {
      "get": {
        "tags": [
          "Resoluções da SES"
        ],
        "parameters": [
          {
            "name": "ano",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "numero",
            "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/ResolucaoDetalhe"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Resoluções da SES"
        ],
        "parameters": [
          {
            "name": "ano",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "numero",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResolucaoEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResolucaoDetalhe"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Resoluções da SES"
        ],
        "parameters": [
          {
            "name": "ano",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "numero",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/resolucoes/{ano}/{numero}/situacao": {
      "put": {
        "tags": [
          "Resoluções da SES"
        ],
        "parameters": [
          {
            "name": "ano",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "numero",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SituacaoEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResolucaoDetalhe"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/resolucoes/importacoes": {
      "post": {
        "tags": [
          "Resoluções da SES"
        ],
        "summary": "Importa a planilha de resoluções do consultor (.xlsx), por nome de coluna. Idempotente.",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "arquivo": {
                    "$ref": "#/components/schemas/IFormFile"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RelatorioDeImportacao"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/resolucoes.csv": {
      "get": {
        "tags": [
          "Resoluções da SES"
        ],
        "parameters": [
          {
            "name": "busca",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "situacao",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ano",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "divida",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "natureza",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pendentes",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "ordem",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/contas/resumo": {
      "get": {
        "tags": [
          "Contas bancárias do fundo"
        ],
        "summary": "Quantas contas o fundo tem no FNS, o saldo somado (só as que o FNS ainda lista) e por tipo.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResumoDeContas"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contas": {
      "get": {
        "tags": [
          "Contas bancárias do fundo"
        ],
        "summary": "As contas do fundo, com saldo, último crédito, o recebido no ano e a análise do órgão.",
        "parameters": [
          {
            "name": "busca",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tipo",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pagina",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "tamanho",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginaOfContaResumo"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contas/situacoes": {
      "get": {
        "tags": [
          "Contas bancárias do fundo"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OpcaoDeSituacao"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contas/{codigo}": {
      "get": {
        "tags": [
          "Contas bancárias do fundo"
        ],
        "summary": "Uma conta: saldo de fim de mês (histórico do FNS) e os últimos repasses que caíram nela.",
        "parameters": [
          {
            "name": "codigo",
            "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/ContaDetalhe"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contas/{codigo}/anotacao": {
      "put": {
        "tags": [
          "Contas bancárias do fundo"
        ],
        "summary": "A análise do órgão sobre a conta (apelido, situação, observação). Tudo vazio apaga.",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FormularioDeAnotacao"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContaDetalhe"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contas/coletas": {
      "post": {
        "tags": [
          "Contas bancárias do fundo"
        ],
        "summary": "Põe as contas do município na fila do coletor e devolve na hora.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ColetaDoModulo"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contas/coletas/{id}": {
      "get": {
        "tags": [
          "Contas bancárias do fundo"
        ],
        "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/ColetaDoModulo"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/transporte/veiculos": {
      "get": {
        "tags": [
          "Transporte · Veículos"
        ],
        "summary": "Veículos do órgão, ativos primeiro. situacao: ativos, inativos ou todos (padrão).",
        "parameters": [
          {
            "name": "busca",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "situacao",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pagina",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "tamanho",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginaOfVeiculoDaFrota"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Transporte · Veículos"
        ],
        "summary": "Ocupação conta o motorista: um carro de 5 lugares leva 4 passageiros.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VeiculoEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/transporte/veiculos/contagem": {
      "get": {
        "tags": [
          "Transporte · Veículos"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContagemDoCadastro"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/transporte/veiculos/{id}": {
      "put": {
        "tags": [
          "Transporte · Veículos"
        ],
        "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/VeiculoEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VeiculoDaFrota"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/transporte/veiculos/{id}/situacao": {
      "put": {
        "tags": [
          "Transporte · Veículos"
        ],
        "summary": "Desativar tira o veículo da montagem; as viagens dele continuam registradas.",
        "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/PedidoDeSituacao"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VeiculoDaFrota"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/transporte/motoristas": {
      "get": {
        "tags": [
          "Transporte · Motoristas"
        ],
        "parameters": [
          {
            "name": "busca",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "situacao",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pagina",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "tamanho",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginaOfMotoristaDaFrota"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Transporte · Motoristas"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MotoristaEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/transporte/motoristas/contagem": {
      "get": {
        "tags": [
          "Transporte · Motoristas"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContagemDoCadastro"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/transporte/motoristas/{id}": {
      "put": {
        "tags": [
          "Transporte · Motoristas"
        ],
        "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/MotoristaEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MotoristaDaFrota"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/transporte/motoristas/{id}/situacao": {
      "put": {
        "tags": [
          "Transporte · Motoristas"
        ],
        "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/PedidoDeSituacao"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MotoristaDaFrota"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/transporte/pacientes": {
      "get": {
        "tags": [
          "Transporte · Pacientes"
        ],
        "summary": "Busca sem letra casa por trecho do CPF ou do CNS; com letra, pelo nome ou pelo nome da mãe, sem acento. situacao padrão: ativos.",
        "parameters": [
          {
            "name": "busca",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "situacao",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pagina",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "tamanho",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginaOfPacienteDoCadastro"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Transporte · Pacientes"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PacienteEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/transporte/pacientes/contagem": {
      "get": {
        "tags": [
          "Transporte · Pacientes"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContagemDoCadastro"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/transporte/pacientes/importacao": {
      "post": {
        "tags": [
          "Transporte · Pacientes"
        ],
        "summary": "Um lote (até 1000) da base de pessoas do município. Reimportar não duplica: reconhece pelo CPF, pelo CNS ou por nome + nascimento + mãe, e completa sem apagar.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ImportacaoDePacientesEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResultadoDaImportacao"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/transporte/pacientes/{id}": {
      "get": {
        "tags": [
          "Transporte · Pacientes"
        ],
        "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/PacienteDoCadastro"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Transporte · Pacientes"
        ],
        "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/PacienteEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PacienteDoCadastro"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/transporte/pacientes/{id}/telefones": {
      "put": {
        "tags": [
          "Transporte · Pacientes"
        ],
        "summary": "Só os telefones — o que a recepção grava a partir da marcação.",
        "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/TelefonesEnviados"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PacienteDoCadastro"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/transporte/pacientes/{id}/situacao": {
      "put": {
        "tags": [
          "Transporte · Pacientes"
        ],
        "summary": "Desativado sai da busca da marcação; o cadastro fica guardado.",
        "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/PedidoDeSituacao"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PacienteDoCadastro"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/transporte/marcacoes": {
      "get": {
        "tags": [
          "Transporte · Marcação"
        ],
        "summary": "Marcações do período pela hora da consulta. Sem período: de hoje a 30 dias. situacao: AguardandoCarro, EmMontagem, Confirmado, Realizado, Cancelado.",
        "parameters": [
          {
            "name": "de",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "ate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "situacao",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "busca",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pagina",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "tamanho",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginaOfMarcacao"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Transporte · Marcação"
        ],
        "summary": "Marca e já encaixa: o sistema remonta o dia e a cidade nos carros livres.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarcacaoEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/transporte/marcacoes/resumo": {
      "get": {
        "tags": [
          "Transporte · Marcação"
        ],
        "summary": "Marcações, pessoas e sem carro no período; e o cabeçalho de cada dia da lista filtrada.",
        "parameters": [
          {
            "name": "de",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "ate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "situacao",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "busca",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResumoDasMarcacoes"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/transporte/marcacoes/cidades": {
      "get": {
        "tags": [
          "Transporte · Marcação"
        ],
        "summary": "Cidades já usadas e os locais de cada uma — sugestões do formulário.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CidadeUsada"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/transporte/marcacoes/{id}": {
      "get": {
        "tags": [
          "Transporte · Marcação"
        ],
        "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/Marcacao"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Transporte · Marcação"
        ],
        "summary": "Tira da viagem atual, altera e remonta. Viagem confirmada que perde o paciente fica para revisão.",
        "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/MarcacaoEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Marcacao"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/transporte/marcacoes/{id}/viagem": {
      "post": {
        "tags": [
          "Transporte · Marcação"
        ],
        "summary": "Põe o paciente noutra viagem do mesmo dia (ou numa viagem, se estava sem carro). Lotação conferida.",
        "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/MovimentoEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ViagemDaFrota"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/transporte/marcacoes/{id}/cancelamento": {
      "post": {
        "tags": [
          "Transporte · Marcação"
        ],
        "summary": "O paciente sai da viagem e o lugar no carro fica livre.",
        "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/CancelamentoEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Marcacao"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/transporte/viagens": {
      "get": {
        "tags": [
          "Transporte · Viagens"
        ],
        "summary": "Viagens do período pela saída. Sem período: a próxima semana. situacao: Proposta, Agendada, Concluida, Cancelada; dia: só um dia do período; comVaga: só as abertas com lugar.",
        "parameters": [
          {
            "name": "de",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "ate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "motoristaId",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          },
          {
            "name": "veiculoId",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          },
          {
            "name": "situacao",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "busca",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "dia",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "comVaga",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "pagina",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "tamanho",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginaOfViagemDaFrota"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Transporte · Viagens"
        ],
        "summary": "Lançamento à mão: já nasce agendada. Carro ou motorista em horário sobreposto é 409 conflito_de_horario.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ViagemEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/transporte/viagens/resumo": {
      "get": {
        "tags": [
          "Transporte · Viagens"
        ],
        "summary": "Totais, o contador de propostas a confirmar e, por dia, viagens, pacientes e os motoristas livres.",
        "parameters": [
          {
            "name": "de",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "ate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "motoristaId",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          },
          {
            "name": "veiculoId",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          },
          {
            "name": "situacao",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "busca",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResumoDasViagens"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/transporte/viagens/{id}": {
      "get": {
        "tags": [
          "Transporte · Viagens"
        ],
        "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/ViagemDaFrota"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Transporte · Viagens"
        ],
        "summary": "Edição completa. Paciente de marcação tirado da viagem volta a aguardar carro, e o dia é remontado.",
        "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/ViagemEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ViagemDaFrota"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/transporte/viagens/{id}/motoristas": {
      "get": {
        "tags": [
          "Transporte · Viagens"
        ],
        "summary": "Quem pode dirigir: livres no dia primeiro, depois quem rodou menos no mês.",
        "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": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MotoristaParaViagem"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/transporte/viagens/{id}/conclusao": {
      "get": {
        "tags": [
          "Transporte · Viagens"
        ],
        "summary": "Sugestões para concluir: o km em que o carro parou na viagem anterior e o retorno previsto.",
        "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/SugestaoDeConclusao"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Transporte · Viagens"
        ],
        "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/ConclusaoEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ViagemDaFrota"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/transporte/viagens/{id}/confirmacao": {
      "post": {
        "tags": [
          "Transporte · Viagens"
        ],
        "summary": "A proposta do sistema vira viagem: motorista e saída. A recepção passa a ver a hora.",
        "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/ConfirmacaoEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ViagemDaFrota"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/transporte/viagens/{id}/revisada": {
      "post": {
        "tags": [
          "Transporte · Viagens"
        ],
        "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/ViagemDaFrota"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/transporte/viagens/{id}/cancelamento": {
      "post": {
        "tags": [
          "Transporte · Viagens"
        ],
        "summary": "Não cancela as marcações: os pacientes voltam a aguardar carro e o dia é remontado.",
        "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/CancelamentoEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ViagemDaFrota"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/transporte/viagens.csv": {
      "get": {
        "tags": [
          "Transporte · Viagens"
        ],
        "summary": "A planilha do filtro inteiro — \"onde o motorista tal foi\".",
        "parameters": [
          {
            "name": "de",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "ate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "motoristaId",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          },
          {
            "name": "veiculoId",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          },
          {
            "name": "situacao",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "busca",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "dia",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/transporte/destinos": {
      "get": {
        "tags": [
          "Transporte · Destinos"
        ],
        "summary": "Tempo de estrada até cada cidade — é o que sugere a hora de saída.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DestinoDaFrota"
                  }
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Transporte · Destinos"
        ],
        "summary": "Cria ou altera; a saída sugerida das propostas da cidade acompanha.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DestinoDaFrota"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DestinoDaFrota"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AnoDaCarteira": {
        "required": [
          "ano",
          "federalIndicado",
          "federalPago",
          "estadualIndicado",
          "estadualPago"
        ],
        "type": "object",
        "properties": {
          "ano": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "federalIndicado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "federalPago": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "estadualIndicado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "estadualPago": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "AnoDeEmendas": {
        "required": [
          "ano",
          "propostas",
          "proposto"
        ],
        "type": "object",
        "properties": {
          "ano": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "propostas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "proposto": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "AnoFes": {
        "required": [
          "ano",
          "empenhos",
          "empenhado",
          "pago"
        ],
        "type": "object",
        "properties": {
          "ano": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "empenhos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "empenhado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "pago": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "AnoFns": {
        "required": [
          "ano",
          "repasses",
          "liquido",
          "buscado"
        ],
        "type": "object",
        "properties": {
          "ano": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "repasses": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "liquido": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "buscado": {
            "type": "boolean"
          }
        }
      },
      "AnoSiops": {
        "required": [
          "exercicio",
          "ultimoBimestre",
          "percentualLiquidado",
          "situacao"
        ],
        "type": "object",
        "properties": {
          "exercicio": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "ultimoBimestre": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "percentualLiquidado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "situacao": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "AvisoDaImportacao": {
        "required": [
          "linha",
          "nome",
          "motivo"
        ],
        "type": "object",
        "properties": {
          "linha": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "motivo": {
            "type": "string"
          }
        }
      },
      "BimestreSiops": {
        "required": [
          "exercicio",
          "bimestre",
          "receitaImpostos",
          "receitaTransferencias",
          "baseDeCalculo",
          "aspsEmpenhado",
          "aspsLiquidado",
          "aspsPago",
          "percentualEmpenhado",
          "percentualLiquidado",
          "percentualPago",
          "valorMinimo",
          "folga",
          "pontosAcimaDoMinimo",
          "situacao",
          "susUniao",
          "susEstado",
          "homologadoEm"
        ],
        "type": "object",
        "properties": {
          "exercicio": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "bimestre": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "receitaImpostos": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "receitaTransferencias": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "baseDeCalculo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "aspsEmpenhado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "aspsLiquidado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "aspsPago": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "percentualEmpenhado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "percentualLiquidado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "percentualPago": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "valorMinimo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "folga": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "pontosAcimaDoMinimo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "situacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "susUniao": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "susEstado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "homologadoEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        }
      },
      "BlocoDaMatriz": {
        "required": [
          "bloco",
          "componentes",
          "meses",
          "total"
        ],
        "type": "object",
        "properties": {
          "bloco": {
            "type": "string"
          },
          "componentes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ComponenteDaMatriz"
            }
          },
          "meses": {
            "type": "array",
            "items": {
              "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
              "type": [
                "number",
                "string"
              ],
              "format": "double"
            }
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "CancelamentoEnviado": {
        "required": [
          "motivo"
        ],
        "type": "object",
        "properties": {
          "motivo": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CarteiraDeEmendas": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho",
          "indicado",
          "pago",
          "anos",
          "parlamentares"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EmendaDaCarteira"
            }
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "numero": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "tamanho": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "indicado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "pago": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "anos": {
            "type": "array",
            "items": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          "parlamentares": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "CidadeUsada": {
        "required": [
          "cidade",
          "locais"
        ],
        "type": "object",
        "properties": {
          "cidade": {
            "type": "string"
          },
          "locais": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ColetaDoModulo": {
        "required": [
          "id",
          "situacao",
          "concluidaEm",
          "lidos",
          "novos",
          "mensagem"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "situacao": {
            "type": "string"
          },
          "concluidaEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "lidos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "novos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "mensagem": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ColetaResposta": {
        "required": [
          "id",
          "fonte",
          "parametros",
          "situacao",
          "criadaEm",
          "agendadaPara",
          "iniciadaEm",
          "concluidaEm",
          "tentativas",
          "lidos",
          "novos",
          "atualizados",
          "mensagem"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "fonte": {
            "type": "string"
          },
          "parametros": {
            "type": "string"
          },
          "situacao": {
            "type": "string"
          },
          "criadaEm": {
            "type": "string",
            "format": "date-time"
          },
          "agendadaPara": {
            "type": "string",
            "format": "date-time"
          },
          "iniciadaEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "concluidaEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "tentativas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "lidos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "novos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "atualizados": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "mensagem": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ComponenteDaMatriz": {
        "required": [
          "componente",
          "programas",
          "meses",
          "total"
        ],
        "type": "object",
        "properties": {
          "componente": {
            "type": "string"
          },
          "programas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProgramaDaMatriz"
            }
          },
          "meses": {
            "type": "array",
            "items": {
              "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
              "type": [
                "number",
                "string"
              ],
              "format": "double"
            }
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "ConciliacaoFns": {
        "required": [
          "anoDePagamento",
          "brutoPago",
          "pagamentos"
        ],
        "type": "object",
        "properties": {
          "anoDePagamento": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "brutoPago": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "pagamentos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "ConclusaoEnviada": {
        "required": [
          "kmSaida",
          "kmRetorno",
          "retornoEm"
        ],
        "type": "object",
        "properties": {
          "kmSaida": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "kmRetorno": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "retornoEm": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ConfirmacaoEnviada": {
        "required": [
          "motoristaId",
          "saida"
        ],
        "type": "object",
        "properties": {
          "motoristaId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "saida": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ContaDetalhe": {
        "required": [
          "conta",
          "entidade",
          "cnpj",
          "observacao",
          "anotadaEm",
          "saldos",
          "ultimosCreditos"
        ],
        "type": "object",
        "properties": {
          "conta": {
            "$ref": "#/components/schemas/ContaResumo"
          },
          "entidade": {
            "type": "string"
          },
          "cnpj": {
            "type": "string"
          },
          "observacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "anotadaEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "saldos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SaldoDoMes"
            }
          },
          "ultimosCreditos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreditoNaConta"
            }
          }
        }
      },
      "ContagemDoCadastro": {
        "required": [
          "ativos",
          "total"
        ],
        "type": "object",
        "properties": {
          "ativos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "ContaResumo": {
        "required": [
          "codigo",
          "tipo",
          "banco",
          "bancoNome",
          "agencia",
          "conta",
          "saldo",
          "saldoEm",
          "listadaPeloFns",
          "ultimoCredito",
          "recebidoNoAno",
          "apelido",
          "situacao",
          "situacaoRotulo"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "tipo": {
            "type": "string"
          },
          "banco": {
            "type": "string"
          },
          "bancoNome": {
            "type": "string"
          },
          "agencia": {
            "type": "string"
          },
          "conta": {
            "type": "string"
          },
          "saldo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "saldoEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "listadaPeloFns": {
            "type": "boolean"
          },
          "ultimoCredito": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "recebidoNoAno": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "apelido": {
            "type": [
              "null",
              "string"
            ]
          },
          "situacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "situacaoRotulo": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CreditoDeEmenda": {
        "required": [
          "data",
          "esfera",
          "documento",
          "valor",
          "emenda",
          "parlamentar",
          "descricao",
          "conta"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "esfera": {
            "type": "string"
          },
          "documento": {
            "type": "string"
          },
          "valor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "emenda": {
            "type": [
              "null",
              "string"
            ]
          },
          "parlamentar": {
            "type": [
              "null",
              "string"
            ]
          },
          "descricao": {
            "type": "string"
          },
          "conta": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CreditoNaConta": {
        "required": [
          "data",
          "ano",
          "mes",
          "acao",
          "numeroOb",
          "liquido"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "ano": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "mes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "acao": {
            "type": "string"
          },
          "numeroOb": {
            "type": [
              "null",
              "string"
            ]
          },
          "liquido": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "DescobertasCadastradas": {
        "required": [
          "criadas"
        ],
        "type": "object",
        "properties": {
          "criadas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "DestinoDaFrota": {
        "required": [
          "cidade",
          "minutosDeEstrada"
        ],
        "type": "object",
        "properties": {
          "cidade": {
            "type": "string"
          },
          "minutosDeEstrada": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "DiaDeMarcacoes": {
        "required": [
          "data",
          "marcacoes",
          "pessoas",
          "semCarro"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": "string",
            "format": "date"
          },
          "marcacoes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pessoas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "semCarro": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "DiaDeViagens": {
        "required": [
          "data",
          "viagens",
          "pacientes",
          "motoristasLivres"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": "string",
            "format": "date"
          },
          "viagens": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pacientes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "motoristasLivres": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "DinheiroDasEmendas": {
        "required": [
          "ano",
          "creditos",
          "total",
          "semEmenda",
          "totalSemEmenda",
          "fesNaoLido"
        ],
        "type": "object",
        "properties": {
          "ano": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "creditos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreditoDeEmenda"
            }
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "semEmenda": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreditoDeEmenda"
            }
          },
          "totalSemEmenda": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "fesNaoLido": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "EmendaDaCarteira": {
        "required": [
          "chave",
          "esfera",
          "ano",
          "numero",
          "tipo",
          "tipoRotulo",
          "parlamentares",
          "objeto",
          "grupo",
          "indicado",
          "pago",
          "confirmadoNaConta",
          "situacao",
          "situacaoRotulo",
          "situacaoNaFonte",
          "resolucao",
          "ultimoPagamento",
          "situacaoDesde"
        ],
        "type": "object",
        "properties": {
          "chave": {
            "type": "string"
          },
          "esfera": {
            "type": "string"
          },
          "ano": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "numero": {
            "type": "string"
          },
          "tipo": {
            "type": "string"
          },
          "tipoRotulo": {
            "type": "string"
          },
          "parlamentares": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ParlamentarDaCarteira"
            }
          },
          "objeto": {
            "type": "string"
          },
          "grupo": {
            "type": [
              "null",
              "string"
            ]
          },
          "indicado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "pago": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "confirmadoNaConta": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "situacao": {
            "type": "string"
          },
          "situacaoRotulo": {
            "type": "string"
          },
          "situacaoNaFonte": {
            "type": [
              "null",
              "string"
            ]
          },
          "resolucao": {
            "type": [
              "null",
              "string"
            ]
          },
          "ultimoPagamento": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "situacaoDesde": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          }
        }
      },
      "EmendaDaResolucao": {
        "required": [
          "ano",
          "numero",
          "autor",
          "indicado",
          "pago"
        ],
        "type": "object",
        "properties": {
          "ano": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "numero": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "autor": {
            "type": [
              "null",
              "string"
            ]
          },
          "indicado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "pago": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "EmendaDetalhe": {
        "required": [
          "emenda",
          "caminho",
          "beneficiario",
          "observacao"
        ],
        "type": "object",
        "properties": {
          "emenda": {
            "$ref": "#/components/schemas/EmendaDaCarteira"
          },
          "caminho": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PassoDoDinheiro"
            }
          },
          "beneficiario": {
            "type": [
              "null",
              "string"
            ]
          },
          "observacao": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "EmendaEstadualDetalhe": {
        "required": [
          "id",
          "numero",
          "ano",
          "autor",
          "tipoDeIndicacao",
          "municipioNaPlanilha",
          "beneficiario",
          "cnpjBeneficiario",
          "unidadeAdministrativa",
          "numeroDaAcao",
          "acao",
          "grupoDeDespesa",
          "funcao",
          "funcaoNome",
          "descricao",
          "tipoDeAplicacao",
          "valorIndicado",
          "valorUtilizado",
          "valorEmpenhado",
          "valorLiquidado",
          "valorPago",
          "instrumento",
          "siafi",
          "autorizadaEm",
          "pagaEm",
          "coletadoEm"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "numero": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "ano": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "autor": {
            "type": [
              "null",
              "string"
            ]
          },
          "tipoDeIndicacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "municipioNaPlanilha": {
            "type": "string"
          },
          "beneficiario": {
            "type": [
              "null",
              "string"
            ]
          },
          "cnpjBeneficiario": {
            "type": [
              "null",
              "string"
            ]
          },
          "unidadeAdministrativa": {
            "type": [
              "null",
              "string"
            ]
          },
          "numeroDaAcao": {
            "type": [
              "null",
              "string"
            ]
          },
          "acao": {
            "type": [
              "null",
              "string"
            ]
          },
          "grupoDeDespesa": {
            "type": [
              "null",
              "string"
            ]
          },
          "funcao": {
            "type": [
              "null",
              "string"
            ]
          },
          "funcaoNome": {
            "type": [
              "null",
              "string"
            ]
          },
          "descricao": {
            "type": [
              "null",
              "string"
            ]
          },
          "tipoDeAplicacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "valorIndicado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "valorUtilizado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "valorEmpenhado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "valorLiquidado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "valorPago": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "instrumento": {
            "type": [
              "null",
              "string"
            ]
          },
          "siafi": {
            "type": [
              "null",
              "string"
            ]
          },
          "autorizadaEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "pagaEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "coletadoEm": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "EmendaEstadualResumo": {
        "required": [
          "id",
          "numero",
          "ano",
          "autor",
          "tipoDeIndicacao",
          "beneficiario",
          "tipoDeAplicacao",
          "valorIndicado",
          "valorEmpenhado",
          "valorPago",
          "instrumento",
          "autorizadaEm",
          "pagaEm"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "numero": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "ano": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "autor": {
            "type": [
              "null",
              "string"
            ]
          },
          "tipoDeIndicacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "beneficiario": {
            "type": [
              "null",
              "string"
            ]
          },
          "tipoDeAplicacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "valorIndicado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "valorEmpenhado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "valorPago": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "instrumento": {
            "type": [
              "null",
              "string"
            ]
          },
          "autorizadaEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "pagaEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          }
        }
      },
      "EmendaFederalDetalhe": {
        "required": [
          "id",
          "numero",
          "ano",
          "tipo",
          "tipoRotulo",
          "tipoProposta",
          "entidade",
          "cnpj",
          "valorProposta",
          "valorEmpenhado",
          "valorPago",
          "valorAPagar",
          "portaria",
          "dataPortaria",
          "situacaoCodigo",
          "situacao",
          "situacaoAnalise",
          "situacaoEm",
          "parlamentares",
          "pagamentos",
          "coletadoEm"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "numero": {
            "type": "string"
          },
          "ano": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "tipo": {
            "type": "string"
          },
          "tipoRotulo": {
            "type": "string"
          },
          "tipoProposta": {
            "type": [
              "null",
              "string"
            ]
          },
          "entidade": {
            "type": [
              "null",
              "string"
            ]
          },
          "cnpj": {
            "type": [
              "null",
              "string"
            ]
          },
          "valorProposta": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "valorEmpenhado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "valorPago": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "valorAPagar": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "portaria": {
            "type": [
              "null",
              "string"
            ]
          },
          "dataPortaria": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "situacaoCodigo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "situacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "situacaoAnalise": {
            "type": [
              "null",
              "string"
            ]
          },
          "situacaoEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "parlamentares": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ParlamentarDaEmenda"
            }
          },
          "pagamentos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PagamentoDaEmenda"
            }
          },
          "coletadoEm": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "EmendaFederalResumo": {
        "required": [
          "id",
          "numero",
          "ano",
          "tipo",
          "tipoRotulo",
          "tipoProposta",
          "parlamentares",
          "valorProposta",
          "valorPago",
          "valorAPagar",
          "situacao",
          "portaria",
          "dataPortaria"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "numero": {
            "type": "string"
          },
          "ano": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "tipo": {
            "type": "string"
          },
          "tipoRotulo": {
            "type": "string"
          },
          "tipoProposta": {
            "type": [
              "null",
              "string"
            ]
          },
          "parlamentares": {
            "type": "string"
          },
          "valorProposta": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "valorPago": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "valorAPagar": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "situacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "portaria": {
            "type": [
              "null",
              "string"
            ]
          },
          "dataPortaria": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          }
        }
      },
      "EmpenhoDaResolucao": {
        "required": [
          "id",
          "numero",
          "anoEmpenho",
          "dataRegistro",
          "empenhado",
          "pago",
          "subfuncao"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "numero": {
            "type": "string"
          },
          "anoEmpenho": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "dataRegistro": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "empenhado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "pago": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "subfuncao": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "EmpenhoFesDetalhe": {
        "required": [
          "id",
          "numero",
          "anoEmpenho",
          "anoConsulta",
          "dataRegistro",
          "orgao",
          "empenhado",
          "liquidado",
          "pago",
          "restos",
          "situacao",
          "funcao",
          "subfuncaoCodigo",
          "subfuncao",
          "programa",
          "acaoCodigo",
          "acao",
          "unidadeOrcamentaria",
          "unidadeExecutora",
          "elemento",
          "item",
          "grupo",
          "modalidade",
          "fonte",
          "historico",
          "tipoDeEmpenho",
          "valorInicial",
          "valorAtual",
          "liquidacoes",
          "pagamentos",
          "processoDeCompra",
          "contrato",
          "convenio",
          "resolucaoSes",
          "detalhadoEm",
          "abasCompletas"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "numero": {
            "type": "string"
          },
          "anoEmpenho": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "anoConsulta": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "dataRegistro": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "orgao": {
            "type": [
              "null",
              "string"
            ]
          },
          "empenhado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "liquidado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "pago": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "restos": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "situacao": {
            "type": "string"
          },
          "funcao": {
            "type": [
              "null",
              "string"
            ]
          },
          "subfuncaoCodigo": {
            "type": [
              "null",
              "string"
            ]
          },
          "subfuncao": {
            "type": [
              "null",
              "string"
            ]
          },
          "programa": {
            "type": [
              "null",
              "string"
            ]
          },
          "acaoCodigo": {
            "type": [
              "null",
              "string"
            ]
          },
          "acao": {
            "type": [
              "null",
              "string"
            ]
          },
          "unidadeOrcamentaria": {
            "type": [
              "null",
              "string"
            ]
          },
          "unidadeExecutora": {
            "type": [
              "null",
              "string"
            ]
          },
          "elemento": {
            "type": [
              "null",
              "string"
            ]
          },
          "item": {
            "type": [
              "null",
              "string"
            ]
          },
          "grupo": {
            "type": [
              "null",
              "string"
            ]
          },
          "modalidade": {
            "type": [
              "null",
              "string"
            ]
          },
          "fonte": {
            "type": [
              "null",
              "string"
            ]
          },
          "historico": {
            "type": [
              "null",
              "string"
            ]
          },
          "tipoDeEmpenho": {
            "type": [
              "null",
              "string"
            ]
          },
          "valorInicial": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "valorAtual": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "liquidacoes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MovimentoFes"
            }
          },
          "pagamentos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MovimentoFes"
            }
          },
          "processoDeCompra": {
            "type": [
              "null",
              "string"
            ]
          },
          "contrato": {
            "type": [
              "null",
              "string"
            ]
          },
          "convenio": {
            "type": [
              "null",
              "string"
            ]
          },
          "resolucaoSes": {
            "type": [
              "null",
              "string"
            ]
          },
          "detalhadoEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "abasCompletas": {
            "type": "boolean"
          }
        }
      },
      "EmpenhoFesResumo": {
        "required": [
          "id",
          "numero",
          "anoEmpenho",
          "dataRegistro",
          "subfuncaoCodigo",
          "subfuncao",
          "acaoCodigo",
          "acao",
          "empenhado",
          "liquidado",
          "pago",
          "restos",
          "resolucaoSes",
          "situacao",
          "detalhado"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "numero": {
            "type": "string"
          },
          "anoEmpenho": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "dataRegistro": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "subfuncaoCodigo": {
            "type": [
              "null",
              "string"
            ]
          },
          "subfuncao": {
            "type": [
              "null",
              "string"
            ]
          },
          "acaoCodigo": {
            "type": [
              "null",
              "string"
            ]
          },
          "acao": {
            "type": [
              "null",
              "string"
            ]
          },
          "empenhado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "liquidado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "pago": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "restos": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "resolucaoSes": {
            "type": [
              "null",
              "string"
            ]
          },
          "situacao": {
            "type": "string"
          },
          "detalhado": {
            "type": "boolean"
          }
        }
      },
      "FatiaDasEmendas": {
        "required": [
          "chave",
          "rotulo",
          "emendas",
          "indicado",
          "pago"
        ],
        "type": "object",
        "properties": {
          "chave": {
            "type": "string"
          },
          "rotulo": {
            "type": "string"
          },
          "emendas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "indicado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "pago": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "FormularioDeAnotacao": {
        "required": [
          "apelido",
          "situacao",
          "observacao"
        ],
        "type": "object",
        "properties": {
          "apelido": {
            "type": [
              "null",
              "string"
            ]
          },
          "situacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "observacao": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "FormularioDeOrgao": {
        "required": [
          "tipo",
          "nome",
          "municipioIbge",
          "cnpj",
          "cnpjFms"
        ],
        "type": "object",
        "properties": {
          "tipo": {
            "type": [
              "null",
              "string"
            ]
          },
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "municipioIbge": {
            "type": [
              "null",
              "string"
            ]
          },
          "cnpj": {
            "type": [
              "null",
              "string"
            ]
          },
          "cnpjFms": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "FormularioDeUsuario": {
        "required": [
          "nome",
          "email",
          "papel",
          "senha"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "papel": {
            "type": [
              "null",
              "string"
            ]
          },
          "senha": {
            "type": [
              "null",
              "string"
            ]
          },
          "paineis": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "GrupoFns": {
        "required": [
          "grupo",
          "liquido",
          "repasses",
          "percentual"
        ],
        "type": "object",
        "properties": {
          "grupo": {
            "type": "string"
          },
          "liquido": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "repasses": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "percentual": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "IFormFile": {
        "type": "string",
        "format": "binary"
      },
      "ImportacaoDePacientesEnviada": {
        "required": [
          "linhas"
        ],
        "type": "object",
        "properties": {
          "linhas": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/PessoaImportada"
            }
          }
        }
      },
      "LinhaRecusada": {
        "required": [
          "linha",
          "conteudo",
          "motivo"
        ],
        "type": "object",
        "properties": {
          "linha": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "conteudo": {
            "type": "string"
          },
          "motivo": {
            "type": "string"
          }
        }
      },
      "Marcacao": {
        "required": [
          "id",
          "paciente",
          "pacienteId",
          "telefone",
          "telefoneContato",
          "contatoNome",
          "destinoCidade",
          "destinoLocal",
          "data",
          "horaNoDestino",
          "temAcompanhante",
          "acompanhante",
          "descricao",
          "observacao",
          "situacao",
          "motivoCancelamento",
          "viagemId",
          "saida",
          "veiculo",
          "placa",
          "motorista",
          "foraDoPrazo"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "paciente": {
            "type": "string"
          },
          "pacienteId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "telefoneContato": {
            "type": [
              "null",
              "string"
            ]
          },
          "contatoNome": {
            "type": [
              "null",
              "string"
            ]
          },
          "destinoCidade": {
            "type": "string"
          },
          "destinoLocal": {
            "type": [
              "null",
              "string"
            ]
          },
          "data": {
            "type": "string",
            "format": "date"
          },
          "horaNoDestino": {
            "type": "string"
          },
          "temAcompanhante": {
            "type": "boolean"
          },
          "acompanhante": {
            "type": [
              "null",
              "string"
            ]
          },
          "descricao": {
            "type": [
              "null",
              "string"
            ]
          },
          "observacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "situacao": {
            "type": "string"
          },
          "motivoCancelamento": {
            "type": [
              "null",
              "string"
            ]
          },
          "viagemId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "saida": {
            "type": [
              "null",
              "string"
            ]
          },
          "veiculo": {
            "type": [
              "null",
              "string"
            ]
          },
          "placa": {
            "type": [
              "null",
              "string"
            ]
          },
          "motorista": {
            "type": [
              "null",
              "string"
            ]
          },
          "foraDoPrazo": {
            "type": "boolean"
          }
        }
      },
      "MarcacaoEnviada": {
        "required": [
          "paciente",
          "pacienteId",
          "telefone",
          "telefoneContato",
          "contatoNome",
          "destinoCidade",
          "destinoLocal",
          "data",
          "horaNoDestino",
          "temAcompanhante",
          "acompanhante",
          "descricao",
          "observacao"
        ],
        "type": "object",
        "properties": {
          "paciente": {
            "type": [
              "null",
              "string"
            ]
          },
          "pacienteId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "telefoneContato": {
            "type": [
              "null",
              "string"
            ]
          },
          "contatoNome": {
            "type": [
              "null",
              "string"
            ]
          },
          "destinoCidade": {
            "type": [
              "null",
              "string"
            ]
          },
          "destinoLocal": {
            "type": [
              "null",
              "string"
            ]
          },
          "data": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "horaNoDestino": {
            "type": [
              "null",
              "string"
            ]
          },
          "temAcompanhante": {
            "type": "boolean"
          },
          "acompanhante": {
            "type": [
              "null",
              "string"
            ]
          },
          "descricao": {
            "type": [
              "null",
              "string"
            ]
          },
          "observacao": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "MatrizFns": {
        "required": [
          "ano",
          "blocos",
          "meses",
          "total",
          "ultimoMesComRepasse",
          "programasComFalha"
        ],
        "type": "object",
        "properties": {
          "ano": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "blocos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BlocoDaMatriz"
            }
          },
          "meses": {
            "type": "array",
            "items": {
              "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
              "type": [
                "number",
                "string"
              ],
              "format": "double"
            }
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "ultimoMesComRepasse": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "programasComFalha": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "MesFns": {
        "required": [
          "mes",
          "total",
          "liquido",
          "repasses"
        ],
        "type": "object",
        "properties": {
          "mes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "liquido": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "repasses": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "MesSemPagamento": {
        "required": [
          "ano",
          "mes"
        ],
        "type": "object",
        "properties": {
          "ano": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "mes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "ModuloDoCatalogo": {
        "required": [
          "codigo",
          "nome",
          "resumo",
          "telas"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string"
          },
          "nome": {
            "type": "string"
          },
          "resumo": {
            "type": "string"
          },
          "telas": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ModuloDoOrgao": {
        "required": [
          "codigo",
          "nome",
          "resumo",
          "telas",
          "contratado",
          "contratadoEm"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string"
          },
          "nome": {
            "type": "string"
          },
          "resumo": {
            "type": "string"
          },
          "telas": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "contratado": {
            "type": "boolean"
          },
          "contratadoEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        }
      },
      "ModuloDoPainel": {
        "required": [
          "codigo",
          "nome",
          "resumo",
          "noMenu"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string"
          },
          "nome": {
            "type": "string"
          },
          "resumo": {
            "type": "string"
          },
          "noMenu": {
            "type": "boolean"
          }
        }
      },
      "MotoristaDaFrota": {
        "required": [
          "id",
          "nome",
          "telefone",
          "cnhCategoria",
          "cnhValidade",
          "diasParaVencer",
          "ativo"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "nome": {
            "type": "string"
          },
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "cnhCategoria": {
            "type": [
              "null",
              "string"
            ]
          },
          "cnhValidade": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "diasParaVencer": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "ativo": {
            "type": "boolean"
          }
        }
      },
      "MotoristaEnviado": {
        "required": [
          "nome",
          "telefone",
          "cnhCategoria",
          "cnhValidade"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "cnhCategoria": {
            "type": [
              "null",
              "string"
            ]
          },
          "cnhValidade": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          }
        }
      },
      "MotoristaParaViagem": {
        "required": [
          "id",
          "nome",
          "jaVaiPara",
          "viagensNoMes",
          "impedimento"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "nome": {
            "type": "string"
          },
          "jaVaiPara": {
            "type": [
              "null",
              "string"
            ]
          },
          "viagensNoMes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "impedimento": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "MovimentoEnviado": {
        "required": [
          "viagemId"
        ],
        "type": "object",
        "properties": {
          "viagemId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          }
        }
      },
      "MovimentoFes": {
        "required": [
          "data",
          "documento",
          "complemento",
          "situacao",
          "valor",
          "emRestos"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "documento": {
            "type": [
              "null",
              "string"
            ]
          },
          "complemento": {
            "type": [
              "null",
              "string"
            ]
          },
          "situacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "valor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "emRestos": {
            "type": "boolean"
          }
        }
      },
      "MunicipioResposta": {
        "required": [
          "ibge",
          "nome",
          "uf",
          "ufNome",
          "microrregiao",
          "mesorregiao",
          "regiaoImediata",
          "regiaoIntermediaria",
          "monitorado"
        ],
        "type": "object",
        "properties": {
          "ibge": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "nome": {
            "type": "string"
          },
          "uf": {
            "type": "string"
          },
          "ufNome": {
            "type": "string"
          },
          "microrregiao": {
            "type": [
              "null",
              "string"
            ]
          },
          "mesorregiao": {
            "type": [
              "null",
              "string"
            ]
          },
          "regiaoImediata": {
            "type": [
              "null",
              "string"
            ]
          },
          "regiaoIntermediaria": {
            "type": [
              "null",
              "string"
            ]
          },
          "monitorado": {
            "type": "boolean"
          }
        }
      },
      "OpcaoDeResolucao": {
        "required": [
          "valor",
          "rotulo",
          "pedeAcao"
        ],
        "type": "object",
        "properties": {
          "valor": {
            "type": "string"
          },
          "rotulo": {
            "type": "string"
          },
          "pedeAcao": {
            "type": "boolean"
          }
        }
      },
      "OpcaoDeSituacao": {
        "required": [
          "valor",
          "rotulo"
        ],
        "type": "object",
        "properties": {
          "valor": {
            "type": "string"
          },
          "rotulo": {
            "type": "string"
          }
        }
      },
      "OrgaoDetalhe": {
        "required": [
          "codigo",
          "nome",
          "tipo",
          "municipioIbge",
          "municipio",
          "uf",
          "cnpj",
          "cnpjFms",
          "ativo",
          "criadoEm",
          "brasaoAtualizadoEm"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string",
            "format": "uuid"
          },
          "nome": {
            "type": "string"
          },
          "tipo": {
            "type": "string"
          },
          "municipioIbge": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "municipio": {
            "type": "string"
          },
          "uf": {
            "type": "string"
          },
          "cnpj": {
            "type": [
              "null",
              "string"
            ]
          },
          "cnpjFms": {
            "type": [
              "null",
              "string"
            ]
          },
          "ativo": {
            "type": "boolean"
          },
          "criadoEm": {
            "type": "string",
            "format": "date-time"
          },
          "brasaoAtualizadoEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        }
      },
      "OrgaoResumo": {
        "required": [
          "codigo",
          "nome",
          "tipo",
          "municipioIbge",
          "municipio",
          "uf",
          "ativo",
          "brasaoAtualizadoEm",
          "modulos"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string",
            "format": "uuid"
          },
          "nome": {
            "type": "string"
          },
          "tipo": {
            "type": "string"
          },
          "municipioIbge": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "municipio": {
            "type": "string"
          },
          "uf": {
            "type": "string"
          },
          "ativo": {
            "type": "boolean"
          },
          "brasaoAtualizadoEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "modulos": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "PacienteDoCadastro": {
        "required": [
          "id",
          "nome",
          "dataNascimento",
          "cpf",
          "cns",
          "nomeMae",
          "telefone",
          "telefoneContato",
          "contatoNome",
          "ativo"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "nome": {
            "type": "string"
          },
          "dataNascimento": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "cpf": {
            "type": [
              "null",
              "string"
            ]
          },
          "cns": {
            "type": [
              "null",
              "string"
            ]
          },
          "nomeMae": {
            "type": [
              "null",
              "string"
            ]
          },
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "telefoneContato": {
            "type": [
              "null",
              "string"
            ]
          },
          "contatoNome": {
            "type": [
              "null",
              "string"
            ]
          },
          "ativo": {
            "type": "boolean"
          }
        }
      },
      "PacienteEnviado": {
        "required": [
          "nome",
          "dataNascimento",
          "cpf",
          "cns",
          "nomeMae",
          "telefone",
          "telefoneContato",
          "contatoNome"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "dataNascimento": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "cpf": {
            "type": [
              "null",
              "string"
            ]
          },
          "cns": {
            "type": [
              "null",
              "string"
            ]
          },
          "nomeMae": {
            "type": [
              "null",
              "string"
            ]
          },
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "telefoneContato": {
            "type": [
              "null",
              "string"
            ]
          },
          "contatoNome": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PagamentoDaEmenda": {
        "required": [
          "data",
          "parcela",
          "ob",
          "liquido",
          "acumulado",
          "processo"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "parcela": {
            "type": [
              "null",
              "string"
            ]
          },
          "ob": {
            "type": [
              "null",
              "string"
            ]
          },
          "liquido": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "acumulado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "processo": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PaginaDeRepassesFns": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho",
          "soma"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RepasseFnsResumo"
            }
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "numero": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "tamanho": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "soma": {
            "$ref": "#/components/schemas/SomaFns"
          }
        }
      },
      "PaginaOfColetaResposta": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ColetaResposta"
            }
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "numero": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "tamanho": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "PaginaOfContaResumo": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContaResumo"
            }
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "numero": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "tamanho": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "PaginaOfEmendaEstadualResumo": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EmendaEstadualResumo"
            }
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "numero": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "tamanho": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "PaginaOfEmendaFederalResumo": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EmendaFederalResumo"
            }
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "numero": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "tamanho": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "PaginaOfEmpenhoFesResumo": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EmpenhoFesResumo"
            }
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "numero": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "tamanho": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "PaginaOfMarcacao": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Marcacao"
            }
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "numero": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "tamanho": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "PaginaOfMotoristaDaFrota": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MotoristaDaFrota"
            }
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "numero": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "tamanho": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "PaginaOfMunicipioResposta": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MunicipioResposta"
            }
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "numero": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "tamanho": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "PaginaOfOrgaoResumo": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrgaoResumo"
            }
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "numero": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "tamanho": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "PaginaOfPacienteDoCadastro": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PacienteDoCadastro"
            }
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "numero": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "tamanho": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "PaginaOfResolucaoResumo": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResolucaoResumo"
            }
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "numero": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "tamanho": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "PaginaOfUsuarioResumo": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UsuarioResumo"
            }
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "numero": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "tamanho": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "PaginaOfVeiculoDaFrota": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VeiculoDaFrota"
            }
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "numero": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "tamanho": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "PaginaOfViagemDaFrota": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ViagemDaFrota"
            }
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "numero": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "tamanho": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "PainelAtribuivel": {
        "required": [
          "codigo",
          "nome"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string"
          },
          "nome": {
            "type": "string"
          }
        }
      },
      "PainelCliente": {
        "required": [
          "codigo",
          "nome",
          "modulos",
          "atualizadoEm"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string"
          },
          "nome": {
            "type": "string"
          },
          "modulos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ModuloDoPainel"
            }
          },
          "atualizadoEm": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "PainelSiops": {
        "required": [
          "exercicio",
          "minimo",
          "folgaDeAlerta",
          "atual",
          "serie",
          "historico",
          "ultimaColeta",
          "coletaEmCurso"
        ],
        "type": "object",
        "properties": {
          "exercicio": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "minimo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "folgaDeAlerta": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "atual": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/BimestreSiops"
              }
            ]
          },
          "serie": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BimestreSiops"
            }
          },
          "historico": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AnoSiops"
            }
          },
          "ultimaColeta": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ColetaDoModulo"
              }
            ]
          },
          "coletaEmCurso": {
            "type": "boolean"
          }
        }
      },
      "PapelAtribuivel": {
        "required": [
          "valor",
          "rotulo",
          "descricao",
          "pertenceAOrgao"
        ],
        "type": "object",
        "properties": {
          "valor": {
            "type": "string"
          },
          "rotulo": {
            "type": "string"
          },
          "descricao": {
            "type": "string"
          },
          "pertenceAOrgao": {
            "type": "boolean"
          }
        }
      },
      "ParlamentarDaCarteira": {
        "required": [
          "nome",
          "partido"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": "string"
          },
          "partido": {
            "type": [
              "null",
              "string"
            ]
          },
          "valor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "ParlamentarDaEmenda": {
        "required": [
          "nome",
          "partido",
          "valor",
          "codigo"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": "string"
          },
          "partido": {
            "type": [
              "null",
              "string"
            ]
          },
          "valor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "codigo": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PassageiroDaViagem": {
        "required": [
          "nome",
          "acompanhante",
          "motivo",
          "pedidoId",
          "consulta",
          "local",
          "telefone",
          "telefoneContato",
          "contatoNome",
          "soNaVolta"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": "string"
          },
          "acompanhante": {
            "type": "boolean"
          },
          "motivo": {
            "type": [
              "null",
              "string"
            ]
          },
          "pedidoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "consulta": {
            "type": [
              "null",
              "string"
            ]
          },
          "local": {
            "type": [
              "null",
              "string"
            ]
          },
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "telefoneContato": {
            "type": [
              "null",
              "string"
            ]
          },
          "contatoNome": {
            "type": [
              "null",
              "string"
            ]
          },
          "soNaVolta": {
            "type": "boolean"
          }
        }
      },
      "PassageiroEnviado": {
        "required": [
          "nome",
          "acompanhante",
          "motivo",
          "pedidoId"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "acompanhante": {
            "type": "boolean"
          },
          "motivo": {
            "type": [
              "null",
              "string"
            ]
          },
          "pedidoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "soNaVolta": {
            "type": "boolean",
            "default": false
          }
        }
      },
      "PassoDoDinheiro": {
        "required": [
          "etapa",
          "data",
          "valor",
          "documento",
          "detalhe",
          "fonte",
          "feito"
        ],
        "type": "object",
        "properties": {
          "etapa": {
            "type": "string"
          },
          "data": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "valor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "documento": {
            "type": [
              "null",
              "string"
            ]
          },
          "detalhe": {
            "type": [
              "null",
              "string"
            ]
          },
          "fonte": {
            "type": "string"
          },
          "feito": {
            "type": "boolean"
          }
        }
      },
      "PedidoDeColeta": {
        "required": [
          "ano"
        ],
        "type": "object",
        "properties": {
          "ano": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "PedidoDeEntrada": {
        "required": [
          "email",
          "senha",
          "modo",
          "cliente"
        ],
        "type": "object",
        "properties": {
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "senha": {
            "type": [
              "null",
              "string"
            ]
          },
          "modo": {
            "type": [
              "null",
              "string"
            ]
          },
          "cliente": {
            "type": [
              "null",
              "string"
            ]
          },
          "painel": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PedidoDeMenuDoPainel": {
        "required": [
          "modulos"
        ],
        "type": "object",
        "properties": {
          "modulos": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "PedidoDeModulos": {
        "required": [
          "modulos"
        ],
        "type": "object",
        "properties": {
          "modulos": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "PedidoDeSenha": {
        "required": [
          "senha"
        ],
        "type": "object",
        "properties": {
          "senha": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PedidoDeSituacao": {
        "required": [
          "ativo"
        ],
        "type": "object",
        "properties": {
          "ativo": {
            "type": "boolean"
          }
        }
      },
      "PedidoDeTrocaDeOrgao": {
        "required": [
          "codigo"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          }
        }
      },
      "PedidoDeTrocaDeSenha": {
        "required": [
          "senhaAtual",
          "senhaNova"
        ],
        "type": "object",
        "properties": {
          "senhaAtual": {
            "type": [
              "null",
              "string"
            ]
          },
          "senhaNova": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PessoaImportada": {
        "required": [
          "linha",
          "nome",
          "dataNascimento",
          "cpf",
          "cns",
          "nomeMae"
        ],
        "type": "object",
        "properties": {
          "linha": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "dataNascimento": {
            "type": [
              "null",
              "string"
            ]
          },
          "cpf": {
            "type": [
              "null",
              "string"
            ]
          },
          "cns": {
            "type": [
              "null",
              "string"
            ]
          },
          "nomeMae": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PontoFns": {
        "required": [
          "ano",
          "mes",
          "custeio",
          "investimento",
          "liquido",
          "repasses"
        ],
        "type": "object",
        "properties": {
          "ano": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "mes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "custeio": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "investimento": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "liquido": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "repasses": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "ProgramaDaMatriz": {
        "required": [
          "codigoAcao",
          "programa",
          "meses",
          "total",
          "semPagamento"
        ],
        "type": "object",
        "properties": {
          "codigoAcao": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "programa": {
            "type": "string"
          },
          "meses": {
            "type": "array",
            "items": {
              "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
              "type": [
                "null",
                "number",
                "string"
              ],
              "format": "double"
            }
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "semPagamento": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MesSemPagamento"
            }
          }
        }
      },
      "RankingDaCarteira": {
        "required": [
          "nome",
          "partido",
          "esfera",
          "emendasNoAno",
          "indicadoNoAno",
          "emendasNaJanela",
          "indicadoNaJanela"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": "string"
          },
          "partido": {
            "type": [
              "null",
              "string"
            ]
          },
          "esfera": {
            "type": "string"
          },
          "emendasNoAno": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "indicadoNoAno": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "emendasNaJanela": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "indicadoNaJanela": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "RankingDeParlamentar": {
        "required": [
          "nome",
          "partido",
          "valor",
          "emendas"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": "string"
          },
          "partido": {
            "type": [
              "null",
              "string"
            ]
          },
          "valor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "emendas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "RelatorioDeImportacao": {
        "required": [
          "arquivo",
          "linhasLidas",
          "resolucoes",
          "criadas",
          "atualizadas",
          "iguais",
          "pactuadoGravado",
          "dividasLc171",
          "recusadas",
          "colunasReconhecidas",
          "colunasIgnoradas",
          "secoes",
          "comVariasResolucoes",
          "repetidas",
          "linhasSemResolucao",
          "linhasVazias"
        ],
        "type": "object",
        "properties": {
          "arquivo": {
            "type": "string"
          },
          "linhasLidas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "resolucoes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "criadas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "atualizadas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "iguais": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pactuadoGravado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "dividasLc171": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "recusadas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LinhaRecusada"
            }
          },
          "colunasReconhecidas": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "colunasIgnoradas": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "secoes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "comVariasResolucoes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "repetidas": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "linhasSemResolucao": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "linhasVazias": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "RepasseFnsDetalhe": {
        "required": [
          "id",
          "ano",
          "mes",
          "acao",
          "codigoAcao",
          "bloco",
          "grupo",
          "componente",
          "formaRepasse",
          "parcelas",
          "parcela",
          "valorTotal",
          "valorDesconto",
          "valorLiquido",
          "valorAnulacao",
          "numeroOb",
          "tipoDocumento",
          "dataOb",
          "processo",
          "portaria",
          "motivoRejeicao",
          "banco",
          "agencia",
          "conta",
          "cnpjFundo",
          "coletadoEm"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "ano": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "mes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "acao": {
            "type": "string"
          },
          "codigoAcao": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "bloco": {
            "type": "string"
          },
          "grupo": {
            "type": [
              "null",
              "string"
            ]
          },
          "componente": {
            "type": [
              "null",
              "string"
            ]
          },
          "formaRepasse": {
            "type": [
              "null",
              "string"
            ]
          },
          "parcelas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "parcela": {
            "type": [
              "null",
              "string"
            ]
          },
          "valorTotal": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "valorDesconto": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "valorLiquido": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "valorAnulacao": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "numeroOb": {
            "type": [
              "null",
              "string"
            ]
          },
          "tipoDocumento": {
            "type": [
              "null",
              "string"
            ]
          },
          "dataOb": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "processo": {
            "type": [
              "null",
              "string"
            ]
          },
          "portaria": {
            "type": [
              "null",
              "string"
            ]
          },
          "motivoRejeicao": {
            "type": [
              "null",
              "string"
            ]
          },
          "banco": {
            "type": [
              "null",
              "string"
            ]
          },
          "agencia": {
            "type": [
              "null",
              "string"
            ]
          },
          "conta": {
            "type": [
              "null",
              "string"
            ]
          },
          "cnpjFundo": {
            "type": [
              "null",
              "string"
            ]
          },
          "coletadoEm": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "RepasseFnsResumo": {
        "required": [
          "id",
          "ano",
          "mes",
          "acao",
          "codigoAcao",
          "bloco",
          "grupo",
          "valorTotal",
          "valorDesconto",
          "valorLiquido",
          "numeroOb",
          "dataOb",
          "banco",
          "agencia",
          "conta",
          "rejeitado"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "ano": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "mes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "acao": {
            "type": "string"
          },
          "codigoAcao": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "bloco": {
            "type": "string"
          },
          "grupo": {
            "type": [
              "null",
              "string"
            ]
          },
          "valorTotal": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "valorDesconto": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "valorLiquido": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "numeroOb": {
            "type": [
              "null",
              "string"
            ]
          },
          "dataOb": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "banco": {
            "type": [
              "null",
              "string"
            ]
          },
          "agencia": {
            "type": [
              "null",
              "string"
            ]
          },
          "conta": {
            "type": [
              "null",
              "string"
            ]
          },
          "rejeitado": {
            "type": "boolean"
          }
        }
      },
      "ResolucaoCitada": {
        "required": [
          "numero",
          "empenhos",
          "empenhado",
          "pago"
        ],
        "type": "object",
        "properties": {
          "numero": {
            "type": "string"
          },
          "empenhos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "empenhado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "pago": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "ResolucaoDescoberta": {
        "required": [
          "identificacao",
          "empenhos",
          "empenhado"
        ],
        "type": "object",
        "properties": {
          "identificacao": {
            "type": "string"
          },
          "empenhos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "empenhado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "ResolucaoDetalhe": {
        "required": [
          "resumo",
          "tema",
          "agenciaOrigem",
          "contaOrigem",
          "dataAssinatura",
          "venceEm",
          "revoga",
          "atualizadaPor",
          "observacoes",
          "criadoEm",
          "atualizadoEm",
          "empenhosDoFes",
          "emendas"
        ],
        "type": "object",
        "properties": {
          "resumo": {
            "$ref": "#/components/schemas/ResolucaoResumo"
          },
          "tema": {
            "type": [
              "null",
              "string"
            ]
          },
          "agenciaOrigem": {
            "type": [
              "null",
              "string"
            ]
          },
          "contaOrigem": {
            "type": [
              "null",
              "string"
            ]
          },
          "dataAssinatura": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "venceEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "revoga": {
            "type": [
              "null",
              "string"
            ]
          },
          "atualizadaPor": {
            "type": [
              "null",
              "string"
            ]
          },
          "observacoes": {
            "type": [
              "null",
              "string"
            ]
          },
          "criadoEm": {
            "type": "string",
            "format": "date-time"
          },
          "atualizadoEm": {
            "type": "string",
            "format": "date-time"
          },
          "empenhosDoFes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EmpenhoDaResolucao"
            }
          },
          "emendas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EmendaDaResolucao"
            }
          }
        }
      },
      "ResolucaoEnviada": {
        "required": [
          "numero",
          "ano",
          "objeto",
          "tema",
          "subfuncao",
          "valorPactuado",
          "agenciaOrigem",
          "contaOrigem",
          "dividaLc171",
          "naturezaDivida",
          "dataAssinatura",
          "venceEm",
          "executarAte",
          "situacao",
          "revoga",
          "atualizadaPor",
          "observacoes"
        ],
        "type": "object",
        "properties": {
          "numero": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "ano": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "objeto": {
            "type": [
              "null",
              "string"
            ]
          },
          "tema": {
            "type": [
              "null",
              "string"
            ]
          },
          "subfuncao": {
            "type": [
              "null",
              "string"
            ]
          },
          "valorPactuado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "agenciaOrigem": {
            "type": [
              "null",
              "string"
            ]
          },
          "contaOrigem": {
            "type": [
              "null",
              "string"
            ]
          },
          "dividaLc171": {
            "type": "boolean"
          },
          "naturezaDivida": {
            "type": [
              "null",
              "string"
            ]
          },
          "dataAssinatura": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "venceEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "executarAte": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "situacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "revoga": {
            "type": [
              "null",
              "string"
            ]
          },
          "atualizadaPor": {
            "type": [
              "null",
              "string"
            ]
          },
          "observacoes": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ResolucaoResumo": {
        "required": [
          "numero",
          "ano",
          "identificacao",
          "objeto",
          "subfuncao",
          "pactuado",
          "recebido",
          "pago",
          "empenhos",
          "aReceber",
          "fecha",
          "dividaLc171",
          "natureza",
          "executarAte",
          "diasParaOPrazo",
          "prazoVencido",
          "situacao",
          "pedeAcao",
          "origem",
          "incompleta",
          "indicadaPor",
          "indicado"
        ],
        "type": "object",
        "properties": {
          "numero": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "ano": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "identificacao": {
            "type": "string"
          },
          "objeto": {
            "type": [
              "null",
              "string"
            ]
          },
          "subfuncao": {
            "type": [
              "null",
              "string"
            ]
          },
          "pactuado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "recebido": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "pago": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "empenhos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "aReceber": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "fecha": {
            "type": "boolean"
          },
          "dividaLc171": {
            "type": "boolean"
          },
          "natureza": {
            "type": [
              "null",
              "string"
            ]
          },
          "executarAte": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "diasParaOPrazo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "prazoVencido": {
            "type": "boolean"
          },
          "situacao": {
            "type": "string"
          },
          "pedeAcao": {
            "type": "boolean"
          },
          "origem": {
            "type": "string"
          },
          "incompleta": {
            "type": "boolean"
          },
          "indicadaPor": {
            "type": [
              "null",
              "string"
            ]
          },
          "indicado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "ResultadoDaImportacao": {
        "required": [
          "recebidos",
          "criados",
          "atualizados",
          "ignorados",
          "avisos"
        ],
        "type": "object",
        "properties": {
          "recebidos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "criados": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "atualizados": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "ignorados": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "avisos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AvisoDaImportacao"
            }
          }
        }
      },
      "ResumoDasMarcacoes": {
        "required": [
          "de",
          "ate",
          "marcacoes",
          "pessoas",
          "semCarro",
          "dias"
        ],
        "type": "object",
        "properties": {
          "de": {
            "type": "string",
            "format": "date"
          },
          "ate": {
            "type": "string",
            "format": "date"
          },
          "marcacoes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pessoas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "semCarro": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "dias": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DiaDeMarcacoes"
            }
          }
        }
      },
      "ResumoDasViagens": {
        "required": [
          "de",
          "ate",
          "viagens",
          "pacientes",
          "kmRodados",
          "aConfirmar",
          "dias"
        ],
        "type": "object",
        "properties": {
          "de": {
            "type": "string",
            "format": "date"
          },
          "ate": {
            "type": "string",
            "format": "date"
          },
          "viagens": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pacientes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "kmRodados": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "aConfirmar": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "dias": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DiaDeViagens"
            }
          }
        }
      },
      "ResumoDeContas": {
        "required": [
          "contas",
          "saldoTotal",
          "posicaoDe",
          "posicaoAte",
          "porTipo",
          "foraDaListaDoFns",
          "ultimaColeta",
          "coletaEmCurso"
        ],
        "type": "object",
        "properties": {
          "contas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "saldoTotal": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "posicaoDe": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "posicaoAte": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "porTipo": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TipoDeConta"
            }
          },
          "foraDaListaDoFns": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "ultimaColeta": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ColetaDoModulo"
              }
            ]
          },
          "coletaEmCurso": {
            "type": "boolean"
          }
        }
      },
      "ResumoDeEmendasEstaduais": {
        "required": [
          "ano",
          "indicado",
          "empenhado",
          "liquidado",
          "pago",
          "aPagar",
          "emendas",
          "percentualPago",
          "semExecucao",
          "indicadoSemExecucao",
          "deputados",
          "porTipo",
          "ultimaColeta",
          "coletaEmCurso"
        ],
        "type": "object",
        "properties": {
          "ano": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "indicado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "empenhado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "liquidado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "pago": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "aPagar": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "emendas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "percentualPago": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "semExecucao": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "indicadoSemExecucao": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "deputados": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RankingDeParlamentar"
            }
          },
          "porTipo": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TotalPorTipoDeIndicacao"
            }
          },
          "ultimaColeta": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ColetaDoModulo"
              }
            ]
          },
          "coletaEmCurso": {
            "type": "boolean"
          }
        }
      },
      "ResumoDeEmendasFederais": {
        "required": [
          "ano",
          "proposto",
          "empenhado",
          "pago",
          "aPagar",
          "propostas",
          "percentualPago",
          "porTipo",
          "parlamentares",
          "situacoes",
          "ultimaColeta",
          "coletaEmCurso"
        ],
        "type": "object",
        "properties": {
          "ano": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "proposto": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "empenhado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "pago": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "aPagar": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "propostas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "percentualPago": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "porTipo": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TotalPorTipoDeEmenda"
            }
          },
          "parlamentares": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RankingDeParlamentar"
            }
          },
          "situacoes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TotalPorSituacao"
            }
          },
          "ultimaColeta": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ColetaDoModulo"
              }
            ]
          },
          "coletaEmCurso": {
            "type": "boolean"
          }
        }
      },
      "ResumoDeResolucoes": {
        "required": [
          "total",
          "dividasLc171",
          "pactuado",
          "recebido",
          "passivoLc171",
          "prazosVencidos",
          "pedemAcao",
          "incompletas",
          "descobertas",
          "semRecebido"
        ],
        "type": "object",
        "properties": {
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "dividasLc171": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pactuado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "recebido": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "passivoLc171": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "prazosVencidos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pedemAcao": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "incompletas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "descobertas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "semRecebido": {
            "type": [
              "null",
              "string"
            ]
          },
          "leituraEmCurso": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ResumoFes": {
        "required": [
          "ano",
          "cnpjFundo",
          "nomeNoPortal",
          "portal",
          "soma",
          "confere",
          "empenhos",
          "detalhados",
          "comResolucao",
          "subfuncoes",
          "resolucoes",
          "ultimaColeta",
          "coletaEmCurso"
        ],
        "type": "object",
        "properties": {
          "ano": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "cnpjFundo": {
            "type": "string"
          },
          "nomeNoPortal": {
            "type": [
              "null",
              "string"
            ]
          },
          "portal": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ValoresFes"
              }
            ]
          },
          "soma": {
            "$ref": "#/components/schemas/ValoresFes"
          },
          "confere": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "empenhos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "detalhados": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "comResolucao": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "subfuncoes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SubfuncaoFes"
            }
          },
          "resolucoes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResolucaoCitada"
            }
          },
          "ultimaColeta": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ColetaDoModulo"
              }
            ]
          },
          "coletaEmCurso": {
            "type": "boolean"
          }
        }
      },
      "ResumoFns": {
        "required": [
          "ano",
          "municipioIbge",
          "municipio",
          "cnpjFundo",
          "total",
          "desconto",
          "liquido",
          "anulacao",
          "repasses",
          "rejeitados",
          "custeio",
          "investimento",
          "mediaMensal",
          "mesesComRepasse",
          "porMes",
          "porGrupo",
          "conciliacaoPortal",
          "ultimaColeta",
          "coletaEmCurso"
        ],
        "type": "object",
        "properties": {
          "ano": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "municipioIbge": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "municipio": {
            "type": "string"
          },
          "cnpjFundo": {
            "type": [
              "null",
              "string"
            ]
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "desconto": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "liquido": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "anulacao": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "repasses": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "rejeitados": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "custeio": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "investimento": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "mediaMensal": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "mesesComRepasse": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "porMes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MesFns"
            }
          },
          "porGrupo": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GrupoFns"
            }
          },
          "conciliacaoPortal": {
            "$ref": "#/components/schemas/ConciliacaoFns"
          },
          "ultimaColeta": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ColetaDoModulo"
              }
            ]
          },
          "coletaEmCurso": {
            "type": "boolean"
          },
          "anoIncompleto": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "SaldoDoMes": {
        "required": [
          "data",
          "saldo"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": "string",
            "format": "date"
          },
          "saldo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "Saude": {
        "required": [
          "situacao",
          "versao",
          "versaoDoEsquema"
        ],
        "type": "object",
        "properties": {
          "situacao": {
            "type": "string"
          },
          "versao": {
            "type": "string"
          },
          "versaoDoEsquema": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "SessaoAtual": {
        "required": [
          "usuario",
          "orgaoAtivo",
          "expiraEm",
          "token"
        ],
        "type": "object",
        "properties": {
          "usuario": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/UsuarioDaSessao"
              }
            ]
          },
          "orgaoAtivo": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OrgaoResumo"
              }
            ]
          },
          "expiraEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "token": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "SituacaoEnviada": {
        "required": [
          "situacao"
        ],
        "type": "object",
        "properties": {
          "situacao": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "SomaFns": {
        "required": [
          "bruto",
          "desconto",
          "liquido"
        ],
        "type": "object",
        "properties": {
          "bruto": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "desconto": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "liquido": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "SubfuncaoFes": {
        "required": [
          "codigo",
          "nome",
          "empenhos",
          "empenhado",
          "pago"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": [
              "null",
              "string"
            ]
          },
          "nome": {
            "type": "string"
          },
          "empenhos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "empenhado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "pago": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "SugestaoDeConclusao": {
        "required": [
          "kmSaida",
          "retornoEm"
        ],
        "type": "object",
        "properties": {
          "kmSaida": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "retornoEm": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "TelefonesEnviados": {
        "required": [
          "telefone",
          "telefoneContato",
          "contatoNome"
        ],
        "type": "object",
        "properties": {
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "telefoneContato": {
            "type": [
              "null",
              "string"
            ]
          },
          "contatoNome": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "TipoDeConta": {
        "required": [
          "tipo",
          "contas",
          "saldo"
        ],
        "type": "object",
        "properties": {
          "tipo": {
            "type": "string"
          },
          "contas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "saldo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "TotalPorSituacao": {
        "required": [
          "situacao",
          "propostas",
          "proposto"
        ],
        "type": "object",
        "properties": {
          "situacao": {
            "type": "string"
          },
          "propostas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "proposto": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "TotalPorTipoDeEmenda": {
        "required": [
          "tipo",
          "rotulo",
          "propostas",
          "proposto",
          "pago"
        ],
        "type": "object",
        "properties": {
          "tipo": {
            "type": "string"
          },
          "rotulo": {
            "type": "string"
          },
          "propostas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "proposto": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "pago": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "TotalPorTipoDeIndicacao": {
        "required": [
          "tipo",
          "emendas",
          "indicado",
          "pago"
        ],
        "type": "object",
        "properties": {
          "tipo": {
            "type": "string"
          },
          "emendas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "indicado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "pago": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "UfResposta": {
        "required": [
          "codigo",
          "sigla",
          "nome",
          "regiao"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "sigla": {
            "type": "string"
          },
          "nome": {
            "type": "string"
          },
          "regiao": {
            "type": "string"
          }
        }
      },
      "UsuarioDaSessao": {
        "required": [
          "codigo",
          "nome",
          "email",
          "papel",
          "papelRotulo",
          "podeEscrever",
          "podeAdministrarUsuarios",
          "podeAdministrarOrgaos",
          "podeTrocarDeOrgao",
          "podeGerirTransporte",
          "modulosDoPapel",
          "painel",
          "paineis"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string",
            "format": "uuid"
          },
          "nome": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "papel": {
            "type": "string"
          },
          "papelRotulo": {
            "type": "string"
          },
          "podeEscrever": {
            "type": "boolean"
          },
          "podeAdministrarUsuarios": {
            "type": "boolean"
          },
          "podeAdministrarOrgaos": {
            "type": "boolean"
          },
          "podeTrocarDeOrgao": {
            "type": "boolean"
          },
          "podeGerirTransporte": {
            "type": "boolean"
          },
          "modulosDoPapel": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          },
          "painel": {
            "type": [
              "null",
              "string"
            ]
          },
          "paineis": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "UsuarioResumo": {
        "required": [
          "codigo",
          "nome",
          "email",
          "papel",
          "papelRotulo",
          "orgaoCodigo",
          "orgaoNome",
          "ativo",
          "criadoEm",
          "ultimoAcessoEm",
          "paineis"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string",
            "format": "uuid"
          },
          "nome": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "papel": {
            "type": "string"
          },
          "papelRotulo": {
            "type": "string"
          },
          "orgaoCodigo": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "orgaoNome": {
            "type": [
              "null",
              "string"
            ]
          },
          "ativo": {
            "type": "boolean"
          },
          "criadoEm": {
            "type": "string",
            "format": "date-time"
          },
          "ultimoAcessoEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "paineis": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ValoresFes": {
        "required": [
          "empenhado",
          "liquidado",
          "pago",
          "restos"
        ],
        "type": "object",
        "properties": {
          "empenhado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "liquidado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "pago": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "restos": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "VeiculoDaFrota": {
        "required": [
          "id",
          "marca",
          "modelo",
          "placa",
          "ocupacao",
          "ativo"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "marca": {
            "type": "string"
          },
          "modelo": {
            "type": "string"
          },
          "placa": {
            "type": [
              "null",
              "string"
            ]
          },
          "ocupacao": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "ativo": {
            "type": "boolean"
          }
        }
      },
      "VeiculoEnviado": {
        "required": [
          "marca",
          "modelo",
          "ocupacao",
          "placa"
        ],
        "type": "object",
        "properties": {
          "marca": {
            "type": [
              "null",
              "string"
            ]
          },
          "modelo": {
            "type": [
              "null",
              "string"
            ]
          },
          "ocupacao": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "placa": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ViagemDaFrota": {
        "required": [
          "id",
          "saida",
          "retornoPrevisto",
          "retornoEm",
          "motoristaId",
          "motorista",
          "veiculoId",
          "veiculo",
          "placa",
          "ocupacao",
          "destinoCidade",
          "destinoLocal",
          "observacao",
          "situacao",
          "revisar",
          "kmSaida",
          "kmRetorno",
          "kmRodados",
          "motivoCancelamento",
          "minutosDeEstrada",
          "passageiros",
          "ajustada",
          "carroEmOutraViagem",
          "motoristaImpedido"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "saida": {
            "type": "string"
          },
          "retornoPrevisto": {
            "type": [
              "null",
              "string"
            ]
          },
          "retornoEm": {
            "type": [
              "null",
              "string"
            ]
          },
          "motoristaId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "motorista": {
            "type": [
              "null",
              "string"
            ]
          },
          "veiculoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "veiculo": {
            "type": "string"
          },
          "placa": {
            "type": [
              "null",
              "string"
            ]
          },
          "ocupacao": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "destinoCidade": {
            "type": "string"
          },
          "destinoLocal": {
            "type": [
              "null",
              "string"
            ]
          },
          "observacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "situacao": {
            "type": "string"
          },
          "revisar": {
            "type": "boolean"
          },
          "kmSaida": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "kmRetorno": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "kmRodados": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "motivoCancelamento": {
            "type": [
              "null",
              "string"
            ]
          },
          "minutosDeEstrada": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "passageiros": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PassageiroDaViagem"
            }
          },
          "ajustada": {
            "type": "boolean"
          },
          "carroEmOutraViagem": {
            "type": "boolean"
          },
          "motoristaImpedido": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ViagemEnviada": {
        "required": [
          "veiculoId",
          "motoristaId",
          "saida",
          "retornoPrevisto",
          "destinoCidade",
          "destinoLocal",
          "observacao",
          "passageiros"
        ],
        "type": "object",
        "properties": {
          "veiculoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "motoristaId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "saida": {
            "type": [
              "null",
              "string"
            ]
          },
          "retornoPrevisto": {
            "type": [
              "null",
              "string"
            ]
          },
          "destinoCidade": {
            "type": [
              "null",
              "string"
            ]
          },
          "destinoLocal": {
            "type": [
              "null",
              "string"
            ]
          },
          "observacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "passageiros": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/PassageiroEnviado"
            }
          }
        }
      },
      "VisaoDasEmendas": {
        "required": [
          "ano",
          "emendas",
          "indicado",
          "pago",
          "confirmadoNaConta",
          "porEsfera",
          "porTipo",
          "porGrupo",
          "parlamentares",
          "anos",
          "pendentes"
        ],
        "type": "object",
        "properties": {
          "ano": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "emendas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "indicado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "pago": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "confirmadoNaConta": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "porEsfera": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FatiaDasEmendas"
            }
          },
          "porTipo": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FatiaDasEmendas"
            }
          },
          "porGrupo": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FatiaDasEmendas"
            }
          },
          "parlamentares": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RankingDaCarteira"
            }
          },
          "anos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AnoDaCarteira"
            }
          },
          "pendentes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EmendaDaCarteira"
            }
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "Operação"
    },
    {
      "name": "Sessões"
    },
    {
      "name": "Órgãos"
    },
    {
      "name": "Usuários"
    },
    {
      "name": "Perfil"
    },
    {
      "name": "Base pública"
    },
    {
      "name": "Módulos"
    },
    {
      "name": "Painéis"
    },
    {
      "name": "FNS — repasses federais"
    },
    {
      "name": "Emendas parlamentares federais"
    },
    {
      "name": "Emendas parlamentares — carteira"
    },
    {
      "name": "SIOPS — aplicação em saúde"
    },
    {
      "name": "Emendas parlamentares estaduais (ALMG)"
    },
    {
      "name": "FES — repasses do Estado (MG)"
    },
    {
      "name": "Resoluções da SES"
    },
    {
      "name": "Contas bancárias do fundo"
    },
    {
      "name": "Transporte · Veículos"
    },
    {
      "name": "Transporte · Motoristas"
    },
    {
      "name": "Transporte · Pacientes"
    },
    {
      "name": "Transporte · Marcação"
    },
    {
      "name": "Transporte · Viagens"
    },
    {
      "name": "Transporte · Destinos"
    }
  ]
}