{
  "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. Com a verificação em duas etapas ligada, a sessão volta aguardando o código (POST /sessoes/atual/segundo-fator).",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeEntrada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/sessoes/codigo": {
      "post": {
        "tags": [
          "Sessões"
        ],
        "summary": "Entrar com o celular: pede um código de 6 dígitos pelo WhatsApp (10 minutos, uma vez, 5 tentativas). Só a conta ativa única do painel com este celular, e não a de quem administra clientes. A resposta é sempre a mesma.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeCodigoDeEntrada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/sessoes/codigo/whatsapp": {
      "get": {
        "tags": [
          "Sessões"
        ],
        "summary": "O número oficial e a mensagem pronta para pedir o código PELO WhatsApp (a pessoa manda primeiro). 404 quando o número oficial não está ligado.",
        "parameters": [
          {
            "name": "painel",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/sessoes/por-codigo": {
      "post": {
        "tags": [
          "Sessões"
        ],
        "summary": "Entrar com o código que chegou pelo WhatsApp ({celular, codigo, painel, modo, lembrar}). \"lembrar\": no navegador, 30 dias em vez de 8 horas. Código errado, vencido ou usado: 422 codigo_invalido, a mesma frase.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EntradaPorCodigo"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/sessoes/atual/segundo-fator": {
      "post": {
        "tags": [
          "Sessões"
        ],
        "summary": "O código do autenticador (ou um de recuperação), depois da senha. Cinco erros encerram a sessão.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeSegundoFator"
              }
            }
          },
          "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/passagem": {
      "post": {
        "tags": [
          "Sessões"
        ],
        "summary": "Pede a passagem para outro sistema em que a conta está liberada: o link pronto (código no #), de dois minutos e uso único.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDePassagem"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Passagem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/sessoes/passagem": {
      "post": {
        "tags": [
          "Sessões"
        ],
        "summary": "O sistema de destino troca o código da passagem por uma sessão de navegador dele, no mesmo órgão.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeTrocaDePassagem"
              }
            }
          },
          "required": true
        },
        "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/portal/{subdominio}": {
      "get": {
        "tags": [
          "Portal do município"
        ],
        "summary": "A página de entrada da prefeitura (divinesia.sabiogestor.com.br): nome, brasão e os sistemas que ela usa. Com sessão, cada sistema diz se a conta está liberada nele.",
        "parameters": [
          {
            "name": "subdominio",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PortalDoMunicipio"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/portal/{subdominio}/brasao": {
      "get": {
        "tags": [
          "Portal do município"
        ],
        "summary": "O brasão da prefeitura, para a página de entrada (público). 404 quando não há.",
        "parameters": [
          {
            "name": "subdominio",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/cidadao/apps/{slug}": {
      "get": {
        "tags": [
          "App da população"
        ],
        "summary": "O app de um município, antes de entrar: o nome, o município, as logomarcas e o número oficial com a mensagem pronta.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppDoCidadaoPublico"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/cidadao/apps/{slug}/manifest.webmanifest": {
      "get": {
        "tags": [
          "App da população"
        ],
        "summary": "O manifesto do app instalável do município (nome, endereço, ícones).",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/cidadao/apps/{slug}/logos/{qual}": {
      "get": {
        "tags": [
          "App da população"
        ],
        "summary": "A logomarca da prefeitura, a da secretaria de saúde ou o brasão do órgão (públicos, como o nome).",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "qual",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/cidadao/apps/{slug}/codigo": {
      "post": {
        "tags": [
          "App da população"
        ],
        "summary": "Pede o código de entrar: vai pelo WhatsApp oficial (modelo de autenticação) ou, se falhar, por SMS. A resposta é sempre a mesma.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeCodigoDoApp"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CodigoDoAppPedido"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/cidadao/apps/{slug}/entrar": {
      "post": {
        "tags": [
          "App da população"
        ],
        "summary": "Entrar: o celular, o código que chegou pelo WhatsApp e a data de nascimento de alguém da casa. Devolve o token do aparelho (1 ano, renovado no uso).",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EntradaNoApp"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AcessoAoApp"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/cidadao/eu": {
      "get": {
        "tags": [
          "App da população"
        ],
        "summary": "Quem é da casa (as pessoas deste celular) e com quem falar (a unidade e a agente de saúde).",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EuNoApp"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/cidadao/eu/contato": {
      "put": {
        "tags": [
          "App da população"
        ],
        "summary": "O telefone de contato de quem entrou (quem atende por ele), gravado no cadastro da Saúde.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContatoInformado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EuNoApp"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/cidadao/dependentes": {
      "get": {
        "tags": [
          "App da população"
        ],
        "summary": "Os dependentes de quem entrou (filhos, quem ele cuida) e as sugestões automáticas (moram na casa, filhos no cadastro).",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DependentesNoApp"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/cidadao/dependentes/sugestoes/{id}": {
      "post": {
        "tags": [
          "App da população"
        ],
        "summary": "Aceita (ou recusa) uma sugestão de dependente.",
        "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/RespostaASugestao"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DependentesNoApp"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/cidadao/dependentes/{id}": {
      "put": {
        "tags": [
          "App da população"
        ],
        "summary": "Troca o parentesco de um dependente.",
        "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/ParentescoInformado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DependentesNoApp"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "App da população"
        ],
        "summary": "Tira um dependente (ele não volta a ser sugerido).",
        "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/DependentesNoApp"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/cidadao/cuidados": {
      "get": {
        "tags": [
          "App da população"
        ],
        "summary": "O acompanhamento de cada pessoa da casa pelas listas do PEC: por ora a gestação (só a de quem entrou), passo a passo — o que foi feito, o que falta e com quem.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CuidadosNoApp"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/cidadao/remedios": {
      "get": {
        "tags": [
          "App da população"
        ],
        "summary": "O cartão de remédios das pessoas da casa (V0427): o que tomar, como, a última retirada na farmácia, quando pode voltar e a receita.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RemediosNoApp"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/cidadao/remedios/{id}/renovacao": {
      "post": {
        "tags": [
          "App da população"
        ],
        "summary": "Pede a renovação da receita (faltando 15 dias ou menos; um pedido em aberto por remédio). Devolve o cartã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/RemediosNoApp"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/cidadao/consultas": {
      "get": {
        "tags": [
          "App da população"
        ],
        "summary": "As próximas consultas das pessoas da casa.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ConsultaNoApp"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/cidadao/consultas/{id}/resposta": {
      "post": {
        "tags": [
          "App da população"
        ],
        "summary": "\"Vou\" confirma; \"Não vou\" cancela e libera a vaga (no histórico: Paciente, pelo app).",
        "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/RespostaNoApp"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsultaNoApp"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/cidadao/marcacao/opcoes": {
      "get": {
        "tags": [
          "App da população"
        ],
        "summary": "Quem da casa pode marcar, o PSF de cada um e com quem (médico ou enfermeiro ligado para o app).",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpcoesDeMarcacao"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/cidadao/marcacao/dias": {
      "get": {
        "tags": [
          "App da população"
        ],
        "summary": "Os próximos dias com vaga do app (até 15), com quantos horários de manhã e de tarde.",
        "parameters": [
          {
            "name": "pessoa",
            "in": "query",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          },
          {
            "name": "profissional",
            "in": "query",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DiaParaMarcar"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/cidadao/marcacao/horarios": {
      "get": {
        "tags": [
          "App da população"
        ],
        "summary": "Os horários livres de um turno (manha ou tarde) daquele dia.",
        "parameters": [
          {
            "name": "pessoa",
            "in": "query",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          },
          {
            "name": "profissional",
            "in": "query",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          },
          {
            "name": "dia",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "turno",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HorariosParaMarcar"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/cidadao/marcacao": {
      "post": {
        "tags": [
          "App da população"
        ],
        "summary": "Marca a consulta (já confirmada). Fora do PSF da pessoa: 403 fora_da_sua_unidade; uma em aberto por pessoa e profissional.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarcacaoNoApp"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsultaMarcadaNoApp"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/cidadao/civi": {
      "get": {
        "tags": [
          "App da população"
        ],
        "summary": "Se a Civi conversa hoje (há chave, cabe no limite do dia e no teto do mês) ou só oferece os botões.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SituacaoDaCivi"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "App da população"
        ],
        "summary": "Uma mensagem para a Civi (o app manda a conversa inteira). Horários oferecidos voltam como botões; soBotoes quando a IA não está disponível.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoACivi"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RespostaDaCivi"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/cidadao/push/chave": {
      "get": {
        "tags": [
          "App da população"
        ],
        "summary": "A chave pública das notificações (VAPID); nula quando o servidor não manda notificação.",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/cidadao/push": {
      "post": {
        "tags": [
          "App da população"
        ],
        "summary": "Este aparelho aceitou receber notificações (a inscrição do navegador).",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InscricaoDePush"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/cidadao/avisos": {
      "get": {
        "tags": [
          "App da população"
        ],
        "summary": "Os avisos da Saúde para as pessoas da casa (60 dias), com os botões de resposta.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AvisoNoApp"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/cidadao/avisos/vistos": {
      "post": {
        "tags": [
          "App da população"
        ],
        "summary": "A pessoa abriu o app: os avisos ficam vistos — a notificação para de repetir e o selo do ícone zera (V0434).",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/cidadao/avisos/{id}/lido": {
      "post": {
        "tags": [
          "App da população"
        ],
        "summary": "Marca o aviso como lido (a equipe vê).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/cidadao/avisos/{id}/resposta": {
      "post": {
        "tags": [
          "App da população"
        ],
        "summary": "A resposta de um toque (Vou / Não vou, Ciente…). A da consulta confirma ou desmarca na Agenda.",
        "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/RespostaAoAviso"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AvisoNoApp"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/cidadao/mensagens": {
      "get": {
        "tags": [
          "App da população"
        ],
        "summary": "As mensagens que a Saúde mandou para este celular (90 dias).",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MensagemNoApp"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/cidadao/sair": {
      "post": {
        "tags": [
          "App da população"
        ],
        "summary": "Desliga este aparelho.",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/orgaos": {
      "get": {
        "tags": [
          "Órgãos"
        ],
        "summary": "Órgãos visíveis a quem pergunta (o administrador global vê todos; o do tenant, os do tenant dele).",
        "parameters": [
          {
            "name": "ativos",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "busca",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tenant",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "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}/tenant": {
      "put": {
        "tags": [
          "Órgãos"
        ],
        "summary": "Passa o órgão para outro tenant (só o administrador global). Não move dado; muda quem o administra.",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeTenantDoOrgao"
              }
            }
          },
          "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 (o administrador global; o do tenant só muda os do Sábio TI). 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}/modulos/{modulo}": {
      "put": {
        "tags": [
          "Órgãos"
        ],
        "summary": "Liga UM módulo, sem mexer nos outros (o administrador global; o do tenant, só os do Sábio TI).",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "modulo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ModuloDoOrgao"
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Órgãos"
        ],
        "summary": "Desliga UM módulo, sem mexer nos outros. Desligar não apaga dado.",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "modulo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "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/orgaos/{codigo}/brasao/publico": {
      "post": {
        "tags": [
          "Órgãos"
        ],
        "summary": "Troca o brasão da prefeitura pelo brasão público do município (Wikidata/Commons). Só órgão do tipo Município; 404 quando a fonte não tem.",
        "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/orgaos/{codigo}/logos/{qual}": {
      "get": {
        "tags": [
          "Órgãos"
        ],
        "summary": "A logomarca do órgão: prefeitura ou saude (a secretaria de saúde). 404 quando não há.",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "qual",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Órgãos"
        ],
        "summary": "Envia (ou troca) a logomarca: multipart, campo \"arquivo\". PNG (de preferência com fundo transparente), JPEG ou WebP, até 2 MB.",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "qual",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "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 a logomarca.",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "qual",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrgaoDetalhe"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tenants": {
      "get": {
        "tags": [
          "Tenants"
        ],
        "summary": "Os tenants, com quantos clientes cada um tem (o administrador global vê todos; o do tenant, só o dele).",
        "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/PaginaOfTenantDetalhe"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Tenants"
        ],
        "summary": "Cadastra um tenant (só o administrador global).",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FormularioDeTenant"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/tenants/{codigo}": {
      "get": {
        "tags": [
          "Tenants"
        ],
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantDetalhe"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Tenants"
        ],
        "summary": "Edita nome e CNPJ do tenant (só o administrador global).",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FormularioDeTenant"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantDetalhe"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tenants/{codigo}/situacao": {
      "put": {
        "tags": [
          "Tenants"
        ],
        "summary": "Ativa ou desativa (só o administrador global). Desativado, as contas de administração do tenant saem na requisição seguinte.",
        "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/TenantDetalhe"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tenants/{codigo}/administradores": {
      "get": {
        "tags": [
          "Tenants"
        ],
        "summary": "Os administradores do tenant (só o administrador global). Senha e situação mudam por /usuarios/{codigo}/senha e /situacao.",
        "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/AdministradorDoTenantResumo"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Tenants"
        ],
        "summary": "Cria um administrador do tenant direto no tenant (só o administrador global; o papel do formulário é ignorado). É o caminho do PRIMEIRO administrador de um tenant novo, que ainda não tem cliente. Senha provisória; entra só no Sábio TI.",
        "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"
          }
        }
      }
    },
    "/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. Quem imprime (com pessoa ligada): só números, 6 a 8 (422 senha_nao_e_codigo / codigo_em_uso), e o PIN passa a ser ela.",
        "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": {
      "get": {
        "tags": [
          "Perfil"
        ],
        "summary": "A própria conta: nome, e-mail e celular (só dígitos, DDD + número; nulo quando não cadastrado).",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PerfilDaConta"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Perfil"
        ],
        "summary": "Grava o próprio celular (com ou sem máscara; vazio apaga). É por ele que sai o código do WhatsApp.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FormularioDoPerfil"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PerfilDaConta"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/perfil/foto": {
      "get": {
        "tags": [
          "Perfil"
        ],
        "summary": "A foto da própria conta (PNG, JPEG ou WebP). 404 sem_foto quando não há.",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Perfil"
        ],
        "summary": "Envia (ou troca) a foto da própria conta: multipart, campo \"arquivo\". PNG, JPEG ou WebP, até 2 MB. O formato sai dos bytes; SVG é recusado.",
        "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/PerfilDaConta"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Perfil"
        ],
        "summary": "Tira a foto da própria conta.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PerfilDaConta"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/perfil/capa": {
      "get": {
        "tags": [
          "Perfil"
        ],
        "summary": "A foto de capa da própria conta (PNG, JPEG ou WebP). 404 sem_capa quando não há.",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Perfil"
        ],
        "summary": "Envia (ou troca) a foto de capa da própria conta: multipart, campo \"arquivo\". PNG, JPEG ou WebP, até 4 MB. O formato sai dos bytes; SVG é recusado. A capa nova volta ao centro.",
        "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/PerfilDaConta"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Perfil"
        ],
        "summary": "Tira a foto de capa da própria conta.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PerfilDaConta"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/perfil/capa/posicao": {
      "put": {
        "tags": [
          "Perfil"
        ],
        "summary": "Reposiciona a capa: a posição vertical do enquadramento, de 0 (topo) a 100 (base). 422 fora da faixa; 404 sem_capa.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDePosicaoDaCapa"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PerfilDaConta"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/perfil/senha": {
      "put": {
        "tags": [
          "Perfil"
        ],
        "summary": "Troca a própria senha (exige a atual). Encerra as outras sessões e desmarca a senha provisória. Quem imprime (com pessoa ligada): só números, 6 a 8 (422 senha_nao_e_codigo / codigo_em_uso), e o PIN passa a ser ela.",
        "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"
        ],
        "summary": "As coletas, das mais novas; ?situacao=Falhou mostra só as que falharam; &emAberto=true, só as que ninguém resolveu depois.",
        "parameters": [
          {
            "name": "situacao",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "emAberto",
            "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/PaginaOfColetaResposta"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/custos/aws": {
      "get": {
        "tags": [
          "Custos"
        ],
        "summary": "O que a conta da AWS custa: o mês até agora, a previsão, o mês passado, por serviço e por região.",
        "parameters": [
          {
            "name": "atualizar",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustosDaAws"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/email/ses/eventos": {
      "post": {
        "tags": [
          "Sábio E-mail"
        ],
        "summary": "Eventos do Amazon SES (devolução, reclamação, entrega) pelo SNS, com assinatura conferida.",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/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/perfil/segundo-fator": {
      "get": {
        "tags": [
          "Perfil"
        ],
        "summary": "Se a verificação em duas etapas está ligada, desde quando, e quantos códigos de recuperação restam.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SegundoFatorDaConta"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Perfil"
        ],
        "summary": "Gera o segredo do autenticador (para o QR). Só liga depois de um código certo.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SegredoDoAutenticador"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/perfil/segundo-fator/ativacao": {
      "post": {
        "tags": [
          "Perfil"
        ],
        "summary": "Liga com o código do autenticador e devolve os códigos de recuperação (a única vez que aparecem). Encerra as outras sessões.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeCodigo"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CodigosDeRecuperacaoGerados"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/perfil/segundo-fator/desativacao": {
      "post": {
        "tags": [
          "Perfil"
        ],
        "summary": "Desliga — exige o código atual do autenticador: quem pegou a sessão aberta não desliga a proteção.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeCodigo"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/perfil/segundo-fator/codigos": {
      "post": {
        "tags": [
          "Perfil"
        ],
        "summary": "Códigos de recuperação novos (exige o código do autenticador); os anteriores não usados deixam de valer.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeCodigo"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CodigosDeRecuperacaoGerados"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/certificados": {
      "get": {
        "tags": [
          "Certificados"
        ],
        "summary": "Os certificados de quem está na sessão, com o que está destravado agora.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MeuCofre"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Certificados"
        ],
        "summary": "Guarda um A1: multipart com \"arquivo\", \"senhaDoArquivo\" (a da certificadora), \"pin\" (6 a 64, escolhido aqui) e \"apelido\".",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "allOf": [
                  {
                    "type": "object",
                    "properties": {
                      "arquivo": {
                        "$ref": "#/components/schemas/IFormFile"
                      }
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "senhaDoArquivo": {
                        "type": "string"
                      }
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "pin": {
                        "type": "string"
                      }
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "apelido": {
                        "type": "string"
                      }
                    }
                  }
                ]
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CertificadoNoCofre"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/certificados/do-orgao": {
      "get": {
        "tags": [
          "Certificados"
        ],
        "summary": "Só a gestão. O que existe no cofre do órgão e quando vence — a gestão não tem o PIN e não abre nenhum.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CofreDoOrgao"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/certificados/{codigo}/destravar": {
      "post": {
        "tags": [
          "Certificados"
        ],
        "summary": "Destrava com o PIN por 15 minutos corridos, nesta sessão. Cinco erros barram por 15 minutos.",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeDestrava"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Destravamento"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/certificados/trancar": {
      "post": {
        "tags": [
          "Certificados"
        ],
        "summary": "Tranca tudo o que esta sessão destravou.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Destravamento"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/certificados/{codigo}": {
      "put": {
        "tags": [
          "Certificados"
        ],
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeApelidoDoCertificado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CertificadoNoCofre"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Certificados"
        ],
        "summary": "Tira do cofre: o envelope some, a linha fica (de quem era, até quando valia).",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Destravamento"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/senha/recuperacao": {
      "post": {
        "tags": [
          "Senha"
        ],
        "summary": "Esqueci minha senha: com e-mail, um link (30 minutos, uso único) para o endereço do painel; com celular, um código de 6 dígitos pelo WhatsApp (10 minutos, 5 tentativas); com canal \"sms\", o código vai direto por SMS (1 por minuto e 3 a cada 24 horas por celular). A resposta é sempre a mesma.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeRecuperacaoDeSenha"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/senha/redefinicao": {
      "post": {
        "tags": [
          "Senha"
        ],
        "summary": "O link do e-mail ({token, senhaNova}) ou o código do WhatsApp ({celular, codigo, senhaNova, painel}): grava a senha nova e encerra todas as sessões da conta. O segundo fator continua.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeRedefinicaoDeSenha"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/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/prospeccao/resumo": {
      "get": {
        "tags": [
          "Captação de clientes"
        ],
        "summary": "O tamanho da base: quantos contratos de impressão, quantas empresas, quantas do ramo e com que contato, por UF e por situação.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResumoDaProspeccao"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/prospeccao/empresas": {
      "get": {
        "tags": [
          "Captação de clientes"
        ],
        "summary": "As empresas, da nota maior: ?uf=MG&municipio=&busca=(nome ou CNPJ)&notaMinima=3&situacao=Novo&contato=whatsapp|email|site|telefone&aba=fila|lembretes|enviadas|responderam|encerradas&ordem=nota|contratos|valor. A fila traz só as que faltam para o limite do dia.",
        "parameters": [
          {
            "name": "uf",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "municipio",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "busca",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "notaMinima",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "situacao",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "contato",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "aba",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "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/PaginaOfLeadResposta"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/prospeccao/empresas.xlsx": {
      "get": {
        "tags": [
          "Captação de clientes"
        ],
        "summary": "A mesma lista em .xlsx (até 20000 linhas), com os mesmos filtros, a situação e as datas dos contatos.",
        "parameters": [
          {
            "name": "uf",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "municipio",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "busca",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "notaMinima",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "situacao",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "contato",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "aba",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ordem",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/prospeccao/empresas/{chave}": {
      "get": {
        "tags": [
          "Captação de clientes"
        ],
        "summary": "Uma empresa, com a conversa.",
        "parameters": [
          {
            "name": "chave",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LeadResposta"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/prospeccao/empresas/{chave}/contratos": {
      "get": {
        "tags": [
          "Captação de clientes"
        ],
        "summary": "Os contratos de impressão da empresa com o governo (PNCP), do mais novo.",
        "parameters": [
          {
            "name": "chave",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ContratoDoLead"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/prospeccao/empresas/{chave}/historico": {
      "get": {
        "tags": [
          "Captação de clientes"
        ],
        "summary": "A linha do tempo da empresa: envios, respostas e mudanças de situação, do mais novo.",
        "parameters": [
          {
            "name": "chave",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EventoDoLead"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/prospeccao/empresas/{chave}/contato": {
      "put": {
        "tags": [
          "Captação de clientes"
        ],
        "summary": "Ajuste manual da situação e a anotação; a mudança entra no histórico. NaoContatar é definitivo e tira a empresa das buscas.",
        "parameters": [
          {
            "name": "chave",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeContatoDoLead"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LeadResposta"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/prospeccao/empresas/{chave}/nota": {
      "put": {
        "tags": [
          "Captação de clientes"
        ],
        "summary": "Muda a nota de uma empresa achada na pesquisa (as do PNCP têm nota calculada).",
        "parameters": [
          {
            "name": "chave",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeNota"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LeadResposta"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/prospeccao/hoje": {
      "get": {
        "tags": [
          "Captação de clientes"
        ],
        "summary": "O dia de trabalho: enviadas de quanto, lembretes pendentes, respostas e demonstrações.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PainelDoDia"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/prospeccao/hoje/liberar": {
      "post": {
        "tags": [
          "Captação de clientes"
        ],
        "summary": "Libera mais 10 envios hoje, só depois de atingido o limite (fica gravado quem liberou).",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PainelDoDia"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/prospeccao/limite": {
      "put": {
        "tags": [
          "Captação de clientes"
        ],
        "summary": "Muda o limite de envios por dia (padrão 20).",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeLimite"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PainelDoDia"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/prospeccao/modelos": {
      "get": {
        "tags": [
          "Captação de clientes"
        ],
        "summary": "Os modelos de mensagem (1o_contato e 2o_contato), com as variáveis {empresa} e {cidade}.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ModeloDeMensagem"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/prospeccao/modelos/{codigo}": {
      "put": {
        "tags": [
          "Captação de clientes"
        ],
        "summary": "Grava o texto de um modelo.",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeModelo"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModeloDeMensagem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/prospeccao/empresas/{chave}/mensagem": {
      "get": {
        "tags": [
          "Captação de clientes"
        ],
        "summary": "A prévia do texto (sem abrir nada e sem mudar a situação).",
        "parameters": [
          {
            "name": "chave",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tipo",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnonymousTypeOfstring"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/prospeccao/empresas/{chave}/abrir": {
      "post": {
        "tags": [
          "Captação de clientes"
        ],
        "summary": "Confere no servidor (situação, número já contatado em outra empresa, limite do dia) e devolve o texto e o link do wa.me. A empresa fica \"aberta, não confirmada\" até o enviado/nao-enviado.",
        "parameters": [
          {
            "name": "chave",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeAbertura"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AberturaDoWhatsapp"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/prospeccao/empresas/{chave}/enviado": {
      "post": {
        "tags": [
          "Captação de clientes"
        ],
        "summary": "\"Sim, enviei\": grava o envio no histórico (com a cópia do texto), muda a situação e conta no dia.",
        "parameters": [
          {
            "name": "chave",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeEnvio"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvioRegistrado"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/prospeccao/empresas/{chave}/nao-enviado": {
      "post": {
        "tags": [
          "Captação de clientes"
        ],
        "summary": "\"Não enviei\": nada se grava; só some a marca de aberta, não confirmada.",
        "parameters": [
          {
            "name": "chave",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LeadResposta"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/prospeccao/empresas/{chave}/desfazer": {
      "post": {
        "tags": [
          "Captação de clientes"
        ],
        "summary": "Desfaz o \"Sim, enviei\" no primeiro minuto; fica no histórico como desfeito.",
        "parameters": [
          {
            "name": "chave",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LeadResposta"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/prospeccao/empresas/{chave}/resposta": {
      "post": {
        "tags": [
          "Captação de clientes"
        ],
        "summary": "Registra a resposta da empresa. NaoContatar grava data, hora e quem (prova da LGPD) e bloqueia a empresa para sempre.",
        "parameters": [
          {
            "name": "chave",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeResposta"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LeadResposta"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/prospeccao/importar": {
      "post": {
        "tags": [
          "Captação de clientes"
        ],
        "summary": "Importa um CSV: \"pesquisa\" (empresas achadas no Google, sem duplicar por telefone, WhatsApp, site ou CNPJ) ou \"enriquecimento\" (site, e-mail e Instagram de empresas do PNCP pelo CNPJ, sem sobrescrever o que já existe).",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeImportacao"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResultadoDaImportacaoDeLeads"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/comunicacao/whatsapp": {
      "get": {
        "tags": [
          "Comunicação"
        ],
        "summary": "O WhatsApp da Sábio está conectado? Com qual número? (equipe da Sábio)",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SituacaoDoWhatsApp"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/comunicacao/whatsapp/conexao": {
      "post": {
        "tags": [
          "Comunicação"
        ],
        "summary": "Gera o QR Code para conectar o número (escaneie em WhatsApp → Aparelhos conectados).",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConexaoDoWhatsApp"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/email/envio/painel": {
      "get": {
        "tags": [
          "Sábio E-mail"
        ],
        "summary": "Reputação da conta e por caixa (devolução, reclamação), bloqueios e limites — para ver antes da AWS.",
        "parameters": [
          {
            "name": "horas",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PainelDeEnvio"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/email/envio/caixas/{endereco}/desbloqueio": {
      "post": {
        "tags": [
          "Sábio E-mail"
        ],
        "summary": "Libera o envio. Se o acesso foi cortado no servidor, gera a SENHA NOVA (mostrada uma vez) para entregar ao dono.",
        "parameters": [
          {
            "name": "endereco",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DesbloqueioDaCaixa"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/email/envio/caixas/{endereco}/limites": {
      "put": {
        "tags": [
          "Sábio E-mail"
        ],
        "summary": "Limite próprio da caixa por hora/dia (nulo = o padrão).",
        "parameters": [
          {
            "name": "endereco",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LimitesDaCaixa"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnvioPorCaixa"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/email/envio/supressoes": {
      "get": {
        "tags": [
          "Sábio E-mail"
        ],
        "parameters": [
          {
            "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/PaginaOfSupressaoItem"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Sábio E-mail"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NovaSupressao"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SupressaoItem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/email/envio/supressoes/{endereco}": {
      "delete": {
        "tags": [
          "Sábio E-mail"
        ],
        "parameters": [
          {
            "name": "endereco",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/email/servidor": {
      "get": {
        "tags": [
          "Sábio E-mail"
        ],
        "summary": "O DirectAdmin responde? Quantas contas de domínio a revenda usa e quantas o plano permite.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SituacaoDoServidorDeEmail"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/email/cotas": {
      "get": {
        "tags": [
          "Sábio E-mail"
        ],
        "summary": "As cotas de caixa que se oferecem (MB).",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OpcaoDeCota"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/email/dominios": {
      "get": {
        "tags": [
          "Sábio E-mail"
        ],
        "summary": "Os domínios cadastrados (busca por domínio ou órgão).",
        "parameters": [
          {
            "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/PaginaOfDominioDeEmailResumo"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Sábio E-mail"
        ],
        "summary": "ADOTA um domínio que já existe no DirectAdmin. Não cria nada lá.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeAdocao"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/email/dominios/servidor": {
      "get": {
        "tags": [
          "Sábio E-mail"
        ],
        "summary": "Os domínios que existem no DirectAdmin e ainda não foram adotados.",
        "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/PaginaOfDominioNoServidor"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/email/dominios/provisionamento": {
      "post": {
        "tags": [
          "Sábio E-mail"
        ],
        "summary": "CRIA o domínio no DirectAdmin, pela guarda do MX: MX de outro provedor (ou DNS sem resposta) só passa com a confirmação = nome do domínio.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeProvisionamento"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/email/dominios/{codigo}": {
      "get": {
        "tags": [
          "Sábio E-mail"
        ],
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DominioDeEmailResumo"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Sábio E-mail"
        ],
        "summary": "DESADOTA: tira o domínio daqui. O DirectAdmin não é tocado — domínio e caixas continuam lá.",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/email/dominios/{codigo}/orgao": {
      "put": {
        "tags": [
          "Sábio E-mail"
        ],
        "summary": "De quem é o domínio (nulo = da Sábio).",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeOrgaoDoDominio"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DominioDeEmailResumo"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/email/dominios/{codigo}/conferencia": {
      "get": {
        "tags": [
          "Sábio E-mail"
        ],
        "summary": "Confere AGORA o domínio: MX, mail., webmail., SPF, DKIM (a chave do servidor contra a publicada), DMARC, certificado e SRV. Só lê.",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConferenciaDoDominio"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/email/dominios/{codigo}/conferencia/aplicacao": {
      "post": {
        "tags": [
          "Sábio E-mail"
        ],
        "summary": "Faz o que a conferência acusou: liga o DKIM e publica a chave, MX, mail., webmail., SPF (fundido), DMARC, SRV na Cloudflare e pede o certificado. MX/mail./webmail. de outro lugar são trocados (adicionar o domínio é trazer o e-mail dele para a Sábio).",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeAplicacao"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResultadoDaAplicacao"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/email/dominios/{codigo}/servidor": {
      "delete": {
        "tags": [
          "Sábio E-mail"
        ],
        "summary": "APAGA o domínio no servidor — conta, caixas e mensagens, sem volta — e tira do DNS os registros de e-mail que são nossos. Exige ?confirmacao= com o domínio digitado.",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "confirmacao",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResultadoDaExclusao"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/email/dominios/{codigo}/registro": {
      "get": {
        "tags": [
          "Sábio E-mail"
        ],
        "summary": "A trilha do domínio: quem fez o quê, e se o servidor aceitou.",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "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/PaginaOfRegistroDeEmailItem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/email/dominios/{codigo}/caixas": {
      "get": {
        "tags": [
          "Sábio E-mail"
        ],
        "summary": "As caixas do domínio, perguntadas ao DirectAdmin agora.",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "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/PaginaOfCaixaDeEmailResumo"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Sábio E-mail"
        ],
        "summary": "Cria a caixa com senha gerada pelo sistema, devolvida UMA vez (não fica guardada em lugar nenhum).",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NovaCaixaDeEmail"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/email/dominios/{codigo}/caixas/{usuario}/senha": {
      "post": {
        "tags": [
          "Sábio E-mail"
        ],
        "summary": "Gera uma senha nova para a caixa, devolvida UMA vez. A anterior deixa de valer.",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "usuario",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/email/dominios/{codigo}/caixas/{usuario}/cota": {
      "put": {
        "tags": [
          "Sábio E-mail"
        ],
        "summary": "Muda a cota da caixa (uma das opções de /email/cotas).",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "usuario",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeCotaDaCaixa"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CaixaDeEmailResumo"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/email/dominios/{codigo}/caixas/{usuario}": {
      "delete": {
        "tags": [
          "Sábio E-mail"
        ],
        "summary": "APAGA a caixa no servidor, com as mensagens — sem volta. Exige ?confirmacao= com o endereço digitado.",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "usuario",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "confirmacao",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/webmail/sessao": {
      "post": {
        "tags": [
          "Webmail"
        ],
        "summary": "Entra no webmail com o e-mail e a senha da caixa.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeEntradaNaCaixa"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "get": {
        "tags": [
          "Webmail"
        ],
        "summary": "A caixa ativa, ou caixa nula quando não há sessão (200 nos dois casos).",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessaoDoWebmailRespondida"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Webmail"
        ],
        "summary": "Sai: todas as caixas fecham e as senhas saem da memória.",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/webmail/contas": {
      "get": {
        "tags": [
          "Webmail"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ContaAberta"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Webmail"
        ],
        "summary": "Abre MAIS uma caixa nesta janela (passa a ser a ativa).",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeEntradaNaCaixa"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CaixaRespondida"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Webmail"
        ],
        "summary": "Fecha UMA caixa. Sem nenhuma aberta, a sessão acaba.",
        "parameters": [
          {
            "name": "endereco",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContaRemovida"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/webmail/contas/ativa": {
      "put": {
        "tags": [
          "Webmail"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TrocaDeConta"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CaixaRespondida"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/webmail/pastas": {
      "get": {
        "tags": [
          "Webmail"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Pasta"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/webmail/armazenamento": {
      "get": {
        "tags": [
          "Webmail"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "pattern": "^-?(?:0|[1-9]\\d*)$",
                    "type": [
                      "integer",
                      "string"
                    ],
                    "format": "int64"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/webmail/mensagens/todas": {
      "get": {
        "tags": [
          "Webmail"
        ],
        "summary": "A caixa de entrada de todas as caixas abertas, misturada e por data.",
        "parameters": [
          {
            "name": "deslocamento",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "quantidade",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "termo",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "naoLidas",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CaixaUnificada"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/webmail/mensagens": {
      "get": {
        "tags": [
          "Webmail"
        ],
        "parameters": [
          {
            "name": "pasta",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "deslocamento",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "quantidade",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "termo",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "naoLidas",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "comAnexo",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "dias",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "marcadas",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "de",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "assunto",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "etiqueta",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "conta",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginaDeMensagens"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Webmail"
        ],
        "summary": "Envia (anexos em base64, até 20 MB juntos) e guarda a cópia em Enviados.",
        "parameters": [
          {
            "name": "conta",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NovaMensagemDoWebmail"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/webmail/mensagens/{uid}": {
      "get": {
        "tags": [
          "Webmail"
        ],
        "summary": "Abre a mensagem: HTML sanitizado pronto para o iframe; imagem de fora só com mostrarImagens=true.",
        "parameters": [
          {
            "name": "uid",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "pasta",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "mostrarImagens",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "conta",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MensagemAberta"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Webmail"
        ],
        "summary": "Para a Lixeira; na Lixeira, apaga de vez.",
        "parameters": [
          {
            "name": "uid",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "pasta",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "conta",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/webmail/mensagens/{uid}/anexos/{id}": {
      "get": {
        "tags": [
          "Webmail"
        ],
        "parameters": [
          {
            "name": "uid",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pasta",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "conta",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/webmail/mensagens/{uid}/marca": {
      "put": {
        "tags": [
          "Webmail"
        ],
        "parameters": [
          {
            "name": "uid",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "pasta",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "conta",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarcacaoDoWebmail"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/webmail/mensagens/marca": {
      "put": {
        "tags": [
          "Webmail"
        ],
        "parameters": [
          {
            "name": "pasta",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarcacaoEmLote"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/webmail/mensagens/lixeira": {
      "post": {
        "tags": [
          "Webmail"
        ],
        "parameters": [
          {
            "name": "pasta",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LoteDeMensagens"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/webmail/mensagens/mover": {
      "post": {
        "tags": [
          "Webmail"
        ],
        "parameters": [
          {
            "name": "pasta",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MudancaDePasta"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/webmail/perfil": {
      "get": {
        "tags": [
          "Webmail"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PerfilRespondido"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/webmail/perfil/nome": {
      "put": {
        "tags": [
          "Webmail"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NomeDoPerfil"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NomeDoPerfil"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/webmail/foto": {
      "get": {
        "tags": [
          "Webmail"
        ],
        "parameters": [
          {
            "name": "de",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "head": {
        "tags": [
          "Webmail"
        ],
        "parameters": [
          {
            "name": "de",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Webmail"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NovaFoto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "Webmail"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/webmail/assinatura": {
      "get": {
        "tags": [
          "Webmail"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssinaturaDoWebmail"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Webmail"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AssinaturaDoWebmail"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssinaturaDoWebmail"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/webmail/senha": {
      "post": {
        "tags": [
          "Webmail"
        ],
        "summary": "A caixa troca a própria senha (confirmada pela atual).",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TrocaDaPropriaSenha"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/webmail/etiquetas": {
      "get": {
        "tags": [
          "Webmail"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EtiquetaRespondida"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Webmail"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NovaEtiqueta"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EtiquetaRespondida"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/webmail/etiquetas/cores": {
      "get": {
        "tags": [
          "Webmail"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/webmail/etiquetas/{id}": {
      "put": {
        "tags": [
          "Webmail"
        ],
        "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/EdicaoDaEtiqueta"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EtiquetaRespondida"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Webmail"
        ],
        "summary": "Apaga a etiqueta e tira a palavra-chave das mensagens em todas as pastas.",
        "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/EtiquetaApagada"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/webmail/etiquetas/{id}/mensagens": {
      "post": {
        "tags": [
          "Webmail"
        ],
        "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/MarcacaoDeEtiqueta"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/webmail/abas": {
      "get": {
        "tags": [
          "Webmail"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AbaRespondida"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Webmail"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FormularioDaAba"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AbaRespondida"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/webmail/abas/{id}": {
      "delete": {
        "tags": [
          "Webmail"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/webmail/contatos": {
      "get": {
        "tags": [
          "Webmail"
        ],
        "parameters": [
          {
            "name": "busca",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ContatoRespondido"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Webmail"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FormularioDoContato"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContatoRespondido"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/webmail/contatos/{id}": {
      "put": {
        "tags": [
          "Webmail"
        ],
        "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/FormularioDoContato"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContatoRespondido"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Webmail"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/webmail/regras/estado": {
      "get": {
        "tags": [
          "Webmail"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EstadoDasRegras"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/webmail/regras": {
      "get": {
        "tags": [
          "Webmail"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RegraRespondida"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Webmail"
        ],
        "summary": "Cria a regra e publica o script no servidor (recusado lá, nada é gravado).",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FormularioDaRegra"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegraRespondida"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/webmail/regras/{id}": {
      "put": {
        "tags": [
          "Webmail"
        ],
        "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/FormularioDaRegra"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegraRespondida"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Webmail"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/webmail/regras/publicar": {
      "post": {
        "tags": [
          "Webmail"
        ],
        "summary": "Publica de novo as regras gravadas.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegrasPublicadas"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/webmail/resposta-automatica": {
      "get": {
        "tags": [
          "Webmail"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RespostaAutomaticaRespondida"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Webmail"
        ],
        "summary": "Liga, desliga ou muda a resposta automática (férias): o servidor responde uma vez por remetente a cada N dias.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FormularioDaRespostaAutomatica"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RespostaAutomaticaRespondida"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/webmail/migracao/estado": {
      "get": {
        "tags": [
          "Webmail"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnonymousTypeOfbooleanAndObject[]"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/webmail/migracao/ensaio": {
      "post": {
        "tags": [
          "Webmail"
        ],
        "summary": "Mede a caixa antiga e mostra o plano, sem copiar nada.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CorpoDaMigracao"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanoDaMigracao"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/webmail/migracao": {
      "post": {
        "tags": [
          "Webmail"
        ],
        "summary": "Começa a cópia no servidor (uma por caixa de cada vez).",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CorpoDaMigracao"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MigracaoRespondida"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "Webmail"
        ],
        "summary": "A migração mais recente desta caixa — null quando nunca houve nenhuma.",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/webmail/migracao/historico": {
      "get": {
        "tags": [
          "Webmail"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MigracaoRespondida"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/webmail/migracao/{id}": {
      "delete": {
        "tags": [
          "Webmail"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/webmail/agenda": {
      "get": {
        "tags": [
          "Webmail"
        ],
        "parameters": [
          {
            "name": "de",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "ate",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CompromissoRespondido"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Webmail"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FormularioDoCompromisso"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompromissoRespondido"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/webmail/agenda/{id}": {
      "put": {
        "tags": [
          "Webmail"
        ],
        "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/FormularioDoCompromisso"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompromissoRespondido"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Webmail"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/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/emendas/carteira.xlsx": {
      "get": {
        "tags": [
          "Emendas parlamentares — carteira"
        ],
        "summary": "Excel da carteira no filtro inteiro: número da emenda como texto, destino (fundo ou entidade), SUBTOTAL, filtro e cabeçalho congelado.",
        "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/emendas/prometidas": {
      "get": {
        "tags": [
          "Emendas parlamentares — carteira"
        ],
        "summary": "As emendas prometidas que a gestão anotou, com as emendas da carteira que parecem ser elas (mesma esfera e parlamentar, valor a até 10%).",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EmendaPrometidaDaCarteira"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Emendas parlamentares — carteira"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EmendaPrometidaEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/emendas/prometidas/{id}": {
      "put": {
        "tags": [
          "Emendas parlamentares — carteira"
        ],
        "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/EmendaPrometidaEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmendaPrometidaDaCarteira"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Emendas parlamentares — carteira"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/emendas/prometidas/{id}/vinculo": {
      "put": {
        "tags": [
          "Emendas parlamentares — carteira"
        ],
        "summary": "Confirma que a promessa virou a emenda da carteira (chave); chave nula desfaz.",
        "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/VinculoDaPrometida"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmendaPrometidaDaCarteira"
                }
              }
            }
          }
        }
      }
    },
    "/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/resolucoes.xlsx": {
      "get": {
        "tags": [
          "Resoluções da SES"
        ],
        "summary": "Excel das resoluções no filtro inteiro, com SUBTOTAL, filtro e cabeçalho congelado.",
        "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/planejamento": {
      "get": {
        "tags": [
          "Financeiro · Planejamento do SUS"
        ],
        "summary": "Plano, PAS, RDQA e RAG do município no DigiSUS, com de quem é a vez e o prazo legal (LC 141/2012, art. 36). Sem gestão: a mais recente.",
        "parameters": [
          {
            "name": "gestao",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanejamentoDoMunicipio"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/planejamento/coletas": {
      "post": {
        "tags": [
          "Financeiro · Planejamento do SUS"
        ],
        "summary": "Busca agora no DigiSUS (o coletor executa).",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ColetaDoModulo"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/planejamento/coletas/{id}": {
      "get": {
        "tags": [
          "Financeiro · Planejamento do SUS"
        ],
        "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/financeiro/agenda-do-gestor": {
      "get": {
        "tags": [
          "Financeiro · Agenda do Gestor"
        ],
        "summary": "As datas da saúde (prazos, campanhas, mobilizações, datas comemorativas, feriados) que cruzam a janela — as mesmas para todos os órgãos.",
        "parameters": [
          {
            "name": "de",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "ate",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JanelaDaAgenda"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/financeiro/agenda-do-gestor/proximas": {
      "get": {
        "tags": [
          "Financeiro · Agenda do Gestor"
        ],
        "summary": "O que vence (ou está correndo) de hoje até daqui a N dias (padrão 30, até 365).",
        "parameters": [
          {
            "name": "dias",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "categoria",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OcorrenciaDaAgenda"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/financeiro/agenda-do-gestor/categorias": {
      "get": {
        "tags": [
          "Financeiro · Agenda do Gestor"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CategoriaDaAgenda"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/financeiro/agenda-do-gestor/datas": {
      "get": {
        "tags": [
          "Financeiro · Agenda do Gestor"
        ],
        "summary": "Todas as regras, inclusive as desligadas (só o administrador global).",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DataDaAgenda"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Financeiro · Agenda do Gestor"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FormularioDeDataDaAgenda"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/financeiro/agenda-do-gestor/datas/{id}": {
      "put": {
        "tags": [
          "Financeiro · Agenda do Gestor"
        ],
        "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/FormularioDeDataDaAgenda"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataDaAgenda"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Financeiro · Agenda do Gestor"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/financeiro/o-que-fazer": {
      "get": {
        "tags": [
          "Financeiro · O que fazer"
        ],
        "summary": "As ações do dia no Financeiro — prazos do planejamento, piso da saúde, emendas, contas, resoluções, FNS — cada uma com a prova.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanoDoFinanceiro"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/financeiro/o-que-fazer/tratadas": {
      "post": {
        "tags": [
          "Financeiro · O que fazer"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeAcaoTratada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AcaoRecomendada"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/financeiro/o-que-fazer/tratadas/{chave}": {
      "delete": {
        "tags": [
          "Financeiro · O que fazer"
        ],
        "parameters": [
          {
            "name": "chave",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/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}/avisos": {
      "get": {
        "tags": [
          "Transporte · Viagens"
        ],
        "summary": "A janela de avisos: quem está na viagem, o telefone, o que já recebeu e a mensagem que vai receber. Nada sai daqui.",
        "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/JanelaDeAvisos"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Transporte · Viagens"
        ],
        "summary": "Avisa pelo WhatsApp as pessoas marcadas (chaves da janela). Com saida, acerta antes a hora de saída da viagem. Exige o módulo Comunicaçã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/AvisosPedidos"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResultadoDosAvisos"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/transporte/viagens/{id}/saida-avisada": {
      "post": {
        "tags": [
          "Transporte · Viagens"
        ],
        "summary": "No dia da viagem: avisa os pacientes que o carro está saindo — pelo app quem o usa, pelo WhatsApp quem não. Quem já recebeu não recebe de novo. Exige o módulo Comunicaçã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/ResultadoDosAvisos"
                }
              }
            }
          }
        }
      }
    },
    "/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"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/comunicacao/mensagens": {
      "get": {
        "tags": [
          "Comunicação"
        ],
        "summary": "As mensagens do órgão, das mais novas. situacao: NaFila, Enviada, Entregue, Lida ou Falhou. O profissional da saúde: só as dos pacientes da agenda dele.",
        "parameters": [
          {
            "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/PaginaOfMensagemDaCaixa"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Comunicação"
        ],
        "summary": "Pede uma mensagem de WhatsApp. Ela entra na fila e sai em instantes; a situação diz se foi entregue e lida.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NovaMensagem"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/comunicacao/mensagens/{id}/reenvio": {
      "post": {
        "tags": [
          "Comunicação"
        ],
        "summary": "Tenta de novo a mensagem que falhou.",
        "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/MensagemDaCaixa"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/educacao/plano": {
      "get": {
        "tags": [
          "Financeiro Educação"
        ],
        "summary": "O que fazer: as ações recomendadas (o que, até quando, quanto vale, por quê, como), da mais urgente, e a agenda dos próximos 12 meses.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanoDaEducacao"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/educacao/censo": {
      "get": {
        "tags": [
          "Financeiro Educação"
        ],
        "summary": "O Censo Escolar do município: a rede municipal ano a ano, as escolas do ano (municipais primeiro) e o FUNDEB por aluno estimado, com a conta.",
        "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/PainelCenso"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/educacao/plano/tratadas": {
      "post": {
        "tags": [
          "Financeiro Educação"
        ],
        "summary": "Marca uma recomendação do plano como tratada (com a anotação do que foi feito). Se a situação mudar, a recomendação volta.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeAcaoTratada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AcaoRecomendada"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/educacao/plano/tratadas/{chave}": {
      "delete": {
        "tags": [
          "Financeiro Educação"
        ],
        "summary": "Volta a recomendação para as pendentes.",
        "parameters": [
          {
            "name": "chave",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/educacao/transporte-escolar": {
      "get": {
        "tags": [
          "Financeiro Educação"
        ],
        "summary": "O transporte escolar do Estado (PTE/MG) na conta da Prefeitura — empenhado, pago e cada pagamento — e os outros repasses da SEE.",
        "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/PainelTransporteEscolar"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/educacao/fnde": {
      "get": {
        "tags": [
          "Financeiro Educação"
        ],
        "summary": "O que o FNDE creditou nos CNPJs do município, mês a mês (Portal da Transparência/CGU) — sem separação por programa, que a fonte não publica.",
        "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/PainelFnde"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/educacao/fundeb-mensal": {
      "get": {
        "tags": [
          "Financeiro Educação"
        ],
        "summary": "O FUNDEB que caiu na conta mês a mês (Tesouro): por origem, a complementação da União (VAAF, VAAT, VAAR), a retenção dos 20% e o mesmo mês do ano anterior.",
        "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/PainelFundebMensal"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/educacao/ideb": {
      "get": {
        "tags": [
          "Financeiro Educação"
        ],
        "summary": "O IDEB do município: cada rede e cada escola, por etapa, com a série desde 2005 (nota do SAEB × aprovação).",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PainelIdeb"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/educacao/indicadores": {
      "get": {
        "tags": [
          "Financeiro Educação"
        ],
        "summary": "Os 25% em MDE, os 70% e os 10% do FUNDEB (SIOPE) no último bimestre declarado, os demais indicadores, a série do ano e o histórico.",
        "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/PainelEducacao"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/educacao/coletas": {
      "post": {
        "tags": [
          "Financeiro Educação"
        ],
        "summary": "Busca o SIOPE do município agora (a coleta periódica já roda sozinha).",
        "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/educacao/coletas/{id}": {
      "get": {
        "tags": [
          "Financeiro Educaçã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/ColetaDoModulo"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aps/parcelas": {
      "get": {
        "tags": [
          "APS — Atenção Primária"
        ],
        "summary": "Os meses já pagos (o seletor de competência): recebido, perdido e a competência CNES usada. ?ano=AAAA filtra.",
        "parameters": [
          {
            "name": "ano",
            "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/ParcelaAps"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aps/competencia/{mes}": {
      "get": {
        "tags": [
          "APS — Atenção Primária"
        ],
        "summary": "A tela da competência (AAAA-MM): quanto recebe, um valor por plano orçamentário, cada equipe e cada ACS com a situação, e os tetos.",
        "parameters": [
          {
            "name": "mes",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompetenciaAps"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aps/valores": {
      "get": {
        "tags": [
          "APS — Atenção Primária"
        ],
        "summary": "Os valores de referência (portaria) que o detalhamento do Ministério publica, da parcela mais recente — e o que a fonte não publica.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValoresAps"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aps/pagamento": {
      "get": {
        "tags": [
          "APS — Atenção Primária"
        ],
        "summary": "O pagamento de uma parcela (padrão: a mais recente): recebido, por plano, comparação com a anterior, descontos e ajustes, e os componentes.",
        "parameters": [
          {
            "name": "parcela",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagamentoAps"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aps/pagamento/evolucao": {
      "get": {
        "tags": [
          "APS — Atenção Primária"
        ],
        "summary": "A série por parcela: recebido, custeio, implantação, descontos, ajustes e quantos não foram pagos (equipes e ACS).",
        "parameters": [
          {
            "name": "de",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ate",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PontoDaEvolucaoAps"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aps/pagamento/equipes": {
      "get": {
        "tags": [
          "APS — Atenção Primária"
        ],
        "summary": "Cada equipe (INE) da parcela: paga, glosada (com o motivo do Ministério) ou só no CNES.",
        "parameters": [
          {
            "name": "parcela",
            "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/EquipesDoPagamentoAps"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aps/pagamento/acs": {
      "get": {
        "tags": [
          "APS — Atenção Primária"
        ],
        "summary": "Os ACS da parcela: pagos e glosados (com o motivo), vínculo direto/indireto e a comparação por equipe com o CNES.",
        "parameters": [
          {
            "name": "parcela",
            "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/AcsDoPagamentoResumoAps"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aps/cenarios": {
      "get": {
        "tags": [
          "APS — Atenção Primária"
        ],
        "summary": "Cenários do fixo + qualidade: hoje (transição, todas \"Bom\"), pós-transição (o que o Ministério pagou) e todas \"Ótimo\"; por modalidade e as margens de qualidade e vínculo.",
        "parameters": [
          {
            "name": "parcela",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CenariosAps"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aps/teto": {
      "get": {
        "tags": [
          "APS — Atenção Primária"
        ],
        "summary": "O teto por modalidade (eSF, eAP, eSB 40h e carga diferenciada, eMulti, Consultório na Rua, ACS): credenciadas, teto, saldo com as cotas alternativas, sem custeio, no CNES.",
        "parameters": [
          {
            "name": "parcela",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TetosAps"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aps/visao-geral": {
      "get": {
        "tags": [
          "APS — Atenção Primária"
        ],
        "summary": "A visão geral: score (regra aberta), ocorrências (perda, risco, margem) com como resolver, composição da perda, cadastro, evolução do CNES e perda exata × estimada por parcela.",
        "parameters": [
          {
            "name": "parcela",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VisaoGeralAps"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aps/o-que-fazer": {
      "get": {
        "tags": [
          "APS — Atenção Primária"
        ],
        "summary": "As ações da APS no mesmo formato do /financeiro/o-que-fazer, com o campo modulo = AtencaoPrimaria.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlanoDaAps"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aps/o-que-fazer/tratadas": {
      "post": {
        "tags": [
          "APS — Atenção Primária"
        ],
        "summary": "Marca uma ação da APS como tratada (com a anotação do que foi feito).",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeAcaoTratada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AcaoRecomendada"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aps/o-que-fazer/tratadas/{chave}": {
      "delete": {
        "tags": [
          "APS — Atenção Primária"
        ],
        "summary": "Desfaz a marcação de tratada.",
        "parameters": [
          {
            "name": "chave",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/aps/cadastro": {
      "get": {
        "tags": [
          "APS — Atenção Primária"
        ],
        "summary": "O cadastro CNES de uma competência (padrão: a mais recente): composição mínima por equipe, vínculo múltiplo/cruzado provável (por nome), desligamentos, glosa, homologação e o custeio em risco.",
        "parameters": [
          {
            "name": "competencia",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CadastroCnesAps"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aps/cadastro/equipes/{ine}": {
      "get": {
        "tags": [
          "APS — Atenção Primária"
        ],
        "summary": "O detalhe de uma equipe: quem preenche cada papel da composição (com os outros vínculos, provável por nome), sobras, parcelas e as ações concretas (legítimas \"ok\" e as que violam), com a chave do /o-que-fazer.",
        "parameters": [
          {
            "name": "ine",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "competencia",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DetalheDaEquipeAps"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aps/cadastro/remanejamento": {
      "get": {
        "tags": [
          "APS — Atenção Primária"
        ],
        "summary": "Para cada equipe incompleta: ajustar a carga horária, remanejar de outra equipe com sobra (mesma categoria) ou contratar.",
        "parameters": [
          {
            "name": "competencia",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RemanejamentoAps"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aps/credenciamento": {
      "get": {
        "tags": [
          "APS — Atenção Primária"
        ],
        "summary": "Os pedidos de adesão e credenciamento (funil, dias na situação, mudanças vistas) e a homologação atual das equipes.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CredenciamentoDaAps"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aps/producao": {
      "get": {
        "tags": [
          "APS — Atenção Primária"
        ],
        "summary": "A produção do SISAB por tipo de equipe na competência (padrão: a mais recente) contra os pares (mesma UF e porte): por equipe ou por mil habitantes, mediana e faixa p25–p75.",
        "parameters": [
          {
            "name": "competencia",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "modelo",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "metrica",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProducaoApsResposta"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aps/producao/serie": {
      "get": {
        "tags": [
          "APS — Atenção Primária"
        ],
        "summary": "A série mês a mês de um tipo de equipe (padrão eSF): o município, a mediana e a faixa dos pares.",
        "parameters": [
          {
            "name": "tipo",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "modelo",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "metrica",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PontoDaProducaoAps"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aps/classificacao": {
      "get": {
        "tags": [
          "APS — Atenção Primária"
        ],
        "summary": "A classificação de qualidade por modalidade no quadrimestre (AAAAQn; inferida do valor pago), a trajetória, os indicadores (por equipe só no SIAPS autenticado) e o vínculo.",
        "parameters": [
          {
            "name": "quadrimestre",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClassificacaoApsResposta"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aps/equipes-em-atencao": {
      "get": {
        "tags": [
          "APS — Atenção Primária"
        ],
        "summary": "As equipes sem envio de produção na competência CNES (padrão: a mais recente lida), com os meses seguidos, o risco e o custeio em risco.",
        "parameters": [
          {
            "name": "competencia",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EquipesEmAtencaoAps"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aps/profissionais-em-atencao": {
      "get": {
        "tags": [
          "APS — Atenção Primária"
        ],
        "summary": "Os profissionais sem produção na competência CNES (CNS, CBO, equipe), com os meses seguidos e o risco.",
        "parameters": [
          {
            "name": "competencia",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfissionaisEmAtencaoAps"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aps/cnes/estabelecimentos": {
      "get": {
        "tags": [
          "APS — Atenção Primária"
        ],
        "summary": "Os estabelecimentos do CNES do município (cadastro atual). Filtros: busca (nome ou CNES), tipo (código do tipo de unidade).",
        "parameters": [
          {
            "name": "busca",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tipo",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "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/PaginaOfEstabelecimentoCnesResposta"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aps/cnes/equipes": {
      "get": {
        "tags": [
          "APS — Atenção Primária"
        ],
        "summary": "As equipes do CNES numa competência (padrão: a mais recente coletada). Filtro tipo: eSF, eAP, eSB, eMulti ou o código (70…).",
        "parameters": [
          {
            "name": "competencia",
            "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/PaginaOfEquipeCnesResposta"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/aps/cnes/profissionais": {
      "get": {
        "tags": [
          "APS — Atenção Primária"
        ],
        "summary": "Os profissionais do CNES numa competência. Filtros: ine, cnes, cbo, busca (nome ou ocupação).",
        "parameters": [
          {
            "name": "competencia",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ine",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cnes",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cbo",
            "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/PaginaOfProfissionalCnesResposta"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/vigilancia/arboviroses": {
      "get": {
        "tags": [
          "Vigilância em saúde"
        ],
        "summary": "Dengue, chikungunya e zika do município no ano (padrão: o mais recente lido): nível de alerta, casos, casos estimados, Rt e incidência da última semana e a curva semanal (InfoDengue).",
        "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/ArbovirosesResposta"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/vigilancia/estatisticas-vitais": {
      "get": {
        "tags": [
          "Vigilância em saúde"
        ],
        "summary": "Nascimentos e óbitos por ano (SINASC/SIM, residência): nascidos vivos, % baixo peso, prematuros, cesáreas, pré-natal 7+, mães adolescentes; óbitos infantis, maternos, fetais e as taxas.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EstatisticasVitaisResposta"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/vigilancia/estatisticas-vitais/{ano}": {
      "get": {
        "tags": [
          "Vigilância em saúde"
        ],
        "summary": "Um ano em detalhe: os indicadores e cada recorte (peso, gestação, parto, pré-natal, idade da mãe, óbitos por capítulo da CID-10, infantis por idade, maternos e fetais).",
        "parameters": [
          {
            "name": "ano",
            "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/EstatisticasVitaisDoAno"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/recepcao/dia": {
      "get": {
        "tags": [
          "Recepção"
        ],
        "summary": "As consultas do dia (amanhã, se não disser) com a mensagem pronta, a situação do WhatsApp e a resposta do paciente.",
        "parameters": [
          {
            "name": "dia",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "unidade",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DiaDaRecepcao"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/recepcao/consultas": {
      "post": {
        "tags": [
          "Recepção"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/recepcao/consultas/{id}": {
      "put": {
        "tags": [
          "Recepçã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/ConsultaEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsultaDaRecepcao"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Recepção"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/recepcao/consultas/{id}/telefone": {
      "put": {
        "tags": [
          "Recepçã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/TelefoneEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsultaDaRecepcao"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/recepcao/consultas/{id}/situacao": {
      "put": {
        "tags": [
          "Recepção"
        ],
        "summary": "A recepção registra o que o paciente disse por telefone ou no balcã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/SituacaoRegistrada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsultaDaRecepcao"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/recepcao/avisos-de-consulta": {
      "post": {
        "tags": [
          "Recepção"
        ],
        "summary": "Envia pelo WhatsApp a confirmação das consultas escolhidas (a recepção conferiu antes).",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeAviso"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResultadoDoAviso"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/recepcao/importacoes": {
      "post": {
        "tags": [
          "Recepção"
        ],
        "summary": "Importa a agenda (e-SUS PEC ou outra planilha), pelas colunas de nome, data, hora, telefone, profissional e unidade.",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "allOf": [
                  {
                    "type": "object",
                    "properties": {
                      "arquivo": {
                        "$ref": "#/components/schemas/IFormFile"
                      }
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "unidade": {
                        "type": "string"
                      }
                    }
                  }
                ]
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImportacaoDaAgenda"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/recepcao/modelos": {
      "get": {
        "tags": [
          "Recepção"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ModeloDeAviso"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Recepção"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ModeloEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/recepcao/modelos/{id}": {
      "delete": {
        "tags": [
          "Recepção"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/recepcao/avisos": {
      "post": {
        "tags": [
          "Recepção"
        ],
        "summary": "Aviso avulso pelo WhatsApp (\"o resultado do seu exame chegou\"). O profissional da saúde: só aos pacientes da agenda dele.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AvisoAvulso"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MensagemDaCaixa"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/recepcao/pacientes": {
      "get": {
        "tags": [
          "Recepção"
        ],
        "summary": "Pacientes que já passaram pela recepção, com o telefone mais recente — para não digitar de novo.",
        "parameters": [
          {
            "name": "busca",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PacienteConhecido"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/agenda/grade": {
      "get": {
        "tags": [
          "Agenda"
        ],
        "summary": "Um dia ou uma semana (até 31 dias): quem atende, o expediente semanal, os bloqueios e os agendamentos. O profissional da saúde recebe só a dele.",
        "parameters": [
          {
            "name": "de",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "ate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "unidadeId",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          },
          {
            "name": "profissionalId",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          },
          {
            "name": "area",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GradeDaAgenda"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/agenda/horarios-livres": {
      "get": {
        "tags": [
          "Agenda"
        ],
        "summary": "Os horários que cabem inteiros no expediente, sem conflito com agendamento ou bloqueio.",
        "parameters": [
          {
            "name": "profissionalId",
            "in": "query",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          },
          {
            "name": "unidadeId",
            "in": "query",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          },
          {
            "name": "dia",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "duracaoMinutos",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "servicoId",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HorariosLivres"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/agenda/pec": {
      "get": {
        "tags": [
          "Agenda"
        ],
        "summary": "A leitura automática da agenda do e-SUS PEC: se está ligada, os horários e a última rodada (e a última que deu certo). Só o administrador global (403 so_administrador).",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgendaDoPec"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/agenda/pec/leitura": {
      "post": {
        "tags": [
          "Agenda"
        ],
        "summary": "Lê a agenda do e-SUS PEC agora, sem esperar o próximo horário. Só o administrador global (403 so_administrador); 409 pec_nao_configurado quando o órgão não tem PEC ligado.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgendaDoPec"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/agenda/importacoes": {
      "post": {
        "tags": [
          "Agenda"
        ],
        "summary": "Importa a agenda do e-SUS PEC (planilha) na grade: paciente, data, hora, telefone, profissional e unidade. Profissional e unidade precisam estar cadastrados; reimportar não duplica.",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "allOf": [
                  {
                    "type": "object",
                    "properties": {
                      "arquivo": {
                        "$ref": "#/components/schemas/IFormFile"
                      }
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "unidadeId": {
                        "pattern": "^-?(?:0|[1-9]\\d*)$",
                        "type": [
                          "integer",
                          "string"
                        ],
                        "format": "int64"
                      }
                    }
                  }
                ]
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImportacaoNaAgenda"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/agenda/confirmacoes": {
      "post": {
        "tags": [
          "Agenda"
        ],
        "summary": "Envia pelo WhatsApp o pedido de confirmação dos agendamentos escolhidos. \"1\" confirma; \"2\" cancela e libera a vaga.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeConfirmacao"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResultadoDoAviso"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/agenda/areas": {
      "get": {
        "tags": [
          "Agenda"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AreaDeAtendimento"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/agenda/minhas-unidades": {
      "get": {
        "tags": [
          "Agenda"
        ],
        "summary": "As unidades da sessão: todas = true, ou a lista a que a conta se prende (a recepção e a gestão da saúde marcadas).",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnidadesDaConta"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/agenda/contas/{codigo}/unidades": {
      "get": {
        "tags": [
          "Agenda"
        ],
        "summary": "As unidades marcadas numa conta. Só quem administra as contas.",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnidadesDaConta"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Agenda"
        ],
        "summary": "Troca as unidades da conta (recepção ou gestão da saúde); vazia = todas. Só quem administra as contas.",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeUnidadesDaConta"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnidadesDaConta"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/agenda/configuracoes/avisos": {
      "get": {
        "tags": [
          "Agenda"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConfiguracaoDosAvisosVista"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Agenda"
        ],
        "summary": "As áreas sensíveis (V0451): o aviso que vai a outra pessoa da casa não diz o profissional nem a especialidade.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfiguracaoDosAvisosEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConfiguracaoDosAvisosVista"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/agenda/agendamentos/{id}": {
      "get": {
        "tags": [
          "Agenda"
        ],
        "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/AgendamentoDaAgenda"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Agenda"
        ],
        "summary": "Edita o telefone de contato (vazio = o do paciente) e a observação, sem mexer no horário. Vai ao histórico.",
        "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/EdicaoDoAgendamento"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgendamentoDaAgenda"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/agenda/agendamentos": {
      "post": {
        "tags": [
          "Agenda"
        ],
        "summary": "Marca. Horário ocupado (outro atendimento — também o que veio do PEC — ou bloqueio do profissional) é 409; fora do expediente vira encaixe. \"telefoneContato\": outro número para este agendamento. Vai ao histórico com quem marcou.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgendamentoEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/agenda/agendamentos/{id}/historico": {
      "get": {
        "tags": [
          "Agenda"
        ],
        "summary": "Quem marcou, remarcou, editou, confirmou, cancelou — e o que veio da leitura do PEC, da planilha e do WhatsApp.",
        "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/ItemDoHistoricoDaAgenda"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/agenda/agendamentos/{id}/horario": {
      "put": {
        "tags": [
          "Agenda"
        ],
        "summary": "Remarca (outro horário, profissional ou unidade). A confirmação anterior deixa de valer.",
        "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/RemarcacaoEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgendamentoDaAgenda"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/agenda/agendamentos/{id}/cancelamento": {
      "put": {
        "tags": [
          "Agenda"
        ],
        "summary": "Cancela, sempre com o motivo. O horário 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/AgendamentoDaAgenda"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/agenda/agendamentos/{id}/contato-resolvido": {
      "put": {
        "tags": [
          "Agenda"
        ],
        "summary": "Dá por resolvido o \"pediu contato\" (a resposta ao WhatsApp que não foi sim nem não). Vai ao histórico.",
        "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/AgendamentoDaAgenda"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/agenda/agendamentos/{id}/avisos": {
      "get": {
        "tags": [
          "Agenda"
        ],
        "summary": "Os avisos do atendimento (V0451): a quem foi, por qual canal, o estado e o SMS de reserva.",
        "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/AvisoDaEscadaVisto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/agenda/agendamentos/{id}/situacao": {
      "put": {
        "tags": [
          "Agenda"
        ],
        "summary": "Confirmado, Chegou, EmAtendimento, Realizado ou Faltou.",
        "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/PassagemEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgendamentoDaAgenda"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/agenda/profissionais": {
      "get": {
        "tags": [
          "Agenda"
        ],
        "summary": "Quem atende (toda área menos Transporte). situacao: ativos (padrão), inativos ou todos.",
        "parameters": [
          {
            "name": "busca",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "area",
            "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/PaginaOfProfissionalDaAgenda"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Agenda"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProfissionalEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/agenda/profissionais/{id}": {
      "put": {
        "tags": [
          "Agenda"
        ],
        "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/ProfissionalEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfissionalDaAgenda"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/agenda/profissionais/{id}/situacao": {
      "put": {
        "tags": [
          "Agenda"
        ],
        "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/ProfissionalDaAgenda"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/agenda/profissionais/{id}/conta": {
      "put": {
        "tags": [
          "Agenda"
        ],
        "summary": "Liga a conta (papel Profissional da saúde, do mesmo órgão) a este profissional: a pessoa passa a ver a própria agenda. Com {celular}: liga a conta de profissional com este celular ou CRIA uma (sem senha; a pessoa entra pelo código do WhatsApp).",
        "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/PedidoDeContaDoProfissional"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfissionalDaAgenda"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Agenda"
        ],
        "summary": "Desliga a conta deste profissional.",
        "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/ProfissionalDaAgenda"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/agenda/profissionais/{id}/foto": {
      "get": {
        "tags": [
          "Agenda"
        ],
        "summary": "A foto do profissional (PNG, JPEG ou WebP). 404 quando não há.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Agenda"
        ],
        "summary": "Envia (ou troca) a foto: multipart, campo \"arquivo\". PNG, JPEG ou WebP, até 2 MB. O formato sai dos bytes; SVG é recusado.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "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/ProfissionalDaAgenda"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Agenda"
        ],
        "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/ProfissionalDaAgenda"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/agenda/profissionais/{id}/app": {
      "put": {
        "tags": [
          "Agenda"
        ],
        "summary": "Liga (ou desliga) a marcação pelo app da população e as vagas do app por turno.",
        "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/MarcacaoPeloAppEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfissionalDaAgenda"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/agenda/profissionais/{id}/expediente": {
      "get": {
        "tags": [
          "Agenda"
        ],
        "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/FaixaDeExpediente"
                  }
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Agenda"
        ],
        "summary": "Grava o expediente semanal inteiro: as faixas enviadas substituem as de antes.",
        "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/ExpedienteEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FaixaDeExpediente"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/agenda/unidades": {
      "get": {
        "tags": [
          "Agenda"
        ],
        "parameters": [
          {
            "name": "todas",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UnidadeDaAgenda"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Agenda"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UnidadeEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/agenda/unidades/{id}": {
      "put": {
        "tags": [
          "Agenda"
        ],
        "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/UnidadeEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnidadeDaAgenda"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/agenda/unidades/{id}/situacao": {
      "put": {
        "tags": [
          "Agenda"
        ],
        "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/UnidadeDaAgenda"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/agenda/servicos": {
      "get": {
        "tags": [
          "Agenda"
        ],
        "parameters": [
          {
            "name": "todos",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ServicoDaAgenda"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Agenda"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ServicoEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/agenda/servicos/{id}": {
      "put": {
        "tags": [
          "Agenda"
        ],
        "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/ServicoEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServicoDaAgenda"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/agenda/servicos/{id}/situacao": {
      "put": {
        "tags": [
          "Agenda"
        ],
        "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/ServicoDaAgenda"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/agenda/bloqueios": {
      "get": {
        "tags": [
          "Agenda"
        ],
        "parameters": [
          {
            "name": "profissionalId",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BloqueioDaAgenda"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Agenda"
        ],
        "summary": "Folga, férias, reunião. Período com atendimento marcado é 409.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BloqueioEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/agenda/bloqueios/{id}": {
      "delete": {
        "tags": [
          "Agenda"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/agenda/pacientes": {
      "get": {
        "tags": [
          "Agenda"
        ],
        "summary": "O cadastro único de pacientes (o mesmo da Marcação do Transporte). 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": [
          "Agenda"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PacienteEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/agenda/pacientes/contagem": {
      "get": {
        "tags": [
          "Agenda"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContagemDoCadastro"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/agenda/pacientes/importacao": {
      "post": {
        "tags": [
          "Agenda"
        ],
        "summary": "A base de pessoas do município, em lotes (até 1000). Reimportar não duplica.",
        "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/agenda/pacientes/{id}": {
      "put": {
        "tags": [
          "Agenda"
        ],
        "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"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "Agenda"
        ],
        "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"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/agenda/pacientes/{id}/situacao": {
      "put": {
        "tags": [
          "Agenda"
        ],
        "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/agenda/pacientes/{id}/avisos": {
      "get": {
        "tags": [
          "Agenda"
        ],
        "summary": "O histórico de avisos do paciente (V0451).",
        "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/AvisoDaEscadaVisto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/agenda/pacientes/{id}/telefones": {
      "put": {
        "tags": [
          "Agenda"
        ],
        "summary": "Grava os TRÊS campos (telefone, contato e nome do contato): quem só troca o telefone reenvia os outros dois como estã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/telefones/painel": {
      "get": {
        "tags": [
          "Campanha do telefone"
        ],
        "summary": "Casas com telefone válido (a meta mínima) e pacientes com celular próprio, por equipe e microárea, e a evolução por dia.",
        "parameters": [
          {
            "name": "equipe",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "microarea",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PainelDosTelefones"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/telefones/casas-sem-telefone": {
      "get": {
        "tags": [
          "Campanha do telefone"
        ],
        "summary": "As casas sem nenhum telefone válido, para o mutirão. A gestão vê todas; a ACS, só as da microárea dela (as outras: 403).",
        "parameters": [
          {
            "name": "equipe",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "microarea",
            "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/PaginaOfCasaSemTelefone"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/telefones/casa": {
      "put": {
        "tags": [
          "Campanha do telefone"
        ],
        "summary": "O telefone da casa (e um segundo, opcional). Prevalece sobre o do PEC. A ACS só nas casas da microárea dela.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TelefoneDaCasaEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CasaDoPaciente"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/telefones/genericos": {
      "get": {
        "tags": [
          "Campanha do telefone"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TelefoneGenericoDaLista"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Campanha do telefone"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TelefoneGenericoEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/telefones/fichas": {
      "get": {
        "tags": [
          "Campanha do telefone"
        ],
        "summary": "As fichas de campo de uma microárea: uma por casa, com o código da casa e de cada morador. todas=false: só as casas com pendência.",
        "parameters": [
          {
            "name": "microarea",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "todas",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FichaDaCasa"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/telefones/fichas/modelo.csv": {
      "get": {
        "tags": [
          "Campanha do telefone"
        ],
        "summary": "O modelo da planilha da volta das fichas (código, telefone, de quem, parentesco, segundo, não tem, contato).",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/telefones/fichas/importacao": {
      "post": {
        "tags": [
          "Campanha do telefone"
        ],
        "summary": "A volta das fichas: casa SÓ pelo código impresso (da casa ou da pessoa). confirmar=false é a prévia (nada se grava); true grava as válidas.",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "allOf": [
                  {
                    "type": "object",
                    "properties": {
                      "arquivo": {
                        "$ref": "#/components/schemas/IFormFile"
                      }
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "coletadoPor": {
                        "type": "string"
                      }
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "coletadoEm": {
                        "type": "string",
                        "format": "date"
                      }
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "confirmar": {
                        "type": "boolean"
                      }
                    }
                  }
                ]
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImportacaoDasFichas"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/telefones/genericos/sugestoes": {
      "get": {
        "tags": [
          "Campanha do telefone"
        ],
        "summary": "Números repetidos em mais de 5 pacientes de casas diferentes: talvez sejam do posto.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SugestaoDeGenerico"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/telefones/genericos/{id}": {
      "delete": {
        "tags": [
          "Campanha do telefone"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/auriculoterapia/acesso": {
      "get": {
        "tags": [
          "Auriculoterapia"
        ],
        "summary": "Se a auriculoterapia aparece no menu: a gestão, ou o profissional da área \"Práticas integrativas\".",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnonymousTypeOfboolean"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auriculoterapia/catalogo": {
      "get": {
        "tags": [
          "Auriculoterapia"
        ],
        "summary": "Os pontos do mapa, os materiais, as contraindicações, as reações, os motivos de alta e os protocolos-modelo.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CatalogoDeAuriculo"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auriculoterapia/tratamentos": {
      "get": {
        "tags": [
          "Auriculoterapia"
        ],
        "summary": "Os pacientes em tratamento: os do profissional; a gestão vê de todos.",
        "parameters": [
          {
            "name": "comAlta",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TratamentoDeAuriculoDaLista"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Auriculoterapia"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TratamentoDeAuriculoEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FichaDeAuriculo"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auriculoterapia/pacientes/{id}": {
      "get": {
        "tags": [
          "Auriculoterapia"
        ],
        "summary": "A ficha do paciente: o tratamento aberto (com as sessões e o mapa), os anteriores e a sessão que vem (n de N, a orelha, o atendimento de hoje).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "agendamentoId",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FichaDeAuriculo"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auriculoterapia/tratamentos/{id}": {
      "put": {
        "tags": [
          "Auriculoterapia"
        ],
        "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/TratamentoDeAuriculoEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FichaDeAuriculo"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auriculoterapia/tratamentos/{id}/sessoes": {
      "post": {
        "tags": [
          "Auriculoterapia"
        ],
        "summary": "Registra a sessão (o número sai sozinho). Com agendamentoId, nasce do atendimento da Agenda.",
        "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/SessaoDeAuriculoEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FichaDeAuriculo"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auriculoterapia/sessoes/{id}": {
      "put": {
        "tags": [
          "Auriculoterapia"
        ],
        "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/SessaoDeAuriculoEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FichaDeAuriculo"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Auriculoterapia"
        ],
        "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/FichaDeAuriculo"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auriculoterapia/tratamentos/{id}/alta": {
      "put": {
        "tags": [
          "Auriculoterapia"
        ],
        "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/AltaDeAuriculoEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FichaDeAuriculo"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auriculoterapia/tratamentos/{id}/orientacao": {
      "get": {
        "tags": [
          "Auriculoterapia"
        ],
        "summary": "A orientação para casa, para imprimir.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "post": {
        "tags": [
          "Auriculoterapia"
        ],
        "summary": "Manda a orientação para casa ao app da população (409 sem_app: o paciente não usa o app).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/auriculoterapia/protocolos": {
      "post": {
        "tags": [
          "Auriculoterapia"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProtocoloDeAuriculoEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProtocoloDeAuriculoDaLista"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auriculoterapia/protocolos/{id}": {
      "put": {
        "tags": [
          "Auriculoterapia"
        ],
        "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/ProtocoloDeAuriculoEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProtocoloDeAuriculoDaLista"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Auriculoterapia"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/pacientes/{id}/telefone-da-vez": {
      "get": {
        "tags": [
          "Pacientes"
        ],
        "summary": "O que a janela \"Atualize o telefone\" precisa: se o celular falta e por quê, a casa e os telefones dos moradores.",
        "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/TelefoneDaVez"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Pacientes"
        ],
        "summary": "Grava o celular (e o contato), ou \"não tem telefone\" (90 dias sem perguntar), e o telefone da casa. Vai ao histórico.",
        "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/AtualizacaoDoTelefone"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelefoneDaVez"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/pacientes": {
      "get": {
        "tags": [
          "Pacientes"
        ],
        "summary": "O cadastro único de pacientes (o mesmo da Agenda e do Transporte). Sem letra: CPF ou CNS; com letra: nome ou mãe. situacao padrão: ativos. aniversario: hoje, semana ou mes (na ordem do dia). microarea: só quem mora nela.",
        "parameters": [
          {
            "name": "busca",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "situacao",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "aniversario",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "microarea",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "app",
            "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": [
          "Pacientes"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PacienteEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/pacientes/aniversariantes": {
      "get": {
        "tags": [
          "Pacientes"
        ],
        "summary": "Quem faz aniversário (periodo: hoje, semana ou mes; padrão semana). A ACS só vê a microárea dela.",
        "parameters": [
          {
            "name": "periodo",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "microarea",
            "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"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/pacientes/aniversariantes/envios": {
      "get": {
        "tags": [
          "Pacientes"
        ],
        "summary": "O que aconteceu com o aniversário de cada um neste ano: enviado (às 9h ou por quem), ou por que não.",
        "parameters": [
          {
            "name": "ids",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EnvioDoAniversario"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/pacientes/aniversariantes/envio": {
      "get": {
        "tags": [
          "Pacientes"
        ],
        "summary": "A prévia do \"Enviar a todos\" (hoje ou ontem): quantos recebem o banner, quem fica de fora e por quê, e o modo de teste.",
        "parameters": [
          {
            "name": "periodo",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PreviaDosParabens"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Pacientes"
        ],
        "summary": "Manda o banner aos aniversariantes do dia que ficaram de fora (um envio só por pessoa e aniversário; o profissional, só os dele).",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EnvioDosParabens"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResultadoDoAviso"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/pacientes/aniversariantes/parabens": {
      "post": {
        "tags": [
          "Pacientes"
        ],
        "summary": "Os parabéns pelo WhatsApp (até 100 por vez; {nome} vira o primeiro nome). Uma vez por ano por pessoa; respeita o modo de teste. Precisa da Comunicação.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeParabens"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResultadoDoAviso"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/pacientes/contagem": {
      "get": {
        "tags": [
          "Pacientes"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContagemDoCadastro"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/pacientes/{id}": {
      "get": {
        "tags": [
          "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": [
          "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/pacientes/{id}/telefones": {
      "put": {
        "tags": [
          "Pacientes"
        ],
        "summary": "Os TRÊS campos (telefone, contato e nome do contato). De qualquer tela, também da farmácia.",
        "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/pacientes/{id}/situacao": {
      "put": {
        "tags": [
          "Pacientes"
        ],
        "summary": "Desativado sai da busca das marcações; o cadastro fica guardado. Só a gestã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/PedidoDeSituacao"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PacienteDoCadastro"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/pacientes/importacao": {
      "post": {
        "tags": [
          "Pacientes"
        ],
        "summary": "A base de pessoas do município, em lotes (até 1000). Reimportar não duplica. Só a gestão.",
        "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/pacientes/{id}/contatos": {
      "get": {
        "tags": [
          "Pacientes"
        ],
        "summary": "Os contatos do paciente (quem atende por ele), na ordem.",
        "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/ContatoDoPacienteDto"
                  }
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Pacientes"
        ],
        "summary": "Grava a lista INTEIRA de contatos (até 10). Com contatoPacienteId, nome e telefone vazios vêm do cadastro. O primeiro com telefone vira o telefone de contato do paciente (o que a Agenda e o Transporte usam).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ContatoEnviado"
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ContatoDoPacienteDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/pacientes/{id}/app": {
      "get": {
        "tags": [
          "Pacientes"
        ],
        "summary": "O app da população deste paciente (V0413): se usa (os aparelhos), quem ele cuida e quem cuida dele.",
        "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/AppDoPaciente"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/pacientes/{id}/dependentes": {
      "post": {
        "tags": [
          "Pacientes"
        ],
        "summary": "A equipe vincula um dependente a este paciente (a criança, o idoso que ele cuida).",
        "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/VinculoEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppDoPaciente"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/pacientes/{id}/dependentes/{dependente}": {
      "delete": {
        "tags": [
          "Pacientes"
        ],
        "summary": "Desfaz o vínculo.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "dependente",
            "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/AppDoPaciente"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/pacientes/{id}/app/teste": {
      "post": {
        "tags": [
          "Pacientes"
        ],
        "summary": "Manda um aviso de teste ao app do paciente (a notificação chega?).",
        "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/AppDoPaciente"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/pacientes/{id}/app/desligar": {
      "post": {
        "tags": [
          "Pacientes"
        ],
        "summary": "Desliga os aparelhos do paciente (celular perdido ou trocado).",
        "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/AppDoPaciente"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/pacientes/{id}/remedios": {
      "get": {
        "tags": [
          "Pacientes"
        ],
        "summary": "O cartão de remédios do paciente: os remédios de uso contínuo (os ativos primeiro), a última retirada, quando pode voltar e as retiradas.",
        "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/CartaoDeRemedios"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Pacientes"
        ],
        "summary": "Inclui um remédio no cartão (422 remedio_repetido quando o mesmo já está ativo). Devolve o cartã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/RemedioEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CartaoDeRemedios"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/pacientes/{id}/remedios/{remedio}": {
      "put": {
        "tags": [
          "Pacientes"
        ],
        "summary": "Altera o remédio (ativo=false suspende; fica no histórico). Devolve o cartão.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "remedio",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RemedioEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CartaoDeRemedios"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/pacientes/{id}/retiradas": {
      "post": {
        "tags": [
          "Pacientes"
        ],
        "summary": "Lança a retirada de hoje (ou da data) dos remédios marcados; o mesmo dia de novo não duplica. Devolve o cartã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/RetiradaEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CartaoDeRemedios"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/pacientes/{id}/retiradas/{retirada}": {
      "delete": {
        "tags": [
          "Pacientes"
        ],
        "summary": "Desfaz uma retirada lançada nos últimos 7 dias (409 retirada_antiga). Devolve o cartão.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "retirada",
            "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/CartaoDeRemedios"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/pacientes/{id}/domicilio": {
      "get": {
        "tags": [
          "Pacientes"
        ],
        "summary": "A casa do paciente e quem mora com ele — o telefone de alguém da casa quando o dele falta. {domicilio: null} sem casa.",
        "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/DomicilioDoPaciente"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/farmacia/renovacoes": {
      "get": {
        "tags": [
          "Pacientes"
        ],
        "summary": "A fila dos pedidos de renovação da receita: situacao abertas (padrão, as mais antigas primeiro) ou respondidas.",
        "parameters": [
          {
            "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/PaginaOfRenovacaoNaFila"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/farmacia/renovacoes/{id}": {
      "put": {
        "tags": [
          "Pacientes"
        ],
        "summary": "Responde: Renovada (com receitaAte, que vai para o cartão) ou PrecisaConsulta. A resposta chega no app.",
        "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/RespostaARenovacao"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RenovacaoNaFila"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/configuracoes/aniversario": {
      "get": {
        "tags": [
          "Pacientes · Configurações"
        ],
        "summary": "Os textos do aniversário do órgão (V0410): a mensagem do banner, os parabéns pelo WhatsApp e o modelo preferido. Nulos = os de fábrica. Todos leem; alterar é da gestão.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConfiguracoesDoAniversario"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Pacientes · Configurações"
        ],
        "summary": "Altera os textos do aniversário. Só o administrador e o gestor do órgão (403 so_gestor).",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfiguracoesDoAniversarioEnviadas"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConfiguracoesDoAniversario"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/configuracoes/app": {
      "get": {
        "tags": [
          "Pacientes · Configurações"
        ],
        "summary": "O app da população do órgão (V0411): o nome e o endereço. 204 quando ainda não foi criado.",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Pacientes · Configurações"
        ],
        "summary": "Cria ou altera o app da população (nome, endereço, ligado). Só o administrador e o gestor do órgão.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfiguracaoDoAppEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConfiguracaoDoAppDoCidadao"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/recados": {
      "get": {
        "tags": [
          "Pacientes · Recados do app"
        ],
        "summary": "Os recados enviados pelo app: para quem, quantas pessoas, quantas leram e quantas responderam.",
        "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/PaginaOfRecadoDoApp"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Pacientes · Recados do app"
        ],
        "summary": "Envia o recado (ou a campanha de vacina) pelo app a todos, a uma microárea, às gestantes ou a uma faixa de idade. Só pelo app.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecadoEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/recados/alcance": {
      "post": {
        "tags": [
          "Pacientes · Recados do app"
        ],
        "summary": "Quantas pessoas o recado alcança no app, antes de enviar. Nada sai daqui.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecadoEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AlcanceDoRecado"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gestantes": {
      "get": {
        "tags": [
          "Pacientes · Gestantes"
        ],
        "summary": "As gestantes e puérperas do acompanhamento do e-SUS PEC (V0409), com a semana de HOJE e o que falta pelas boas práticas; as urgentes primeiro. fase=gestantes|puerperas; pendencia=<código>; quem=Acs|Equipe; lembrete=pode (dá para lembrar pelo app agora)|ja_fez (respondeu \"Já fiz\" e o PEC ainda não registra).",
        "parameters": [
          {
            "name": "busca",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "microarea",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fase",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pendencia",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "quem",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lembrete",
            "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/PaginaOfGestanteDoAcompanhamento"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gestantes/{id}/lembrete": {
      "post": {
        "tags": [
          "Pacientes · Gestantes"
        ],
        "summary": "Lembra a gestante pelo app (V0417) do que o PEC não registra e ela resolve na unidade; ela responde Vou marcar ou Já fiz. 409: sem_cadastro, nada_a_lembrar, sem_app, lembrada_ha_pouco (uma vez a cada 7 dias).",
        "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/GestanteDoAcompanhamento"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gestantes/lembretes/alcance": {
      "post": {
        "tags": [
          "Pacientes · Gestantes"
        ],
        "summary": "Quantas gestantes (todas, ou de uma microárea) o lembrete alcançaria agora. Nada sai daqui.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeLembretes"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LembretesDoPreNatal"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gestantes/lembretes": {
      "post": {
        "tags": [
          "Pacientes · Gestantes"
        ],
        "summary": "Lembra pelo app todas as que podem ser lembradas agora (no app, com o que lembrar, não lembradas nos últimos 7 dias). 409 ninguem_para_lembrar.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeLembretes"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LembretesDoPreNatal"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gestantes/{id}/prontuario": {
      "get": {
        "tags": [
          "Pacientes · Gestantes"
        ],
        "summary": "O prontuário dela no e-SUS PEC (V0438), lido AO VIVO na lotação da unidade dela e guardado. Com o PEC ocupado ou fora, a última cópia (aoVivo=false, falha=o que houve). clinico=null: o PEC não deixa a conta do Sábio Saúde ler a parte clínica. Cópia de menos de 5 minutos volta sem chamar o PEC, salvo atualizar=true.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "atualizar",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProntuarioDoPec"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gestantes/resumo": {
      "get": {
        "tags": [
          "Pacientes · Gestantes"
        ],
        "summary": "Os totais, cada microárea com a ACS, as pendências mais comuns e a última leitura do PEC.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResumoDasGestantes"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/hipertensos": {
      "get": {
        "tags": [
          "Pacientes · Hipertensos e diabéticos"
        ],
        "summary": "Os hipertensos do acompanhamento do e-SUS PEC (V0418), com o que falta pelas boas práticas (consulta e pressão em 6 meses; 2 visitas da ACS, peso e altura em 12; no diabético, hemoglobina glicada e pés); as urgentes (mais de um ano sem consulta) primeiro. situacao=pendentes|em_dia|pressao_alta; pendencia=<código>; quem=Acs|Equipe.",
        "parameters": [
          {
            "name": "busca",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "microarea",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "situacao",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pendencia",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "quem",
            "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/PaginaOfCronicoDoAcompanhamento"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/hipertensos/resumo": {
      "get": {
        "tags": [
          "Pacientes · Hipertensos e diabéticos"
        ],
        "summary": "O quadro dos hipertensos: totais, em dia, cada microárea com a ACS, as pendências mais comuns e a última leitura do PEC.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResumoDosCronicos"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/diabeticos": {
      "get": {
        "tags": [
          "Pacientes · Hipertensos e diabéticos"
        ],
        "summary": "Os diabeticos do acompanhamento do e-SUS PEC (V0418), com o que falta pelas boas práticas (consulta e pressão em 6 meses; 2 visitas da ACS, peso e altura em 12; no diabético, hemoglobina glicada e pés); as urgentes (mais de um ano sem consulta) primeiro. situacao=pendentes|em_dia|pressao_alta; pendencia=<código>; quem=Acs|Equipe.",
        "parameters": [
          {
            "name": "busca",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "microarea",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "situacao",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pendencia",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "quem",
            "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/PaginaOfCronicoDoAcompanhamento"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/diabeticos/resumo": {
      "get": {
        "tags": [
          "Pacientes · Hipertensos e diabéticos"
        ],
        "summary": "O quadro dos diabeticos: totais, em dia, cada microárea com a ACS, as pendências mais comuns e a última leitura do PEC.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResumoDosCronicos"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/criancas": {
      "get": {
        "tags": [
          "Pacientes · Crianças"
        ],
        "summary": "As crianças de 0 a 4 anos do desenvolvimento infantil do e-SUS PEC (V0419), com a idade de HOJE e o que falta pelas boas práticas (1ª consulta até 30 dias, consultas e peso/altura da idade, visitas da ACS, vacinas atrasadas); as urgentes primeiro. situacao=ate_2_anos|pendentes|em_dia|vacina_atrasada|vacinas_em_dia|sem_vacina; pendencia=<código>; quem=Acs|Equipe.",
        "parameters": [
          {
            "name": "busca",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "microarea",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "situacao",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pendencia",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "quem",
            "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/PaginaOfCriancaDoAcompanhamento"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/criancas/{id}/prontuario": {
      "get": {
        "tags": [
          "Pacientes · Crianças"
        ],
        "summary": "O prontuário da criança no e-SUS PEC (V0438): o mesmo da gestante (ao vivo, com a cópia guardada quando o PEC não responde).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "atualizar",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProntuarioDoPec"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/criancas/resumo": {
      "get": {
        "tags": [
          "Pacientes · Crianças"
        ],
        "summary": "O quadro das crianças: totais, até 2 anos, em dia, com vacina atrasada, microáreas com a ACS, pendências e a leitura.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResumoDasCriancas"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/vacinas-dos-jovens": {
      "get": {
        "tags": [
          "Pacientes · Vacinas de 5 a 19 anos"
        ],
        "summary": "As crianças e adolescentes de 5 a 19 anos e as vacinas da INFÂNCIA que o e-SUS PEC registra (V0436): hepatite B, pólio, Penta/DTP e reforços, tríplice viral. HPV, meningo ACWY, febre amarela e dT o PEC não informa (nunca atrasadas). situacao=em_dia|atrasada|sem_registro|nao_sabemos; faixa=5_9|10_14|15_19; as atrasadas primeiro.",
        "parameters": [
          {
            "name": "busca",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "microarea",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "unidade",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "situacao",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "faixa",
            "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/PaginaOfJovemDasVacinas"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/vacinas-dos-jovens/resumo": {
      "get": {
        "tags": [
          "Pacientes · Vacinas de 5 a 19 anos"
        ],
        "summary": "O quadro das vacinas de 5 a 19 anos: total, em dia, atrasada, sem registro no PEC, não sabemos, microáreas e a leitura.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResumoDasVacinasDosJovens"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/idosos": {
      "get": {
        "tags": [
          "Pacientes · Pessoas idosas"
        ],
        "summary": "As pessoas idosas (60+) do acompanhamento do e-SUS PEC (V0420), com o que falta nos últimos 12 meses (consulta, 2 medidas de peso e altura, 2 visitas da ACS, vacina da gripe) e o IVCF-20. situacao=pendentes|em_dia|sem_ivcf|risco_alto; pendencia=<código>; quem=Acs|Equipe.",
        "parameters": [
          {
            "name": "busca",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "microarea",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "situacao",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pendencia",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "quem",
            "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/PaginaOfIdosoDoAcompanhamento"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/idosos/resumo": {
      "get": {
        "tags": [
          "Pacientes · Pessoas idosas"
        ],
        "summary": "O quadro das pessoas idosas: totais, em dia, sem IVCF-20, risco alto, microáreas com a ACS, pendências e a leitura.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResumoDosIdosos"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/mulheres": {
      "get": {
        "tags": [
          "Pacientes · Saúde da mulher"
        ],
        "summary": "As mulheres de 14 a 69 anos da saúde da mulher do e-SUS PEC (V0421), com o que falta pela idade (preventivo dos 25 aos 64 em 3 anos, mamografia dos 50 aos 69 em 2, vacina HPV até os 14, consulta no ano). situacao=pendentes|em_dia|preventivo|mamografia; pendencia=<código>; quem=Acs|Equipe.",
        "parameters": [
          {
            "name": "busca",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "microarea",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "situacao",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pendencia",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "quem",
            "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/PaginaOfMulherDoAcompanhamento"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/mulheres/resumo": {
      "get": {
        "tags": [
          "Pacientes · Saúde da mulher"
        ],
        "summary": "O quadro da saúde da mulher: totais, quantas na idade do preventivo e da mamografia e quantas em dia, microáreas e a leitura.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResumoDasMulheres"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/visitas-da-acs": {
      "get": {
        "tags": [
          "Pacientes · Visitas da ACS"
        ],
        "summary": "Quem a ACS precisa visitar e por quê: gestantes, puérperas, crianças, idosos, hipertensos e diabéticos juntos, uma linha por pessoa, com o endereço; entra a pendência da ACS e a urgente da equipe (a ACS leva o recado). As urgentes primeiro. lista=Gestante|Puérpera|Criança|Idoso|Hipertensão|Diabetes.",
        "parameters": [
          {
            "name": "microarea",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "busca",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lista",
            "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/PaginaOfVisitaDaAcs"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/visitas-da-acs/microareas": {
      "get": {
        "tags": [
          "Pacientes · Visitas da ACS"
        ],
        "summary": "Cada microárea com a ACS, quantas pessoas ela precisa visitar e quantas com urgência.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MicroareaDasVisitas"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/meu-roteiro": {
      "get": {
        "tags": [
          "Pacientes · O que fazer"
        ],
        "summary": "O roteiro do próximo dia de trabalho da ACS da sessão (a microárea da conta): o combinado pelo gestor, se houver; senão, a proposta de agora.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RoteiroDaAcs"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/indicadores/{codigo}": {
      "get": {
        "tags": [
          "Pacientes · O que fazer"
        ],
        "summary": "A lista nominal de um indicador da qualidade (C2–C7): a nota (da unidade ou do município), cada prática com quantas pessoas cumprem, faltam, estão no prazo ou não sabemos, e as pessoas com um critério por prática (o porquê, quem resolve e até quando). Filtros: unidade, microárea, critério + situação (Falta, NoPrazo, NaoSabemos, Cumpre), quem.",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "unidade",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "microarea",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "criterio",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "situacao",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "quem",
            "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/ListaDoIndicador"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/indicadores/{codigo}/exportar": {
      "post": {
        "tags": [
          "Pacientes · O que fazer"
        ],
        "summary": "Exporta a lista nominal inteira do filtro em planilha (?formato=xlsx) ou PDF (?formato=pdf). Exige a justificativa (LGPD), que fica registrada com quem exportou, quando, o filtro e quantas pessoas; o arquivo diz em toda página quem exportou.",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "formato",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeExportacaoNominal"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/producao": {
      "get": {
        "tags": [
          "Pacientes · O que fazer"
        ],
        "summary": "A produção do mês (relatórios gerenciais do PEC, V0444): por equipe (consultas médicas e de enfermagem e a média por dia útil, como no Informatiza), por profissional e as vacinas. Agregada, sem pessoa; ?mes=AAAA-MM, ?unidade=.",
        "parameters": [
          {
            "name": "mes",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "unidade",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProducaoDoMes"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/saude-do-municipio": {
      "get": {
        "tags": [
          "Pacientes · O que fazer"
        ],
        "summary": "O Início do gestor: a nota do município e de cada unidade nos indicadores de qualidade C2–C7 (estimativa pelas listas do PEC, com a tendência e quantas pessoas faltam para a próxima faixa), as 5 ações da semana (o quê, quem, onde, até quando, quantas pessoas), os alertas de dado com dono e prazo, o que mudou desde a leitura anterior e a data da leitura.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InicioDoGestor"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/o-que-fazer/quanto-vale": {
      "get": {
        "tags": [
          "Pacientes · O que fazer"
        ],
        "summary": "Quanto vale: as listas do PEC pelas regras do componente de qualidade da APS (Notas Metodológicas C1–C7, NT 8/2026), por unidade — a nota de cada indicador como faixa [mínima, máxima], a nota final estimada e o valor mensal da equipe em cada ponta.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QuantoVale"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/o-que-fazer": {
      "get": {
        "tags": [
          "Pacientes · O que fazer"
        ],
        "summary": "O quadro de hoje: as pendências urgentes das listas (com quantas pessoas e quem resolve), as da equipe e as da ACS, e cada ACS com a carteira do mês, o ritmo (até ontem), a cota do próximo dia de trabalho e a última visita que chegou ao PEC.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OQueFazer"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/o-que-fazer/roteiros/{microarea}": {
      "get": {
        "tags": [
          "Pacientes · O que fazer"
        ],
        "summary": "O roteiro do próximo dia de trabalho da ACS: o combinado, se houver; senão, a proposta de agora (urgentes, as que ficaram de um roteiro combinado, as com pendência da ACS e a carteira do mês), arrumado por bairro, rua e número.",
        "parameters": [
          {
            "name": "microarea",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RoteiroDaAcs"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Pacientes · O que fazer"
        ],
        "summary": "Combina o roteiro (o gestor imprime para a ACS): calcula de novo e guarda; combinar outra vez substitui. É dele que sai o \"planejado × feito\" e a casa que ficou volta na frente.",
        "parameters": [
          {
            "name": "microarea",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RoteiroDaAcs"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/o-que-fazer/recusas": {
      "get": {
        "tags": [
          "Pacientes · O que fazer"
        ],
        "summary": "As casas que recusaram a visita da ACS (desfecho do PEC, V0423) sem visita realizada depois: fora do roteiro, para a equipe decidir.",
        "parameters": [
          {
            "name": "microarea",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CasaQueRecusou"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/o-que-fazer/configuracao": {
      "put": {
        "tags": [
          "Pacientes · O que fazer"
        ],
        "summary": "Os dias úteis de folga no fim do mês (0 a 10; padrão 4) e o teto de casas por dia (5 a 60; padrão 20). Só o administrador e o gestor.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfiguracaoDoPlanoEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConfiguracaoDoPlano"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/o-que-fazer/feriados": {
      "get": {
        "tags": [
          "Pacientes · O que fazer"
        ],
        "summary": "Os feriados dos anos (de, ate; até 3 anos): os nacionais calculados (Carnaval, Sexta-feira Santa e Corpus Christi pela Páscoa) e os do município.",
        "parameters": [
          {
            "name": "de",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "ate",
            "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/FeriadoDoCalendario"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Pacientes · O que fazer"
        ],
        "summary": "Cadastra um feriado municipal ou ponto facultativo (tipo=Municipal|PontoFacultativo). 409 feriado_repetido.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FeriadoEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/o-que-fazer/feriados/{id}": {
      "delete": {
        "tags": [
          "Pacientes · O que fazer"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/o-que-fazer/ausencias": {
      "get": {
        "tags": [
          "Pacientes · O que fazer"
        ],
        "summary": "As ausências das ACS (férias, atestado, folga) de hoje em diante e dos últimos 30 dias.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AusenciaDaAcsResumo"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Pacientes · O que fazer"
        ],
        "summary": "A ACS da microárea fora de um dia a outro (até 120 dias). motivo=Ferias|Atestado|Folga|Outro. O plano redistribui a carteira.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AusenciaEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/o-que-fazer/ausencias/{id}": {
      "delete": {
        "tags": [
          "Pacientes · O que fazer"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/domicilios": {
      "get": {
        "tags": [
          "Pacientes · Domicílios"
        ],
        "summary": "Os domicílios do cadastro territorial do e-SUS PEC. Busca por endereço, morador ou mãe (sem acento); só números, por CPF ou CNS.",
        "parameters": [
          {
            "name": "busca",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "microarea",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "inativos",
            "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/PaginaOfDomicilioResumo"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/domicilios/microareas": {
      "get": {
        "tags": [
          "Pacientes · Domicílios"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MicroareaDoTerritorio"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/domicilios/leitura": {
      "get": {
        "tags": [
          "Pacientes · Domicílios"
        ],
        "summary": "A leitura dos domicílios do e-SUS PEC: de madrugada; a última rodada, a última boa, quantos domicílios e se há uma correndo agora.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LeituraDosDomicilios"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Pacientes · Domicílios"
        ],
        "summary": "Lê os domicílios agora (leva minutos; a resposta volta logo, com emAndamento). Só o administrador global.",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/domicilios/{id}": {
      "get": {
        "tags": [
          "Pacientes · Domicílios"
        ],
        "summary": "O domicílio, com os moradores (parentesco, nascimento, telefone).",
        "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/DomicilioDetalhe"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/opcoes": {
      "get": {
        "tags": [
          "Contratações"
        ],
        "summary": "Os selects do formulário, com código e rótulo vindos do domínio.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpcoesDeContratacao"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/painel": {
      "get": {
        "tags": [
          "Contratações"
        ],
        "summary": "Os números da tela inicial e onde o órgão mais erra (a regra que mais reprova).",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PainelDeContratacoes"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/enquadramentos": {
      "post": {
        "tags": [
          "Contratações"
        ],
        "summary": "Sugere o rito enquanto a servidora digita o valor, antes de o processo existir.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeEnquadramentoEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnquadramentoSugerido"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/processos": {
      "get": {
        "tags": [
          "Contratações"
        ],
        "parameters": [
          {
            "name": "busca",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "estado",
            "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/PaginaOfResumoDeProcesso"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Contratações"
        ],
        "summary": "Abre o processo (a demanda). O valor de referência pode vir depois.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProcessoEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/contratacoes/processos/{id}": {
      "get": {
        "tags": [
          "Contratações"
        ],
        "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/DetalheDoProcesso"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Contratações"
        ],
        "summary": "Objeto, rito, dotação e valor de referência. Número e exercício não mudam.",
        "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/DadosDoProcessoEnviados"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DetalheDoProcesso"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/processos/{id}/itens": {
      "put": {
        "tags": [
          "Contratações"
        ],
        "summary": "A tabela inteira; a soma tem de fechar com o valor de referência (ou peça o ajuste).",
        "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/ItensEnviados"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DetalheDoProcesso"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/processos/{id}/habilitacao": {
      "put": {
        "tags": [
          "Contratações"
        ],
        "summary": "O bloco de habilitação do TR — o que as regras R-QUAL avaliam.",
        "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/HabilitacaoEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DetalheDoProcesso"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/processos/{id}/pesquisa-de-precos": {
      "put": {
        "tags": [
          "Contratações"
        ],
        "summary": "Seleciona uma pesquisa FINALIZADA: traz os itens e o valor.",
        "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/PesquisaEscolhida"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DetalheDoProcesso"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/processos/{id}/conformidade": {
      "get": {
        "tags": [
          "Contratações"
        ],
        "summary": "Os achados do catálogo de regras, do mais grave para o mais leve.",
        "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/ConformidadeDoProcesso"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/processos/{id}/transicoes": {
      "post": {
        "tags": [
          "Contratações"
        ],
        "summary": "Move de fase. Autorizar com achado bloqueante é 422 gate_nao_atendido.",
        "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/TransicaoEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DetalheDoProcesso"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/processos/{id}/enquadramento": {
      "get": {
        "tags": [
          "Contratações"
        ],
        "summary": "O rito que a regra sugere, com o teto aplicado e a versão do parâmetro legal.",
        "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/EnquadramentoSugerido"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/processos/{id}/justificativa-de-rito": {
      "put": {
        "tags": [
          "Contratações"
        ],
        "summary": "Por que o rito adotado difere do sugerido (o sugerido é recalculado aqui).",
        "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/JustificativaEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DetalheDoProcesso"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/processos/{id}/pecas/trio": {
      "post": {
        "tags": [
          "Contratações"
        ],
        "summary": "Monta DFD, ETP e TR a partir dos modelos do órgão. Remontar gera nova versão.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "data",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DetalheDoProcesso"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/processos/{id}/pecas/{tipo}": {
      "post": {
        "tags": [
          "Contratações"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "tipo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "data",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DetalheDoProcesso"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/processos/{id}/pecas/{pecaId}/secoes/{codigo}": {
      "put": {
        "tags": [
          "Contratações"
        ],
        "summary": "Preenche a seção. O HTML passa pela lista branca antes de gravar.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "pecaId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SecaoEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DetalheDoProcesso"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/processos/{id}/pecas/{pecaId}/docx": {
      "get": {
        "tags": [
          "Contratações"
        ],
        "summary": "A peça em .docx — sobre o papel timbrado do órgão, quando houver.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "pecaId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/contratacoes/processos/{id}/pacote": {
      "get": {
        "tags": [
          "Contratações"
        ],
        "summary": "As peças vigentes num .zip, na ordem de juntada que o setor de licitação espera.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/contratacoes/pesquisas/opcoes": {
      "get": {
        "tags": [
          "Contratações"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpcoesDePesquisa"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/pesquisas": {
      "get": {
        "tags": [
          "Contratações"
        ],
        "summary": "estado=Finalizada: as que um processo pode selecionar.",
        "parameters": [
          {
            "name": "busca",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "estado",
            "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/PaginaOfResumoDePesquisa"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Contratações"
        ],
        "summary": "Abre com o próximo PP-000/AAAA do órgão. O responsável é quem está na sessão.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PesquisaEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/contratacoes/pesquisas/{id}": {
      "get": {
        "tags": [
          "Contratações"
        ],
        "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/DetalheDePesquisa"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/pesquisas/{id}/mapa": {
      "get": {
        "tags": [
          "Contratações"
        ],
        "summary": "O mapa comparativo em .docx: a cesta de cada item, a apuração e a memória de cálculo.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/contratacoes/pesquisas/{id}/itens": {
      "post": {
        "tags": [
          "Contratações"
        ],
        "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/ItemDePesquisaEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DetalheDePesquisa"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/pesquisas/{id}/itens/{numero}": {
      "put": {
        "tags": [
          "Contratações"
        ],
        "summary": "Corrige descrição, unidade e quantidade (pesquisa não finalizada). O que mudou fica no item; a cesta fica.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "numero",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ItemDePesquisaEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DetalheDePesquisa"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/pesquisas/{id}/itens/{numero}/retirada": {
      "post": {
        "tags": [
          "Contratações"
        ],
        "summary": "Retira o item, com motivo. Não apaga: fica gravado, fora do valor, da memória e do processo.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "numero",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RetiradaDeItemEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DetalheDePesquisa"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/pesquisas/{id}/itens/{numero}/devolucao": {
      "post": {
        "tags": [
          "Contratações"
        ],
        "summary": "Desfaz a retirada: o item volta com a cesta que tinha.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "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/DetalheDePesquisa"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/pesquisas/{id}/itens/{numero}/precos": {
      "post": {
        "tags": [
          "Contratações"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "numero",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PrecoEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DetalheDePesquisa"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/pesquisas/{id}/itens/{numero}/precos/{posicao}/descarte": {
      "post": {
        "tags": [
          "Contratações"
        ],
        "summary": "Descarta pela POSIÇÃO na cesta, com motivo. O preço fica, marcado.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "numero",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "posicao",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DescarteEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DetalheDePesquisa"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/pesquisas/{id}/itens/{numero}/notas-fiscais": {
      "get": {
        "tags": [
          "Contratações"
        ],
        "summary": "Itens de NF-e de compras federais (Portal da Transparência) emitidas em até 1 ano — IN 65, art. 5º, V.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "numero",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "termo",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BuscaEmNotasFiscais"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Contratações"
        ],
        "summary": "Põe na cesta os itens de nota escolhidos, conferidos de novo pela chave da NF-e (inciso V).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "numero",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PrecosDeNotasEnviados"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DetalheDePesquisa"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/pesquisas/{id}/itens/{numero}/compras-gov": {
      "get": {
        "tags": [
          "Contratações"
        ],
        "summary": "Preços HOMOLOGADOS do item do catálogo (CATMAT/CATSER) no Compras.gov.br — a base do Painel de Preços, inciso I.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "numero",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "tipo",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "codigo",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "uf",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "meses",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BuscaNoComprasGov"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Contratações"
        ],
        "summary": "Põe na cesta os preços escolhidos do Compras.gov.br, conferidos de novo na fonte (Painel de Preços, IN 65 art. 5º, I).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "numero",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PrecosDoComprasGovEnviados"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DetalheDePesquisa"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/pesquisas/{id}/itens/{numero}/pncp": {
      "get": {
        "tags": [
          "Contratações"
        ],
        "summary": "Procura o item no PNCP: preços HOMOLOGADOS de outros entes nos últimos meses (padrão 12), para a servidora escolher.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "numero",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "termo",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "uf",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "meses",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "atas",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BuscaNoPncp"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Contratações"
        ],
        "summary": "Põe na cesta os preços escolhidos; cada um é conferido de novo no PNCP (contratação similar, IN 65 art. 5º, II).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "numero",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PrecosDoPncpEnviados"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DetalheDePesquisa"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/pesquisas/{id}/banco-de-precos": {
      "post": {
        "tags": [
          "Contratações"
        ],
        "summary": "Importa o relatório de COTAÇÃO do Banco de Preços (PDF, multipart \"arquivo\"): cria os itens e põe os preços na cesta com a procedência.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "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/ImportacaoDoBancoDePrecos"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/pesquisas/{id}/atualizacao-monetaria": {
      "post": {
        "tags": [
          "Contratações"
        ],
        "summary": "Atualiza pelo IPCA os preços dos incisos I e II até o último mês publicado (IN 65, art. 5º); o fator fica em cada preço.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/AtualizacaoEnviada"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DetalheDePesquisa"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Contratações"
        ],
        "summary": "Volta aos valores coletados, sem atualizaçã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/DetalheDePesquisa"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/pesquisas/{id}/finalizacao": {
      "post": {
        "tags": [
          "Contratações"
        ],
        "summary": "Fecha a pesquisa. Recusa se algum item não reunir o mínimo de fontes.",
        "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/DetalheDePesquisa"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/impugnacoes": {
      "get": {
        "tags": [
          "Contratações"
        ],
        "parameters": [
          {
            "name": "processoId",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          },
          {
            "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/PaginaOfResumoDeImpugnacao"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Contratações"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ImpugnacaoEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/contratacoes/impugnacoes/candidatos-a-regra": {
      "get": {
        "tags": [
          "Contratações"
        ],
        "summary": "O que o órgão já perdeu e ainda não virou regra do catálogo.",
        "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/PaginaOfCandidatoARegra"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/impugnacoes/{id}": {
      "get": {
        "tags": [
          "Contratações"
        ],
        "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/DetalheDeImpugnacao"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/impugnacoes/{id}/pontos": {
      "post": {
        "tags": [
          "Contratações"
        ],
        "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/PontoEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DetalheDeImpugnacao"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/impugnacoes/{id}/pontos/{numero}/julgamento": {
      "put": {
        "tags": [
          "Contratações"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "numero",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/JulgamentoEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DetalheDeImpugnacao"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/impugnacoes/{id}/decisao": {
      "put": {
        "tags": [
          "Contratações"
        ],
        "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/DecisaoEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DetalheDeImpugnacao"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/impugnacoes/{id}/nao-conhecimento": {
      "put": {
        "tags": [
          "Contratações"
        ],
        "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/DecisaoEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DetalheDeImpugnacao"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/contratos/opcoes": {
      "get": {
        "tags": [
          "Contratações"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpcoesDeContrato"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/contratos": {
      "get": {
        "tags": [
          "Contratações"
        ],
        "summary": "filtro: vencendo (até 90 dias), vigentes, vencidos ou todos.",
        "parameters": [
          {
            "name": "busca",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filtro",
            "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/PaginaOfResumoDeContrato"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Contratações"
        ],
        "summary": "Registra o contrato (novo, saído de um processo, ou um que já corria antes do sistema).",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContratoEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/contratacoes/contratos/{id}": {
      "get": {
        "tags": [
          "Contratações"
        ],
        "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/DetalheDeContrato"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/contratos/{id}/prorrogacoes": {
      "post": {
        "tags": [
          "Contratações"
        ],
        "summary": "Prorroga (só serviço contínuo; exige pesquisa de vantajosidade; teto decenal).",
        "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/ProrrogacaoEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DetalheDeContrato"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/contratos/{id}/aditivos": {
      "post": {
        "tags": [
          "Contratações"
        ],
        "summary": "Aditivo. Acréscimo e supressão acumulados contra o limite do art. 125.",
        "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/AditivoEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DetalheDeContrato"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/contratos/{id}/extincao": {
      "put": {
        "tags": [
          "Contratações"
        ],
        "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/ExtincaoEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DetalheDeContrato"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/contratos/{id}/anuencia": {
      "get": {
        "tags": [
          "Contratações"
        ],
        "summary": "A solicitação de anuência para a renovação (.docx). ?novoFim=AAAA-MM-DD&indice=IPCA.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "novoFim",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "indice",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/contratacoes/contratos/{id}/fiscal": {
      "put": {
        "tags": [
          "Contratações"
        ],
        "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/FiscalEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DetalheDeContrato"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/modelos": {
      "get": {
        "tags": [
          "Contratações"
        ],
        "parameters": [
          {
            "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/PaginaOfModeloDoOrgao"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Contratações"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ModeloDePecaEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/contratacoes/modelos/marcadores": {
      "get": {
        "tags": [
          "Contratações"
        ],
        "summary": "(Lista fixa, sem paginação.) Os marcadores que o sistema sabe preencher — a tela oferece em vez de a servidora adivinhar.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/modelos/{id}": {
      "get": {
        "tags": [
          "Contratações"
        ],
        "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/ModeloDoOrgao"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Contratações"
        ],
        "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/ModeloDePecaEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModeloDoOrgao"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Contratações"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/contratacoes/orgao": {
      "get": {
        "tags": [
          "Contratações"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrgaoNasContratacoes"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/orgao/secretaria": {
      "put": {
        "tags": [
          "Contratações"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SecretariaEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrgaoNasContratacoes"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/orgao/responsaveis": {
      "put": {
        "tags": [
          "Contratações"
        ],
        "summary": "Designa quem assina num papel. Designar num papel ocupado substitui quem estava lá.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResponsavelEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrgaoNasContratacoes"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/orgao/responsaveis/{papel}": {
      "delete": {
        "tags": [
          "Contratações"
        ],
        "parameters": [
          {
            "name": "papel",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrgaoNasContratacoes"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/orgao/timbre": {
      "put": {
        "tags": [
          "Contratações"
        ],
        "summary": "Envia (ou troca) o papel timbrado: multipart, campo \"arquivo\". Conferido pelos bytes; .docm é recusado.",
        "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/OrgaoNasContratacoes"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Contratações"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrgaoNasContratacoes"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/orgao/timbre/arquivo": {
      "get": {
        "tags": [
          "Contratações"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/contratacoes/orgao/politicas/tipos": {
      "get": {
        "tags": [
          "Contratações"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Opcao"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/orgao/politicas": {
      "get": {
        "tags": [
          "Contratações"
        ],
        "summary": "As regras próprias do órgão, com a origem de cada uma. Paginada.",
        "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/PaginaOfPoliticaDoOrgaoLida"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Contratações"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PoliticaEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/contratacoes/orgao/politicas/{id}": {
      "put": {
        "tags": [
          "Contratações"
        ],
        "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/PoliticaEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PoliticaDoOrgaoLida"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/orgao/politicas/{id}/situacao": {
      "put": {
        "tags": [
          "Contratações"
        ],
        "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/AtivacaoEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PoliticaDoOrgaoLida"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/orgao/dotacoes": {
      "get": {
        "tags": [
          "Contratações"
        ],
        "summary": "As dotações do órgão, paginadas. todas=true inclui as desativadas; busca no código e no programa.",
        "parameters": [
          {
            "name": "exercicio",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "todas",
            "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/PaginaOfDotacaoDoOrgao"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Contratações"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DotacaoEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/contratacoes/orgao/dotacoes/{id}": {
      "put": {
        "tags": [
          "Contratações"
        ],
        "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/DotacaoEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DotacaoDoOrgao"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/orgao/dotacoes/{id}/situacao": {
      "put": {
        "tags": [
          "Contratações"
        ],
        "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/AtivacaoEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DotacaoDoOrgao"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/orgao/unidades": {
      "get": {
        "tags": [
          "Contratações"
        ],
        "summary": "As unidades requisitantes, paginadas. Busca no nome e na sigla.",
        "parameters": [
          {
            "name": "todas",
            "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/PaginaOfUnidadeDoOrgao"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Contratações"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UnidadeRequisitanteEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/contratacoes/orgao/unidades/{id}": {
      "put": {
        "tags": [
          "Contratações"
        ],
        "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/UnidadeRequisitanteEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnidadeDoOrgao"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/orgao/unidades/{id}/situacao": {
      "put": {
        "tags": [
          "Contratações"
        ],
        "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/AtivacaoEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnidadeDoOrgao"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/orgao/unidades-de-medida": {
      "get": {
        "tags": [
          "Contratações"
        ],
        "summary": "As unidades de medida dos itens, paginadas. todas=true inclui as desativadas; busca na sigla e no nome.",
        "parameters": [
          {
            "name": "todas",
            "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/PaginaOfUnidadeDeMedidaDoOrgao"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Contratações"
        ],
        "summary": "Cadastra. Repetida pela sigla ou pelo nome (sem acento e sem caixa) é 409 registro_repetido.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UnidadeDeMedidaEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/contratacoes/orgao/unidades-de-medida/{id}": {
      "put": {
        "tags": [
          "Contratações"
        ],
        "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/UnidadeDeMedidaEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnidadeDeMedidaDoOrgao"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/orgao/unidades-de-medida/{id}/situacao": {
      "put": {
        "tags": [
          "Contratações"
        ],
        "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/AtivacaoEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnidadeDeMedidaDoOrgao"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/analises/texto": {
      "post": {
        "tags": [
          "Contratações"
        ],
        "summary": "Texto direto — é assim que outro sistema costuma integrar.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AnaliseDeTextoEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResultadoDaAnalise"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/analises/arquivo": {
      "post": {
        "tags": [
          "Contratações"
        ],
        "summary": "Envio do .docx, .txt ou .md (multipart: \"arquivo\"; ?tipo=TermoReferencia).",
        "parameters": [
          {
            "name": "tipo",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "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/ResultadoDaAnalise"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/analises/relatorio": {
      "post": {
        "tags": [
          "Contratações"
        ],
        "summary": "O mesmo envio, devolvendo o parecer em .docx para juntar aos autos.",
        "parameters": [
          {
            "name": "tipo",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "arquivo": {
                    "$ref": "#/components/schemas/IFormFile"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/contratacoes/redacao": {
      "get": {
        "tags": [
          "Contratações"
        ],
        "summary": "Se a redação assistida está ligada — a tela mostra ou esconde o botão.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DisponibilidadeDaRedacao"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Contratações"
        ],
        "summary": "Reescreve um trecho. Nada é gravado; o texto volta com o parecer do motor. Dado pessoal no trecho: nada é enviado.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeRedacaoEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TextoRedigidoDaIa"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/compras-gov/catalogo": {
      "get": {
        "tags": [
          "Contratações"
        ],
        "summary": "Busca por texto nos padrões do catálogo do governo (PDM de material e item de serviço); até 30, os de nome mais curto primeiro.",
        "parameters": [
          {
            "name": "termo",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BuscaNoCatalogo"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/compras-gov/catalogo/materiais/{pdm}/itens": {
      "get": {
        "tags": [
          "Contratações"
        ],
        "summary": "Os itens CATMAT de um PDM, com a especificação (lista do catálogo, sem paginação).",
        "parameters": [
          {
            "name": "pdm",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ItemDoCatalogoLido"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/catalogo/parametros": {
      "get": {
        "tags": [
          "Contratações"
        ],
        "summary": "Os parâmetros legais com a série de vigências (lista curta e fixa, sem paginação) — a defesa de um processo antigo está na vigência anterior.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ParametroLegalVigente"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contratacoes/catalogo/regras": {
      "get": {
        "tags": [
          "Contratações"
        ],
        "summary": "As regras que estão valendo (o catálogo inteiro, sem paginação) — \"quais regras avaliaram este processo?\" sem abrir o código.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RegraDoCatalogo"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/estoque/opcoes": {
      "get": {
        "tags": [
          "Estoque"
        ],
        "summary": "As unidades de medida e as exigências (não se aplica, opcional, obrigatório).",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpcoesDoEstoque"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/estoque/identificar": {
      "get": {
        "tags": [
          "Estoque"
        ],
        "summary": "Interpreta o que a câmera leu (código de barras, o código GS1 das caixas de medicamento com lote e validade) e diz se o órgão já tem o produto.",
        "parameters": [
          {
            "name": "codigo",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CodigoIdentificado"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/estoque/identificar/foto": {
      "post": {
        "tags": [
          "Estoque"
        ],
        "summary": "Lê o rótulo pela foto (IA) e devolve a SUGESTÃO de cadastro: nome, marca, apresentação, código de barras, lote, validade, registro ANVISA. A pessoa confere; nada é gravado.",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "foto": {
                    "$ref": "#/components/schemas/IFormFile"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RotuloLido"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/estoque/entradas": {
      "post": {
        "tags": [
          "Estoque"
        ],
        "summary": "Entrada de uma nota (ou, sem nota, com justificativa). A categoria decide se lote e validade são obrigatórios; vencido não entra.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EntradaEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperacaoDoEstoque"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/estoque/saidas": {
      "post": {
        "tags": [
          "Estoque"
        ],
        "summary": "Saída para uma unidade ou setor. Sem lote, sai do que vence primeiro; lote fora da ordem exige justificativa; vencido e bloqueado não saem.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaidaEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperacaoDoEstoque"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/estoque/movimentos": {
      "get": {
        "tags": [
          "Estoque"
        ],
        "parameters": [
          {
            "name": "produtoId",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          },
          {
            "name": "almoxarifadoId",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          },
          {
            "name": "tipo",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "de",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "ate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "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/PaginaOfMovimentoDoEstoque"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/estoque/movimentos/{id}/estorno": {
      "post": {
        "tags": [
          "Estoque"
        ],
        "summary": "Desfaz uma entrada ou saída com outra movimentação (nada se edita). Uma vez só.",
        "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/EstornoEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperacaoDoEstoque"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/estoque/saldos": {
      "get": {
        "tags": [
          "Estoque"
        ],
        "summary": "O saldo de cada produto por almoxarifado, com o custo médio e os lotes (Ok, Vencendo, Vencido, Bloqueado).",
        "parameters": [
          {
            "name": "almoxarifadoId",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          },
          {
            "name": "categoriaId",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          },
          {
            "name": "produtoId",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          },
          {
            "name": "busca",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "comSaldo",
            "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/PaginaOfSaldoDoEstoque"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/estoque/alertas": {
      "get": {
        "tags": [
          "Estoque"
        ],
        "summary": "O que pede atenção hoje: vencidos, vencendo (no prazo de aviso da categoria) e abaixo do mínimo.",
        "parameters": [
          {
            "name": "almoxarifadoId",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AlertasDoEstoque"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/estoque/lotes/{id}/bloqueio": {
      "put": {
        "tags": [
          "Estoque"
        ],
        "summary": "Bloqueia um lote (recolhimento, avaria, quarentena): ele deixa de sair.",
        "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/BloqueioDeLoteEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoteDoSaldo"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Estoque"
        ],
        "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/LoteDoSaldo"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/estoque/categorias": {
      "get": {
        "tags": [
          "Estoque"
        ],
        "summary": "As categorias — cada uma diz o que é obrigatório (lote, validade, registro ANVISA, CA). O órgão nasce com as padrão.",
        "parameters": [
          {
            "name": "ativas",
            "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/PaginaOfCategoriaDeEstoque"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Estoque"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CategoriaEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/estoque/categorias/{id}": {
      "put": {
        "tags": [
          "Estoque"
        ],
        "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/CategoriaEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CategoriaDeEstoque"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/estoque/categorias/{id}/situacao": {
      "put": {
        "tags": [
          "Estoque"
        ],
        "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/SituacaoDoEstoqueEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CategoriaDeEstoque"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/estoque/almoxarifados": {
      "get": {
        "tags": [
          "Estoque"
        ],
        "parameters": [
          {
            "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/PaginaOfAlmoxarifadoDoEstoque"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Estoque"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AlmoxarifadoEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/estoque/almoxarifados/{id}": {
      "put": {
        "tags": [
          "Estoque"
        ],
        "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/AlmoxarifadoEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AlmoxarifadoDoEstoque"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/estoque/almoxarifados/{id}/situacao": {
      "put": {
        "tags": [
          "Estoque"
        ],
        "summary": "Desativar almoxarifado com saldo é recusado.",
        "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/SituacaoDoEstoqueEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AlmoxarifadoDoEstoque"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/estoque/produtos": {
      "get": {
        "tags": [
          "Estoque"
        ],
        "summary": "Busca pelo nome (sem acento), pelo código de barras ou pelo CATMAT.",
        "parameters": [
          {
            "name": "busca",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "categoriaId",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          },
          {
            "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/PaginaOfProdutoDoEstoque"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Estoque"
        ],
        "summary": "Nome repetido (sem contar acento e espaço) ou código de barras de outro produto é 409.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProdutoEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/estoque/produtos/{id}": {
      "get": {
        "tags": [
          "Estoque"
        ],
        "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/ProdutoDoEstoque"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Estoque"
        ],
        "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/ProdutoEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProdutoDoEstoque"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/estoque/produtos/{id}/situacao": {
      "put": {
        "tags": [
          "Estoque"
        ],
        "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/SituacaoDoEstoqueEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProdutoDoEstoque"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/estoque/transferencias": {
      "get": {
        "tags": [
          "Estoque"
        ],
        "summary": "situacao: EmTransito, Recebida ou Devolvida.",
        "parameters": [
          {
            "name": "situacao",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "almoxarifadoId",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          },
          {
            "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/PaginaOfTransferenciaDoEstoque"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Estoque"
        ],
        "summary": "Sai da origem (pelo que vence primeiro) e fica em trânsito até o destino confirmar.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TransferenciaEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TransferenciaDoEstoque"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/estoque/transferencias/{id}": {
      "get": {
        "tags": [
          "Estoque"
        ],
        "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/TransferenciaDoEstoque"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/estoque/transferencias/{id}/conclusao": {
      "put": {
        "tags": [
          "Estoque"
        ],
        "summary": "recebida=true: entra no destino; false: volta para a origem. Lote e custo vão junto.",
        "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/ConclusaoDeTransferenciaEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TransferenciaDoEstoque"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/estoque/baixas": {
      "get": {
        "tags": [
          "Estoque"
        ],
        "parameters": [
          {
            "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/PaginaOfBaixaDoEstoque"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Estoque"
        ],
        "summary": "Pede a baixa (vencido, avaria, perda, extravio, furto). O estoque só sai quando OUTRA pessoa aprova.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BaixaEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BaixaDoEstoque"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/estoque/baixas/{id}/decisao": {
      "put": {
        "tags": [
          "Estoque"
        ],
        "summary": "Aprova (o estoque sai, com o saldo conferido agora) ou recusa (com motivo). Quem pediu não decide.",
        "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/DecisaoDeBaixaEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BaixaDoEstoque"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/estoque/inventarios": {
      "get": {
        "tags": [
          "Estoque"
        ],
        "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/PaginaOfInventarioDoEstoque"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Estoque"
        ],
        "summary": "Abre (completo, ou rotativo com produtoIds). O almoxarifado para de movimentar até concluir ou cancelar.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InventarioEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InventarioDoEstoque"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/estoque/inventarios/{id}": {
      "get": {
        "tags": [
          "Estoque"
        ],
        "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/InventarioDoEstoque"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/estoque/inventarios/{id}/linhas": {
      "get": {
        "tags": [
          "Estoque"
        ],
        "summary": "As linhas da contagem; busca pelo nome, pelo código de barras (o que a câmera leu, inclusive GS1) ou pelo CATMAT.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "pendentes",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "produtoId",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          },
          {
            "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/PaginaOfLinhaDoInventario"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/estoque/inventarios/{id}/linhas/{linha}": {
      "put": {
        "tags": [
          "Estoque"
        ],
        "summary": "Registra o que a comissão contou (zero é contagem).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "linha",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContagemEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LinhaDoInventario"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/estoque/inventarios/{id}/achados": {
      "post": {
        "tags": [
          "Estoque"
        ],
        "summary": "O que está na prateleira e não estava no sistema (outro lote, produto fora da lista).",
        "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/ItemAchadoEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LinhaDoInventario"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/estoque/inventarios/{id}/conclusao": {
      "put": {
        "tags": [
          "Estoque"
        ],
        "summary": "Com tudo contado: cada diferença vira ajuste (entrada ou saída) e o almoxarifado volta a movimentar.",
        "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/InventarioDoEstoque"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/estoque/inventarios/{id}/cancelamento": {
      "put": {
        "tags": [
          "Estoque"
        ],
        "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/InventarioDoEstoque"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/estoque/fechamentos/{mes}": {
      "get": {
        "tags": [
          "Estoque"
        ],
        "summary": "O mês (AAAA-MM) por subelemento, em reais: saldo inicial, entradas, saídas, baixas, ajustes, em trânsito e saldo final. Prévia, ou o guardado se já fechou.",
        "parameters": [
          {
            "name": "mes",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FechamentoDoMes"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/estoque/fechamentos": {
      "post": {
        "tags": [
          "Estoque"
        ],
        "summary": "Fecha um mês que já terminou: guarda o resumo como estava (não se refaz).",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FechamentoEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FechamentoDoMes"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/email-do-orgao/cotas": {
      "get": {
        "tags": [
          "Sábio E-mail · órgão"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OpcaoDeCota"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/email-do-orgao/dominios": {
      "get": {
        "tags": [
          "Sábio E-mail · órgão"
        ],
        "summary": "Os domínios de e-mail do órgão ativo.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DominioDoOrgao"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/email-do-orgao/dominios/{codigo}/caixas": {
      "get": {
        "tags": [
          "Sábio E-mail · órgão"
        ],
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "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/PaginaOfCaixaDeEmailResumo"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Sábio E-mail · órgão"
        ],
        "summary": "Cria a caixa; a senha o sistema gera e devolve UMA vez.",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NovaCaixaDeEmail"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/email-do-orgao/dominios/{codigo}/caixas/{usuario}/senha": {
      "post": {
        "tags": [
          "Sábio E-mail · órgão"
        ],
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "usuario",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/email-do-orgao/dominios/{codigo}/caixas/{usuario}/cota": {
      "put": {
        "tags": [
          "Sábio E-mail · órgão"
        ],
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "usuario",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeCotaDaCaixa"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CaixaDeEmailResumo"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/email-do-orgao/dominios/{codigo}/caixas/{usuario}": {
      "delete": {
        "tags": [
          "Sábio E-mail · órgão"
        ],
        "summary": "APAGA a caixa no servidor, com as mensagens. Exige ?confirmacao= com o endereço digitado.",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "usuario",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "confirmacao",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/ouvidoria/publico/{slug}": {
      "get": {
        "tags": [
          "Ouvidoria · portal do cidadão"
        ],
        "summary": "O nome do órgão e as secretarias ativas.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PortalDaOuvidoria"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ouvidoria/publico/{slug}/secretarias/{id}/assuntos": {
      "get": {
        "tags": [
          "Ouvidoria · portal do cidadão"
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "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/ItemPublico"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ouvidoria/publico/{slug}/secretarias/{id}/locais": {
      "get": {
        "tags": [
          "Ouvidoria · portal do cidadão"
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "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/ItemPublico"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ouvidoria/publico/{slug}/transparencia": {
      "get": {
        "tags": [
          "Ouvidoria · portal do cidadão"
        ],
        "summary": "A transparência da Ouvidoria: o relatório anual em números, com recorte pequeno suprimido (menos de k casos).",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "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/RelatorioAnualDaOuvidoria"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ouvidoria/publico/{slug}/transparencia/pdf": {
      "get": {
        "tags": [
          "Ouvidoria · portal do cidadão"
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ano",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/ouvidoria/publico/{slug}/carta-servicos": {
      "get": {
        "tags": [
          "Ouvidoria · portal do cidadão"
        ],
        "summary": "A Carta de Serviços ao Usuário (art. 7º), só os publicados.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ServicoPublico"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ouvidoria/publico/{slug}/manifestacoes": {
      "post": {
        "tags": [
          "Ouvidoria · portal do cidadão"
        ],
        "summary": "Registra (sem foto). Protocolo sempre; a chave, se identificada, aparece SÓ nesta resposta.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ManifestacaoEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/ouvidoria/publico/{slug}/manifestacoes/com-fotos": {
      "post": {
        "tags": [
          "Ouvidoria · portal do cidadão"
        ],
        "summary": "Registra com até 4 fotos (multipart: campo \"manifestacao\" com o JSON e \"fotos\" repetido). Cada foto é refeita — sem EXIF, sem GPS.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/ouvidoria/publico/{slug}/consulta": {
      "post": {
        "tags": [
          "Ouvidoria · portal do cidadão"
        ],
        "summary": "Protocolo + chave, por POST (nunca na URL). Protocolo inexistente e chave errada dão a MESMA resposta.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsultaDoCidadao"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AndamentoPublico"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ouvidoria/publico/{slug}/complementacao": {
      "post": {
        "tags": [
          "Ouvidoria · portal do cidadão"
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ComplementacaoDoCidadao"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AndamentoPublico"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ouvidoria/publico/{slug}/reabertura": {
      "post": {
        "tags": [
          "Ouvidoria · portal do cidadão"
        ],
        "summary": "O cidadão insatisfeito reabre a manifestação respondida: prazo novo de 30 dias.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReaberturaDoCidadao"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AndamentoPublico"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ouvidoria/perfil": {
      "get": {
        "tags": [
          "Ouvidoria"
        ],
        "summary": "Quem entrou, na Ouvidoria: o papel, se lê manifestações, se administra os cadastros, o setor do Respondente e o endereço do portal.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PerfilNaOuvidoria"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ouvidoria/radar": {
      "get": {
        "tags": [
          "Ouvidoria"
        ],
        "summary": "O radar de problemas coletivos: relatos que o copiloto juntou pelo mesmo problema, nos últimos 90 dias.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TemaDoRadar"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ouvidoria/painel/prazos": {
      "get": {
        "tags": [
          "Ouvidoria"
        ],
        "summary": "O painel agregado (inclusive para o Gestor): em aberto por faixa do semáforo, as vencidas e a taxa de resposta dentro do prazo — o indicador oficial.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PainelDePrazos"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ouvidoria/relatorio": {
      "get": {
        "tags": [
          "Ouvidoria"
        ],
        "summary": "O relatório anual de gestão da Ouvidoria: números do ano, por tipo, canal, secretaria, assuntos recorrentes e mês a mês, com a taxa de resposta no prazo em primeiro lugar.",
        "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/RelatorioAnualDaOuvidoria"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ouvidoria/relatorio/pdf": {
      "get": {
        "tags": [
          "Ouvidoria"
        ],
        "summary": "O relatório anual em PDF, pronto para publicar.",
        "parameters": [
          {
            "name": "ano",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/ouvidoria/alertas": {
      "get": {
        "tags": [
          "Ouvidoria"
        ],
        "summary": "O sino: vencidas e as cinco mais urgentes.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SinoDaOuvidoria"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ouvidoria/apoio": {
      "get": {
        "tags": [
          "Ouvidoria"
        ],
        "summary": "Secretarias, setores, assuntos e locais (ativos; todas=true inclui os desativados).",
        "parameters": [
          {
            "name": "todas",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApoioDaOuvidoria"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ouvidoria/manifestacoes": {
      "get": {
        "tags": [
          "Ouvidoria"
        ],
        "summary": "A caixa de entrada, ordenada por prazo (o que vence antes primeiro). O recorte é do papel: o Ouvidor não vê as de conflito de interesse; a Autoridade superior só vê essas; o Respondente só as do setor dele. Sem nenhum dado de quem se manifestou.",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "vencidas",
            "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/PaginaOfItemDaCaixa"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Ouvidoria"
        ],
        "summary": "Registro pelo balcão, telefone ou carta (ninguém pode recusar manifestação que chega por outro canal). Devolve o comprovante com a chave, UMA vez.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegistroPelaOuvidoria"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/ouvidoria/manifestacoes/contagem": {
      "get": {
        "tags": [
          "Ouvidoria"
        ],
        "summary": "Em aberto e vencidas — a mesma conta para o contador do menu e para a faixa da caixa.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContagemDaCaixa"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ouvidoria/manifestacoes/{id}": {
      "get": {
        "tags": [
          "Ouvidoria"
        ],
        "summary": "O detalhe, com as ações que o estado e o papel permitem. Nunca a identidade.",
        "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/DetalheDaManifestacao"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ouvidoria/manifestacoes/{id}/pdf": {
      "get": {
        "tags": [
          "Ouvidoria"
        ],
        "summary": "O PDF do processo (auditado). Não contém dados de identificação do manifestante.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/ouvidoria/manifestacoes/{id}/anexos/{anexoId}": {
      "get": {
        "tags": [
          "Ouvidoria"
        ],
        "summary": "A foto, só se liberada (refeita). Auditado.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "anexoId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/ouvidoria/manifestacoes/{id}/classificacao": {
      "post": {
        "tags": [
          "Ouvidoria"
        ],
        "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/ClassificacaoEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DetalheDaManifestacao"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ouvidoria/manifestacoes/{id}/encaminhamento": {
      "post": {
        "tags": [
          "Ouvidoria"
        ],
        "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/EncaminhamentoEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DetalheDaManifestacao"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ouvidoria/manifestacoes/{id}/analise": {
      "post": {
        "tags": [
          "Ouvidoria"
        ],
        "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/DetalheDaManifestacao"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ouvidoria/manifestacoes/{id}/despacho": {
      "post": {
        "tags": [
          "Ouvidoria"
        ],
        "summary": "Despacho interno: visível só a servidores, nunca ao cidadã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/TextoDaOuvidoria"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DetalheDaManifestacao"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ouvidoria/manifestacoes/{id}/resposta": {
      "post": {
        "tags": [
          "Ouvidoria"
        ],
        "summary": "A resposta conclusiva: encerra o prazo e grava se saiu dentro dele (o indicador oficial).",
        "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/TextoDaOuvidoria"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DetalheDaManifestacao"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ouvidoria/manifestacoes/{id}/prorrogacao": {
      "post": {
        "tags": [
          "Ouvidoria"
        ],
        "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/JustificativaDaOuvidoria"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DetalheDaManifestacao"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ouvidoria/manifestacoes/{id}/complementacao": {
      "post": {
        "tags": [
          "Ouvidoria"
        ],
        "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/TextoDaOuvidoria"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DetalheDaManifestacao"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ouvidoria/manifestacoes/{id}/arquivamento": {
      "post": {
        "tags": [
          "Ouvidoria"
        ],
        "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/MotivoDaOuvidoria"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DetalheDaManifestacao"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ouvidoria/manifestacoes/{id}/reabertura": {
      "post": {
        "tags": [
          "Ouvidoria"
        ],
        "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/MotivoDaOuvidoria"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DetalheDaManifestacao"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ouvidoria/manifestacoes/{id}/conflito-interesse": {
      "post": {
        "tags": [
          "Ouvidoria"
        ],
        "summary": "Marca ou retira o conflito de interesse. 204 quando a manifestação sai da vista de quem marcou (vai para a Autoridade superior, ou volta ao Ouvidor).",
        "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/ConflitoEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/ouvidoria/manifestacoes/{id}/identidade": {
      "post": {
        "tags": [
          "Ouvidoria"
        ],
        "summary": "Ver identidade: Ouvidor (ou Autoridade superior, se há conflito), justificativa de 15 caracteres ou mais. TODA tentativa fica registrada, inclusive a recusada.",
        "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/JustificativaDaOuvidoria"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdentidadeRevelada"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ouvidoria/manifestacoes/{id}/identidade/eliminacao": {
      "post": {
        "tags": [
          "Ouvidoria"
        ],
        "summary": "Eliminação a pedido do titular (LGPD): nome vira a marca, o resto some; o log de acessos fica.",
        "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/JustificativaDaOuvidoria"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/ouvidoria/manifestacoes/{id}/reemissao-chave": {
      "post": {
        "tags": [
          "Ouvidoria"
        ],
        "summary": "Nova chave (presencial, documento conferido): a anterior deixa de valer. A chave nova aparece só nesta resposta.",
        "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/ReemissaoEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChaveReemitida"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ouvidoria/manifestacoes/{id}/triagem": {
      "post": {
        "tags": [
          "Ouvidoria"
        ],
        "summary": "Copiloto: faz (ou refaz) a triagem sugerida — tipo, secretaria, assunto, setor, urgência, resumo, tema e alertas de dado de terceiros. O relato vai tarjado; a identidade, nunca.",
        "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/DetalheDaManifestacao"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ouvidoria/manifestacoes/{id}/rascunho-resposta": {
      "post": {
        "tags": [
          "Ouvidoria"
        ],
        "summary": "Copiloto: rascunho da resposta conclusiva em linguagem simples, a partir do relato e do histórico (tarjados). Não se grava: o Ouvidor revisa e envia.",
        "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/RascunhoDeResposta"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ouvidoria/manifestacoes/{id}/teor-tarjado": {
      "get": {
        "tags": [
          "Ouvidoria"
        ],
        "summary": "O relato com nomes, documentos, contatos e endereços tarjados (local, sem IA): o ponto de partida da versão do setor.",
        "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/TextoTarjado"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ouvidoria/manifestacoes/{id}/teor-para-setor": {
      "post": {
        "tags": [
          "Ouvidoria"
        ],
        "summary": "A versão do relato que o Respondente lê (vazio volta ao original). O cidadão e a Ouvidoria seguem vendo o original.",
        "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/TextoDaOuvidoria"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DetalheDaManifestacao"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ouvidoria/cadastros/secretarias": {
      "post": {
        "tags": [
          "Ouvidoria"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SecretariaDaOuvidoriaEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SecretariaDaOuvidoria"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ouvidoria/cadastros/secretarias/{id}": {
      "put": {
        "tags": [
          "Ouvidoria"
        ],
        "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/SecretariaDaOuvidoriaEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SecretariaDaOuvidoria"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ouvidoria/cadastros/setores": {
      "post": {
        "tags": [
          "Ouvidoria"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetorDaOuvidoriaEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SetorDaOuvidoria"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ouvidoria/cadastros/setores/{id}": {
      "put": {
        "tags": [
          "Ouvidoria"
        ],
        "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/SetorDaOuvidoriaEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SetorDaOuvidoria"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ouvidoria/cadastros/assuntos": {
      "post": {
        "tags": [
          "Ouvidoria"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AssuntoDaOuvidoriaEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssuntoDaOuvidoria"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ouvidoria/cadastros/assuntos/{id}": {
      "put": {
        "tags": [
          "Ouvidoria"
        ],
        "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/AssuntoDaOuvidoriaEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssuntoDaOuvidoria"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ouvidoria/cadastros/locais": {
      "post": {
        "tags": [
          "Ouvidoria"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LocalDaOuvidoriaEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LocalDaOuvidoria"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ouvidoria/cadastros/locais/{id}": {
      "put": {
        "tags": [
          "Ouvidoria"
        ],
        "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/LocalDaOuvidoriaEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LocalDaOuvidoria"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ouvidoria/cadastros/servicos": {
      "get": {
        "tags": [
          "Ouvidoria"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ServicoDaCartaResumo"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Ouvidoria"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ServicoDaCartaEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServicoDaCartaResumo"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ouvidoria/cadastros/servicos/{id}": {
      "put": {
        "tags": [
          "Ouvidoria"
        ],
        "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/ServicoDaCartaEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServicoDaCartaResumo"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ouvidoria/cadastros/parametros": {
      "get": {
        "tags": [
          "Ouvidoria"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ParametroEmUso"
                  }
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Ouvidoria"
        ],
        "summary": "Sobrescreve um parâmetro do padrão legal; valor vazio volta ao padrão.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ParametroDaOuvidoriaEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ParametroEmUso"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ouvidoria/cadastros/portal": {
      "get": {
        "tags": [
          "Ouvidoria"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Ouvidoria"
        ],
        "summary": "O endereço público (ouvidoria…/o/<slug>/). Mudar o slug quebra os QR Codes já impressos.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PortalDaOuvidoriaEnviado"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PortalDoOrgao"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ouvidoria/cadastros/lotacoes": {
      "get": {
        "tags": [
          "Ouvidoria"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LotacaoDaOuvidoria"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ouvidoria/cadastros/lotacoes/{usuario}": {
      "put": {
        "tags": [
          "Ouvidoria"
        ],
        "summary": "O setor do Respondente (só dele): é o que delimita o que ele enxerga.",
        "parameters": [
          {
            "name": "usuario",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LotacaoDaOuvidoriaEnviada"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LotacaoDaOuvidoria"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/publico/{slug}": {
      "get": {
        "tags": [
          "Studio · agendamento online"
        ],
        "summary": "O estabelecimento: nome, ramo, logomarca, recado, contato, os serviços online e quem atende.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SalaoPublico"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/publico/{slug}/logomarca": {
      "get": {
        "tags": [
          "Studio · agendamento online"
        ],
        "summary": "A logomarca (PNG). 404 quando não há.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/studio/publico/{slug}/privacidade": {
      "get": {
        "tags": [
          "Studio · agendamento online"
        ],
        "summary": "A Política de Privacidade do estabelecimento (modelo padrão): o controlador é o estabelecimento; o operador, a Sábio.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PoliticaDePrivacidade"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/publico/{slug}/horarios": {
      "get": {
        "tags": [
          "Studio · agendamento online"
        ],
        "summary": "Os horários livres do dia, de 15 em 15 minutos, no relógio do estabelecimento — com quem está livre em cada um.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "servico",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "profissional",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dia",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HorariosDoDia"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/publico/{slug}/agendamentos": {
      "post": {
        "tags": [
          "Studio · agendamento online"
        ],
        "summary": "Marca (nome e celular; cliente novo é cadastrado; profissional nulo = qualquer um livre; aceitaPromocoes opcional). Conferido de novo, com trava. Devolve também o acesso da cliente ao app.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeAgendamentoPublico"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgendamentoPublicoMarcado"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/publico/{slug}/manifest.webmanifest": {
      "get": {
        "tags": [
          "Studio · agendamento online"
        ],
        "summary": "O manifesto do app instalável do salão (PWA): o nome, o endereço /agendar/{slug} e os ícones do Studio.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/studio/publico/{slug}/meus": {
      "get": {
        "tags": [
          "Studio · agendamento online"
        ],
        "summary": "\"Meus horários\" da cliente (cabeçalho X-Acesso-Cliente): os próximos e os 10 últimos. 401 acesso_invalido.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MeusHorarios"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/publico/{slug}/meus/{codigo}/cancelar": {
      "post": {
        "tags": [
          "Studio · agendamento online"
        ],
        "summary": "A cliente desmarca o próprio horário (até a antecedência mínima do online; 409 fora_do_prazo_de_cancelamento).",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/studio/publico/{slug}/conversa": {
      "post": {
        "tags": [
          "Studio · agendamento online"
        ],
        "summary": "A conversa com IA que marca (sem estado: o histórico vem no pedido). 503 conversa_desligada sem a chave ou com o salão desligado.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeConversa"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RespostaDaConversa"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/estabelecimento": {
      "get": {
        "tags": [
          "Studio"
        ],
        "summary": "O perfil do estabelecimento ativo (o nome é o do órgão).",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EstabelecimentoDoStudio"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Studio"
        ],
        "summary": "Ramo, fuso, telefone, endereço e Instagram. Só a gestão.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDoEstabelecimento"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EstabelecimentoDoStudio"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/estabelecimento/logomarca": {
      "get": {
        "tags": [
          "Studio"
        ],
        "summary": "A logomarca (PNG). 404 quando não há: a tela desenha as iniciais.",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Studio"
        ],
        "summary": "Troca a logomarca (multipart \"arquivo\": PNG, JPEG ou WebP, até 2 MB; o formato sai dos bytes). Só a gestão.",
        "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/EstabelecimentoDoStudio"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Studio"
        ],
        "summary": "Tira a logomarca. Só a gestão.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EstabelecimentoDoStudio"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/capacidades": {
      "get": {
        "tags": [
          "Studio"
        ],
        "summary": "O que quem está na sessão faz: papel, gestão, balcão, a ficha de profissional ligada, o ramo e o fuso.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CapacidadesDoStudio"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/ramos": {
      "get": {
        "tags": [
          "Studio"
        ],
        "summary": "Os ramos (salão, barbearia, manicure, estética, tatuagem, espaço infantil) com os serviços sugeridos.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RamoDoStudio"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/formas-de-pagamento": {
      "get": {
        "tags": [
          "Studio"
        ],
        "summary": "Dinheiro, Pix, débito e crédito (só o crédito parcela).",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FormaDePagamentoDoStudio"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/inicio": {
      "get": {
        "tags": [
          "Studio"
        ],
        "summary": "O dia: atendimentos por situação, faturado, comandas abertas, próximos, produtos acabando, aniversariantes da semana.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InicioDoStudio"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/relatorios": {
      "get": {
        "tags": [
          "Studio"
        ],
        "summary": "O período (até 1 ano; o mês corrente, sem dizer): faturamento por dia, serviço, profissional e forma; ticket médio; clientes novos. Só a gestão.",
        "parameters": [
          {
            "name": "de",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "ate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RelatorioDoStudio"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/agenda": {
      "get": {
        "tags": [
          "Studio"
        ],
        "summary": "Até 7 dias: os profissionais com o expediente, os bloqueios e os agendamentos. O profissional vê só a própria.",
        "parameters": [
          {
            "name": "de",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "ate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "profissional",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgendaDoPeriodo"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/agenda/livres": {
      "get": {
        "tags": [
          "Studio"
        ],
        "summary": "Os horários livres do dia para o serviço, de 15 em 15 minutos, com quem está livre. Balcão.",
        "parameters": [
          {
            "name": "servico",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "profissional",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "dia",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HorariosDoDia"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/lembretes": {
      "get": {
        "tags": [
          "Studio"
        ],
        "summary": "Os horários de amanhã até N dias (1 a 7; 1 sem dizer), em aberto e sem lembrete; ?enviados=true: os já lembrados (balcão ou WhatsApp, com a resposta). Balcão.",
        "parameters": [
          {
            "name": "dias",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "enviados",
            "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/PaginaOfAgendamentoDoStudio"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/lembrete-automatico": {
      "get": {
        "tags": [
          "Studio"
        ],
        "summary": "O lembrete automático pelo WhatsApp: disponível (o número do estabelecimento ligado), ligado, a hora da véspera, o \"2 horas antes\", o aviso. Balcão lê.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LembreteAutomaticoDoStudio"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Studio"
        ],
        "summary": "Liga ou desliga, a hora da véspera (08:00–20:00, cheia ou meia) e o \"2 horas antes\". Só a gestão; o número (instancia) só a equipe da Sábio.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeLembreteAutomatico"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LembreteAutomaticoDoStudio"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/bloqueios": {
      "post": {
        "tags": [
          "Studio"
        ],
        "summary": "Bloqueia um intervalo da agenda do profissional. Balcão.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeBloqueio"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BloqueioNaAgenda"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/bloqueios/{codigo}": {
      "delete": {
        "tags": [
          "Studio"
        ],
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/studio/caixa": {
      "get": {
        "tags": [
          "Studio"
        ],
        "summary": "Os lançamentos do período (hoje, sem dizer) e os totais por forma, sem os estornados. Balcão.",
        "parameters": [
          {
            "name": "de",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "ate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "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/CaixaDoPeriodo"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/caixa/entradas": {
      "post": {
        "tags": [
          "Studio"
        ],
        "summary": "Uma entrada avulsa. Balcão.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeLancamento"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LancamentoDoCaixa"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/caixa/saidas": {
      "post": {
        "tags": [
          "Studio"
        ],
        "summary": "Uma saída (compra, conta, sangria). Só a gestão.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeLancamento"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LancamentoDoCaixa"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/caixa/lancamentos/{codigo}/estornar": {
      "post": {
        "tags": [
          "Studio"
        ],
        "summary": "Estorna um lançamento avulso ou de comissão (o da comanda: estorne a comanda). Só a gestão.",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeEstorno"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LancamentoDoCaixa"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/comissoes": {
      "get": {
        "tags": [
          "Studio"
        ],
        "summary": "As comissões do período por profissional (a pagar e pago). A gestão vê todas; o profissional, as próprias.",
        "parameters": [
          {
            "name": "de",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "ate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "profissional",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ComissoesDoPeriodo"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/comissoes/pagar": {
      "post": {
        "tags": [
          "Studio"
        ],
        "summary": "Paga as comissões em aberto do profissional no período: uma saída no caixa. Só a gestão.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDePagamentoDeComissoes"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ComissoesPagas"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/agendamento-online": {
      "get": {
        "tags": [
          "Studio"
        ],
        "summary": "A configuração do agendamento online (desligado, sem dizer). Balcão.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConfiguracaoDoAgendamentoOnline"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Studio"
        ],
        "summary": "Liga, desliga e configura (o endereço é único no Brasil). Só a gestão.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDoAgendamentoOnline"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConfiguracaoDoAgendamentoOnline"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/clientes": {
      "get": {
        "tags": [
          "Studio"
        ],
        "summary": "Os clientes (ativos, sem dizer; ?situacao=inativos|todos); a busca casa o nome ou os dígitos do celular. Balcã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/PaginaOfClienteDoStudio"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Studio"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeCliente"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClienteDoStudio"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/clientes/{codigo}": {
      "get": {
        "tags": [
          "Studio"
        ],
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClienteDoStudio"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Studio"
        ],
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeCliente"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClienteDoStudio"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/clientes/{codigo}/situacao": {
      "put": {
        "tags": [
          "Studio"
        ],
        "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/ClienteDoStudio"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/clientes/{codigo}/historico": {
      "get": {
        "tags": [
          "Studio"
        ],
        "summary": "Os últimos 50 atendimentos e as últimas 50 comandas do cliente.",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HistoricoDoCliente"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/clientes/{codigo}/anonimizar": {
      "post": {
        "tags": [
          "Studio"
        ],
        "summary": "LGPD — o pedido de exclusão do cliente: apaga os dados pessoais (o cadastro vira \"Cliente anonimizado\", inativo), cancela os horários futuros e mantém os registros financeiros sem dado pessoal. Só a gestão; não se desfaz.",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClienteAnonimizado"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/profissionais": {
      "get": {
        "tags": [
          "Studio"
        ],
        "summary": "A equipe. Balcão.",
        "parameters": [
          {
            "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/PaginaOfProfissionalDoStudio"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Studio"
        ],
        "summary": "Cadastra (com ou sem acesso; o acesso cria a conta pelo núcleo na mesma transação). Só a gestão.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeProfissional"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfissionalDoStudio"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/profissionais/{codigo}": {
      "get": {
        "tags": [
          "Studio"
        ],
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfissionalDoStudio"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Studio"
        ],
        "summary": "Edita; com acesso, dá a conta a quem ainda não tem. Só a gestão.",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeProfissional"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfissionalDoStudio"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/profissionais/{codigo}/situacao": {
      "put": {
        "tags": [
          "Studio"
        ],
        "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/ProfissionalDoStudio"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/profissionais/{codigo}/expediente": {
      "get": {
        "tags": [
          "Studio"
        ],
        "summary": "As faixas da semana (dia 1 = segunda … 7 = domingo). O balcão vê todos; o profissional, o próprio.",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExpedienteDoProfissional"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Studio"
        ],
        "summary": "Troca a semana inteira. Só a gestão.",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeExpediente"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExpedienteDoProfissional"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/servicos": {
      "get": {
        "tags": [
          "Studio"
        ],
        "summary": "A tabela de serviços.",
        "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/PaginaOfServicoDoStudio"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Studio"
        ],
        "summary": "Só a gestão.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeServico"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServicoDoStudio"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/servicos/{codigo}": {
      "put": {
        "tags": [
          "Studio"
        ],
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeServico"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServicoDoStudio"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/servicos/{codigo}/situacao": {
      "put": {
        "tags": [
          "Studio"
        ],
        "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/ServicoDoStudio"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/servicos/sugeridos": {
      "post": {
        "tags": [
          "Studio"
        ],
        "summary": "Cria os serviços sugeridos do ramo (nulo = todos), com preço zero; pula o nome que já existe. Só a gestão.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeServicosSugeridos"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServicosSugeridosCriados"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/agendamentos": {
      "post": {
        "tags": [
          "Studio"
        ],
        "summary": "Marca (409 horario_ocupado, salvo encaixe). Balcão.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeAgendamento"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgendamentoDoStudio"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/agendamentos/{codigo}": {
      "get": {
        "tags": [
          "Studio"
        ],
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgendamentoDoStudio"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Studio"
        ],
        "summary": "Remarca, troca o profissional, o serviço ou o cliente (só o que ainda não começou). Balcão.",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeAgendamento"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgendamentoDoStudio"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/agendamentos/{codigo}/confirmar": {
      "post": {
        "tags": [
          "Studio"
        ],
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgendamentoDoStudio"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/agendamentos/{codigo}/chegou": {
      "post": {
        "tags": [
          "Studio"
        ],
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgendamentoDoStudio"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/agendamentos/{codigo}/iniciar": {
      "post": {
        "tags": [
          "Studio"
        ],
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgendamentoDoStudio"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/agendamentos/{codigo}/concluir": {
      "post": {
        "tags": [
          "Studio"
        ],
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgendamentoDoStudio"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/agendamentos/{codigo}/faltou": {
      "post": {
        "tags": [
          "Studio"
        ],
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgendamentoDoStudio"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/agendamentos/{codigo}/cancelar": {
      "post": {
        "tags": [
          "Studio"
        ],
        "summary": "Cancela com motivo. Balcão.",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeCancelamento"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgendamentoDoStudio"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/agendamentos/{codigo}/lembrete": {
      "post": {
        "tags": [
          "Studio"
        ],
        "summary": "Registra que o balcão mandou o lembrete (o painel monta o wa.me).",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgendamentoDoStudio"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Studio"
        ],
        "summary": "Desfaz o registro do lembrete.",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgendamentoDoStudio"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/comandas": {
      "get": {
        "tags": [
          "Studio"
        ],
        "summary": "As comandas do dia (hoje, sem dizer), as abertas primeiro. Balcão.",
        "parameters": [
          {
            "name": "dia",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "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/PaginaOfResumoDaComanda"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Studio"
        ],
        "summary": "Abre a comanda de hoje do cliente, já com os horários dele no dia.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeComanda"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ComandaDoStudio"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/comandas/{codigo}": {
      "get": {
        "tags": [
          "Studio"
        ],
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ComandaDoStudio"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/comandas/{codigo}/servicos": {
      "post": {
        "tags": [
          "Studio"
        ],
        "summary": "Põe um horário da agenda ({agendamento}) ou um serviço avulso ({servico, profissional, preco?}).",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeServicoNaComanda"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ComandaDoStudio"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/comandas/{codigo}/produtos": {
      "post": {
        "tags": [
          "Studio"
        ],
        "summary": "Põe um produto (preço de agora congelado; quem vendeu, opcional).",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeProdutoNaComanda"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ComandaDoStudio"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/comandas/{codigo}/itens/{item}": {
      "delete": {
        "tags": [
          "Studio"
        ],
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "item",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ComandaDoStudio"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/comandas/{codigo}/desconto": {
      "put": {
        "tags": [
          "Studio"
        ],
        "summary": "O desconto da comanda inteira, em reais.",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeDesconto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ComandaDoStudio"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/comandas/{codigo}/fechar": {
      "post": {
        "tags": [
          "Studio"
        ],
        "summary": "Fecha numa transação: pagamentos (várias formas; troco só em dinheiro), caixa, baixa do estoque, comissões e os horários concluídos.",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeFechamento"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ComandaDoStudio"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/comandas/{codigo}/cancelar": {
      "post": {
        "tags": [
          "Studio"
        ],
        "summary": "Cancela a comanda aberta; os horários ficam livres para outra comanda.",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ComandaDoStudio"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/comandas/{codigo}/estornar": {
      "post": {
        "tags": [
          "Studio"
        ],
        "summary": "Estorna a comanda fechada: o caixa, o estoque e as comissões não pagas (a paga recusa). Só a gestão.",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeEstorno"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ComandaDoStudio"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/produtos": {
      "get": {
        "tags": [
          "Studio"
        ],
        "summary": "Os produtos de revenda (ativos, sem dizer), os abaixo do mínimo primeiro. Balcão.",
        "parameters": [
          {
            "name": "busca",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "situacao",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "abaixoDoMinimo",
            "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/PaginaOfProdutoDoStudio"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Studio"
        ],
        "summary": "Cadastra (estoqueInicial entra como a primeira entrada). Só a gestão.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeProdutoDoStudio"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProdutoDoStudio"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/produtos/{codigo}": {
      "get": {
        "tags": [
          "Studio"
        ],
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProdutoDoStudio"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Studio"
        ],
        "summary": "Edita nome, marca, preço, custo e mínimo. Só a gestão.",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeProdutoDoStudio"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProdutoDoStudio"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/produtos/{codigo}/situacao": {
      "put": {
        "tags": [
          "Studio"
        ],
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeSituacaoDoProduto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProdutoDoStudio"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/produtos/{codigo}/entrada": {
      "post": {
        "tags": [
          "Studio"
        ],
        "summary": "A compra de estoque. Balcão.",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeEntradaDeEstoque"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProdutoDoStudio"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/produtos/{codigo}/ajuste": {
      "post": {
        "tags": [
          "Studio"
        ],
        "summary": "O ajuste com motivo; nunca deixa o estoque negativo. Só a gestão.",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeAjusteDeEstoque"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProdutoDoStudio"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/produtos/{codigo}/movimentos": {
      "get": {
        "tags": [
          "Studio"
        ],
        "summary": "O livro do estoque do produto, do mais novo ao mais antigo.",
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "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/PaginaOfMovimentoDoProduto"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/fiscal/emitente": {
      "get": {
        "tags": [
          "Studio · Nota fiscal"
        ],
        "summary": "O cadastro fiscal do estabelecimento (nulo antes do primeiro), os regimes e o código de cada serviço. Só a gestão.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CadastroFiscalDoStudio"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Studio · Nota fiscal"
        ],
        "summary": "Cria ou corrige. Nasce em homologação; produção só depois de uma nota aceita em homologação. O certificado é do cofre de quem salva, com o documento do cadastro. Só a gestão.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDoEmitenteDoStudio"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmitenteDoStudio"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/fiscal/pendentes": {
      "get": {
        "tags": [
          "Studio · Nota fiscal"
        ],
        "summary": "As comandas fechadas com serviço e sem nota válida no período (o mês corrente, sem dizer), com o valor da nota. Só a gestão.",
        "parameters": [
          {
            "name": "de",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "ate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "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/PaginaOfComandaSemNota"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/fiscal/comandas/{comanda}": {
      "get": {
        "tags": [
          "Studio · Nota fiscal"
        ],
        "summary": "A nota da comanda (o selo) e, para a gestão, a prévia do que a nota vai dizer. Balcão.",
        "parameters": [
          {
            "name": "comanda",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotaDaComanda"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/fiscal/comandas/{comanda}/emitir": {
      "post": {
        "tags": [
          "Studio · Nota fiscal"
        ],
        "summary": "Emite a NFS-e da comanda fechada (valor = a parte do salão nos serviços). Precisa do certificado destravado (409 cofre_trancado). A recusa da Receita volta inteira. Só a gestão.",
        "parameters": [
          {
            "name": "comanda",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/components/schemas/PedidoDeEmissaoDaNota"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResultadoDaNotaDoStudio"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/fiscal/emitir-em-lote": {
      "post": {
        "tags": [
          "Studio · Nota fiscal"
        ],
        "summary": "Uma nota por comanda, em sequência, cada uma gravada antes da próxima; o resultado de cada uma. Até 50. Só a gestão.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeNotasEmLoteDoStudio"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResultadoDoLoteDoStudio"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/fiscal/notas": {
      "get": {
        "tags": [
          "Studio · Nota fiscal"
        ],
        "summary": "As notas emitidas no período (o mês corrente, sem dizer), das mais novas. Só a gestão.",
        "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": "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/PaginaOfNotaFiscalDoStudio"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/fiscal/notas/{nota}": {
      "get": {
        "tags": [
          "Studio · Nota fiscal"
        ],
        "parameters": [
          {
            "name": "nota",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotaFiscalDoStudio"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/studio/fiscal/notas/{nota}/xml": {
      "get": {
        "tags": [
          "Studio · Nota fiscal"
        ],
        "summary": "O XML da NFS-e — o documento legal, como a Receita o assinou (download).",
        "parameters": [
          {
            "name": "nota",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/studio/fiscal/notas/{nota}/danfse": {
      "get": {
        "tags": [
          "Studio · Nota fiscal"
        ],
        "summary": "O DANFSe — o papel da nota, desenhado do XML guardado.",
        "parameters": [
          {
            "name": "nota",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/v1/studio/fiscal/notas/{nota}/cancelar": {
      "post": {
        "tags": [
          "Studio · Nota fiscal"
        ],
        "summary": "Cancela pelo evento e101101, com motivo, até o dia 15 do mês seguinte ao da emissão. Só a gestão.",
        "parameters": [
          {
            "name": "nota",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PedidoDeCancelamentoDaNotaDoStudio"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CancelamentoDaNotaDoStudio"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AbaRespondida": {
        "required": [
          "id",
          "nome",
          "remetente",
          "assunto",
          "ordem"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "nome": {
            "type": "string"
          },
          "remetente": {
            "type": "string"
          },
          "assunto": {
            "type": "string"
          },
          "ordem": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "AberturaDoWhatsapp": {
        "required": [
          "chave",
          "tipo",
          "numero",
          "texto",
          "link",
          "abertoEm"
        ],
        "type": "object",
        "properties": {
          "chave": {
            "type": "string"
          },
          "tipo": {
            "type": "string"
          },
          "numero": {
            "type": "string"
          },
          "texto": {
            "type": "string"
          },
          "link": {
            "type": "string"
          },
          "abertoEm": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "AcaoDaSemana": {
        "required": [
          "lista",
          "codigo",
          "indicador",
          "oQue",
          "quem",
          "onde",
          "ateQuando",
          "pessoas",
          "urgente"
        ],
        "type": "object",
        "properties": {
          "lista": {
            "type": "string"
          },
          "codigo": {
            "type": "string"
          },
          "indicador": {
            "type": "string"
          },
          "oQue": {
            "type": "string"
          },
          "quem": {
            "type": "string"
          },
          "onde": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LugarDaAcao"
            }
          },
          "ateQuando": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "pessoas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "urgente": {
            "type": "boolean"
          }
        }
      },
      "AcaoDoCadastroAps": {
        "required": [
          "chave",
          "titulo",
          "quem",
          "onde",
          "regra",
          "situacao",
          "provavel",
          "passos",
          "prazo",
          "valor",
          "linkCnes",
          "tratada"
        ],
        "type": "object",
        "properties": {
          "chave": {
            "type": "string"
          },
          "titulo": {
            "type": "string"
          },
          "quem": {
            "type": "string"
          },
          "onde": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LugarDoVinculoAps"
            }
          },
          "regra": {
            "$ref": "#/components/schemas/RegraDaAcaoAps"
          },
          "situacao": {
            "type": "string"
          },
          "provavel": {
            "type": "boolean"
          },
          "passos": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "prazo": {
            "$ref": "#/components/schemas/PrazoDaAcaoAps"
          },
          "valor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "linkCnes": {
            "type": [
              "null",
              "string"
            ]
          },
          "tratada": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/TratadaAps"
              }
            ]
          },
          "perde": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/PerdeORepasseAps"
            }
          }
        }
      },
      "AcaoRecomendada": {
        "required": [
          "prioridade",
          "tema",
          "titulo",
          "porque",
          "comoFazer",
          "emJogo",
          "prazo",
          "baseLegal",
          "evidencia"
        ],
        "type": "object",
        "properties": {
          "prioridade": {
            "type": "string"
          },
          "tema": {
            "type": "string"
          },
          "titulo": {
            "type": "string"
          },
          "porque": {
            "type": "string"
          },
          "comoFazer": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "emJogo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "prazo": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "baseLegal": {
            "type": "string"
          },
          "evidencia": {
            "type": [
              "null",
              "string"
            ]
          },
          "chave": {
            "type": "string",
            "default": ""
          },
          "tratada": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/AcaoTratada"
              }
            ]
          },
          "modulo": {
            "type": [
              "null",
              "string"
            ]
          },
          "perde": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/PerdeORepasseAps"
            }
          }
        }
      },
      "AcaoTratada": {
        "required": [
          "em",
          "por",
          "nota"
        ],
        "type": "object",
        "properties": {
          "em": {
            "type": "string",
            "format": "date-time"
          },
          "por": {
            "type": "string"
          },
          "nota": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "AcessoAIdentidade": {
        "required": [
          "em",
          "quem",
          "acao"
        ],
        "type": "object",
        "properties": {
          "em": {
            "type": "string",
            "format": "date-time"
          },
          "quem": {
            "type": "string"
          },
          "acao": {
            "type": "string"
          }
        }
      },
      "AcessoAoApp": {
        "required": [
          "token",
          "nomeDoApp"
        ],
        "type": "object",
        "properties": {
          "token": {
            "type": "string"
          },
          "nomeDoApp": {
            "type": "string"
          }
        }
      },
      "AcessoDoProfissional": {
        "required": [
          "usuario",
          "email",
          "papel",
          "ativo"
        ],
        "type": "object",
        "properties": {
          "usuario": {
            "type": "string",
            "format": "uuid"
          },
          "email": {
            "type": "string"
          },
          "papel": {
            "type": "string"
          },
          "ativo": {
            "type": "boolean"
          }
        }
      },
      "AchadoDeConformidade": {
        "required": [
          "regra",
          "severidade",
          "mensagem",
          "comoCorrigir",
          "onde",
          "fundamento",
          "versaoParametro"
        ],
        "type": "object",
        "properties": {
          "regra": {
            "type": "string"
          },
          "severidade": {
            "type": "string"
          },
          "mensagem": {
            "type": "string"
          },
          "comoCorrigir": {
            "type": [
              "null",
              "string"
            ]
          },
          "onde": {
            "type": "string"
          },
          "fundamento": {
            "type": [
              "null",
              "string"
            ]
          },
          "versaoParametro": {
            "type": [
              "null",
              "string"
            ]
          },
          "pecaId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "secaoCodigo": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "AcoesDaManifestacao": {
        "required": [
          "classificar",
          "encaminhar",
          "iniciarAnalise",
          "despachar",
          "responder",
          "prorrogar",
          "pedirComplementacao",
          "arquivar",
          "conflito",
          "verIdentidade",
          "reemitirChave",
          "reabrir",
          "eliminarIdentidade",
          "reemissoesRestantes"
        ],
        "type": "object",
        "properties": {
          "classificar": {
            "type": "boolean"
          },
          "encaminhar": {
            "type": "boolean"
          },
          "iniciarAnalise": {
            "type": "boolean"
          },
          "despachar": {
            "type": "boolean"
          },
          "responder": {
            "type": "boolean"
          },
          "prorrogar": {
            "type": "boolean"
          },
          "pedirComplementacao": {
            "type": "boolean"
          },
          "arquivar": {
            "type": "boolean"
          },
          "conflito": {
            "type": "boolean"
          },
          "verIdentidade": {
            "type": "boolean"
          },
          "reemitirChave": {
            "type": "boolean"
          },
          "reabrir": {
            "type": "boolean"
          },
          "eliminarIdentidade": {
            "type": "boolean"
          },
          "reemissoesRestantes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "AcsDaCompetenciaAps": {
        "required": [
          "microarea",
          "cns",
          "nome",
          "ine",
          "situacao",
          "motivo"
        ],
        "type": "object",
        "properties": {
          "microarea": {
            "type": [
              "null",
              "string"
            ]
          },
          "cns": {
            "type": "string"
          },
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "ine": {
            "type": [
              "null",
              "string"
            ]
          },
          "situacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "motivo": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "AcsDoPagamentoAps": {
        "required": [
          "cns",
          "ine",
          "nomeDaEquipe",
          "cnes",
          "vinculo",
          "cargaHoraria",
          "situacao",
          "motivo",
          "valorReferencia"
        ],
        "type": "object",
        "properties": {
          "cns": {
            "type": "string"
          },
          "ine": {
            "type": [
              "null",
              "string"
            ]
          },
          "nomeDaEquipe": {
            "type": [
              "null",
              "string"
            ]
          },
          "cnes": {
            "type": [
              "null",
              "string"
            ]
          },
          "vinculo": {
            "type": [
              "null",
              "string"
            ]
          },
          "cargaHoraria": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "situacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "motivo": {
            "type": [
              "null",
              "string"
            ]
          },
          "valorReferencia": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "AcsDoPagamentoResumoAps": {
        "required": [
          "mes",
          "competenciaCnes",
          "teto",
          "credenciados",
          "pagos",
          "glosados",
          "diretos",
          "indiretos",
          "valorReferencia",
          "cnesConsultado",
          "porEquipe",
          "pagina"
        ],
        "type": "object",
        "properties": {
          "mes": {
            "type": "string"
          },
          "competenciaCnes": {
            "type": "string"
          },
          "teto": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "credenciados": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pagos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "glosados": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "diretos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "indiretos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "valorReferencia": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "cnesConsultado": {
            "type": "boolean"
          },
          "porEquipe": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AcsPorEquipeAps"
            }
          },
          "pagina": {
            "$ref": "#/components/schemas/PaginaOfAcsDoPagamentoAps"
          }
        }
      },
      "AcsDoPlano": {
        "required": [
          "microarea",
          "agente",
          "carteira",
          "visitadasNoMes",
          "faltam",
          "esperado",
          "ritmo",
          "proximoDia",
          "cotaDoDia",
          "cotaNecessaria",
          "cabe",
          "urgentes",
          "ultimaVisitaRegistrada",
          "ausente",
          "ultimoRoteiro"
        ],
        "type": "object",
        "properties": {
          "microarea": {
            "type": "string"
          },
          "agente": {
            "type": [
              "null",
              "string"
            ]
          },
          "carteira": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "visitadasNoMes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "faltam": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "esperado": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "ritmo": {
            "type": "string"
          },
          "proximoDia": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "cotaDoDia": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "cotaNecessaria": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "cabe": {
            "type": "boolean"
          },
          "urgentes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "ultimaVisitaRegistrada": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "ausente": {
            "type": [
              "null",
              "string"
            ]
          },
          "ultimoRoteiro": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/RoteiroAnterior"
              }
            ]
          },
          "recusas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32",
            "default": 0
          },
          "prioritarias": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32",
            "default": 0
          },
          "foraDoMes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32",
            "default": 0
          },
          "semListas": {
            "type": "boolean",
            "default": false
          },
          "unidade": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "AcsPorEquipeAps": {
        "required": [
          "ine",
          "nome",
          "noExtrato",
          "pagos",
          "noCnes"
        ],
        "type": "object",
        "properties": {
          "ine": {
            "type": [
              "null",
              "string"
            ]
          },
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "noExtrato": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pagos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "noCnes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "AditivoDoContrato": {
        "required": [
          "numero",
          "tipo",
          "valor",
          "valorFormatado",
          "dataDeAssinatura",
          "justificativa",
          "autor"
        ],
        "type": "object",
        "properties": {
          "numero": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "tipo": {
            "$ref": "#/components/schemas/Opcao"
          },
          "valor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "valorFormatado": {
            "type": [
              "null",
              "string"
            ]
          },
          "dataDeAssinatura": {
            "type": "string"
          },
          "justificativa": {
            "type": "string"
          },
          "autor": {
            "type": "string"
          }
        }
      },
      "AditivoEnviado": {
        "required": [
          "tipo",
          "valor",
          "dataDeAssinatura",
          "justificativa"
        ],
        "type": "object",
        "properties": {
          "tipo": {
            "type": [
              "null",
              "string"
            ]
          },
          "valor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "dataDeAssinatura": {
            "type": [
              "null",
              "string"
            ]
          },
          "justificativa": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "AdministradorDoTenantResumo": {
        "required": [
          "codigo",
          "nome",
          "email",
          "ativo",
          "senhaProvisoria",
          "ultimoAcessoEm"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string",
            "format": "uuid"
          },
          "nome": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "ativo": {
            "type": "boolean"
          },
          "senhaProvisoria": {
            "type": "boolean"
          },
          "ultimoAcessoEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        }
      },
      "AgendaDoPec": {
        "required": [
          "ligada",
          "horarios",
          "ultimaEm",
          "ultimaDeuCerto",
          "falha",
          "atualizadaEm",
          "lidos",
          "semTelefone"
        ],
        "type": "object",
        "properties": {
          "ligada": {
            "type": "boolean"
          },
          "horarios": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "ultimaEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "ultimaDeuCerto": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "falha": {
            "type": [
              "null",
              "string"
            ]
          },
          "atualizadaEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "lidos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "semTelefone": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "AgendaDoPeriodo": {
        "required": [
          "de",
          "ate",
          "profissionais",
          "bloqueios",
          "agendamentos"
        ],
        "type": "object",
        "properties": {
          "de": {
            "type": "string",
            "format": "date"
          },
          "ate": {
            "type": "string",
            "format": "date"
          },
          "profissionais": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProfissionalNaAgenda"
            }
          },
          "bloqueios": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BloqueioNaAgenda"
            }
          },
          "agendamentos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AgendamentoDoStudio"
            }
          }
        }
      },
      "AgendamentoDaAgenda": {
        "required": [
          "id",
          "pacienteId",
          "paciente",
          "telefone",
          "profissionalId",
          "profissional",
          "unidadeId",
          "unidade",
          "servicoId",
          "servico",
          "inicio",
          "fim",
          "situacao",
          "encaixe",
          "origem",
          "observacao",
          "motivoCancelamento",
          "situacaoDoWhatsApp",
          "erroDoWhatsApp",
          "avisadoEm",
          "resposta",
          "respondidoEm",
          "mensagem"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "pacienteId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "paciente": {
            "type": "string"
          },
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "profissionalId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "profissional": {
            "type": "string"
          },
          "unidadeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "unidade": {
            "type": "string"
          },
          "servicoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "servico": {
            "type": [
              "null",
              "string"
            ]
          },
          "inicio": {
            "type": "string"
          },
          "fim": {
            "type": "string"
          },
          "situacao": {
            "type": "string"
          },
          "encaixe": {
            "type": "boolean"
          },
          "origem": {
            "type": "string"
          },
          "observacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "motivoCancelamento": {
            "type": [
              "null",
              "string"
            ]
          },
          "situacaoDoWhatsApp": {
            "type": [
              "null",
              "string"
            ]
          },
          "erroDoWhatsApp": {
            "type": [
              "null",
              "string"
            ]
          },
          "avisadoEm": {
            "type": [
              "null",
              "string"
            ]
          },
          "resposta": {
            "type": [
              "null",
              "string"
            ]
          },
          "respondidoEm": {
            "type": [
              "null",
              "string"
            ]
          },
          "mensagem": {
            "type": "string"
          },
          "telefoneContato": {
            "type": [
              "null",
              "string"
            ]
          },
          "telefoneDoPaciente": {
            "type": [
              "null",
              "string"
            ]
          },
          "marcadoPor": {
            "type": [
              "null",
              "string"
            ]
          },
          "pec": {
            "type": [
              "null",
              "string"
            ]
          },
          "pediuContatoEm": {
            "type": [
              "null",
              "string"
            ]
          },
          "acs": {
            "type": [
              "null",
              "string"
            ]
          },
          "microarea": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "AgendamentoDaCliente": {
        "required": [
          "codigo",
          "inicio",
          "fim",
          "servicoNome",
          "profissionalNome",
          "situacao",
          "situacaoRotulo",
          "podeCancelar"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string",
            "format": "uuid"
          },
          "inicio": {
            "type": "string"
          },
          "fim": {
            "type": "string"
          },
          "servicoNome": {
            "type": "string"
          },
          "profissionalNome": {
            "type": "string"
          },
          "situacao": {
            "type": "string"
          },
          "situacaoRotulo": {
            "type": "string"
          },
          "podeCancelar": {
            "type": "boolean"
          }
        }
      },
      "AgendamentoDaConversa": {
        "required": [
          "codigo",
          "inicio",
          "servicoNome",
          "profissionalNome"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string",
            "format": "uuid"
          },
          "inicio": {
            "type": "string"
          },
          "servicoNome": {
            "type": "string"
          },
          "profissionalNome": {
            "type": "string"
          }
        }
      },
      "AgendamentoDoStudio": {
        "required": [
          "codigo",
          "cliente",
          "clienteNome",
          "clienteCelular",
          "profissional",
          "profissionalNome",
          "servico",
          "servicoNome",
          "inicio",
          "fim",
          "duracaoMinutos",
          "preco",
          "situacao",
          "situacaoRotulo",
          "origem",
          "encaixe",
          "observacoes",
          "motivoCancelamento",
          "lembreteEnviadoEm",
          "comanda"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string",
            "format": "uuid"
          },
          "cliente": {
            "type": "string",
            "format": "uuid"
          },
          "clienteNome": {
            "type": "string"
          },
          "clienteCelular": {
            "type": [
              "null",
              "string"
            ]
          },
          "profissional": {
            "type": "string",
            "format": "uuid"
          },
          "profissionalNome": {
            "type": "string"
          },
          "servico": {
            "type": "string",
            "format": "uuid"
          },
          "servicoNome": {
            "type": "string"
          },
          "inicio": {
            "type": "string"
          },
          "fim": {
            "type": "string"
          },
          "duracaoMinutos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "preco": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "situacao": {
            "type": "string"
          },
          "situacaoRotulo": {
            "type": "string"
          },
          "origem": {
            "type": "string"
          },
          "encaixe": {
            "type": "boolean"
          },
          "observacoes": {
            "type": [
              "null",
              "string"
            ]
          },
          "motivoCancelamento": {
            "type": [
              "null",
              "string"
            ]
          },
          "lembreteEnviadoEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "comanda": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "lembreteCanal": {
            "type": [
              "null",
              "string"
            ]
          },
          "lembreteResposta": {
            "type": [
              "null",
              "string"
            ]
          },
          "lembreteRespondidoEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "confirmadoEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "confirmadoPelo": {
            "type": [
              "null",
              "string"
            ]
          },
          "canceladoPelo": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "AgendamentoEnviado": {
        "required": [
          "pacienteId",
          "profissionalId",
          "unidadeId",
          "servicoId",
          "inicio",
          "duracaoMinutos",
          "observacao",
          "espontaneo"
        ],
        "type": "object",
        "properties": {
          "pacienteId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "profissionalId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "unidadeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "servicoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "inicio": {
            "type": [
              "null",
              "string"
            ]
          },
          "duracaoMinutos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "observacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "espontaneo": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "telefoneContato": {
            "type": [
              "null",
              "string"
            ]
          },
          "nomeDoPacienteNovo": {
            "type": [
              "null",
              "string"
            ]
          },
          "soAqui": {
            "type": [
              "null",
              "boolean"
            ]
          }
        }
      },
      "AgendamentoNoPec": {
        "required": [
          "inicio",
          "situacao",
          "profissional",
          "ocupacao",
          "unidade"
        ],
        "type": "object",
        "properties": {
          "inicio": {
            "type": "string",
            "format": "date-time"
          },
          "situacao": {
            "type": "string"
          },
          "profissional": {
            "type": [
              "null",
              "string"
            ]
          },
          "ocupacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "unidade": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "AgendamentoPublicoMarcado": {
        "required": [
          "codigo",
          "salao",
          "servico",
          "profissional",
          "inicio",
          "duracaoMinutos",
          "preco"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string",
            "format": "uuid"
          },
          "salao": {
            "type": "string"
          },
          "servico": {
            "type": "string"
          },
          "profissional": {
            "type": "string"
          },
          "inicio": {
            "type": "string"
          },
          "duracaoMinutos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "preco": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "acesso": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "AlcanceDoRecado": {
        "required": [
          "pessoas"
        ],
        "type": "object",
        "properties": {
          "pessoas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "AlertaDeDado": {
        "required": [
          "codigo",
          "gravidade",
          "frase",
          "dono",
          "prazo",
          "pessoas",
          "lista",
          "onde"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string"
          },
          "gravidade": {
            "type": "string"
          },
          "frase": {
            "type": "string"
          },
          "dono": {
            "type": "string"
          },
          "prazo": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "pessoas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "lista": {
            "type": [
              "null",
              "string"
            ]
          },
          "onde": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "AlertaDeLote": {
        "required": [
          "loteId",
          "produtoId",
          "produto",
          "unidade",
          "lote",
          "validade",
          "diasParaVencer",
          "almoxarifadoId",
          "almoxarifado",
          "quantidade"
        ],
        "type": "object",
        "properties": {
          "loteId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "produtoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "produto": {
            "type": "string"
          },
          "unidade": {
            "type": "string"
          },
          "lote": {
            "type": "string"
          },
          "validade": {
            "type": "string"
          },
          "diasParaVencer": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "almoxarifadoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "almoxarifado": {
            "type": "string"
          },
          "quantidade": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "AlertaDeMinimo": {
        "required": [
          "produtoId",
          "produto",
          "unidade",
          "saldo",
          "estoqueMinimo"
        ],
        "type": "object",
        "properties": {
          "produtoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "produto": {
            "type": "string"
          },
          "unidade": {
            "type": "string"
          },
          "saldo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "estoqueMinimo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "AlertaDoCadastroAps": {
        "required": [
          "tipo",
          "texto"
        ],
        "type": "object",
        "properties": {
          "tipo": {
            "type": "string"
          },
          "texto": {
            "type": "string"
          }
        }
      },
      "AlertaDoSino": {
        "required": [
          "manifestacaoId",
          "protocolo",
          "diasRestantes",
          "prazoFinal"
        ],
        "type": "object",
        "properties": {
          "manifestacaoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "protocolo": {
            "type": "string"
          },
          "diasRestantes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "prazoFinal": {
            "type": "string",
            "format": "date"
          }
        }
      },
      "AlertasDoEstoque": {
        "required": [
          "hoje",
          "vencidos",
          "totalVencidos",
          "vencendo",
          "totalVencendo",
          "abaixoDoMinimo",
          "totalAbaixoDoMinimo"
        ],
        "type": "object",
        "properties": {
          "hoje": {
            "type": "string"
          },
          "vencidos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AlertaDeLote"
            }
          },
          "totalVencidos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "vencendo": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AlertaDeLote"
            }
          },
          "totalVencendo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "abaixoDoMinimo": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AlertaDeMinimo"
            }
          },
          "totalAbaixoDoMinimo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "AlmoxarifadoDoEstoque": {
        "required": [
          "id",
          "nome",
          "responsavel",
          "ativo"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "nome": {
            "type": "string"
          },
          "responsavel": {
            "type": [
              "null",
              "string"
            ]
          },
          "ativo": {
            "type": "boolean"
          }
        }
      },
      "AlmoxarifadoEnviado": {
        "required": [
          "nome",
          "responsavel"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "responsavel": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "AltaDeAuriculoEnviada": {
        "required": [
          "motivo",
          "nota"
        ],
        "type": "object",
        "properties": {
          "motivo": {
            "type": [
              "null",
              "string"
            ]
          },
          "nota": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "AlteracaoDoItem": {
        "required": [
          "quando",
          "quem",
          "mudanca"
        ],
        "type": "object",
        "properties": {
          "quando": {
            "type": "string",
            "format": "date-time"
          },
          "quem": {
            "type": [
              "null",
              "string"
            ]
          },
          "mudanca": {
            "type": "string"
          }
        }
      },
      "AlternativaDeRito": {
        "required": [
          "rito",
          "cabe",
          "porque"
        ],
        "type": "object",
        "properties": {
          "rito": {
            "$ref": "#/components/schemas/Opcao"
          },
          "cabe": {
            "type": "boolean"
          },
          "porque": {
            "type": "string"
          }
        }
      },
      "AnaliseDeTextoEnviada": {
        "required": [
          "nome",
          "tipo",
          "texto"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "tipo": {
            "type": [
              "null",
              "string"
            ]
          },
          "texto": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "AndamentoPublico": {
        "required": [
          "protocolo",
          "tipo",
          "status",
          "registradaEm",
          "prazoResposta",
          "situacaoPrazo",
          "situacaoPrazoRotulo",
          "movimentos",
          "resposta",
          "complementacaoPendente",
          "podeReabrir",
          "acessosAIdentidade"
        ],
        "type": "object",
        "properties": {
          "protocolo": {
            "type": "string"
          },
          "tipo": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "registradaEm": {
            "type": "string",
            "format": "date"
          },
          "prazoResposta": {
            "type": "string",
            "format": "date"
          },
          "situacaoPrazo": {
            "type": "string"
          },
          "situacaoPrazoRotulo": {
            "type": "string"
          },
          "movimentos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MovimentoPublico"
            }
          },
          "resposta": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/RespostaPublica"
              }
            ]
          },
          "complementacaoPendente": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ComplementacaoPendente"
              }
            ]
          },
          "podeReabrir": {
            "type": "boolean"
          },
          "acessosAIdentidade": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AcessoAIdentidade"
            }
          }
        }
      },
      "AnexoDaMensagem": {
        "required": [
          "id",
          "nome",
          "tipo",
          "tamanhoBytes",
          "embutido",
          "cid"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "nome": {
            "type": "string"
          },
          "tipo": {
            "type": "string"
          },
          "tamanhoBytes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "embutido": {
            "type": "boolean"
          },
          "cid": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "AnexoParaEnviar": {
        "required": [
          "nome",
          "tipo",
          "base64"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "tipo": {
            "type": [
              "null",
              "string"
            ]
          },
          "base64": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "AnexoResumo": {
        "required": [
          "id",
          "nomeOriginal",
          "tipo",
          "tamanhoBytes",
          "varredura",
          "liberado",
          "bloqueio"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "nomeOriginal": {
            "type": "string"
          },
          "tipo": {
            "type": "string"
          },
          "tamanhoBytes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "varredura": {
            "type": "string"
          },
          "liberado": {
            "type": "boolean"
          },
          "bloqueio": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "AniversarianteDoStudio": {
        "required": [
          "codigo",
          "nome",
          "celular",
          "nascimento",
          "dia"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string",
            "format": "uuid"
          },
          "nome": {
            "type": "string"
          },
          "celular": {
            "type": [
              "null",
              "string"
            ]
          },
          "nascimento": {
            "type": "string",
            "format": "date"
          },
          "dia": {
            "type": "string",
            "format": "date"
          }
        }
      },
      "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"
          }
        }
      },
      "AnoEducacao": {
        "required": [
          "exercicio",
          "ultimoBimestre",
          "mde",
          "remuneracaoFundeb",
          "fundebNaoAplicado"
        ],
        "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"
          },
          "mde": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "remuneracaoFundeb": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "fundebNaoAplicado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "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"
          }
        }
      },
      "AnoNaEvolucao": {
        "required": [
          "exercicio",
          "bimestres"
        ],
        "type": "object",
        "properties": {
          "exercicio": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "bimestres": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PontoDaEvolucao"
            }
          }
        }
      },
      "AnoNoEstado": {
        "required": [
          "exercicio",
          "percentual",
          "posicao",
          "municipios",
          "cumprem",
          "media",
          "mediana",
          "menor",
          "maior",
          "porte",
          "posicaoNoPorte",
          "municipiosDoPorte",
          "medianaDoPorte"
        ],
        "type": "object",
        "properties": {
          "exercicio": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "percentual": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "posicao": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "municipios": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "cumprem": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "media": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "mediana": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "menor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "maior": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "porte": {
            "type": [
              "null",
              "string"
            ]
          },
          "posicaoNoPorte": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "municipiosDoPorte": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "medianaDoPorte": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "AnonymousTypeOfboolean": {
        "required": [
          "podeVer"
        ],
        "type": "object",
        "properties": {
          "podeVer": {
            "type": "boolean"
          }
        }
      },
      "AnonymousTypeOfbooleanAndObject[]": {
        "required": [
          "disponivel",
          "provedores"
        ],
        "type": "object",
        "properties": {
          "disponivel": {
            "type": "boolean"
          },
          "provedores": {
            "type": [
              "null",
              "array"
            ]
          }
        }
      },
      "AnonymousTypeOfstring": {
        "required": [
          "texto"
        ],
        "type": "object",
        "properties": {
          "texto": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "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"
            ]
          },
          "percentualApurado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "coluna": {
            "type": "string",
            "default": "liquidada"
          }
        }
      },
      "AparelhoDoPaciente": {
        "required": [
          "id",
          "aparelho",
          "criadoEm",
          "usadoEm"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "aparelho": {
            "type": [
              "null",
              "string"
            ]
          },
          "criadoEm": {
            "type": "string",
            "format": "date-time"
          },
          "usadoEm": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ApoioDaOuvidoria": {
        "required": [
          "secretarias",
          "setores",
          "assuntos",
          "locais"
        ],
        "type": "object",
        "properties": {
          "secretarias": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SecretariaDaOuvidoria"
            }
          },
          "setores": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SetorDaOuvidoria"
            }
          },
          "assuntos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AssuntoDaOuvidoria"
            }
          },
          "locais": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LocalDaOuvidoria"
            }
          }
        }
      },
      "AppDoCidadaoPublico": {
        "required": [
          "slug",
          "nome",
          "municipio",
          "uf",
          "logoPrefeituraEm",
          "logoSaudeEm",
          "telefoneOficial",
          "mensagemDeEntrada"
        ],
        "type": "object",
        "properties": {
          "slug": {
            "type": "string"
          },
          "nome": {
            "type": "string"
          },
          "municipio": {
            "type": "string"
          },
          "uf": {
            "type": "string"
          },
          "logoPrefeituraEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "logoSaudeEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "telefoneOficial": {
            "type": [
              "null",
              "string"
            ]
          },
          "mensagemDeEntrada": {
            "type": "string"
          },
          "paleta": {
            "type": "string",
            "default": "verde"
          },
          "sobre": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/SobreDoApp"
              }
            ]
          },
          "brasaoEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        }
      },
      "AppDoPaciente": {
        "required": [
          "usaOApp",
          "aparelhos",
          "dependentes",
          "responsaveis"
        ],
        "type": "object",
        "properties": {
          "usaOApp": {
            "type": "boolean"
          },
          "aparelhos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AparelhoDoPaciente"
            }
          },
          "dependentes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VinculoNoPainel"
            }
          },
          "responsaveis": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VinculoNoPainel"
            }
          }
        }
      },
      "ApuracaoDoItem": {
        "required": [
          "media",
          "mediaFormatada",
          "mediana",
          "medianaFormatada",
          "menor",
          "menorFormatado",
          "maior",
          "maiorFormatado",
          "desvioPadrao",
          "desvioPadraoFormatado",
          "coeficienteDeVariacao",
          "coeficienteDeVariacaoFormatado",
          "metodo",
          "valorApurado",
          "valorApuradoFormatado",
          "precosConsiderados",
          "precosDescartados",
          "precosSaneados",
          "fontesDistintas",
          "minimoDeFontes",
          "atendeAoMinimoDeFontes",
          "apoiadaSoEmFonteComplementar",
          "amplitudePercentual",
          "amplitudePercentualFormatada",
          "memoriaDeCalculo"
        ],
        "type": "object",
        "properties": {
          "media": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "mediaFormatada": {
            "type": "string"
          },
          "mediana": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "medianaFormatada": {
            "type": "string"
          },
          "menor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "menorFormatado": {
            "type": "string"
          },
          "maior": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "maiorFormatado": {
            "type": "string"
          },
          "desvioPadrao": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "desvioPadraoFormatado": {
            "type": "string"
          },
          "coeficienteDeVariacao": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "coeficienteDeVariacaoFormatado": {
            "type": "string"
          },
          "metodo": {
            "$ref": "#/components/schemas/Opcao"
          },
          "valorApurado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "valorApuradoFormatado": {
            "type": "string"
          },
          "precosConsiderados": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "precosDescartados": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "precosSaneados": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "fontesDistintas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "minimoDeFontes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "atendeAoMinimoDeFontes": {
            "type": "boolean"
          },
          "apoiadaSoEmFonteComplementar": {
            "type": "boolean"
          },
          "amplitudePercentual": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "amplitudePercentualFormatada": {
            "type": "string"
          },
          "memoriaDeCalculo": {
            "type": "string"
          },
          "metodoPeloCv": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Opcao"
              }
            ]
          },
          "adotadoPeloOrgao": {
            "type": "boolean",
            "default": false
          }
        }
      },
      "ArboviroseDoMunicipio": {
        "required": [
          "doenca",
          "nome",
          "lida",
          "ultima",
          "casosNoAno",
          "notificacoesNoAno",
          "semanas",
          "coletadoEm"
        ],
        "type": "object",
        "properties": {
          "doenca": {
            "type": "string"
          },
          "nome": {
            "type": "string"
          },
          "lida": {
            "type": "boolean"
          },
          "ultima": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/SemanaDeArboviroseResposta"
              }
            ]
          },
          "casosNoAno": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "notificacoesNoAno": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "semanas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SemanaDeArboviroseResposta"
            }
          },
          "coletadoEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        }
      },
      "ArbovirosesResposta": {
        "required": [
          "ano",
          "anos",
          "doencas",
          "fonte",
          "regras"
        ],
        "type": "object",
        "properties": {
          "ano": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "anos": {
            "type": "array",
            "items": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          "doencas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ArboviroseDoMunicipio"
            }
          },
          "fonte": {
            "type": "string"
          },
          "regras": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "AreaDeAtendimento": {
        "required": [
          "codigo",
          "nome"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string"
          },
          "nome": {
            "type": "string"
          }
        }
      },
      "AssinaturaDoWebmail": {
        "required": [
          "texto"
        ],
        "type": "object",
        "properties": {
          "texto": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "AssuntoDaOuvidoria": {
        "required": [
          "id",
          "secretariaId",
          "secretaria",
          "nome",
          "setorSugeridoId",
          "setorSugerido",
          "ativo"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "secretariaId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "secretaria": {
            "type": "string"
          },
          "nome": {
            "type": "string"
          },
          "setorSugeridoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "setorSugerido": {
            "type": [
              "null",
              "string"
            ]
          },
          "ativo": {
            "type": "boolean"
          }
        }
      },
      "AssuntoDaOuvidoriaEnviado": {
        "required": [
          "secretariaId",
          "nome",
          "setorSugeridoId",
          "ativo"
        ],
        "type": "object",
        "properties": {
          "secretariaId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "setorSugeridoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "ativo": {
            "type": [
              "null",
              "boolean"
            ]
          }
        }
      },
      "AtendimentoNoPec": {
        "required": [
          "data",
          "tipo",
          "profissional",
          "ocupacao",
          "unidade",
          "semanasDeGestacao"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": "string",
            "format": "date-time"
          },
          "tipo": {
            "type": [
              "null",
              "string"
            ]
          },
          "profissional": {
            "type": [
              "null",
              "string"
            ]
          },
          "ocupacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "unidade": {
            "type": [
              "null",
              "string"
            ]
          },
          "semanasDeGestacao": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "AtivacaoEnviada": {
        "required": [
          "ativa"
        ],
        "type": "object",
        "properties": {
          "ativa": {
            "type": "boolean"
          }
        }
      },
      "AtualizacaoDoTelefone": {
        "required": [
          "celular",
          "semTelefone",
          "contatoTelefone",
          "contatoNome",
          "contatoParentesco",
          "casa"
        ],
        "type": "object",
        "properties": {
          "celular": {
            "type": [
              "null",
              "string"
            ]
          },
          "semTelefone": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "contatoTelefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "contatoNome": {
            "type": [
              "null",
              "string"
            ]
          },
          "contatoParentesco": {
            "type": [
              "null",
              "string"
            ]
          },
          "casa": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/TelefoneDaCasaEnviado"
              }
            ]
          }
        }
      },
      "AtualizacaoEnviada": {
        "required": [
          "indice"
        ],
        "type": "object",
        "properties": {
          "indice": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "AusenciaDaAcsResumo": {
        "required": [
          "id",
          "microarea",
          "agente",
          "de",
          "ate",
          "motivo",
          "observacao",
          "criadoPor"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "microarea": {
            "type": "string"
          },
          "agente": {
            "type": [
              "null",
              "string"
            ]
          },
          "de": {
            "type": "string",
            "format": "date"
          },
          "ate": {
            "type": "string",
            "format": "date"
          },
          "motivo": {
            "type": "string"
          },
          "observacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "criadoPor": {
            "type": "string"
          }
        }
      },
      "AusenciaEnviada": {
        "required": [
          "microarea",
          "de",
          "ate",
          "motivo",
          "observacao"
        ],
        "type": "object",
        "properties": {
          "microarea": {
            "type": [
              "null",
              "string"
            ]
          },
          "de": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "ate": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "motivo": {
            "type": [
              "null",
              "string"
            ]
          },
          "observacao": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "AvisoAvulso": {
        "required": [
          "paciente",
          "telefone",
          "unidade",
          "texto"
        ],
        "type": "object",
        "properties": {
          "paciente": {
            "type": [
              "null",
              "string"
            ]
          },
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "unidade": {
            "type": [
              "null",
              "string"
            ]
          },
          "texto": {
            "type": [
              "null",
              "string"
            ]
          },
          "pacienteId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          }
        }
      },
      "AvisoDaEscadaVisto": {
        "required": [
          "id",
          "pacienteId",
          "agendamentoId",
          "tipo",
          "canal",
          "para",
          "destinatario",
          "telefone",
          "sigiloso",
          "estado",
          "erro",
          "sms",
          "smsEm",
          "motivo",
          "por",
          "em"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "pacienteId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "agendamentoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "tipo": {
            "type": "string"
          },
          "canal": {
            "type": "string"
          },
          "para": {
            "type": "string"
          },
          "destinatario": {
            "type": [
              "null",
              "string"
            ]
          },
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "sigiloso": {
            "type": "boolean"
          },
          "estado": {
            "type": "string"
          },
          "erro": {
            "type": [
              "null",
              "string"
            ]
          },
          "sms": {
            "type": [
              "null",
              "string"
            ]
          },
          "smsEm": {
            "type": [
              "null",
              "string"
            ]
          },
          "motivo": {
            "type": [
              "null",
              "string"
            ]
          },
          "por": {
            "type": "string"
          },
          "em": {
            "type": "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"
          }
        }
      },
      "AvisoDaMarcacao": {
        "required": [
          "tipo",
          "situacao",
          "em",
          "desatualizado",
          "erro",
          "resposta"
        ],
        "type": "object",
        "properties": {
          "tipo": {
            "type": "string"
          },
          "situacao": {
            "type": "string"
          },
          "em": {
            "type": "string"
          },
          "desatualizado": {
            "type": "boolean"
          },
          "erro": {
            "type": [
              "null",
              "string"
            ]
          },
          "resposta": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "AvisoNoApp": {
        "required": [
          "id",
          "tipo",
          "titulo",
          "texto",
          "para",
          "em",
          "lido",
          "botoes",
          "resposta"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "tipo": {
            "type": "string"
          },
          "titulo": {
            "type": "string"
          },
          "texto": {
            "type": "string"
          },
          "para": {
            "type": "string"
          },
          "em": {
            "type": "string",
            "format": "date-time"
          },
          "lido": {
            "type": "boolean"
          },
          "botoes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "resposta": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "AvisosPedidos": {
        "required": [
          "saida",
          "destinatarios"
        ],
        "type": "object",
        "properties": {
          "saida": {
            "type": [
              "null",
              "string"
            ]
          },
          "destinatarios": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "BaixaDoEstoque": {
        "required": [
          "id",
          "almoxarifadoId",
          "almoxarifado",
          "motivo",
          "justificativa",
          "situacao",
          "itens",
          "valor",
          "pedidaPor",
          "pedidaEm",
          "decididaPor",
          "decididaEm",
          "motivoDaRecusa",
          "podeDecidir"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "almoxarifadoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "almoxarifado": {
            "type": "string"
          },
          "motivo": {
            "type": "string"
          },
          "justificativa": {
            "type": "string"
          },
          "situacao": {
            "type": "string"
          },
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ItemDeBaixaDoEstoque"
            }
          },
          "valor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "pedidaPor": {
            "type": [
              "null",
              "string"
            ]
          },
          "pedidaEm": {
            "type": "string",
            "format": "date-time"
          },
          "decididaPor": {
            "type": [
              "null",
              "string"
            ]
          },
          "decididaEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "motivoDaRecusa": {
            "type": [
              "null",
              "string"
            ]
          },
          "podeDecidir": {
            "type": "boolean"
          }
        }
      },
      "BaixaEnviada": {
        "required": [
          "almoxarifadoId",
          "motivo",
          "justificativa",
          "itens"
        ],
        "type": "object",
        "properties": {
          "almoxarifadoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "motivo": {
            "type": [
              "null",
              "string"
            ]
          },
          "justificativa": {
            "type": [
              "null",
              "string"
            ]
          },
          "itens": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/ItemDeBaixaEnviado"
            }
          }
        }
      },
      "BimestreEducacao": {
        "required": [
          "bimestre",
          "mde",
          "remuneracaoFundeb",
          "fundebNaoAplicado"
        ],
        "type": "object",
        "properties": {
          "bimestre": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "mde": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "remuneracaoFundeb": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "fundebNaoAplicado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "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"
          },
          "percentualApurado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "aspsApurado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "coluna": {
            "type": "string",
            "default": "liquidada"
          },
          "aviso": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "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"
          }
        }
      },
      "BloqueioDaAgenda": {
        "required": [
          "id",
          "profissionalId",
          "inicio",
          "fim",
          "motivo"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "profissionalId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "inicio": {
            "type": "string"
          },
          "fim": {
            "type": "string"
          },
          "motivo": {
            "type": "string"
          }
        }
      },
      "BloqueioDeLoteEnviado": {
        "required": [
          "motivo"
        ],
        "type": "object",
        "properties": {
          "motivo": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "BloqueioEnviado": {
        "required": [
          "profissionalId",
          "inicio",
          "fim",
          "motivo"
        ],
        "type": "object",
        "properties": {
          "profissionalId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "inicio": {
            "type": [
              "null",
              "string"
            ]
          },
          "fim": {
            "type": [
              "null",
              "string"
            ]
          },
          "motivo": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "BloqueioNaAgenda": {
        "required": [
          "codigo",
          "profissional",
          "inicio",
          "fim",
          "motivo"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string",
            "format": "uuid"
          },
          "profissional": {
            "type": "string",
            "format": "uuid"
          },
          "inicio": {
            "type": "string"
          },
          "fim": {
            "type": "string"
          },
          "motivo": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "BuscaEmNotasFiscais": {
        "required": [
          "termo",
          "notasLidas",
          "candidatos",
          "medianaFormatada",
          "avisos"
        ],
        "type": "object",
        "properties": {
          "termo": {
            "type": "string"
          },
          "notasLidas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "candidatos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CandidatoDeNotaFiscal"
            }
          },
          "medianaFormatada": {
            "type": [
              "null",
              "string"
            ]
          },
          "avisos": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "BuscaNoCatalogo": {
        "required": [
          "carregando",
          "padroes"
        ],
        "type": "object",
        "properties": {
          "carregando": {
            "type": "boolean"
          },
          "padroes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PadraoDoCatalogoLido"
            }
          }
        }
      },
      "BuscaNoComprasGov": {
        "required": [
          "tipo",
          "codigo",
          "uf",
          "meses",
          "encontrados",
          "candidatos",
          "medianaFormatada",
          "avisos"
        ],
        "type": "object",
        "properties": {
          "tipo": {
            "type": "string"
          },
          "codigo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "uf": {
            "type": [
              "null",
              "string"
            ]
          },
          "meses": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "encontrados": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "candidatos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CandidatoDoComprasGov"
            }
          },
          "medianaFormatada": {
            "type": [
              "null",
              "string"
            ]
          },
          "avisos": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "BuscaNoPncp": {
        "required": [
          "termo",
          "uf",
          "meses",
          "comprasLidas",
          "candidatos",
          "medianaFormatada",
          "avisos"
        ],
        "type": "object",
        "properties": {
          "termo": {
            "type": "string"
          },
          "uf": {
            "type": [
              "null",
              "string"
            ]
          },
          "meses": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "comprasLidas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "candidatos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CandidatoDoPncp"
            }
          },
          "medianaFormatada": {
            "type": [
              "null",
              "string"
            ]
          },
          "avisos": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "atas": {
            "type": "boolean",
            "default": false
          }
        }
      },
      "CadastroAps": {
        "required": [
          "composicaoMinimaPct",
          "vinculosIrregulares",
          "acsDiretos",
          "acsIndiretos",
          "equipesSemCusteio",
          "vinculoMultiplo",
          "observacao"
        ],
        "type": "object",
        "properties": {
          "composicaoMinimaPct": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "vinculosIrregulares": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "acsDiretos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "acsIndiretos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "equipesSemCusteio": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "vinculoMultiplo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "observacao": {
            "type": "string"
          }
        }
      },
      "CadastroCnesAps": {
        "required": [
          "competencia",
          "competencias",
          "resumo",
          "equipes",
          "regras",
          "criterios"
        ],
        "type": "object",
        "properties": {
          "competencia": {
            "type": "string"
          },
          "competencias": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "resumo": {
            "$ref": "#/components/schemas/ResumoDoCadastroAps"
          },
          "equipes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EquipeDoCadastroAps"
            }
          },
          "regras": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RegraDeComposicaoAps"
            }
          },
          "criterios": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "CadastroDaCompetenciaAps": {
        "required": [
          "competencia",
          "equipes",
          "profissionais",
          "acs",
          "composicaoIncompleta",
          "vinculoMultiplo"
        ],
        "type": "object",
        "properties": {
          "competencia": {
            "type": "string"
          },
          "equipes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "profissionais": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "acs": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "composicaoIncompleta": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "vinculoMultiplo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "CadastroFiscalDoStudio": {
        "required": [
          "emitente",
          "regimes",
          "servicos"
        ],
        "type": "object",
        "properties": {
          "emitente": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/EmitenteDoStudio"
              }
            ]
          },
          "regimes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OpcaoFiscalDoStudio"
            }
          },
          "servicos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TributacaoDoServico"
            }
          }
        }
      },
      "CadastroNoPec": {
        "required": [
          "nomeMae",
          "nomePai",
          "microarea",
          "tipoSanguineo",
          "unidade",
          "equipe",
          "profissionalDaFamilia"
        ],
        "type": "object",
        "properties": {
          "nomeMae": {
            "type": [
              "null",
              "string"
            ]
          },
          "nomePai": {
            "type": [
              "null",
              "string"
            ]
          },
          "microarea": {
            "type": [
              "null",
              "string"
            ]
          },
          "tipoSanguineo": {
            "type": [
              "null",
              "string"
            ]
          },
          "unidade": {
            "type": [
              "null",
              "string"
            ]
          },
          "equipe": {
            "type": [
              "null",
              "string"
            ]
          },
          "profissionalDaFamilia": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CaixaDeEmailResumo": {
        "required": [
          "usuario",
          "endereco",
          "cotaMb",
          "usoMb"
        ],
        "type": "object",
        "properties": {
          "usuario": {
            "type": "string"
          },
          "endereco": {
            "type": "string"
          },
          "cotaMb": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "usoMb": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "CaixaDoPeriodo": {
        "required": [
          "de",
          "ate",
          "entradas",
          "saidas",
          "saldo",
          "porForma",
          "lancamentos"
        ],
        "type": "object",
        "properties": {
          "de": {
            "type": "string",
            "format": "date"
          },
          "ate": {
            "type": "string",
            "format": "date"
          },
          "entradas": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "saidas": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "saldo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "porForma": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TotalPorForma"
            }
          },
          "lancamentos": {
            "$ref": "#/components/schemas/PaginaOfLancamentoDoCaixa"
          }
        }
      },
      "CaixaRespondida": {
        "required": [
          "endereco",
          "nome",
          "deveTrocarSenha"
        ],
        "type": "object",
        "properties": {
          "endereco": {
            "type": "string"
          },
          "nome": {
            "type": "string"
          },
          "deveTrocarSenha": {
            "type": "boolean"
          }
        }
      },
      "CaixaUnificada": {
        "required": [
          "itens",
          "total",
          "contasComFalha"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ItemUnificado"
            }
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "contasComFalha": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "CancelamentoDaNotaDoStudio": {
        "required": [
          "cancelada",
          "nota",
          "situacaoDaReceita",
          "respostaDaReceita"
        ],
        "type": "object",
        "properties": {
          "cancelada": {
            "type": "boolean"
          },
          "nota": {
            "$ref": "#/components/schemas/NotaFiscalDoStudio"
          },
          "situacaoDaReceita": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "respostaDaReceita": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CancelamentoEnviado": {
        "required": [
          "motivo"
        ],
        "type": "object",
        "properties": {
          "motivo": {
            "type": [
              "null",
              "string"
            ]
          },
          "soAqui": {
            "type": [
              "null",
              "boolean"
            ]
          }
        }
      },
      "CandidatoARegra": {
        "required": [
          "impugnacaoId",
          "processoNumero",
          "impugnante",
          "dataProtocolo",
          "numero",
          "descricao",
          "clausulaAtacada",
          "deOficio",
          "julgamento",
          "fundamentacao"
        ],
        "type": "object",
        "properties": {
          "impugnacaoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "processoNumero": {
            "type": "string"
          },
          "impugnante": {
            "type": "string"
          },
          "dataProtocolo": {
            "type": "string"
          },
          "numero": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "descricao": {
            "type": "string"
          },
          "clausulaAtacada": {
            "type": [
              "null",
              "string"
            ]
          },
          "deOficio": {
            "type": "boolean"
          },
          "julgamento": {
            "$ref": "#/components/schemas/Opcao"
          },
          "fundamentacao": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CandidatoDeNotaFiscal": {
        "required": [
          "chave",
          "descricao",
          "ncm",
          "unidade",
          "unidadeDiferente",
          "quantidade",
          "valorUnitario",
          "valorUnitarioFormatado",
          "foraDaCurva",
          "fornecedor",
          "cnpjFornecedor",
          "municipioFornecedor",
          "orgao",
          "dataEmissao",
          "link",
          "jaNaCesta"
        ],
        "type": "object",
        "properties": {
          "chave": {
            "type": "string"
          },
          "descricao": {
            "type": "string"
          },
          "ncm": {
            "type": [
              "null",
              "string"
            ]
          },
          "unidade": {
            "type": [
              "null",
              "string"
            ]
          },
          "unidadeDiferente": {
            "type": "boolean"
          },
          "quantidade": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "valorUnitario": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "valorUnitarioFormatado": {
            "type": "string"
          },
          "foraDaCurva": {
            "type": [
              "null",
              "string"
            ]
          },
          "fornecedor": {
            "type": [
              "null",
              "string"
            ]
          },
          "cnpjFornecedor": {
            "type": [
              "null",
              "string"
            ]
          },
          "municipioFornecedor": {
            "type": [
              "null",
              "string"
            ]
          },
          "orgao": {
            "type": "string"
          },
          "dataEmissao": {
            "type": "string"
          },
          "link": {
            "type": "string"
          },
          "jaNaCesta": {
            "type": "boolean"
          }
        }
      },
      "CandidatoDoComprasGov": {
        "required": [
          "chave",
          "descricao",
          "unidade",
          "unidadeDiferente",
          "quantidade",
          "valorUnitario",
          "valorUnitarioFormatado",
          "foraDaCurva",
          "fornecedor",
          "marca",
          "orgao",
          "municipio",
          "uf",
          "esfera",
          "data",
          "link",
          "jaNaCesta"
        ],
        "type": "object",
        "properties": {
          "chave": {
            "type": "string"
          },
          "descricao": {
            "type": "string"
          },
          "unidade": {
            "type": [
              "null",
              "string"
            ]
          },
          "unidadeDiferente": {
            "type": "boolean"
          },
          "quantidade": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "valorUnitario": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "valorUnitarioFormatado": {
            "type": "string"
          },
          "foraDaCurva": {
            "type": [
              "null",
              "string"
            ]
          },
          "fornecedor": {
            "type": [
              "null",
              "string"
            ]
          },
          "marca": {
            "type": [
              "null",
              "string"
            ]
          },
          "orgao": {
            "type": "string"
          },
          "municipio": {
            "type": [
              "null",
              "string"
            ]
          },
          "uf": {
            "type": [
              "null",
              "string"
            ]
          },
          "esfera": {
            "type": "string"
          },
          "data": {
            "type": [
              "null",
              "string"
            ]
          },
          "link": {
            "type": "string"
          },
          "jaNaCesta": {
            "type": "boolean"
          }
        }
      },
      "CandidatoDoPncp": {
        "required": [
          "chave",
          "orgao",
          "municipio",
          "uf",
          "esfera",
          "modalidade",
          "numeroDeControle",
          "numeroItem",
          "descricao",
          "unidade",
          "quantidade",
          "valorUnitario",
          "valorUnitarioFormatado",
          "valorEstimado",
          "fornecedor",
          "porte",
          "dataResultado",
          "link",
          "jaNaCesta"
        ],
        "type": "object",
        "properties": {
          "chave": {
            "type": "string"
          },
          "orgao": {
            "type": "string"
          },
          "municipio": {
            "type": [
              "null",
              "string"
            ]
          },
          "uf": {
            "type": [
              "null",
              "string"
            ]
          },
          "esfera": {
            "type": "string"
          },
          "modalidade": {
            "type": [
              "null",
              "string"
            ]
          },
          "numeroDeControle": {
            "type": "string"
          },
          "numeroItem": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "descricao": {
            "type": "string"
          },
          "unidade": {
            "type": [
              "null",
              "string"
            ]
          },
          "quantidade": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "valorUnitario": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "valorUnitarioFormatado": {
            "type": "string"
          },
          "valorEstimado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "fornecedor": {
            "type": [
              "null",
              "string"
            ]
          },
          "porte": {
            "type": [
              "null",
              "string"
            ]
          },
          "dataResultado": {
            "type": [
              "null",
              "string"
            ]
          },
          "link": {
            "type": "string"
          },
          "jaNaCesta": {
            "type": "boolean"
          },
          "ata": {
            "type": [
              "null",
              "string"
            ]
          },
          "ataVigenteAte": {
            "type": [
              "null",
              "string"
            ]
          },
          "objetoDaCompra": {
            "type": [
              "null",
              "string"
            ]
          },
          "casouPeloObjeto": {
            "type": "boolean",
            "default": false
          }
        }
      },
      "CapacidadesDoStudio": {
        "required": [
          "papel",
          "ehGestor",
          "ehBalcao",
          "ehProfissional",
          "profissional",
          "ramo",
          "fuso",
          "nome",
          "logomarca"
        ],
        "type": "object",
        "properties": {
          "papel": {
            "type": "string"
          },
          "ehGestor": {
            "type": "boolean"
          },
          "ehBalcao": {
            "type": "boolean"
          },
          "ehProfissional": {
            "type": "boolean"
          },
          "profissional": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "ramo": {
            "type": "string"
          },
          "fuso": {
            "type": "string"
          },
          "nome": {
            "type": "string"
          },
          "logomarca": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CartaoDeRemedios": {
        "required": [
          "pacienteId",
          "nome",
          "cpf",
          "cns",
          "dataNascimento",
          "usaOApp",
          "remedios"
        ],
        "type": "object",
        "properties": {
          "pacienteId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "nome": {
            "type": "string"
          },
          "cpf": {
            "type": [
              "null",
              "string"
            ]
          },
          "cns": {
            "type": [
              "null",
              "string"
            ]
          },
          "dataNascimento": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "usaOApp": {
            "type": "boolean"
          },
          "remedios": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RemedioNoCartao"
            }
          },
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "telefoneContato": {
            "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"
            }
          }
        }
      },
      "CasaDoPaciente": {
        "required": [
          "id",
          "endereco",
          "telefone",
          "de",
          "parentesco",
          "precisa"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "endereco": {
            "type": "string"
          },
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "de": {
            "type": [
              "null",
              "string"
            ]
          },
          "parentesco": {
            "type": [
              "null",
              "string"
            ]
          },
          "precisa": {
            "type": "boolean"
          }
        }
      },
      "CasaDoRoteiro": {
        "required": [
          "domicilioId",
          "posicao",
          "endereco",
          "bairro",
          "telefone",
          "moradores",
          "motivo",
          "ultimaVisita",
          "ficouDe",
          "ausenteEm",
          "pessoas"
        ],
        "type": "object",
        "properties": {
          "domicilioId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "posicao": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "endereco": {
            "type": "string"
          },
          "bairro": {
            "type": [
              "null",
              "string"
            ]
          },
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "moradores": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "motivo": {
            "type": "string"
          },
          "ultimaVisita": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "ficouDe": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "ausenteEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "pessoas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PessoaDoRoteiro"
            }
          }
        }
      },
      "CasaQueRecusou": {
        "required": [
          "domicilioId",
          "microarea",
          "agente",
          "endereco",
          "bairro",
          "telefone",
          "recusouEm",
          "ultimaVisita",
          "pessoas"
        ],
        "type": "object",
        "properties": {
          "domicilioId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "microarea": {
            "type": "string"
          },
          "agente": {
            "type": [
              "null",
              "string"
            ]
          },
          "endereco": {
            "type": "string"
          },
          "bairro": {
            "type": [
              "null",
              "string"
            ]
          },
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "recusouEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "ultimaVisita": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "pessoas": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "CasaSemTelefone": {
        "required": [
          "id",
          "endereco",
          "bairro",
          "microarea",
          "equipe",
          "responsavel",
          "moradores",
          "telefoneDoPec",
          "motivo"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "endereco": {
            "type": "string"
          },
          "bairro": {
            "type": [
              "null",
              "string"
            ]
          },
          "microarea": {
            "type": [
              "null",
              "string"
            ]
          },
          "equipe": {
            "type": [
              "null",
              "string"
            ]
          },
          "responsavel": {
            "type": [
              "null",
              "string"
            ]
          },
          "moradores": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "telefoneDoPec": {
            "type": [
              "null",
              "string"
            ]
          },
          "motivo": {
            "type": "string"
          }
        }
      },
      "CatalogoDeAuriculo": {
        "required": [
          "pontos",
          "materiais",
          "contraindicacoes",
          "reacoes",
          "motivosDeAlta",
          "protocolos"
        ],
        "type": "object",
        "properties": {
          "pontos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PontoDoCatalogo"
            }
          },
          "materiais": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "contraindicacoes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContraindicacaoDoCatalogo"
            }
          },
          "reacoes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "motivosDeAlta": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "protocolos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProtocoloDeAuriculoDaLista"
            }
          }
        }
      },
      "CategoriaDaAgenda": {
        "required": [
          "valor",
          "rotulo",
          "temConsequencia"
        ],
        "type": "object",
        "properties": {
          "valor": {
            "type": "string"
          },
          "rotulo": {
            "type": "string"
          },
          "temConsequencia": {
            "type": "boolean"
          }
        }
      },
      "CategoriaDeEstoque": {
        "required": [
          "id",
          "nome",
          "lote",
          "validade",
          "registroAnvisa",
          "certificadoDeAprovacao",
          "subelemento",
          "avisarComDias",
          "ativa",
          "produtos"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "nome": {
            "type": "string"
          },
          "lote": {
            "type": "string"
          },
          "validade": {
            "type": "string"
          },
          "registroAnvisa": {
            "type": "string"
          },
          "certificadoDeAprovacao": {
            "type": "string"
          },
          "subelemento": {
            "type": [
              "null",
              "string"
            ]
          },
          "avisarComDias": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "ativa": {
            "type": "boolean"
          },
          "produtos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "CategoriaEnviada": {
        "required": [
          "nome",
          "lote",
          "validade",
          "registroAnvisa",
          "certificadoDeAprovacao",
          "subelemento",
          "avisarComDias"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "lote": {
            "type": [
              "null",
              "string"
            ]
          },
          "validade": {
            "type": [
              "null",
              "string"
            ]
          },
          "registroAnvisa": {
            "type": [
              "null",
              "string"
            ]
          },
          "certificadoDeAprovacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "subelemento": {
            "type": [
              "null",
              "string"
            ]
          },
          "avisarComDias": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "CategoriaVital": {
        "required": [
          "categoria",
          "nome",
          "quantidade",
          "percentual"
        ],
        "type": "object",
        "properties": {
          "categoria": {
            "type": "string"
          },
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "quantidade": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "percentual": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "CboDoProfissionalAps": {
        "required": [
          "cbo",
          "ocupacao"
        ],
        "type": "object",
        "properties": {
          "cbo": {
            "type": "string"
          },
          "ocupacao": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CenarioDaModalidadeAps": {
        "required": [
          "equipe",
          "modalidade",
          "pagas",
          "fixo",
          "qualidadePaga",
          "classificacaoInferida",
          "hoje",
          "posTransicao",
          "otimo",
          "vinculoPago",
          "vinculoOtimo",
          "norma"
        ],
        "type": "object",
        "properties": {
          "equipe": {
            "type": "string"
          },
          "modalidade": {
            "type": "string"
          },
          "pagas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "fixo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "qualidadePaga": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "classificacaoInferida": {
            "type": [
              "null",
              "string"
            ]
          },
          "hoje": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "posTransicao": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "otimo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "vinculoPago": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "vinculoOtimo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "norma": {
            "type": "string"
          }
        }
      },
      "CenariosAps": {
        "required": [
          "mes",
          "hoje",
          "posTransicao",
          "otimo",
          "porModalidade",
          "margemQualidade",
          "margemQualidadeSobreOPago",
          "margemVinculo",
          "regras"
        ],
        "type": "object",
        "properties": {
          "mes": {
            "type": "string"
          },
          "hoje": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "posTransicao": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "otimo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "porModalidade": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CenarioDaModalidadeAps"
            }
          },
          "margemQualidade": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "margemQualidadeSobreOPago": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "margemVinculo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "regras": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "CertificadoDoEmitente": {
        "required": [
          "codigo",
          "apelido",
          "titularNome",
          "titularDocumento",
          "validoAte",
          "vigente",
          "doMeuCofre",
          "dono",
          "destravado",
          "removido"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string",
            "format": "uuid"
          },
          "apelido": {
            "type": "string"
          },
          "titularNome": {
            "type": "string"
          },
          "titularDocumento": {
            "type": "string"
          },
          "validoAte": {
            "type": "string",
            "format": "date-time"
          },
          "vigente": {
            "type": "boolean"
          },
          "doMeuCofre": {
            "type": "boolean"
          },
          "dono": {
            "type": [
              "null",
              "string"
            ]
          },
          "destravado": {
            "type": "boolean"
          },
          "removido": {
            "type": "boolean"
          }
        }
      },
      "CertificadoNoCofre": {
        "required": [
          "codigo",
          "apelido",
          "tipo",
          "tipoRotulo",
          "titularNome",
          "titularDocumento",
          "impressaoDigital",
          "emissor",
          "validoDe",
          "validoAte",
          "vigente",
          "vencendo",
          "diasParaVencer",
          "bloqueado",
          "usadoEm",
          "assinaDocumento",
          "destravado",
          "segundosRestantes",
          "dono"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string",
            "format": "uuid"
          },
          "apelido": {
            "type": "string"
          },
          "tipo": {
            "type": "string"
          },
          "tipoRotulo": {
            "type": "string"
          },
          "titularNome": {
            "type": "string"
          },
          "titularDocumento": {
            "type": "string"
          },
          "impressaoDigital": {
            "type": "string"
          },
          "emissor": {
            "type": "string"
          },
          "validoDe": {
            "type": "string",
            "format": "date-time"
          },
          "validoAte": {
            "type": "string",
            "format": "date-time"
          },
          "vigente": {
            "type": "boolean"
          },
          "vencendo": {
            "type": "boolean"
          },
          "diasParaVencer": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "bloqueado": {
            "type": "boolean"
          },
          "usadoEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "assinaDocumento": {
            "type": "boolean"
          },
          "destravado": {
            "type": "boolean"
          },
          "segundosRestantes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "dono": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ChaveReemitida": {
        "required": [
          "protocolo",
          "chaveAcesso",
          "reemissoesRestantes"
        ],
        "type": "object",
        "properties": {
          "protocolo": {
            "type": "string"
          },
          "chaveAcesso": {
            "type": "string"
          },
          "reemissoesRestantes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "CidadeUsada": {
        "required": [
          "cidade",
          "locais"
        ],
        "type": "object",
        "properties": {
          "cidade": {
            "type": "string"
          },
          "locais": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ClassificacaoApsResposta": {
        "required": [
          "quadrimestre",
          "quadrimestres",
          "parcelas",
          "transicao",
          "avaliadas",
          "perdaEstimada",
          "regular",
          "abaixoDeBom",
          "porModalidade",
          "trajetoria",
          "indicadores",
          "vinculo",
          "regras"
        ],
        "type": "object",
        "properties": {
          "quadrimestre": {
            "type": "string"
          },
          "quadrimestres": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "parcelas": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "transicao": {
            "$ref": "#/components/schemas/TransicaoAps"
          },
          "avaliadas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "perdaEstimada": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "regular": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "abaixoDeBom": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "porModalidade": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ClassificacaoDaModalidadeAps"
            }
          },
          "trajetoria": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TrajetoriaAps"
            }
          },
          "indicadores": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IndicadorDeQualidadeAps"
            }
          },
          "vinculo": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VinculoDaModalidadeAps"
            }
          },
          "regras": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "detalheTecnico": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ClassificacaoDaModalidadeAps": {
        "required": [
          "modalidade",
          "otimo",
          "bom",
          "suficiente",
          "regular",
          "equipes",
          "perda",
          "estimado",
          "regra"
        ],
        "type": "object",
        "properties": {
          "modalidade": {
            "type": "string"
          },
          "otimo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "bom": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "suficiente": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "regular": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "equipes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "perda": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "estimado": {
            "type": "boolean"
          },
          "regra": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ClassificacaoEnviada": {
        "required": [
          "tipo",
          "secretariaId",
          "assuntoId"
        ],
        "type": "object",
        "properties": {
          "tipo": {
            "type": [
              "null",
              "string"
            ]
          },
          "secretariaId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "assuntoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          }
        }
      },
      "ClienteAnonimizado": {
        "required": [
          "cliente",
          "atendimentos",
          "comandas",
          "horariosCancelados",
          "mensagensApagadas"
        ],
        "type": "object",
        "properties": {
          "cliente": {
            "$ref": "#/components/schemas/ClienteDoStudio"
          },
          "atendimentos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "comandas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "horariosCancelados": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "mensagensApagadas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "acessosRevogados": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32",
            "default": 0
          }
        }
      },
      "ClienteDoStudio": {
        "required": [
          "codigo",
          "nome",
          "celular",
          "email",
          "nascimento",
          "observacoes",
          "ativo",
          "criadoEm"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string",
            "format": "uuid"
          },
          "nome": {
            "type": "string"
          },
          "celular": {
            "type": [
              "null",
              "string"
            ]
          },
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "nascimento": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "observacoes": {
            "type": [
              "null",
              "string"
            ]
          },
          "ativo": {
            "type": "boolean"
          },
          "criadoEm": {
            "type": "string",
            "format": "date-time"
          },
          "aceitaMensagensPromocionais": {
            "type": "boolean",
            "default": false
          },
          "aceitePromocionalEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "aceitePromocionalOrigem": {
            "type": [
              "null",
              "string"
            ]
          },
          "anonimizado": {
            "type": "boolean",
            "default": false
          },
          "anonimizadoEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "cpf": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ClinicoNoPec": {
        "required": [
          "atendimentos",
          "consultasDoPreNatal",
          "vacinas",
          "problemas",
          "remedios",
          "nascimento",
          "obstetricos"
        ],
        "type": "object",
        "properties": {
          "atendimentos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AtendimentoNoPec"
            }
          },
          "consultasDoPreNatal": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ConsultaDoPreNatalNoPec"
            }
          },
          "vacinas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VacinaNoPec"
            }
          },
          "problemas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProblemaNoPec"
            }
          },
          "remedios": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RemedioNoPec"
            }
          },
          "nascimento": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/NascimentoNoPec"
              }
            ]
          },
          "obstetricos": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ObstetricosNoPec"
              }
            ]
          }
        }
      },
      "CodigoDoAppPedido": {
        "required": [
          "mensagem"
        ],
        "type": "object",
        "properties": {
          "mensagem": {
            "type": "string"
          }
        }
      },
      "CodigoDoServicoNaNota": {
        "required": [
          "servico",
          "codigoTributacao"
        ],
        "type": "object",
        "properties": {
          "servico": {
            "type": "string",
            "format": "uuid"
          },
          "codigoTributacao": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CodigoIdentificado": {
        "required": [
          "bruto",
          "tipo",
          "gtin",
          "lote",
          "validade",
          "serie",
          "produto",
          "aviso"
        ],
        "type": "object",
        "properties": {
          "bruto": {
            "type": "string"
          },
          "tipo": {
            "type": "string"
          },
          "gtin": {
            "type": [
              "null",
              "string"
            ]
          },
          "lote": {
            "type": [
              "null",
              "string"
            ]
          },
          "validade": {
            "type": [
              "null",
              "string"
            ]
          },
          "serie": {
            "type": [
              "null",
              "string"
            ]
          },
          "produto": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ProdutoDoEstoque"
              }
            ]
          },
          "aviso": {
            "type": [
              "null",
              "string"
            ]
          },
          "cmed": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/MedicamentoDaCmed"
              }
            ]
          }
        }
      },
      "CodigosDeRecuperacaoGerados": {
        "required": [
          "codigos"
        ],
        "type": "object",
        "properties": {
          "codigos": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "CofreDoOrgao": {
        "required": [
          "itens"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CertificadoNoCofre"
            }
          }
        }
      },
      "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"
            ]
          }
        }
      },
      "ComandaDoStudio": {
        "required": [
          "codigo",
          "cliente",
          "clienteNome",
          "celular",
          "dia",
          "situacao",
          "situacaoRotulo",
          "observacao",
          "itens",
          "subtotal",
          "desconto",
          "total",
          "pago",
          "troco",
          "pagamentos",
          "abertaEm",
          "abertaPor",
          "fechadaEm",
          "fechadaPor",
          "estornadaEm",
          "motivoEstorno"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string",
            "format": "uuid"
          },
          "cliente": {
            "type": "string",
            "format": "uuid"
          },
          "clienteNome": {
            "type": "string"
          },
          "celular": {
            "type": [
              "null",
              "string"
            ]
          },
          "dia": {
            "type": "string",
            "format": "date"
          },
          "situacao": {
            "type": "string"
          },
          "situacaoRotulo": {
            "type": "string"
          },
          "observacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ItemDaComandaDoStudio"
            }
          },
          "subtotal": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "desconto": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "pago": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "troco": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "pagamentos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PagamentoDaComandaDoStudio"
            }
          },
          "abertaEm": {
            "type": "string",
            "format": "date-time"
          },
          "abertaPor": {
            "type": [
              "null",
              "string"
            ]
          },
          "fechadaEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "fechadaPor": {
            "type": [
              "null",
              "string"
            ]
          },
          "estornadaEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "motivoEstorno": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ComandaSemNota": {
        "required": [
          "comanda",
          "dia",
          "cliente",
          "clienteNome",
          "clienteCpf",
          "totalDaComanda",
          "valorDaNota",
          "temParceiro",
          "emDuvida",
          "impedimento"
        ],
        "type": "object",
        "properties": {
          "comanda": {
            "type": "string",
            "format": "uuid"
          },
          "dia": {
            "type": "string",
            "format": "date"
          },
          "cliente": {
            "type": "string",
            "format": "uuid"
          },
          "clienteNome": {
            "type": "string"
          },
          "clienteCpf": {
            "type": [
              "null",
              "string"
            ]
          },
          "totalDaComanda": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "valorDaNota": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "temParceiro": {
            "type": "boolean"
          },
          "emDuvida": {
            "type": "boolean"
          },
          "impedimento": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ComissaoDoItem": {
        "required": [
          "codigo",
          "comanda",
          "dia",
          "cliente",
          "servico",
          "base",
          "percentual",
          "valor",
          "paga",
          "pagaEm"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string",
            "format": "uuid"
          },
          "comanda": {
            "type": "string",
            "format": "uuid"
          },
          "dia": {
            "type": "string",
            "format": "date"
          },
          "cliente": {
            "type": "string"
          },
          "servico": {
            "type": "string"
          },
          "base": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "percentual": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "valor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "paga": {
            "type": "boolean"
          },
          "pagaEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        }
      },
      "ComissoesDoPeriodo": {
        "required": [
          "de",
          "ate",
          "profissionais"
        ],
        "type": "object",
        "properties": {
          "de": {
            "type": "string",
            "format": "date"
          },
          "ate": {
            "type": "string",
            "format": "date"
          },
          "profissionais": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ComissoesDoProfissional"
            }
          }
        }
      },
      "ComissoesDoProfissional": {
        "required": [
          "profissional",
          "nome",
          "aPagar",
          "pago",
          "itens"
        ],
        "type": "object",
        "properties": {
          "profissional": {
            "type": "string",
            "format": "uuid"
          },
          "nome": {
            "type": "string"
          },
          "aPagar": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "pago": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ComissaoDoItem"
            }
          }
        }
      },
      "ComissoesPagas": {
        "required": [
          "lancamento",
          "valor",
          "quantidade"
        ],
        "type": "object",
        "properties": {
          "lancamento": {
            "type": "string",
            "format": "uuid"
          },
          "valor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "quantidade": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "ComparacaoAps": {
        "required": [
          "mes",
          "recebido",
          "diferenca",
          "percentual"
        ],
        "type": "object",
        "properties": {
          "mes": {
            "type": "string"
          },
          "recebido": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "diferenca": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "percentual": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "ComparativoSiops": {
        "required": [
          "uf",
          "nomeDaUf",
          "anos",
          "composicao",
          "coletadoEm"
        ],
        "type": "object",
        "properties": {
          "uf": {
            "type": "string"
          },
          "nomeDaUf": {
            "type": "string"
          },
          "anos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AnoNoEstado"
            }
          },
          "composicao": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ComposicaoDaDespesa"
              }
            ]
          },
          "coletadoEm": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "CompetenciaAps": {
        "required": [
          "mes",
          "recebe",
          "parcelas",
          "equipes",
          "acs",
          "teto",
          "competenciaCnes"
        ],
        "type": "object",
        "properties": {
          "mes": {
            "type": "string"
          },
          "recebe": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "parcelas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ValorDoPlanoAps"
            }
          },
          "equipes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EquipeDaCompetenciaAps"
            }
          },
          "acs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AcsDaCompetenciaAps"
            }
          },
          "teto": {
            "$ref": "#/components/schemas/TetoAps"
          },
          "competenciaCnes": {
            "type": "string"
          }
        }
      },
      "ComplementacaoDoCidadao": {
        "required": [
          "protocolo",
          "chave",
          "texto"
        ],
        "type": "object",
        "properties": {
          "protocolo": {
            "type": [
              "null",
              "string"
            ]
          },
          "chave": {
            "type": [
              "null",
              "string"
            ]
          },
          "texto": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ComplementacaoPendente": {
        "required": [
          "id",
          "solicitadaEm",
          "pedido",
          "prazoParaResponder"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "solicitadaEm": {
            "type": "string",
            "format": "date"
          },
          "pedido": {
            "type": "string"
          },
          "prazoParaResponder": {
            "type": "string",
            "format": "date"
          }
        }
      },
      "ComplementacaoResumo": {
        "required": [
          "solicitadaEm",
          "pedido",
          "prazoParaResponder",
          "resposta",
          "respondidaEm"
        ],
        "type": "object",
        "properties": {
          "solicitadaEm": {
            "type": "string",
            "format": "date-time"
          },
          "pedido": {
            "type": "string"
          },
          "prazoParaResponder": {
            "type": "string",
            "format": "date"
          },
          "resposta": {
            "type": [
              "null",
              "string"
            ]
          },
          "respondidaEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        }
      },
      "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"
          }
        }
      },
      "ComponenteDoPagamentoAps": {
        "required": [
          "codigo",
          "plano",
          "descricao",
          "teto",
          "credenciadas",
          "homologadas",
          "pagas",
          "naoPagas",
          "fixo",
          "vinculo",
          "qualidade",
          "implantacao",
          "pagamento",
          "ajuste",
          "desconto",
          "total",
          "classificacaoQualidade",
          "classificacaoVinculo",
          "faixaEquidade"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "plano": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "descricao": {
            "type": "string"
          },
          "teto": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "credenciadas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "homologadas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pagas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "naoPagas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "fixo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "vinculo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "qualidade": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "implantacao": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "pagamento": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "ajuste": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "desconto": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "classificacaoQualidade": {
            "type": [
              "null",
              "string"
            ]
          },
          "classificacaoVinculo": {
            "type": [
              "null",
              "string"
            ]
          },
          "faixaEquidade": {
            "type": [
              "null",
              "string"
            ]
          },
          "perda": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/PerdaAps"
              }
            ]
          }
        }
      },
      "ComposicaoDaDespesa": {
        "required": [
          "exercicio",
          "partes"
        ],
        "type": "object",
        "properties": {
          "exercicio": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "partes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ParteDaDespesa"
            }
          }
        }
      },
      "ComposicaoDaEquipeAps": {
        "required": [
          "papel",
          "exigidos",
          "cargaMinima",
          "ok",
          "profissionais"
        ],
        "type": "object",
        "properties": {
          "papel": {
            "type": "string"
          },
          "exigidos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "cargaMinima": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "ok": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "profissionais": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProfissionalDaComposicaoAps"
            }
          }
        }
      },
      "ComposicaoDaPerdaAps": {
        "required": [
          "glosa",
          "proporcional",
          "qualidade",
          "vinculo",
          "descontos",
          "total",
          "completa"
        ],
        "type": "object",
        "properties": {
          "glosa": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "proporcional": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "qualidade": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "vinculo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "descontos": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "completa": {
            "type": "boolean"
          }
        }
      },
      "CompromissoDoAno": {
        "required": [
          "data",
          "tema",
          "titulo",
          "oQueFazer",
          "dinheiro",
          "confirmado",
          "fonte"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": "string",
            "format": "date"
          },
          "tema": {
            "type": "string"
          },
          "titulo": {
            "type": "string"
          },
          "oQueFazer": {
            "type": "string"
          },
          "dinheiro": {
            "type": "string"
          },
          "confirmado": {
            "type": "boolean"
          },
          "fonte": {
            "type": "string"
          }
        }
      },
      "CompromissoRespondido": {
        "required": [
          "id",
          "titulo",
          "inicio",
          "fim",
          "diaInteiro",
          "local",
          "notas",
          "cor"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "titulo": {
            "type": "string"
          },
          "inicio": {
            "type": "string",
            "format": "date-time"
          },
          "fim": {
            "type": "string",
            "format": "date-time"
          },
          "diaInteiro": {
            "type": "boolean"
          },
          "local": {
            "type": "string"
          },
          "notas": {
            "type": "string"
          },
          "cor": {
            "type": "string"
          }
        }
      },
      "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"
          }
        }
      },
      "ConclusaoDeTransferenciaEnviada": {
        "required": [
          "recebida"
        ],
        "type": "object",
        "properties": {
          "recebida": {
            "type": "boolean"
          }
        }
      },
      "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"
            ]
          }
        }
      },
      "ConexaoDoWhatsApp": {
        "required": [
          "qrCode",
          "codigoDePareamento"
        ],
        "type": "object",
        "properties": {
          "qrCode": {
            "type": [
              "null",
              "string"
            ]
          },
          "codigoDePareamento": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ConferenciaDoDominio": {
        "required": [
          "dominio",
          "em",
          "itens"
        ],
        "type": "object",
        "properties": {
          "dominio": {
            "type": "string"
          },
          "em": {
            "type": "string",
            "format": "date-time"
          },
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ItemConferido"
            }
          }
        }
      },
      "ConfiguracaoDoAgendamentoOnline": {
        "required": [
          "configurado",
          "slug",
          "ativo",
          "antecedenciaMinimaMinutos",
          "diasAFrente",
          "mensagem",
          "endereco"
        ],
        "type": "object",
        "properties": {
          "configurado": {
            "type": "boolean"
          },
          "slug": {
            "type": [
              "null",
              "string"
            ]
          },
          "ativo": {
            "type": "boolean"
          },
          "antecedenciaMinimaMinutos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "diasAFrente": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "mensagem": {
            "type": [
              "null",
              "string"
            ]
          },
          "endereco": {
            "type": [
              "null",
              "string"
            ]
          },
          "conversaComIa": {
            "type": "boolean",
            "default": true
          },
          "conversaDisponivel": {
            "type": "boolean",
            "default": false
          }
        }
      },
      "ConfiguracaoDoAppDoCidadao": {
        "required": [
          "nome",
          "slug",
          "ativo",
          "atualizadoEm",
          "atualizadoPor"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "ativo": {
            "type": "boolean"
          },
          "atualizadoEm": {
            "type": "string",
            "format": "date-time"
          },
          "atualizadoPor": {
            "type": "string"
          },
          "paleta": {
            "type": "string",
            "default": "verde"
          },
          "sobre": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/SobreDoApp"
              }
            ]
          }
        }
      },
      "ConfiguracaoDoAppEnviada": {
        "required": [
          "nome",
          "slug",
          "ativo"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "slug": {
            "type": [
              "null",
              "string"
            ]
          },
          "ativo": {
            "type": "boolean"
          },
          "paleta": {
            "type": [
              "null",
              "string"
            ]
          },
          "sobre": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/SobreDoApp"
              }
            ]
          }
        }
      },
      "ConfiguracaoDoPlano": {
        "required": [
          "diasDeFolga",
          "tetoPorDia",
          "podeAlterar"
        ],
        "type": "object",
        "properties": {
          "diasDeFolga": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "tetoPorDia": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "podeAlterar": {
            "type": "boolean"
          },
          "mesesEntreVisitas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "ConfiguracaoDoPlanoEnviada": {
        "required": [
          "diasDeFolga",
          "tetoPorDia"
        ],
        "type": "object",
        "properties": {
          "diasDeFolga": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "tetoPorDia": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "mesesEntreVisitas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "ConfiguracaoDosAvisosEnviada": {
        "required": [
          "termosSigilosos"
        ],
        "type": "object",
        "properties": {
          "termosSigilosos": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ConfiguracaoDosAvisosVista": {
        "required": [
          "termosSigilosos",
          "deFabrica",
          "termosDeFabrica"
        ],
        "type": "object",
        "properties": {
          "termosSigilosos": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "deFabrica": {
            "type": "boolean"
          },
          "termosDeFabrica": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ConfiguracoesDoAniversario": {
        "required": [
          "mensagemBanner",
          "textoParabens",
          "modeloBanner",
          "atualizadoEm",
          "atualizadoPor",
          "podeAlterar"
        ],
        "type": "object",
        "properties": {
          "mensagemBanner": {
            "type": [
              "null",
              "string"
            ]
          },
          "textoParabens": {
            "type": [
              "null",
              "string"
            ]
          },
          "modeloBanner": {
            "type": [
              "null",
              "string"
            ]
          },
          "atualizadoEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "atualizadoPor": {
            "type": [
              "null",
              "string"
            ]
          },
          "podeAlterar": {
            "type": "boolean"
          },
          "envioAutomatico": {
            "type": "boolean",
            "default": true
          },
          "modoDeTeste": {
            "type": "boolean",
            "default": false
          }
        }
      },
      "ConfiguracoesDoAniversarioEnviadas": {
        "required": [
          "mensagemBanner",
          "textoParabens",
          "modeloBanner"
        ],
        "type": "object",
        "properties": {
          "mensagemBanner": {
            "type": [
              "null",
              "string"
            ]
          },
          "textoParabens": {
            "type": [
              "null",
              "string"
            ]
          },
          "modeloBanner": {
            "type": [
              "null",
              "string"
            ]
          },
          "envioAutomatico": {
            "type": [
              "null",
              "boolean"
            ]
          }
        }
      },
      "ConfirmacaoEnviada": {
        "required": [
          "motoristaId",
          "saida"
        ],
        "type": "object",
        "properties": {
          "motoristaId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "saida": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ConflitoEnviado": {
        "required": [
          "conflito",
          "justificativa"
        ],
        "type": "object",
        "properties": {
          "conflito": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "justificativa": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ConformidadeDoProcesso": {
        "required": [
          "achados",
          "bloqueantes",
          "podeAutorizar"
        ],
        "type": "object",
        "properties": {
          "achados": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AchadoDeConformidade"
            }
          },
          "bloqueantes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "podeAutorizar": {
            "type": "boolean"
          }
        }
      },
      "ConsultaDaRecepcao": {
        "required": [
          "id",
          "paciente",
          "telefone",
          "unidade",
          "profissional",
          "inicio",
          "situacao",
          "situacaoDoWhatsApp",
          "erroDoWhatsApp",
          "resposta",
          "respondidaEm",
          "avisadaEm",
          "mensagem",
          "origem",
          "observacao"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "paciente": {
            "type": "string"
          },
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "unidade": {
            "type": "string"
          },
          "profissional": {
            "type": [
              "null",
              "string"
            ]
          },
          "inicio": {
            "type": "string"
          },
          "situacao": {
            "type": "string"
          },
          "situacaoDoWhatsApp": {
            "type": [
              "null",
              "string"
            ]
          },
          "erroDoWhatsApp": {
            "type": [
              "null",
              "string"
            ]
          },
          "resposta": {
            "type": [
              "null",
              "string"
            ]
          },
          "respondidaEm": {
            "type": [
              "null",
              "string"
            ]
          },
          "avisadaEm": {
            "type": [
              "null",
              "string"
            ]
          },
          "mensagem": {
            "type": "string"
          },
          "origem": {
            "type": "string"
          },
          "observacao": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ConsultaDoCidadao": {
        "required": [
          "protocolo",
          "chave"
        ],
        "type": "object",
        "properties": {
          "protocolo": {
            "type": [
              "null",
              "string"
            ]
          },
          "chave": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ConsultaDoPreNatalNoPec": {
        "required": [
          "data",
          "profissional",
          "ocupacao",
          "pressaoArterial",
          "peso",
          "alturaUterina",
          "batimentoFetal",
          "edema",
          "movimentacaoFetal"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": "string",
            "format": "date-time"
          },
          "profissional": {
            "type": [
              "null",
              "string"
            ]
          },
          "ocupacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "pressaoArterial": {
            "type": [
              "null",
              "string"
            ]
          },
          "peso": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "alturaUterina": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "batimentoFetal": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "edema": {
            "type": [
              "null",
              "string"
            ]
          },
          "movimentacaoFetal": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ConsultaEnviada": {
        "required": [
          "paciente",
          "telefone",
          "unidade",
          "profissional",
          "inicio",
          "observacao"
        ],
        "type": "object",
        "properties": {
          "paciente": {
            "type": [
              "null",
              "string"
            ]
          },
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "unidade": {
            "type": [
              "null",
              "string"
            ]
          },
          "profissional": {
            "type": [
              "null",
              "string"
            ]
          },
          "inicio": {
            "type": [
              "null",
              "string"
            ]
          },
          "observacao": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ConsultaMarcadaNoApp": {
        "required": [
          "consulta",
          "frase"
        ],
        "type": "object",
        "properties": {
          "consulta": {
            "$ref": "#/components/schemas/ConsultaNoApp"
          },
          "frase": {
            "type": "string"
          }
        }
      },
      "ConsultaNoApp": {
        "required": [
          "id",
          "paciente",
          "inicio",
          "unidade",
          "endereco",
          "profissional",
          "servico",
          "situacao",
          "podeResponder",
          "resposta"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "paciente": {
            "type": "string"
          },
          "inicio": {
            "type": "string",
            "format": "date-time"
          },
          "unidade": {
            "type": "string"
          },
          "endereco": {
            "type": [
              "null",
              "string"
            ]
          },
          "profissional": {
            "type": "string"
          },
          "servico": {
            "type": [
              "null",
              "string"
            ]
          },
          "situacao": {
            "type": "string"
          },
          "podeResponder": {
            "type": "boolean"
          },
          "resposta": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ContaAberta": {
        "required": [
          "endereco",
          "nome",
          "ativa"
        ],
        "type": "object",
        "properties": {
          "endereco": {
            "type": "string"
          },
          "nome": {
            "type": "string"
          },
          "ativa": {
            "type": "boolean"
          }
        }
      },
      "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"
            }
          }
        }
      },
      "ContagemDaCaixa": {
        "required": [
          "total",
          "vencidas"
        ],
        "type": "object",
        "properties": {
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "vencidas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "ContagemDePendencia": {
        "required": [
          "codigo",
          "rotulo",
          "quem",
          "quantas"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string"
          },
          "rotulo": {
            "type": "string"
          },
          "quem": {
            "type": "string"
          },
          "quantas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "ContagemDeTipo": {
        "required": [
          "tipo",
          "quantidade"
        ],
        "type": "object",
        "properties": {
          "tipo": {
            "type": "string"
          },
          "quantidade": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "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"
          }
        }
      },
      "ContagemEnviada": {
        "required": [
          "quantidade"
        ],
        "type": "object",
        "properties": {
          "quantidade": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "ContagemPorEstado": {
        "required": [
          "codigo",
          "rotulo",
          "quantidade"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string"
          },
          "rotulo": {
            "type": "string"
          },
          "quantidade": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "ContagemPorSituacao": {
        "required": [
          "situacao",
          "rotulo",
          "quantidade"
        ],
        "type": "object",
        "properties": {
          "situacao": {
            "type": "string"
          },
          "rotulo": {
            "type": "string"
          },
          "quantidade": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "ContagemRotulada": {
        "required": [
          "rotulo",
          "quantidade"
        ],
        "type": "object",
        "properties": {
          "rotulo": {
            "type": "string"
          },
          "quantidade": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "ContaRemovida": {
        "required": [
          "caixa"
        ],
        "type": "object",
        "properties": {
          "caixa": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/CaixaRespondida"
              }
            ]
          }
        }
      },
      "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"
            ]
          }
        }
      },
      "ContatoDaSaude": {
        "required": [
          "tipo",
          "nome",
          "detalhe",
          "telefone"
        ],
        "type": "object",
        "properties": {
          "tipo": {
            "type": "string"
          },
          "nome": {
            "type": "string"
          },
          "detalhe": {
            "type": [
              "null",
              "string"
            ]
          },
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ContatoDoPacienteDto": {
        "required": [
          "id",
          "nome",
          "relacao",
          "telefone",
          "contatoPacienteId"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "nome": {
            "type": "string"
          },
          "relacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "contatoPacienteId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          }
        }
      },
      "ContatoEnviado": {
        "required": [
          "nome",
          "relacao",
          "telefone"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "relacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "contatoPacienteId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          }
        }
      },
      "ContatoInformado": {
        "required": [
          "telefone",
          "nome"
        ],
        "type": "object",
        "properties": {
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "principal": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ContatoRespondido": {
        "required": [
          "id",
          "nome",
          "email",
          "telefone",
          "empresa",
          "notas",
          "rotulo",
          "iniciais"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "nome": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "telefone": {
            "type": "string"
          },
          "empresa": {
            "type": "string"
          },
          "notas": {
            "type": "string"
          },
          "rotulo": {
            "type": "string"
          },
          "iniciais": {
            "type": "string"
          }
        }
      },
      "ContraindicacaoDoCatalogo": {
        "required": [
          "codigo",
          "texto",
          "aviso"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string"
          },
          "texto": {
            "type": "string"
          },
          "aviso": {
            "type": "string"
          }
        }
      },
      "ContratoDoLead": {
        "required": [
          "numeroDeControle",
          "orgao",
          "uf",
          "municipio",
          "objeto",
          "valor",
          "assinadoEm",
          "vigenciaAte",
          "url"
        ],
        "type": "object",
        "properties": {
          "numeroDeControle": {
            "type": "string"
          },
          "orgao": {
            "type": "string"
          },
          "uf": {
            "type": [
              "null",
              "string"
            ]
          },
          "municipio": {
            "type": [
              "null",
              "string"
            ]
          },
          "objeto": {
            "type": "string"
          },
          "valor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "assinadoEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "vigenciaAte": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "url": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ContratoEnviado": {
        "required": [
          "numero",
          "objeto",
          "contratado",
          "contratadoDocumento",
          "natureza",
          "limiteDeAlteracao",
          "processoOrigemId",
          "inicio",
          "fim",
          "valorInicial",
          "fiscal"
        ],
        "type": "object",
        "properties": {
          "numero": {
            "type": [
              "null",
              "string"
            ]
          },
          "objeto": {
            "type": [
              "null",
              "string"
            ]
          },
          "contratado": {
            "type": [
              "null",
              "string"
            ]
          },
          "contratadoDocumento": {
            "type": [
              "null",
              "string"
            ]
          },
          "natureza": {
            "type": [
              "null",
              "string"
            ]
          },
          "limiteDeAlteracao": {
            "type": [
              "null",
              "string"
            ]
          },
          "processoOrigemId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "inicio": {
            "type": [
              "null",
              "string"
            ]
          },
          "fim": {
            "type": [
              "null",
              "string"
            ]
          },
          "valorInicial": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "fiscal": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CorpoDaMigracao": {
        "required": [
          "provedor",
          "servidor",
          "porta",
          "usuario",
          "senha",
          "corte"
        ],
        "type": "object",
        "properties": {
          "provedor": {
            "type": [
              "null",
              "string"
            ]
          },
          "servidor": {
            "type": [
              "null",
              "string"
            ]
          },
          "porta": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "usuario": {
            "type": [
              "null",
              "string"
            ]
          },
          "senha": {
            "type": [
              "null",
              "string"
            ]
          },
          "corte": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          }
        }
      },
      "CredenciamentoDaAps": {
        "required": [
          "funil",
          "solicitacoes",
          "mudancas",
          "homologacao",
          "criterios"
        ],
        "type": "object",
        "properties": {
          "funil": {
            "$ref": "#/components/schemas/FunilDoCredenciamentoAps"
          },
          "solicitacoes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SolicitacaoDaApsResposta"
            }
          },
          "mudancas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MudancaDeSolicitacaoAps"
            }
          },
          "homologacao": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/HomologacaoDaApsResposta"
              }
            ]
          },
          "criterios": {
            "type": "array",
            "items": {
              "type": "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"
            ]
          }
        }
      },
      "CreditoDoFnde": {
        "required": [
          "mes",
          "cnpj",
          "favorecido",
          "valor"
        ],
        "type": "object",
        "properties": {
          "mes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "cnpj": {
            "type": "string"
          },
          "favorecido": {
            "type": "string"
          },
          "valor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "CreditoForaDaLista": {
        "required": [
          "banco",
          "agencia",
          "conta",
          "ano",
          "creditos",
          "valor",
          "ultimo"
        ],
        "type": "object",
        "properties": {
          "banco": {
            "type": [
              "null",
              "string"
            ]
          },
          "agencia": {
            "type": [
              "null",
              "string"
            ]
          },
          "conta": {
            "type": [
              "null",
              "string"
            ]
          },
          "ano": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "creditos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "valor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "ultimo": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          }
        }
      },
      "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"
          },
          "emenda": {
            "type": [
              "null",
              "string"
            ]
          },
          "parlamentares": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CriancaDoAcompanhamento": {
        "required": [
          "id",
          "pacienteId",
          "nome",
          "nascimento",
          "meses",
          "telefone",
          "microarea",
          "agente",
          "unidade",
          "consultas",
          "consultasEsperadas",
          "medicoesPesoAltura",
          "primeiraConsulta",
          "primeiraVisita",
          "segundaVisita",
          "ultimaVisita",
          "vacinasAtrasadas",
          "pendencias",
          "noApp"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "pacienteId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "nascimento": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "meses": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "microarea": {
            "type": [
              "null",
              "string"
            ]
          },
          "agente": {
            "type": [
              "null",
              "string"
            ]
          },
          "unidade": {
            "type": [
              "null",
              "string"
            ]
          },
          "consultas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "consultasEsperadas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "medicoesPesoAltura": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "primeiraConsulta": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "primeiraVisita": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "segundaVisita": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "ultimaVisita": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "vacinasAtrasadas": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "pendencias": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PendenciaDoAcompanhamento"
            }
          },
          "noApp": {
            "type": "boolean"
          },
          "semVacinaRegistrada": {
            "type": "boolean",
            "default": false
          },
          "nomeMae": {
            "type": [
              "null",
              "string"
            ]
          },
          "ultimoAtendimento": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/UltimoAtendimentoDoPec"
              }
            ]
          }
        }
      },
      "CriterioDaPessoa": {
        "required": [
          "codigo",
          "titulo",
          "pontos",
          "situacao",
          "porque",
          "quem",
          "ateQuando",
          "venceEm"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string"
          },
          "titulo": {
            "type": "string"
          },
          "pontos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "situacao": {
            "type": "string"
          },
          "porque": {
            "type": "string"
          },
          "quem": {
            "type": "string"
          },
          "ateQuando": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "venceEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          }
        }
      },
      "CronicoDoAcompanhamento": {
        "required": [
          "id",
          "pacienteId",
          "nome",
          "nascimento",
          "telefone",
          "microarea",
          "agente",
          "unidade",
          "condicao",
          "temAsDuas",
          "ultimaConsulta",
          "ultimaPressao",
          "ultimaPressaoEm",
          "pressaoAlta",
          "peso",
          "altura",
          "pesoAlturaEm",
          "visitasEm12Meses",
          "visitas36Meses",
          "ultimaVisita",
          "glicadaValor",
          "glicadaEm",
          "glicadaSolicitadaEm",
          "avaliacaoPesEm",
          "pendencias",
          "noApp"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "pacienteId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "nascimento": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "microarea": {
            "type": [
              "null",
              "string"
            ]
          },
          "agente": {
            "type": [
              "null",
              "string"
            ]
          },
          "unidade": {
            "type": [
              "null",
              "string"
            ]
          },
          "condicao": {
            "type": "string"
          },
          "temAsDuas": {
            "type": "boolean"
          },
          "ultimaConsulta": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "ultimaPressao": {
            "type": [
              "null",
              "string"
            ]
          },
          "ultimaPressaoEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "pressaoAlta": {
            "type": "boolean"
          },
          "peso": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "altura": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "pesoAlturaEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "visitasEm12Meses": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "visitas36Meses": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "ultimaVisita": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "glicadaValor": {
            "type": [
              "null",
              "string"
            ]
          },
          "glicadaEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "glicadaSolicitadaEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "avaliacaoPesEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "pendencias": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PendenciaDoAcompanhamento"
            }
          },
          "noApp": {
            "type": "boolean"
          }
        }
      },
      "CuidadoNoApp": {
        "required": [
          "tipo",
          "titulo",
          "destaque",
          "unidade",
          "lidoEm",
          "passos"
        ],
        "type": "object",
        "properties": {
          "tipo": {
            "type": "string"
          },
          "titulo": {
            "type": "string"
          },
          "destaque": {
            "type": [
              "null",
              "string"
            ]
          },
          "unidade": {
            "type": [
              "null",
              "string"
            ]
          },
          "lidoEm": {
            "type": "string",
            "format": "date-time"
          },
          "passos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PassoNoApp"
            }
          }
        }
      },
      "CuidadosDaPessoa": {
        "required": [
          "pacienteId",
          "nome",
          "cuidados"
        ],
        "type": "object",
        "properties": {
          "pacienteId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "nome": {
            "type": "string"
          },
          "cuidados": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CuidadoNoApp"
            }
          }
        }
      },
      "CuidadosNoApp": {
        "required": [
          "pessoas"
        ],
        "type": "object",
        "properties": {
          "pessoas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CuidadosDaPessoa"
            }
          }
        }
      },
      "CustoDaAws": {
        "required": [
          "nome",
          "noMes",
          "mesPassado"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": "string"
          },
          "noMes": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "mesPassado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "CustosDaAws": {
        "required": [
          "configurado",
          "mensagem",
          "moeda",
          "mesDe",
          "gastoNoMes",
          "previstoNoMes",
          "mesPassado",
          "porServico",
          "porRegiao",
          "consultadoEm"
        ],
        "type": "object",
        "properties": {
          "configurado": {
            "type": "boolean"
          },
          "mensagem": {
            "type": [
              "null",
              "string"
            ]
          },
          "moeda": {
            "type": "string"
          },
          "mesDe": {
            "type": "string",
            "format": "date"
          },
          "gastoNoMes": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "previstoNoMes": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "mesPassado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "porServico": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustoDaAws"
            }
          },
          "porRegiao": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustoDaAws"
            }
          },
          "consultadoEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "creditosNoMes": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double",
            "default": 0
          }
        }
      },
      "DadosDoProcessoEnviados": {
        "required": [
          "objetoDescricao",
          "categoria",
          "rito",
          "usaRegistroPrecos",
          "naturezaObjeto",
          "dotacaoCodigo",
          "dotacaoPrograma",
          "valorGlobal",
          "metodoApuracao",
          "fontePreco",
          "dataApuracao",
          "referenciaExterna"
        ],
        "type": "object",
        "properties": {
          "objetoDescricao": {
            "type": [
              "null",
              "string"
            ]
          },
          "categoria": {
            "type": [
              "null",
              "string"
            ]
          },
          "rito": {
            "type": [
              "null",
              "string"
            ]
          },
          "usaRegistroPrecos": {
            "type": "boolean"
          },
          "naturezaObjeto": {
            "type": [
              "null",
              "string"
            ]
          },
          "dotacaoCodigo": {
            "type": [
              "null",
              "string"
            ]
          },
          "dotacaoPrograma": {
            "type": [
              "null",
              "string"
            ]
          },
          "valorGlobal": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "metodoApuracao": {
            "type": [
              "null",
              "string"
            ]
          },
          "fontePreco": {
            "type": [
              "null",
              "string"
            ]
          },
          "dataApuracao": {
            "type": [
              "null",
              "string"
            ]
          },
          "referenciaExterna": {
            "type": [
              "null",
              "string"
            ]
          },
          "unidadeRequisitanteId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "hipoteseDispensa": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "DataDaAgenda": {
        "required": [
          "id",
          "titulo",
          "descricao",
          "categoria",
          "categoriaRotulo",
          "tipoDeRecorrencia",
          "regra",
          "diaInicio",
          "mesInicio",
          "diaFim",
          "mesFim",
          "diaDoMes",
          "diaUtilAnterior",
          "diasDaPascoa",
          "data",
          "origem",
          "importada",
          "ativa"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "titulo": {
            "type": "string"
          },
          "descricao": {
            "type": [
              "null",
              "string"
            ]
          },
          "categoria": {
            "type": "string"
          },
          "categoriaRotulo": {
            "type": "string"
          },
          "tipoDeRecorrencia": {
            "type": "string"
          },
          "regra": {
            "type": "string"
          },
          "diaInicio": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "mesInicio": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "diaFim": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "mesFim": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "diaDoMes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "diaUtilAnterior": {
            "type": "boolean"
          },
          "diasDaPascoa": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "data": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "origem": {
            "type": "string"
          },
          "importada": {
            "type": "boolean"
          },
          "ativa": {
            "type": "boolean"
          }
        }
      },
      "DecisaoDaImpugnacao": {
        "required": [
          "texto",
          "autor",
          "decididaEm"
        ],
        "type": "object",
        "properties": {
          "texto": {
            "type": "string"
          },
          "autor": {
            "type": "string"
          },
          "decididaEm": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "DecisaoDeBaixaEnviada": {
        "required": [
          "aprovar",
          "motivo"
        ],
        "type": "object",
        "properties": {
          "aprovar": {
            "type": "boolean"
          },
          "motivo": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "DecisaoEnviada": {
        "required": [
          "texto"
        ],
        "type": "object",
        "properties": {
          "texto": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "DependenteNoApp": {
        "required": [
          "id",
          "nome",
          "cns",
          "nascimento",
          "parentesco",
          "origem"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "nome": {
            "type": "string"
          },
          "cns": {
            "type": [
              "null",
              "string"
            ]
          },
          "nascimento": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "parentesco": {
            "type": [
              "null",
              "string"
            ]
          },
          "origem": {
            "type": "string"
          }
        }
      },
      "DependentesNoApp": {
        "required": [
          "dependentes",
          "sugestoes"
        ],
        "type": "object",
        "properties": {
          "dependentes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DependenteNoApp"
            }
          },
          "sugestoes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SugestaoDeDependente"
            }
          }
        }
      },
      "DesbloqueioDaCaixa": {
        "required": [
          "endereco",
          "senhaNova"
        ],
        "type": "object",
        "properties": {
          "endereco": {
            "type": "string"
          },
          "senhaNova": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "DescarteEnviado": {
        "required": [
          "motivo"
        ],
        "type": "object",
        "properties": {
          "motivo": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "DescobertasCadastradas": {
        "required": [
          "criadas"
        ],
        "type": "object",
        "properties": {
          "criadas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "DestinatarioDoAviso": {
        "required": [
          "chave",
          "papel",
          "nome",
          "telefone",
          "recadoCom",
          "tipo",
          "marcado",
          "ultimo",
          "texto",
          "peloApp"
        ],
        "type": "object",
        "properties": {
          "chave": {
            "type": "string"
          },
          "papel": {
            "type": "string"
          },
          "nome": {
            "type": "string"
          },
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "recadoCom": {
            "type": [
              "null",
              "string"
            ]
          },
          "tipo": {
            "type": "string"
          },
          "marcado": {
            "type": "boolean"
          },
          "ultimo": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/UltimoAviso"
              }
            ]
          },
          "texto": {
            "type": [
              "null",
              "string"
            ]
          },
          "peloApp": {
            "type": "boolean"
          }
        }
      },
      "DestinoDaFrota": {
        "required": [
          "cidade",
          "minutosDeEstrada"
        ],
        "type": "object",
        "properties": {
          "cidade": {
            "type": "string"
          },
          "minutosDeEstrada": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "Destravamento": {
        "required": [
          "destravado",
          "segundosRestantes"
        ],
        "type": "object",
        "properties": {
          "destravado": {
            "type": "boolean"
          },
          "segundosRestantes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          }
        }
      },
      "DetalheDaEquipeAps": {
        "required": [
          "ine",
          "nome",
          "tipo",
          "competencia",
          "situacao",
          "custeio",
          "composicao",
          "sobras",
          "parcelas",
          "acoes",
          "profissionais",
          "resumoProfissionais"
        ],
        "type": "object",
        "properties": {
          "ine": {
            "type": "string"
          },
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "tipo": {
            "type": "string"
          },
          "competencia": {
            "type": "string"
          },
          "situacao": {
            "type": "string"
          },
          "custeio": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "composicao": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ComposicaoDaEquipeAps"
            }
          },
          "sobras": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SobraDaEquipeAps"
            }
          },
          "parcelas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ParcelaDaEquipeAps"
            }
          },
          "acoes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AcaoDoCadastroAps"
            }
          },
          "profissionais": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProfissionalDaEquipeAps"
            }
          },
          "resumoProfissionais": {
            "$ref": "#/components/schemas/ResumoDosProfissionaisAps"
          }
        }
      },
      "DetalheDaManifestacao": {
        "required": [
          "resumo",
          "origem",
          "teor",
          "assuntoId",
          "assunto",
          "localAtendimentoId",
          "localAtendimento",
          "prorrogacoesUsadas",
          "diasSuspensos",
          "movimentos",
          "anexos",
          "respostas",
          "complementacoes",
          "acoes"
        ],
        "type": "object",
        "properties": {
          "resumo": {
            "$ref": "#/components/schemas/ItemDaCaixa"
          },
          "origem": {
            "type": "string"
          },
          "teor": {
            "type": "string"
          },
          "assuntoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "assunto": {
            "type": [
              "null",
              "string"
            ]
          },
          "localAtendimentoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "localAtendimento": {
            "type": [
              "null",
              "string"
            ]
          },
          "prorrogacoesUsadas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "diasSuspensos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "movimentos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MovimentoInterno"
            }
          },
          "anexos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AnexoResumo"
            }
          },
          "respostas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RespostaResumo"
            }
          },
          "complementacoes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ComplementacaoResumo"
            }
          },
          "acoes": {
            "$ref": "#/components/schemas/AcoesDaManifestacao"
          },
          "triagem": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/TriagemSugerida"
              }
            ]
          },
          "teorTarjadoParaSetor": {
            "type": [
              "null",
              "string"
            ]
          },
          "copilotoLigado": {
            "type": "boolean",
            "default": false
          }
        }
      },
      "DetalheDeContrato": {
        "required": [
          "resumo",
          "contratadoDocumento",
          "natureza",
          "limiteDeAlteracao",
          "fimOriginal",
          "limiteDaVigenciaDecenal",
          "admiteProrrogacao",
          "fiscal",
          "limites",
          "prorrogacoes",
          "aditivos",
          "extincao"
        ],
        "type": "object",
        "properties": {
          "resumo": {
            "$ref": "#/components/schemas/ResumoDeContrato"
          },
          "contratadoDocumento": {
            "type": [
              "null",
              "string"
            ]
          },
          "natureza": {
            "$ref": "#/components/schemas/Opcao"
          },
          "limiteDeAlteracao": {
            "$ref": "#/components/schemas/Opcao"
          },
          "fimOriginal": {
            "type": "string"
          },
          "limiteDaVigenciaDecenal": {
            "type": "string"
          },
          "admiteProrrogacao": {
            "type": "boolean"
          },
          "fiscal": {
            "type": [
              "null",
              "string"
            ]
          },
          "limites": {
            "$ref": "#/components/schemas/LimitesDoContrato"
          },
          "prorrogacoes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProrrogacaoDoContrato"
            }
          },
          "aditivos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AditivoDoContrato"
            }
          },
          "extincao": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ExtincaoDoContrato"
              }
            ]
          },
          "avisoDeVigenciaInicial": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "DetalheDeImpugnacao": {
        "required": [
          "resumo",
          "pontos",
          "decisao"
        ],
        "type": "object",
        "properties": {
          "resumo": {
            "$ref": "#/components/schemas/ResumoDeImpugnacao"
          },
          "pontos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PontoDaImpugnacao"
            }
          },
          "decisao": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/DecisaoDaImpugnacao"
              }
            ]
          }
        }
      },
      "DetalheDePesquisa": {
        "required": [
          "resumo",
          "itens",
          "pendencias",
          "metodoPredominante",
          "memoriaDeCalculo"
        ],
        "type": "object",
        "properties": {
          "resumo": {
            "$ref": "#/components/schemas/ResumoDePesquisa"
          },
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ItemDaPesquisa"
            }
          },
          "pendencias": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "metodoPredominante": {
            "type": [
              "null",
              "string"
            ]
          },
          "memoriaDeCalculo": {
            "type": "string"
          },
          "metodoDoOrgao": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Opcao"
              }
            ]
          },
          "origemDoMetodo": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "DetalheDoProcesso": {
        "required": [
          "resumo",
          "categoria",
          "naturezaObjeto",
          "dotacaoCodigo",
          "dotacaoPrograma",
          "valor",
          "habilitacao",
          "itens",
          "pecas",
          "eventos",
          "proximosEstados",
          "justificativaDeRito",
          "pesquisaId",
          "unidadeRequisitanteId"
        ],
        "type": "object",
        "properties": {
          "resumo": {
            "$ref": "#/components/schemas/ResumoDeProcesso"
          },
          "categoria": {
            "$ref": "#/components/schemas/Opcao"
          },
          "naturezaObjeto": {
            "$ref": "#/components/schemas/Opcao"
          },
          "dotacaoCodigo": {
            "type": [
              "null",
              "string"
            ]
          },
          "dotacaoPrograma": {
            "type": [
              "null",
              "string"
            ]
          },
          "valor": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ValorDoProcesso"
              }
            ]
          },
          "habilitacao": {
            "$ref": "#/components/schemas/HabilitacaoDoProcesso"
          },
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ItemDoProcesso"
            }
          },
          "pecas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PecaDoProcesso"
            }
          },
          "eventos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EventoDoProcesso"
            }
          },
          "proximosEstados": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EstadoPossivel"
            }
          },
          "justificativaDeRito": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/JustificativaDoRito"
              }
            ]
          },
          "pesquisaId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "unidadeRequisitanteId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "hipoteseDispensa": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Opcao"
              }
            ]
          }
        }
      },
      "DiaDaRecepcao": {
        "required": [
          "dia",
          "consultas",
          "aAvisar",
          "semTelefone",
          "aguardando",
          "confirmadas",
          "desmarcadas",
          "unidades",
          "comunicacaoContratada"
        ],
        "type": "object",
        "properties": {
          "dia": {
            "type": "string"
          },
          "consultas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ConsultaDaRecepcao"
            }
          },
          "aAvisar": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "semTelefone": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "aguardando": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "confirmadas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "desmarcadas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "unidades": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "comunicacaoContratada": {
            "type": "boolean"
          }
        }
      },
      "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"
            }
          }
        }
      },
      "DiaDosTelefones": {
        "required": [
          "dia",
          "casas",
          "casasCom",
          "pacientes",
          "pacientesCom"
        ],
        "type": "object",
        "properties": {
          "dia": {
            "type": "string"
          },
          "casas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "casasCom": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pacientes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pacientesCom": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "DiaParaMarcar": {
        "required": [
          "dia",
          "manha",
          "tarde"
        ],
        "type": "object",
        "properties": {
          "dia": {
            "type": "string",
            "format": "date"
          },
          "manha": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "tarde": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "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"
            ]
          }
        }
      },
      "DisponibilidadeDaRedacao": {
        "required": [
          "disponivel",
          "motivo"
        ],
        "type": "object",
        "properties": {
          "disponivel": {
            "type": "boolean"
          },
          "motivo": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "DistribuicaoVital": {
        "required": [
          "consulta",
          "titulo",
          "categorias",
          "total"
        ],
        "type": "object",
        "properties": {
          "consulta": {
            "type": "string"
          },
          "titulo": {
            "type": "string"
          },
          "categorias": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CategoriaVital"
            }
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "DocumentoDoInstrumento": {
        "required": [
          "descricao",
          "arquivo",
          "url",
          "emitidoEm",
          "resolucaoDoConselho"
        ],
        "type": "object",
        "properties": {
          "descricao": {
            "type": [
              "null",
              "string"
            ]
          },
          "arquivo": {
            "type": [
              "null",
              "string"
            ]
          },
          "url": {
            "type": "string"
          },
          "emitidoEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "resolucaoDoConselho": {
            "type": "boolean"
          }
        }
      },
      "DomicilioDetalhe": {
        "required": [
          "id",
          "endereco",
          "bairro",
          "cep",
          "microarea",
          "equipe",
          "unidade",
          "tipoImovel",
          "telefoneResidencial",
          "telefoneContato",
          "moradores",
          "lidoEm",
          "ativo"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "endereco": {
            "type": "string"
          },
          "bairro": {
            "type": [
              "null",
              "string"
            ]
          },
          "cep": {
            "type": [
              "null",
              "string"
            ]
          },
          "microarea": {
            "type": [
              "null",
              "string"
            ]
          },
          "equipe": {
            "type": [
              "null",
              "string"
            ]
          },
          "unidade": {
            "type": [
              "null",
              "string"
            ]
          },
          "tipoImovel": {
            "type": [
              "null",
              "string"
            ]
          },
          "telefoneResidencial": {
            "type": [
              "null",
              "string"
            ]
          },
          "telefoneContato": {
            "type": [
              "null",
              "string"
            ]
          },
          "moradores": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MoradorDoDomicilio"
            }
          },
          "lidoEm": {
            "type": "string",
            "format": "date-time"
          },
          "ativo": {
            "type": "boolean"
          },
          "agente": {
            "type": [
              "null",
              "string"
            ]
          },
          "agenteNome": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "DomicilioDoPaciente": {
        "required": [
          "domicilio"
        ],
        "type": "object",
        "properties": {
          "domicilio": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/DomicilioDetalhe"
              }
            ]
          }
        }
      },
      "DomicilioResumo": {
        "required": [
          "id",
          "endereco",
          "bairro",
          "microarea",
          "responsavel",
          "moradores",
          "telefone",
          "ativo"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "endereco": {
            "type": "string"
          },
          "bairro": {
            "type": [
              "null",
              "string"
            ]
          },
          "microarea": {
            "type": [
              "null",
              "string"
            ]
          },
          "responsavel": {
            "type": [
              "null",
              "string"
            ]
          },
          "moradores": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "ativo": {
            "type": "boolean"
          },
          "agente": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "DominioDeEmailResumo": {
        "required": [
          "codigo",
          "nome",
          "conta",
          "orgao",
          "origem",
          "criadoEm",
          "criadoPor"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string",
            "format": "uuid"
          },
          "nome": {
            "type": "string"
          },
          "conta": {
            "type": "string"
          },
          "orgao": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OrgaoDoDominio"
              }
            ]
          },
          "origem": {
            "type": "string"
          },
          "criadoEm": {
            "type": "string",
            "format": "date-time"
          },
          "criadoPor": {
            "type": "string"
          }
        }
      },
      "DominioDoOrgao": {
        "required": [
          "codigo",
          "nome"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string",
            "format": "uuid"
          },
          "nome": {
            "type": "string"
          }
        }
      },
      "DominioNoServidor": {
        "required": [
          "nome",
          "conta"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": "string"
          },
          "conta": {
            "type": "string"
          }
        }
      },
      "DosesDaVacina": {
        "required": [
          "imunobiologico",
          "doses",
          "porDose"
        ],
        "type": "object",
        "properties": {
          "imunobiologico": {
            "type": "string"
          },
          "doses": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "porDose": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContagemDeTipo"
            }
          }
        }
      },
      "DotacaoDoOrgao": {
        "required": [
          "id",
          "codigo",
          "programa",
          "exercicio",
          "ativa",
          "naturezaDaDespesa"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "codigo": {
            "type": "string"
          },
          "programa": {
            "type": [
              "null",
              "string"
            ]
          },
          "exercicio": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "ativa": {
            "type": "boolean"
          },
          "naturezaDaDespesa": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "DotacaoEnviada": {
        "required": [
          "codigo",
          "programa",
          "exercicio"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": [
              "null",
              "string"
            ]
          },
          "programa": {
            "type": [
              "null",
              "string"
            ]
          },
          "exercicio": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "EdicaoDaEtiqueta": {
        "required": [
          "nome",
          "cor",
          "ordem"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "cor": {
            "type": [
              "null",
              "string"
            ]
          },
          "ordem": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "EdicaoDoAgendamento": {
        "required": [
          "telefoneContato",
          "observacao"
        ],
        "type": "object",
        "properties": {
          "telefoneContato": {
            "type": [
              "null",
              "string"
            ]
          },
          "observacao": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "EixoDoScoreAps": {
        "required": [
          "eixo",
          "peso",
          "nota",
          "regra"
        ],
        "type": "object",
        "properties": {
          "eixo": {
            "type": "string"
          },
          "peso": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "nota": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "regra": {
            "type": "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"
          },
          "paraOFundo": {
            "type": "boolean",
            "default": true
          },
          "beneficiario": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "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"
          }
        }
      },
      "EmendaPrometidaDaCarteira": {
        "required": [
          "id",
          "esfera",
          "parlamentar",
          "valor",
          "ano",
          "objeto",
          "observacao",
          "vinculadaA",
          "vinculadaEm",
          "vinculada",
          "sugestoes",
          "criadaEm"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "esfera": {
            "type": "string"
          },
          "parlamentar": {
            "type": "string"
          },
          "valor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "ano": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "objeto": {
            "type": [
              "null",
              "string"
            ]
          },
          "observacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "vinculadaA": {
            "type": [
              "null",
              "string"
            ]
          },
          "vinculadaEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "vinculada": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/EmendaDaCarteira"
              }
            ]
          },
          "sugestoes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EmendaDaCarteira"
            }
          },
          "criadaEm": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "EmendaPrometidaEnviada": {
        "required": [
          "esfera",
          "parlamentar",
          "valor",
          "ano",
          "objeto",
          "observacao"
        ],
        "type": "object",
        "properties": {
          "esfera": {
            "type": [
              "null",
              "string"
            ]
          },
          "parlamentar": {
            "type": [
              "null",
              "string"
            ]
          },
          "valor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "ano": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "objeto": {
            "type": [
              "null",
              "string"
            ]
          },
          "observacao": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "EmitenteDoStudio": {
        "required": [
          "inscricao",
          "tipoInscricao",
          "razaoSocial",
          "nomeFantasia",
          "inscricaoMunicipal",
          "municipioIbge",
          "municipioNome",
          "uf",
          "regime",
          "regimeRotulo",
          "codigoTributacaoPadrao",
          "serie",
          "proximoNumeroDps",
          "ambiente",
          "ambienteRotulo",
          "valendo",
          "homologado",
          "certificado",
          "prontoParaEmitir",
          "pendencias",
          "atualizadoEm"
        ],
        "type": "object",
        "properties": {
          "inscricao": {
            "type": "string"
          },
          "tipoInscricao": {
            "type": "string"
          },
          "razaoSocial": {
            "type": "string"
          },
          "nomeFantasia": {
            "type": [
              "null",
              "string"
            ]
          },
          "inscricaoMunicipal": {
            "type": [
              "null",
              "string"
            ]
          },
          "municipioIbge": {
            "type": "string"
          },
          "municipioNome": {
            "type": "string"
          },
          "uf": {
            "type": "string"
          },
          "regime": {
            "type": "string"
          },
          "regimeRotulo": {
            "type": "string"
          },
          "codigoTributacaoPadrao": {
            "type": "string"
          },
          "serie": {
            "type": "string"
          },
          "proximoNumeroDps": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "ambiente": {
            "type": "string"
          },
          "ambienteRotulo": {
            "type": "string"
          },
          "valendo": {
            "type": "boolean"
          },
          "homologado": {
            "type": "boolean"
          },
          "certificado": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/CertificadoDoEmitente"
              }
            ]
          },
          "prontoParaEmitir": {
            "type": "boolean"
          },
          "pendencias": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "atualizadoEm": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "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"
          }
        }
      },
      "EncaminhamentoEnviado": {
        "required": [
          "setorId",
          "despacho"
        ],
        "type": "object",
        "properties": {
          "setorId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "despacho": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "EnquadramentoSugerido": {
        "required": [
          "sugerido",
          "fundamento",
          "versaoParametro",
          "motivo",
          "tetoAplicavel",
          "margemAteOTeto",
          "alternativas",
          "avisos",
          "ritoAtual",
          "confere",
          "jaDispensadoNoExercicio",
          "justificativa"
        ],
        "type": "object",
        "properties": {
          "sugerido": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Opcao"
              }
            ]
          },
          "fundamento": {
            "type": [
              "null",
              "string"
            ]
          },
          "versaoParametro": {
            "type": [
              "null",
              "string"
            ]
          },
          "motivo": {
            "type": "string"
          },
          "tetoAplicavel": {
            "type": [
              "null",
              "string"
            ]
          },
          "margemAteOTeto": {
            "type": [
              "null",
              "string"
            ]
          },
          "alternativas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AlternativaDeRito"
            }
          },
          "avisos": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "ritoAtual": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Opcao"
              }
            ]
          },
          "confere": {
            "type": "boolean"
          },
          "jaDispensadoNoExercicio": {
            "type": "string"
          },
          "justificativa": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/JustificativaDoRito"
              }
            ]
          }
        }
      },
      "EntradaEnviada": {
        "required": [
          "almoxarifadoId",
          "notaFiscal",
          "empenho",
          "fornecedor",
          "justificativa",
          "itens"
        ],
        "type": "object",
        "properties": {
          "almoxarifadoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "notaFiscal": {
            "type": [
              "null",
              "string"
            ]
          },
          "empenho": {
            "type": [
              "null",
              "string"
            ]
          },
          "fornecedor": {
            "type": [
              "null",
              "string"
            ]
          },
          "justificativa": {
            "type": [
              "null",
              "string"
            ]
          },
          "itens": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/ItemDeEntrada"
            }
          }
        }
      },
      "EntradaNoApp": {
        "required": [
          "celular",
          "codigo",
          "documento",
          "nascimento",
          "aparelho"
        ],
        "type": "object",
        "properties": {
          "celular": {
            "type": [
              "null",
              "string"
            ]
          },
          "codigo": {
            "type": [
              "null",
              "string"
            ]
          },
          "documento": {
            "type": [
              "null",
              "string"
            ]
          },
          "nascimento": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "aparelho": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "EntradaPorCodigo": {
        "required": [
          "celular",
          "codigo",
          "painel"
        ],
        "type": "object",
        "properties": {
          "celular": {
            "type": [
              "null",
              "string"
            ]
          },
          "codigo": {
            "type": [
              "null",
              "string"
            ]
          },
          "painel": {
            "type": [
              "null",
              "string"
            ]
          },
          "modo": {
            "type": [
              "null",
              "string"
            ]
          },
          "cliente": {
            "type": [
              "null",
              "string"
            ]
          },
          "lembrar": {
            "type": "boolean",
            "default": false
          },
          "senha": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "EnvioDoAniversario": {
        "required": [
          "pacienteId",
          "situacao",
          "automatico",
          "por",
          "em",
          "deQuem",
          "motivo"
        ],
        "type": "object",
        "properties": {
          "pacienteId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "situacao": {
            "type": "string"
          },
          "automatico": {
            "type": "boolean"
          },
          "por": {
            "type": "string"
          },
          "em": {
            "type": "string"
          },
          "deQuem": {
            "type": [
              "null",
              "string"
            ]
          },
          "motivo": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "EnvioDosParabens": {
        "required": [
          "periodo"
        ],
        "type": "object",
        "properties": {
          "periodo": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "EnvioPorCaixa": {
        "required": [
          "endereco",
          "numeros",
          "bloqueada",
          "motivo",
          "bloqueadaEm",
          "limitePorHora",
          "limitePorDia",
          "limiteProprio"
        ],
        "type": "object",
        "properties": {
          "endereco": {
            "type": "string"
          },
          "numeros": {
            "$ref": "#/components/schemas/NumerosDeEnvio"
          },
          "bloqueada": {
            "type": "boolean"
          },
          "motivo": {
            "type": [
              "null",
              "string"
            ]
          },
          "bloqueadaEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "limitePorHora": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "limitePorDia": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "limiteProprio": {
            "type": "boolean"
          },
          "acessoCortadoEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "corteFalhou": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "EnvioRegistrado": {
        "required": [
          "eventoId",
          "em",
          "desfazerAte",
          "lead"
        ],
        "type": "object",
        "properties": {
          "eventoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "em": {
            "type": "string",
            "format": "date-time"
          },
          "desfazerAte": {
            "type": "string",
            "format": "date-time"
          },
          "lead": {
            "$ref": "#/components/schemas/LeadResposta"
          }
        }
      },
      "EquipeCnesResposta": {
        "required": [
          "competencia",
          "ine",
          "nome",
          "tipo",
          "subtipo",
          "cnes",
          "estabelecimento",
          "profissionais",
          "acs",
          "ativacao",
          "desativacao"
        ],
        "type": "object",
        "properties": {
          "competencia": {
            "type": "string"
          },
          "ine": {
            "type": "string"
          },
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "tipo": {
            "type": [
              "null",
              "string"
            ]
          },
          "subtipo": {
            "type": [
              "null",
              "string"
            ]
          },
          "cnes": {
            "type": [
              "null",
              "string"
            ]
          },
          "estabelecimento": {
            "type": [
              "null",
              "string"
            ]
          },
          "profissionais": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "acs": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "ativacao": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "desativacao": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          }
        }
      },
      "EquipeDaCompetenciaAps": {
        "required": [
          "ine",
          "nome",
          "tipo",
          "vinculo",
          "qualidade",
          "suspensa",
          "motivoSuspensao",
          "recebe",
          "teto",
          "cadastrados",
          "parametro",
          "indicadores"
        ],
        "type": "object",
        "properties": {
          "ine": {
            "type": "string"
          },
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "tipo": {
            "type": "string"
          },
          "vinculo": {
            "type": [
              "null",
              "string"
            ]
          },
          "qualidade": {
            "type": [
              "null",
              "string"
            ]
          },
          "suspensa": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "motivoSuspensao": {
            "type": [
              "null",
              "string"
            ]
          },
          "recebe": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "teto": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "cadastrados": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "parametro": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "indicadores": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/IndicadorDaEquipeAps"
            }
          }
        }
      },
      "EquipeDoCadastroAps": {
        "required": [
          "ine",
          "nome",
          "tipo",
          "cnes",
          "estabelecimento",
          "situacao",
          "faltam",
          "comoResolver",
          "custeioMensal",
          "custeioEmRisco",
          "alertas",
          "profissionais",
          "acs",
          "acoesPendentes"
        ],
        "type": "object",
        "properties": {
          "ine": {
            "type": "string"
          },
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "tipo": {
            "type": "string"
          },
          "cnes": {
            "type": [
              "null",
              "string"
            ]
          },
          "estabelecimento": {
            "type": [
              "null",
              "string"
            ]
          },
          "situacao": {
            "type": "string"
          },
          "faltam": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "comoResolver": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "custeioMensal": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "custeioEmRisco": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "alertas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AlertaDoCadastroAps"
            }
          },
          "profissionais": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "acs": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "acoesPendentes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "EquipeDoPagamentoAps": {
        "required": [
          "ine",
          "nome",
          "tipo",
          "componente",
          "componenteDescricao",
          "cnes",
          "estabelecimento",
          "subtipo",
          "modalidade",
          "situacao",
          "situacaoNoExtrato",
          "motivo",
          "noCnes",
          "valor"
        ],
        "type": "object",
        "properties": {
          "ine": {
            "type": "string"
          },
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "tipo": {
            "type": "string"
          },
          "componente": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "componenteDescricao": {
            "type": [
              "null",
              "string"
            ]
          },
          "cnes": {
            "type": [
              "null",
              "string"
            ]
          },
          "estabelecimento": {
            "type": [
              "null",
              "string"
            ]
          },
          "subtipo": {
            "type": [
              "null",
              "string"
            ]
          },
          "modalidade": {
            "type": [
              "null",
              "string"
            ]
          },
          "situacao": {
            "type": "string"
          },
          "situacaoNoExtrato": {
            "type": [
              "null",
              "string"
            ]
          },
          "motivo": {
            "type": [
              "null",
              "string"
            ]
          },
          "noCnes": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "valor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "EquipeEmAtencaoAps": {
        "required": [
          "ine",
          "nome",
          "tipo",
          "estabelecimento",
          "mesesSemEnvio",
          "maisDe",
          "ultimoEnvio",
          "risco",
          "valorEmRisco",
          "motivo",
          "comoResolver"
        ],
        "type": "object",
        "properties": {
          "ine": {
            "type": "string"
          },
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "tipo": {
            "type": [
              "null",
              "string"
            ]
          },
          "estabelecimento": {
            "type": [
              "null",
              "string"
            ]
          },
          "mesesSemEnvio": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "maisDe": {
            "type": "boolean"
          },
          "ultimoEnvio": {
            "type": [
              "null",
              "string"
            ]
          },
          "risco": {
            "type": [
              "null",
              "string"
            ]
          },
          "valorEmRisco": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "motivo": {
            "type": "string"
          },
          "comoResolver": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "EquipeHomologadaAps": {
        "required": [
          "ine",
          "tipo",
          "subtipo",
          "situacao",
          "portaria"
        ],
        "type": "object",
        "properties": {
          "ine": {
            "type": "string"
          },
          "tipo": {
            "type": "string"
          },
          "subtipo": {
            "type": [
              "null",
              "string"
            ]
          },
          "situacao": {
            "type": "string"
          },
          "portaria": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "EquipesDoPagamentoAps": {
        "required": [
          "mes",
          "competenciaCnes",
          "cnesConsultado",
          "pagas",
          "glosadas",
          "soNoCnes",
          "pagina"
        ],
        "type": "object",
        "properties": {
          "mes": {
            "type": "string"
          },
          "competenciaCnes": {
            "type": "string"
          },
          "cnesConsultado": {
            "type": "boolean"
          },
          "pagas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "glosadas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "soNoCnes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pagina": {
            "$ref": "#/components/schemas/PaginaOfEquipeDoPagamentoAps"
          }
        }
      },
      "EquipesEmAtencaoAps": {
        "required": [
          "competencia",
          "competencias",
          "total",
          "variacao",
          "maxConsecutivo",
          "mediaConsecutivo",
          "emRisco",
          "faixas",
          "evolucao",
          "porTipo",
          "equipes",
          "regras"
        ],
        "type": "object",
        "properties": {
          "competencia": {
            "type": "string"
          },
          "competencias": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "variacao": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "maxConsecutivo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "mediaConsecutivo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "emRisco": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "faixas": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/FaixasDeRiscoAps"
              }
            ]
          },
          "evolucao": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EvolucaoDaAtencaoAps"
            }
          },
          "porTipo": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TotalPorTipoAps"
            }
          },
          "equipes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EquipeEmAtencaoAps"
            }
          },
          "regras": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "EscolaDoCensoResposta": {
        "required": [
          "codigoInep",
          "nome",
          "rede",
          "rural",
          "matriculas",
          "creche",
          "preEscola",
          "anosIniciais",
          "anosFinais",
          "medio",
          "eja",
          "especial",
          "integral",
          "transporteMunicipal",
          "docentes",
          "turmas"
        ],
        "type": "object",
        "properties": {
          "codigoInep": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "nome": {
            "type": "string"
          },
          "rede": {
            "type": "string"
          },
          "rural": {
            "type": "boolean"
          },
          "matriculas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "creche": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "preEscola": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "anosIniciais": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "anosFinais": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "medio": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "eja": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "especial": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "integral": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "transporteMunicipal": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "docentes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "turmas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "EsferaDePreco": {
        "required": [
          "codigo",
          "rotulo",
          "entePublico"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string"
          },
          "rotulo": {
            "type": "string"
          },
          "entePublico": {
            "type": "boolean"
          }
        }
      },
      "EstabelecimentoCnesResposta": {
        "required": [
          "cnes",
          "nome",
          "razaoSocial",
          "tipoCodigo",
          "tipo",
          "gestao",
          "esfera",
          "atendeSus",
          "cnpj",
          "endereco",
          "bairro",
          "cep",
          "telefone",
          "email",
          "latitude",
          "longitude",
          "atualizadoNaFonte"
        ],
        "type": "object",
        "properties": {
          "cnes": {
            "type": "string"
          },
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "razaoSocial": {
            "type": [
              "null",
              "string"
            ]
          },
          "tipoCodigo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "tipo": {
            "type": [
              "null",
              "string"
            ]
          },
          "gestao": {
            "type": [
              "null",
              "string"
            ]
          },
          "esfera": {
            "type": [
              "null",
              "string"
            ]
          },
          "atendeSus": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "cnpj": {
            "type": [
              "null",
              "string"
            ]
          },
          "endereco": {
            "type": [
              "null",
              "string"
            ]
          },
          "bairro": {
            "type": [
              "null",
              "string"
            ]
          },
          "cep": {
            "type": [
              "null",
              "string"
            ]
          },
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "latitude": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "longitude": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "atualizadoNaFonte": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          }
        }
      },
      "EstabelecimentoDoStudio": {
        "required": [
          "codigo",
          "nome",
          "ramo",
          "ramoRotulo",
          "fuso",
          "telefone",
          "endereco",
          "instagram",
          "logomarca",
          "fusos"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string",
            "format": "uuid"
          },
          "nome": {
            "type": "string"
          },
          "ramo": {
            "type": "string"
          },
          "ramoRotulo": {
            "type": "string"
          },
          "fuso": {
            "type": "string"
          },
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "endereco": {
            "type": [
              "null",
              "string"
            ]
          },
          "instagram": {
            "type": [
              "null",
              "string"
            ]
          },
          "logomarca": {
            "type": [
              "null",
              "string"
            ]
          },
          "fusos": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "EstabelecimentoHomologadoAps": {
        "required": [
          "cnes",
          "nome",
          "incentivo",
          "portaria"
        ],
        "type": "object",
        "properties": {
          "cnes": {
            "type": "string"
          },
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "incentivo": {
            "type": [
              "null",
              "string"
            ]
          },
          "portaria": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "EstadoDasRegras": {
        "required": [
          "configurado"
        ],
        "type": "object",
        "properties": {
          "configurado": {
            "type": "boolean"
          }
        }
      },
      "EstadoPossivel": {
        "required": [
          "codigo",
          "rotulo",
          "permitido",
          "porque"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string"
          },
          "rotulo": {
            "type": "string"
          },
          "permitido": {
            "type": "boolean"
          },
          "porque": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "EstatisticasVitaisDoAno": {
        "required": [
          "indicadores",
          "distribuicoes",
          "coletadoEm",
          "fonte"
        ],
        "type": "object",
        "properties": {
          "indicadores": {
            "$ref": "#/components/schemas/IndicadoresVitaisDoAno"
          },
          "distribuicoes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DistribuicaoVital"
            }
          },
          "coletadoEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "fonte": {
            "type": "string"
          }
        }
      },
      "EstatisticasVitaisResposta": {
        "required": [
          "anos",
          "fonte",
          "regras"
        ],
        "type": "object",
        "properties": {
          "anos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IndicadoresVitaisDoAno"
            }
          },
          "fonte": {
            "type": "string"
          },
          "regras": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "EstornoEnviado": {
        "required": [
          "justificativa"
        ],
        "type": "object",
        "properties": {
          "justificativa": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "EtiquetaApagada": {
        "required": [
          "mensagensLimpas"
        ],
        "type": "object",
        "properties": {
          "mensagensLimpas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "EtiquetaRespondida": {
        "required": [
          "id",
          "chave",
          "nome",
          "cor",
          "ordem"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "chave": {
            "type": "string"
          },
          "nome": {
            "type": "string"
          },
          "cor": {
            "type": "string"
          },
          "ordem": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "EuNoApp": {
        "required": [
          "nomeDoApp",
          "municipio",
          "pessoas",
          "contatos"
        ],
        "type": "object",
        "properties": {
          "nomeDoApp": {
            "type": "string"
          },
          "municipio": {
            "type": "string"
          },
          "pessoas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PessoaNoApp"
            }
          },
          "contatos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContatoDaSaude"
            }
          },
          "eu": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/MeusDados"
              }
            ]
          },
          "agente": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/MinhaAgente"
              }
            ]
          }
        }
      },
      "EventoDoLead": {
        "required": [
          "id",
          "tipo",
          "situacao",
          "whatsapp",
          "modelo",
          "texto",
          "observacao",
          "usuario",
          "em",
          "desfeitoEm",
          "desfeitoPor"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "tipo": {
            "type": "string"
          },
          "situacao": {
            "type": "string"
          },
          "whatsapp": {
            "type": [
              "null",
              "string"
            ]
          },
          "modelo": {
            "type": [
              "null",
              "string"
            ]
          },
          "texto": {
            "type": [
              "null",
              "string"
            ]
          },
          "observacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "usuario": {
            "type": [
              "null",
              "string"
            ]
          },
          "em": {
            "type": "string",
            "format": "date-time"
          },
          "desfeitoEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "desfeitoPor": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "EventoDoProcesso": {
        "required": [
          "de",
          "para",
          "autor",
          "motivo",
          "quando"
        ],
        "type": "object",
        "properties": {
          "de": {
            "type": [
              "null",
              "string"
            ]
          },
          "para": {
            "type": "string"
          },
          "autor": {
            "type": "string"
          },
          "motivo": {
            "type": [
              "null",
              "string"
            ]
          },
          "quando": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "EvolucaoDaAtencaoAps": {
        "required": [
          "competencia",
          "total",
          "criticas"
        ],
        "type": "object",
        "properties": {
          "competencia": {
            "type": "string"
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "criticas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "ExpedienteDoProfissional": {
        "required": [
          "profissional",
          "faixas"
        ],
        "type": "object",
        "properties": {
          "profissional": {
            "type": "string",
            "format": "uuid"
          },
          "faixas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FaixaDoExpediente"
            }
          }
        }
      },
      "ExpedienteEnviado": {
        "required": [
          "faixas"
        ],
        "type": "object",
        "properties": {
          "faixas": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/FaixaDeExpediente"
            }
          }
        }
      },
      "ExtincaoDoContrato": {
        "required": [
          "data",
          "motivo",
          "autor"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": "string"
          },
          "motivo": {
            "type": "string"
          },
          "autor": {
            "type": "string"
          }
        }
      },
      "ExtincaoEnviada": {
        "required": [
          "data",
          "motivo"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": [
              "null",
              "string"
            ]
          },
          "motivo": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "FaixaDeExpediente": {
        "required": [
          "unidadeId",
          "diaDaSemana",
          "inicio",
          "fim"
        ],
        "type": "object",
        "properties": {
          "unidadeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "diaDaSemana": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "inicio": {
            "type": "string"
          },
          "fim": {
            "type": "string"
          }
        }
      },
      "FaixaDeRiscoAps": {
        "required": [
          "total",
          "variacao"
        ],
        "type": "object",
        "properties": {
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "variacao": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "FaixaDoExpediente": {
        "required": [
          "dia",
          "inicio",
          "fim"
        ],
        "type": "object",
        "properties": {
          "dia": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "inicio": {
            "type": "string"
          },
          "fim": {
            "type": "string"
          }
        }
      },
      "FaixasAps": {
        "required": [
          "otimo",
          "bom",
          "suficiente",
          "regular"
        ],
        "type": "object",
        "properties": {
          "otimo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "bom": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "suficiente": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "regular": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "FaixasDeRiscoAps": {
        "required": [
          "critico",
          "alto",
          "medio",
          "baixo"
        ],
        "type": "object",
        "properties": {
          "critico": {
            "$ref": "#/components/schemas/FaixaDeRiscoAps"
          },
          "alto": {
            "$ref": "#/components/schemas/FaixaDeRiscoAps"
          },
          "medio": {
            "$ref": "#/components/schemas/FaixaDeRiscoAps"
          },
          "baixo": {
            "$ref": "#/components/schemas/FaixaDeRiscoAps"
          }
        }
      },
      "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"
          }
        }
      },
      "FavorecidoDoFnde": {
        "required": [
          "cnpj",
          "nome",
          "noAno",
          "meses"
        ],
        "type": "object",
        "properties": {
          "cnpj": {
            "type": "string"
          },
          "nome": {
            "type": "string"
          },
          "noAno": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "meses": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "FechamentoDoMes": {
        "required": [
          "mes",
          "fechado",
          "fechadoEm",
          "fechadoPor",
          "linhas",
          "total"
        ],
        "type": "object",
        "properties": {
          "mes": {
            "type": "string"
          },
          "fechado": {
            "type": "boolean"
          },
          "fechadoEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "fechadoPor": {
            "type": [
              "null",
              "string"
            ]
          },
          "linhas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LinhaDoFechamento"
            }
          },
          "total": {
            "$ref": "#/components/schemas/LinhaDoFechamento"
          }
        }
      },
      "FechamentoEnviado": {
        "required": [
          "mes"
        ],
        "type": "object",
        "properties": {
          "mes": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "FeriadoDoCalendario": {
        "required": [
          "id",
          "data",
          "nome",
          "tipo"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "data": {
            "type": "string",
            "format": "date"
          },
          "nome": {
            "type": "string"
          },
          "tipo": {
            "type": "string"
          }
        }
      },
      "FeriadoEnviado": {
        "required": [
          "data",
          "nome",
          "tipo"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "tipo": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "FichaDaCasa": {
        "required": [
          "codigo",
          "endereco",
          "bairro",
          "microarea",
          "equipe",
          "agente",
          "telefoneDaCasa",
          "de",
          "moradores"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string"
          },
          "endereco": {
            "type": "string"
          },
          "bairro": {
            "type": [
              "null",
              "string"
            ]
          },
          "microarea": {
            "type": [
              "null",
              "string"
            ]
          },
          "equipe": {
            "type": [
              "null",
              "string"
            ]
          },
          "agente": {
            "type": [
              "null",
              "string"
            ]
          },
          "telefoneDaCasa": {
            "type": [
              "null",
              "string"
            ]
          },
          "de": {
            "type": [
              "null",
              "string"
            ]
          },
          "moradores": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MoradorDaFicha"
            }
          }
        }
      },
      "FichaDeAuriculo": {
        "required": [
          "pacienteId",
          "paciente",
          "idade",
          "telefone",
          "podeEditar",
          "aberto",
          "anteriores",
          "proxima"
        ],
        "type": "object",
        "properties": {
          "pacienteId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "paciente": {
            "type": "string"
          },
          "idade": {
            "type": [
              "null",
              "string"
            ]
          },
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "podeEditar": {
            "type": "boolean"
          },
          "aberto": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/TratamentoDeAuriculoDaFicha"
              }
            ]
          },
          "anteriores": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TratamentoDeAuriculoDaFicha"
            }
          },
          "proxima": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ProximaSessaoDeAuriculo"
              }
            ]
          }
        }
      },
      "FiscalEnviado": {
        "required": [
          "fiscal"
        ],
        "type": "object",
        "properties": {
          "fiscal": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "FonteDePreco": {
        "required": [
          "codigo",
          "rotulo",
          "inciso",
          "preferencial"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string"
          },
          "rotulo": {
            "type": "string"
          },
          "inciso": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "preferencial": {
            "type": "boolean"
          }
        }
      },
      "ForaDosParabens": {
        "required": [
          "nome",
          "motivo"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": "string"
          },
          "motivo": {
            "type": "string"
          }
        }
      },
      "FormaDePagamentoDoStudio": {
        "required": [
          "valor",
          "rotulo",
          "parcela"
        ],
        "type": "object",
        "properties": {
          "valor": {
            "type": "string"
          },
          "rotulo": {
            "type": "string"
          },
          "parcela": {
            "type": "boolean"
          }
        }
      },
      "FormularioDaAba": {
        "required": [
          "nome",
          "remetente",
          "assunto"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "remetente": {
            "type": [
              "null",
              "string"
            ]
          },
          "assunto": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "FormularioDaRegra": {
        "required": [
          "nome",
          "campo",
          "valor",
          "etiquetaChave",
          "pastaDestino",
          "marcarLida",
          "pararAqui",
          "ativa",
          "ordem"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "campo": {
            "type": [
              "null",
              "string"
            ]
          },
          "valor": {
            "type": [
              "null",
              "string"
            ]
          },
          "etiquetaChave": {
            "type": [
              "null",
              "string"
            ]
          },
          "pastaDestino": {
            "type": [
              "null",
              "string"
            ]
          },
          "marcarLida": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "pararAqui": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "ativa": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "ordem": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "FormularioDaRespostaAutomatica": {
        "required": [
          "ativa",
          "assunto",
          "texto",
          "inicio",
          "fim",
          "dias"
        ],
        "type": "object",
        "properties": {
          "ativa": {
            "type": "boolean"
          },
          "assunto": {
            "type": [
              "null",
              "string"
            ]
          },
          "texto": {
            "type": [
              "null",
              "string"
            ]
          },
          "inicio": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "fim": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "dias": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "FormularioDeAnotacao": {
        "required": [
          "apelido",
          "situacao",
          "observacao"
        ],
        "type": "object",
        "properties": {
          "apelido": {
            "type": [
              "null",
              "string"
            ]
          },
          "situacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "observacao": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "FormularioDeDataDaAgenda": {
        "required": [
          "titulo",
          "descricao",
          "categoria",
          "tipoDeRecorrencia",
          "diaInicio",
          "mesInicio",
          "diaFim",
          "mesFim",
          "diaDoMes",
          "diaUtilAnterior",
          "diasDaPascoa",
          "data"
        ],
        "type": "object",
        "properties": {
          "titulo": {
            "type": [
              "null",
              "string"
            ]
          },
          "descricao": {
            "type": [
              "null",
              "string"
            ]
          },
          "categoria": {
            "type": [
              "null",
              "string"
            ]
          },
          "tipoDeRecorrencia": {
            "type": [
              "null",
              "string"
            ]
          },
          "diaInicio": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "mesInicio": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "diaFim": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "mesFim": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "diaDoMes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "diaUtilAnterior": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "diasDaPascoa": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "data": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "ativa": {
            "type": [
              "null",
              "boolean"
            ]
          }
        }
      },
      "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"
            ]
          },
          "tenant": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "cpf": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "FormularioDeTenant": {
        "required": [
          "nome",
          "cnpj"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "cnpj": {
            "type": [
              "null",
              "string"
            ]
          },
          "administrador": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/FormularioDeUsuario"
              }
            ]
          }
        }
      },
      "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"
            }
          },
          "celular": {
            "type": [
              "null",
              "string"
            ]
          },
          "microarea": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "FormularioDoCompromisso": {
        "required": [
          "titulo",
          "inicio",
          "fim",
          "diaInteiro",
          "local",
          "notas",
          "cor"
        ],
        "type": "object",
        "properties": {
          "titulo": {
            "type": [
              "null",
              "string"
            ]
          },
          "inicio": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "fim": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "diaInteiro": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "local": {
            "type": [
              "null",
              "string"
            ]
          },
          "notas": {
            "type": [
              "null",
              "string"
            ]
          },
          "cor": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "FormularioDoContato": {
        "required": [
          "nome",
          "email",
          "telefone",
          "empresa",
          "notas"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "empresa": {
            "type": [
              "null",
              "string"
            ]
          },
          "notas": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "FormularioDoPerfil": {
        "required": [
          "celular"
        ],
        "type": "object",
        "properties": {
          "celular": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "FundebDoMes": {
        "required": [
          "mes",
          "redistribuicao",
          "vaaf",
          "vaat",
          "vaar",
          "ajuste",
          "total",
          "totalNoAnoAnterior",
          "retencao"
        ],
        "type": "object",
        "properties": {
          "mes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "redistribuicao": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "vaaf": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "vaat": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "vaar": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "ajuste": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "totalNoAnoAnterior": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "retencao": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "FunilDoCredenciamentoAps": {
        "required": [
          "solicitadas",
          "emAnalise",
          "deferidas",
          "sairam"
        ],
        "type": "object",
        "properties": {
          "solicitadas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "emAnalise": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "deferidas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "sairam": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "GestacaoNoPec": {
        "required": [
          "inicio",
          "fim"
        ],
        "type": "object",
        "properties": {
          "inicio": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "fim": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          }
        }
      },
      "GestanteDoAcompanhamento": {
        "required": [
          "id",
          "pacienteId",
          "nome",
          "nascimento",
          "telefone",
          "microarea",
          "agente",
          "unidade",
          "puerpera",
          "semanas",
          "dpp",
          "altoRisco",
          "consultas",
          "consultasEsperadas",
          "consultasAte12Semanas",
          "consultasOdontologicas",
          "visitasAcs",
          "visitasEsperadas",
          "ultimaConsulta",
          "ultimaVisita",
          "vacinaDtpa",
          "pendencias"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "pacienteId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "nascimento": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "microarea": {
            "type": [
              "null",
              "string"
            ]
          },
          "agente": {
            "type": [
              "null",
              "string"
            ]
          },
          "unidade": {
            "type": [
              "null",
              "string"
            ]
          },
          "puerpera": {
            "type": "boolean"
          },
          "semanas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "dpp": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "altoRisco": {
            "type": "boolean"
          },
          "consultas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "consultasEsperadas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "consultasAte12Semanas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "consultasOdontologicas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "visitasAcs": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "visitasEsperadas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "ultimaConsulta": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "ultimaVisita": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "vacinaDtpa": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "pendencias": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PendenciaDoAcompanhamento"
            }
          },
          "noApp": {
            "type": "boolean",
            "default": false
          },
          "lembrete": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/LembreteDaGestante"
              }
            ]
          },
          "podeLembrar": {
            "type": "boolean",
            "default": false
          },
          "nomeMae": {
            "type": [
              "null",
              "string"
            ]
          },
          "ultimoAtendimento": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/UltimoAtendimentoDoPec"
              }
            ]
          }
        }
      },
      "GestaoDoPlanejamento": {
        "required": [
          "inicio",
          "fim",
          "rotulo",
          "instrumentos"
        ],
        "type": "object",
        "properties": {
          "inicio": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "fim": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "rotulo": {
            "type": "string"
          },
          "instrumentos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "GradeDaAgenda": {
        "required": [
          "de",
          "ate",
          "profissionais",
          "bloqueios",
          "agendamentos",
          "unidades",
          "servicos",
          "comunicacao"
        ],
        "type": "object",
        "properties": {
          "de": {
            "type": "string"
          },
          "ate": {
            "type": "string"
          },
          "profissionais": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProfissionalNaGrade"
            }
          },
          "bloqueios": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BloqueioDaAgenda"
            }
          },
          "agendamentos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AgendamentoDaAgenda"
            }
          },
          "unidades": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UnidadeDaAgenda"
            }
          },
          "servicos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ServicoDaAgenda"
            }
          },
          "comunicacao": {
            "type": "boolean"
          }
        }
      },
      "GrupoDeIndicadores": {
        "required": [
          "nome",
          "indicadores"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": "string"
          },
          "indicadores": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IndicadorEducacao"
            }
          }
        }
      },
      "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"
          }
        }
      },
      "HabilitacaoDoProcesso": {
        "required": [
          "qualificacaoTecnica",
          "eliminatorios",
          "conselho",
          "ufExigida",
          "faseDoConselho",
          "vedaSubcontratacao",
          "exigeVinculoPrevioFormalizado"
        ],
        "type": "object",
        "properties": {
          "qualificacaoTecnica": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RequisitoDoProcesso"
            }
          },
          "eliminatorios": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "conselho": {
            "type": [
              "null",
              "string"
            ]
          },
          "ufExigida": {
            "type": [
              "null",
              "string"
            ]
          },
          "faseDoConselho": {
            "type": [
              "null",
              "string"
            ]
          },
          "vedaSubcontratacao": {
            "type": "boolean"
          },
          "exigeVinculoPrevioFormalizado": {
            "type": "boolean"
          }
        }
      },
      "HabilitacaoEnviada": {
        "required": [
          "qualificacaoTecnica",
          "conselho",
          "ufExigida",
          "faseDoConselho",
          "vedaSubcontratacao",
          "exigeVinculoPrevioFormalizado"
        ],
        "type": "object",
        "properties": {
          "qualificacaoTecnica": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/RequisitoEnviado"
            }
          },
          "conselho": {
            "type": [
              "null",
              "string"
            ]
          },
          "ufExigida": {
            "type": [
              "null",
              "string"
            ]
          },
          "faseDoConselho": {
            "type": [
              "null",
              "string"
            ]
          },
          "vedaSubcontratacao": {
            "type": "boolean"
          },
          "exigeVinculoPrevioFormalizado": {
            "type": "boolean"
          }
        }
      },
      "HistoricoDoCliente": {
        "required": [
          "cliente",
          "atendimentos",
          "comandas"
        ],
        "type": "object",
        "properties": {
          "cliente": {
            "type": "string",
            "format": "uuid"
          },
          "atendimentos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AgendamentoDoStudio"
            }
          },
          "comandas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResumoDaComanda"
            }
          }
        }
      },
      "HomologacaoDaApsResposta": {
        "required": [
          "referencia",
          "competenciaCnes",
          "homologadas",
          "naoHomologadas",
          "foraDoCnes",
          "equipes",
          "estabelecimentos"
        ],
        "type": "object",
        "properties": {
          "referencia": {
            "type": "string"
          },
          "competenciaCnes": {
            "type": [
              "null",
              "string"
            ]
          },
          "homologadas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "naoHomologadas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "foraDoCnes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "equipes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EquipeHomologadaAps"
            }
          },
          "estabelecimentos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EstabelecimentoHomologadoAps"
            }
          }
        }
      },
      "HorarioDaCivi": {
        "required": [
          "rotulo",
          "pessoaId",
          "profissionalId",
          "dia",
          "horario"
        ],
        "type": "object",
        "properties": {
          "rotulo": {
            "type": "string"
          },
          "pessoaId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "profissionalId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "dia": {
            "type": "string",
            "format": "date"
          },
          "horario": {
            "type": "string"
          }
        }
      },
      "HorarioLivre": {
        "required": [
          "inicio",
          "instante",
          "profissionais"
        ],
        "type": "object",
        "properties": {
          "inicio": {
            "type": "string"
          },
          "instante": {
            "type": "string",
            "format": "date-time"
          },
          "profissionais": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProfissionalLivre"
            }
          }
        }
      },
      "HorariosDoDia": {
        "required": [
          "dia",
          "servico",
          "horarios"
        ],
        "type": "object",
        "properties": {
          "dia": {
            "type": "string",
            "format": "date"
          },
          "servico": {
            "type": "string",
            "format": "uuid"
          },
          "horarios": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HorarioLivre"
            }
          }
        }
      },
      "HorariosLivres": {
        "required": [
          "dia",
          "duracaoMinutos",
          "horarios"
        ],
        "type": "object",
        "properties": {
          "dia": {
            "type": "string"
          },
          "duracaoMinutos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "horarios": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "HorariosParaMarcar": {
        "required": [
          "dia",
          "turno",
          "horarios"
        ],
        "type": "object",
        "properties": {
          "dia": {
            "type": "string",
            "format": "date"
          },
          "turno": {
            "type": "string"
          },
          "horarios": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "IdebDaEscola": {
        "required": [
          "etapa",
          "codigoInep",
          "escola",
          "rede",
          "resultados"
        ],
        "type": "object",
        "properties": {
          "etapa": {
            "type": "string"
          },
          "codigoInep": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "escola": {
            "type": "string"
          },
          "rede": {
            "type": "string"
          },
          "resultados": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResultadoDoIdebResposta"
            }
          }
        }
      },
      "IdentidadeRevelada": {
        "required": [
          "tipoPessoa",
          "nome",
          "documento",
          "email",
          "telefone",
          "endereco",
          "eliminada"
        ],
        "type": "object",
        "properties": {
          "tipoPessoa": {
            "type": "string"
          },
          "nome": {
            "type": "string"
          },
          "documento": {
            "type": [
              "null",
              "string"
            ]
          },
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "endereco": {
            "type": [
              "null",
              "string"
            ]
          },
          "eliminada": {
            "type": "boolean"
          }
        }
      },
      "IdentificacaoEnviada": {
        "required": [
          "tipoPessoa",
          "nome",
          "documento",
          "email",
          "telefone",
          "endereco"
        ],
        "type": "object",
        "properties": {
          "tipoPessoa": {
            "type": [
              "null",
              "string"
            ]
          },
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "documento": {
            "type": [
              "null",
              "string"
            ]
          },
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "endereco": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "IdosoDoAcompanhamento": {
        "required": [
          "id",
          "pacienteId",
          "nome",
          "nascimento",
          "telefone",
          "microarea",
          "agente",
          "unidade",
          "ultimaConsulta",
          "medicoesPesoAltura",
          "pesoAlturaEm",
          "visitasEm12Meses",
          "visitas36Meses",
          "ultimaVisita",
          "gripeEm",
          "ivcfRisco",
          "ivcfEm",
          "pendencias",
          "noApp"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "pacienteId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "nascimento": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "microarea": {
            "type": [
              "null",
              "string"
            ]
          },
          "agente": {
            "type": [
              "null",
              "string"
            ]
          },
          "unidade": {
            "type": [
              "null",
              "string"
            ]
          },
          "ultimaConsulta": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "medicoesPesoAltura": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pesoAlturaEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "visitasEm12Meses": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "visitas36Meses": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "ultimaVisita": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "gripeEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "ivcfRisco": {
            "type": [
              "null",
              "string"
            ]
          },
          "ivcfEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "pendencias": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PendenciaDoAcompanhamento"
            }
          },
          "noApp": {
            "type": "boolean"
          }
        }
      },
      "IFormFile": {
        "type": "string",
        "format": "binary"
      },
      "ImportacaoDaAgenda": {
        "required": [
          "arquivo",
          "linhas",
          "criadas",
          "jaExistiam",
          "recusadas"
        ],
        "type": "object",
        "properties": {
          "arquivo": {
            "type": "string"
          },
          "linhas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "criadas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "jaExistiam": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "recusadas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LinhaDaAgendaRecusada"
            }
          }
        }
      },
      "ImportacaoDasFichas": {
        "required": [
          "linhas",
          "validas",
          "recusadas",
          "gravado",
          "itens"
        ],
        "type": "object",
        "properties": {
          "linhas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "validas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "recusadas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "gravado": {
            "type": "boolean"
          },
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LinhaDaFicha"
            }
          }
        }
      },
      "ImportacaoDePacientesEnviada": {
        "required": [
          "linhas"
        ],
        "type": "object",
        "properties": {
          "linhas": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/PessoaImportada"
            }
          }
        }
      },
      "ImportacaoDoBancoDePrecos": {
        "required": [
          "pesquisa",
          "itensCriados",
          "precosImportados",
          "precosRepetidos",
          "codigoDeValidacao",
          "urlDoCertificado",
          "avisos"
        ],
        "type": "object",
        "properties": {
          "pesquisa": {
            "$ref": "#/components/schemas/DetalheDePesquisa"
          },
          "itensCriados": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "precosImportados": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "precosRepetidos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "codigoDeValidacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "urlDoCertificado": {
            "type": [
              "null",
              "string"
            ]
          },
          "avisos": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ImportacaoNaAgenda": {
        "required": [
          "arquivo",
          "linhas",
          "criadas",
          "jaExistiam",
          "pacientesNovos",
          "recusadas",
          "avisos"
        ],
        "type": "object",
        "properties": {
          "arquivo": {
            "type": "string"
          },
          "linhas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "criadas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "jaExistiam": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pacientesNovos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "recusadas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LinhaDaAgendaRecusada"
            }
          },
          "avisos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LinhaDaAgendaRecusada"
            }
          }
        }
      },
      "ImpugnacaoEnviada": {
        "required": [
          "processoId",
          "impugnante",
          "documento",
          "representante",
          "dataProtocolo",
          "dataAberturaCertame",
          "pontos"
        ],
        "type": "object",
        "properties": {
          "processoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "impugnante": {
            "type": [
              "null",
              "string"
            ]
          },
          "documento": {
            "type": [
              "null",
              "string"
            ]
          },
          "representante": {
            "type": [
              "null",
              "string"
            ]
          },
          "dataProtocolo": {
            "type": [
              "null",
              "string"
            ]
          },
          "dataAberturaCertame": {
            "type": [
              "null",
              "string"
            ]
          },
          "pontos": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/PontoEnviado"
            }
          }
        }
      },
      "IndicadorDaEquipeAps": {
        "required": [
          "nome",
          "nota"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": "string"
          },
          "nota": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "IndicadorDeQualidade": {
        "required": [
          "codigo",
          "nome",
          "peso",
          "pessoas",
          "notaMinima",
          "notaMaxima",
          "faixaMinima",
          "faixaMaxima",
          "proxima",
          "sobeNaNotaFinal",
          "praticas"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string"
          },
          "nome": {
            "type": "string"
          },
          "peso": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pessoas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "notaMinima": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "notaMaxima": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "faixaMinima": {
            "type": [
              "null",
              "string"
            ]
          },
          "faixaMaxima": {
            "type": [
              "null",
              "string"
            ]
          },
          "proxima": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ProximaFaixa"
              }
            ]
          },
          "sobeNaNotaFinal": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "praticas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PraticaDeQualidade"
            }
          }
        }
      },
      "IndicadorDeQualidadeAps": {
        "required": [
          "codigo",
          "indicador",
          "modalidade",
          "abaixoDeBom",
          "equipesAbaixo",
          "equipes",
          "faixas",
          "variacaoPp",
          "estimado",
          "fonte"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string"
          },
          "indicador": {
            "type": "string"
          },
          "modalidade": {
            "type": "string"
          },
          "abaixoDeBom": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "equipesAbaixo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "equipes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "faixas": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/FaixasAps"
              }
            ]
          },
          "variacaoPp": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "estimado": {
            "type": "boolean"
          },
          "fonte": {
            "type": "string"
          }
        }
      },
      "IndicadorDoInicio": {
        "required": [
          "codigo",
          "nome",
          "pessoas",
          "notaMinima",
          "notaMaxima",
          "faixaMinima",
          "faixaMaxima",
          "tendencia",
          "proxima"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string"
          },
          "nome": {
            "type": "string"
          },
          "pessoas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "notaMinima": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "notaMaxima": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "faixaMinima": {
            "type": [
              "null",
              "string"
            ]
          },
          "faixaMaxima": {
            "type": [
              "null",
              "string"
            ]
          },
          "tendencia": {
            "type": [
              "null",
              "string"
            ]
          },
          "proxima": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ProximaFaixaEmPessoas"
              }
            ]
          }
        }
      },
      "IndicadorEducacao": {
        "required": [
          "codigo",
          "exibicao",
          "nome",
          "valor",
          "percentual"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "exibicao": {
            "type": "string"
          },
          "nome": {
            "type": "string"
          },
          "valor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "percentual": {
            "type": "boolean"
          }
        }
      },
      "IndicadoresVitaisDoAno": {
        "required": [
          "ano",
          "situacao",
          "preliminar",
          "nascidosVivos",
          "baixoPeso",
          "prematuros",
          "cesareas",
          "preNatal7OuMais",
          "maesAdolescentes",
          "obitosInfantis",
          "obitosNeonataisPrecoces",
          "obitosNeonataisTardios",
          "obitosPosNeonatais",
          "mortalidadeInfantil",
          "obitosMaternos",
          "razaoDeMortalidadeMaterna",
          "obitosFetais",
          "mortalidadeFetal",
          "obitos",
          "obitosDeMulheresEmIdadeFertil",
          "aviso"
        ],
        "type": "object",
        "properties": {
          "ano": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "situacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "preliminar": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "nascidosVivos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "baixoPeso": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "prematuros": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "cesareas": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "preNatal7OuMais": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "maesAdolescentes": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "obitosInfantis": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "obitosNeonataisPrecoces": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "obitosNeonataisTardios": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "obitosPosNeonatais": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "mortalidadeInfantil": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "obitosMaternos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "razaoDeMortalidadeMaterna": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "obitosFetais": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "mortalidadeFetal": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "obitos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "obitosDeMulheresEmIdadeFertil": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "aviso": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "InicioDoGestor": {
        "required": [
          "hoje",
          "municipio",
          "lidoEm",
          "listasComFalha",
          "quadrimestreDe",
          "quadrimestreAte",
          "diasParaFechar",
          "doMunicipio",
          "unidades",
          "unidadesSemLeitura",
          "acoes",
          "alertas",
          "mudou",
          "valoresPorEquipe",
          "avisos"
        ],
        "type": "object",
        "properties": {
          "hoje": {
            "type": "string",
            "format": "date"
          },
          "municipio": {
            "type": [
              "null",
              "string"
            ]
          },
          "lidoEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "listasComFalha": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "quadrimestreDe": {
            "type": "string",
            "format": "date"
          },
          "quadrimestreAte": {
            "type": "string",
            "format": "date"
          },
          "diasParaFechar": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "doMunicipio": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/NotaDoLugar"
              }
            ]
          },
          "unidades": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NotaDoLugar"
            }
          },
          "unidadesSemLeitura": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "acoes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AcaoDaSemana"
            }
          },
          "alertas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AlertaDeDado"
            }
          },
          "mudou": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/MudancaDesdeALeitura"
              }
            ]
          },
          "valoresPorEquipe": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ValorDaFaixa"
            }
          },
          "avisos": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "InicioDoStudio": {
        "required": [
          "hoje",
          "atendimentos",
          "faturado",
          "comandasAbertas",
          "proximos",
          "produtosAcabando",
          "aniversariantes"
        ],
        "type": "object",
        "properties": {
          "hoje": {
            "type": "string",
            "format": "date"
          },
          "atendimentos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContagemPorSituacao"
            }
          },
          "faturado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "comandasAbertas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "proximos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AgendamentoDoStudio"
            }
          },
          "produtosAcabando": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProdutoDoStudio"
            }
          },
          "aniversariantes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AniversarianteDoStudio"
            }
          }
        }
      },
      "InscricaoDePush": {
        "required": [
          "endpoint",
          "p256dh",
          "auth"
        ],
        "type": "object",
        "properties": {
          "endpoint": {
            "type": [
              "null",
              "string"
            ]
          },
          "p256dh": {
            "type": [
              "null",
              "string"
            ]
          },
          "auth": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "InstrumentoDoPlanejamento": {
        "required": [
          "id",
          "codigoTipo",
          "tipo",
          "tipoRotulo",
          "sigla",
          "ano",
          "identificacao",
          "situacaoPublicada",
          "situacao",
          "concluido",
          "com",
          "situacaoDesde",
          "diasNaSituacao",
          "enviadoAoConselhoEm",
          "resolucao",
          "documentos",
          "ocorrencias",
          "prazo",
          "regraDoPrazo",
          "alerta",
          "fraseDoAlerta"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "codigoTipo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "tipo": {
            "type": [
              "null",
              "string"
            ]
          },
          "tipoRotulo": {
            "type": "string"
          },
          "sigla": {
            "type": "string"
          },
          "ano": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "identificacao": {
            "type": "string"
          },
          "situacaoPublicada": {
            "type": "string"
          },
          "situacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "concluido": {
            "type": "boolean"
          },
          "com": {
            "type": [
              "null",
              "string"
            ]
          },
          "situacaoDesde": {
            "type": [
              "null",
              "string"
            ]
          },
          "diasNaSituacao": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "enviadoAoConselhoEm": {
            "type": [
              "null",
              "string"
            ]
          },
          "resolucao": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/DocumentoDoInstrumento"
              }
            ]
          },
          "documentos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DocumentoDoInstrumento"
            }
          },
          "ocorrencias": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OcorrenciaDoInstrumento"
            }
          },
          "prazo": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "regraDoPrazo": {
            "type": [
              "null",
              "string"
            ]
          },
          "alerta": {
            "type": [
              "null",
              "string"
            ]
          },
          "fraseDoAlerta": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "InventarioDoEstoque": {
        "required": [
          "id",
          "almoxarifadoId",
          "almoxarifado",
          "situacao",
          "comissao",
          "rotativo",
          "observacao",
          "abertoEm",
          "abertoPor",
          "concluidoEm",
          "concluidoPor",
          "linhas",
          "contadas",
          "comDiferenca"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "almoxarifadoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "almoxarifado": {
            "type": "string"
          },
          "situacao": {
            "type": "string"
          },
          "comissao": {
            "type": "string"
          },
          "rotativo": {
            "type": "boolean"
          },
          "observacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "abertoEm": {
            "type": "string",
            "format": "date-time"
          },
          "abertoPor": {
            "type": [
              "null",
              "string"
            ]
          },
          "concluidoEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "concluidoPor": {
            "type": [
              "null",
              "string"
            ]
          },
          "linhas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "contadas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "comDiferenca": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "InventarioEnviado": {
        "required": [
          "almoxarifadoId",
          "comissao",
          "produtoIds",
          "observacao"
        ],
        "type": "object",
        "properties": {
          "almoxarifadoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "comissao": {
            "type": [
              "null",
              "string"
            ]
          },
          "produtoIds": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          },
          "observacao": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ItemAchadoEnviado": {
        "required": [
          "produtoId",
          "lote",
          "validade",
          "quantidade"
        ],
        "type": "object",
        "properties": {
          "produtoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "lote": {
            "type": [
              "null",
              "string"
            ]
          },
          "validade": {
            "type": [
              "null",
              "string"
            ]
          },
          "quantidade": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "ItemAtrasado": {
        "required": [
          "id",
          "protocolo",
          "tipoRotulo",
          "statusRotulo",
          "prazoFinal",
          "diasDeAtraso"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "protocolo": {
            "type": "string"
          },
          "tipoRotulo": {
            "type": "string"
          },
          "statusRotulo": {
            "type": "string"
          },
          "prazoFinal": {
            "type": "string",
            "format": "date"
          },
          "diasDeAtraso": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "ItemConferido": {
        "required": [
          "chave",
          "titulo",
          "situacao",
          "mensagem",
          "registros"
        ],
        "type": "object",
        "properties": {
          "chave": {
            "type": "string"
          },
          "titulo": {
            "type": "string"
          },
          "situacao": {
            "type": "string"
          },
          "mensagem": {
            "type": "string"
          },
          "registros": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RegistroDnsConferido"
            }
          }
        }
      },
      "ItemDaCaixa": {
        "required": [
          "id",
          "protocolo",
          "tipo",
          "tipoRotulo",
          "status",
          "statusRotulo",
          "registradaEm",
          "prazoFinal",
          "diasRestantes",
          "situacaoPrazo",
          "situacaoPrazoRotulo",
          "secretariaId",
          "secretaria",
          "setorAtualId",
          "setorAtual",
          "identificada",
          "conflitoInteresse"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "protocolo": {
            "type": "string"
          },
          "tipo": {
            "type": "string"
          },
          "tipoRotulo": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "statusRotulo": {
            "type": "string"
          },
          "registradaEm": {
            "type": "string",
            "format": "date-time"
          },
          "prazoFinal": {
            "type": "string",
            "format": "date"
          },
          "diasRestantes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "situacaoPrazo": {
            "type": "string"
          },
          "situacaoPrazoRotulo": {
            "type": "string"
          },
          "secretariaId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "secretaria": {
            "type": "string"
          },
          "setorAtualId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "setorAtual": {
            "type": [
              "null",
              "string"
            ]
          },
          "identificada": {
            "type": "boolean"
          },
          "conflitoInteresse": {
            "type": "boolean"
          },
          "urgencia": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ItemDaComandaDoStudio": {
        "required": [
          "codigo",
          "tipo",
          "descricao",
          "agendamento",
          "servico",
          "produto",
          "profissional",
          "profissionalNome",
          "quantidade",
          "precoUnitario",
          "total"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string",
            "format": "uuid"
          },
          "tipo": {
            "type": "string"
          },
          "descricao": {
            "type": "string"
          },
          "agendamento": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "servico": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "produto": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "profissional": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "profissionalNome": {
            "type": [
              "null",
              "string"
            ]
          },
          "quantidade": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "precoUnitario": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "ItemDaPesquisa": {
        "required": [
          "numero",
          "descricao",
          "unidade",
          "quantidade",
          "cesta",
          "apuracao",
          "valorTotal",
          "valorTotalFormatado",
          "completo"
        ],
        "type": "object",
        "properties": {
          "numero": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "descricao": {
            "type": "string"
          },
          "unidade": {
            "type": "string"
          },
          "quantidade": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "cesta": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PrecoDaCesta"
            }
          },
          "apuracao": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ApuracaoDoItem"
              }
            ]
          },
          "valorTotal": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "valorTotalFormatado": {
            "type": [
              "null",
              "string"
            ]
          },
          "completo": {
            "type": "boolean"
          },
          "retirada": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/RetiradaDoItem"
              }
            ]
          },
          "alteracoes": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/AlteracaoDoItem"
            }
          }
        }
      },
      "ItemDeBaixaDoEstoque": {
        "required": [
          "produtoId",
          "produto",
          "unidade",
          "loteId",
          "lote",
          "validade",
          "quantidade"
        ],
        "type": "object",
        "properties": {
          "produtoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "produto": {
            "type": "string"
          },
          "unidade": {
            "type": "string"
          },
          "loteId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "lote": {
            "type": [
              "null",
              "string"
            ]
          },
          "validade": {
            "type": [
              "null",
              "string"
            ]
          },
          "quantidade": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "ItemDeBaixaEnviado": {
        "required": [
          "produtoId",
          "lote",
          "quantidade",
          "naUnidadeDeCompra"
        ],
        "type": "object",
        "properties": {
          "produtoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "lote": {
            "type": [
              "null",
              "string"
            ]
          },
          "quantidade": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "naUnidadeDeCompra": {
            "type": [
              "null",
              "boolean"
            ]
          }
        }
      },
      "ItemDeEntrada": {
        "required": [
          "produtoId",
          "quantidade",
          "naUnidadeDeCompra",
          "custoUnitario",
          "lote",
          "validade"
        ],
        "type": "object",
        "properties": {
          "produtoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "quantidade": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "naUnidadeDeCompra": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "custoUnitario": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "lote": {
            "type": [
              "null",
              "string"
            ]
          },
          "validade": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ItemDePerdaAps": {
        "required": [
          "tipo",
          "componente",
          "descricao",
          "identificador",
          "motivo",
          "valor",
          "regra"
        ],
        "type": "object",
        "properties": {
          "tipo": {
            "type": "string"
          },
          "componente": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "descricao": {
            "type": "string"
          },
          "identificador": {
            "type": [
              "null",
              "string"
            ]
          },
          "motivo": {
            "type": [
              "null",
              "string"
            ]
          },
          "valor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "regra": {
            "type": "string"
          }
        }
      },
      "ItemDePesquisaEnviado": {
        "required": [
          "descricao",
          "unidade",
          "quantidade"
        ],
        "type": "object",
        "properties": {
          "descricao": {
            "type": [
              "null",
              "string"
            ]
          },
          "unidade": {
            "type": [
              "null",
              "string"
            ]
          },
          "quantidade": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "ItemDeSaida": {
        "required": [
          "produtoId",
          "quantidade",
          "naUnidadeDeCompra",
          "lote",
          "justificativa"
        ],
        "type": "object",
        "properties": {
          "produtoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "quantidade": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "naUnidadeDeCompra": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "lote": {
            "type": [
              "null",
              "string"
            ]
          },
          "justificativa": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ItemDoCatalogoLido": {
        "required": [
          "codigo",
          "descricao"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "descricao": {
            "type": "string"
          }
        }
      },
      "ItemDoHistoricoDaAgenda": {
        "required": [
          "em",
          "quem",
          "acao",
          "detalhe"
        ],
        "type": "object",
        "properties": {
          "em": {
            "type": "string"
          },
          "quem": {
            "type": "string"
          },
          "acao": {
            "type": "string"
          },
          "detalhe": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ItemDoProcesso": {
        "required": [
          "numero",
          "descricao",
          "unidade",
          "quantidade",
          "valorUnitario",
          "valorUnitarioFormatado",
          "valorTotalFormatado"
        ],
        "type": "object",
        "properties": {
          "numero": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "descricao": {
            "type": "string"
          },
          "unidade": {
            "type": [
              "null",
              "string"
            ]
          },
          "quantidade": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "valorUnitario": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "valorUnitarioFormatado": {
            "type": "string"
          },
          "valorTotalFormatado": {
            "type": "string"
          }
        }
      },
      "ItemDoQuadro": {
        "required": [
          "lista",
          "codigo",
          "rotulo",
          "quem",
          "urgente",
          "pessoas"
        ],
        "type": "object",
        "properties": {
          "lista": {
            "type": "string"
          },
          "codigo": {
            "type": "string"
          },
          "rotulo": {
            "type": "string"
          },
          "quem": {
            "type": "string"
          },
          "urgente": {
            "type": "boolean"
          },
          "pessoas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "ItemDoRadar": {
        "required": [
          "id",
          "protocolo",
          "statusRotulo",
          "registradaEm",
          "aberta"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "protocolo": {
            "type": "string"
          },
          "statusRotulo": {
            "type": "string"
          },
          "registradaEm": {
            "type": "string",
            "format": "date"
          },
          "aberta": {
            "type": "boolean"
          }
        }
      },
      "ItemEnviado": {
        "required": [
          "descricao",
          "unidade",
          "quantidade",
          "valorUnitario"
        ],
        "type": "object",
        "properties": {
          "descricao": {
            "type": [
              "null",
              "string"
            ]
          },
          "unidade": {
            "type": [
              "null",
              "string"
            ]
          },
          "quantidade": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "valorUnitario": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "ItemPublico": {
        "required": [
          "id",
          "nome"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "nome": {
            "type": "string"
          }
        }
      },
      "ItemUnificado": {
        "required": [
          "conta",
          "nomeDaConta",
          "mensagem"
        ],
        "type": "object",
        "properties": {
          "conta": {
            "type": "string"
          },
          "nomeDaConta": {
            "type": "string"
          },
          "mensagem": {
            "$ref": "#/components/schemas/ResumoDaMensagem"
          }
        }
      },
      "ItensEnviados": {
        "required": [
          "itens",
          "ajustarValorDeReferencia"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/ItemEnviado"
            }
          },
          "ajustarValorDeReferencia": {
            "type": "boolean"
          }
        }
      },
      "JanelaDaAgenda": {
        "required": [
          "de",
          "ate",
          "ocorrencias",
          "porCategoria",
          "podeEditar"
        ],
        "type": "object",
        "properties": {
          "de": {
            "type": "string",
            "format": "date"
          },
          "ate": {
            "type": "string",
            "format": "date"
          },
          "ocorrencias": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OcorrenciaDaAgenda"
            }
          },
          "porCategoria": {
            "type": "object",
            "additionalProperties": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          "podeEditar": {
            "type": "boolean"
          }
        }
      },
      "JanelaDeAvisos": {
        "required": [
          "viagemId",
          "situacao",
          "saida",
          "destinatarios"
        ],
        "type": "object",
        "properties": {
          "viagemId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "situacao": {
            "type": "string"
          },
          "saida": {
            "type": "string"
          },
          "destinatarios": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DestinatarioDoAviso"
            }
          }
        }
      },
      "JovemDasVacinas": {
        "required": [
          "id",
          "pacienteId",
          "nome",
          "nascimento",
          "anos",
          "telefone",
          "microarea",
          "agente",
          "unidade",
          "situacao",
          "atrasadas",
          "doses",
          "noApp"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "pacienteId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "nascimento": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "anos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "microarea": {
            "type": [
              "null",
              "string"
            ]
          },
          "agente": {
            "type": [
              "null",
              "string"
            ]
          },
          "unidade": {
            "type": [
              "null",
              "string"
            ]
          },
          "situacao": {
            "type": "string"
          },
          "atrasadas": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "doses": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "noApp": {
            "type": "boolean"
          }
        }
      },
      "JulgamentoEnviado": {
        "required": [
          "julgamento",
          "fundamentacao"
        ],
        "type": "object",
        "properties": {
          "julgamento": {
            "type": [
              "null",
              "string"
            ]
          },
          "fundamentacao": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "JustificativaDaOuvidoria": {
        "required": [
          "justificativa"
        ],
        "type": "object",
        "properties": {
          "justificativa": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "JustificativaDoRito": {
        "required": [
          "ritoAdotado",
          "ritoSugerido",
          "texto",
          "autor",
          "registradaEm"
        ],
        "type": "object",
        "properties": {
          "ritoAdotado": {
            "$ref": "#/components/schemas/Opcao"
          },
          "ritoSugerido": {
            "$ref": "#/components/schemas/Opcao"
          },
          "texto": {
            "type": "string"
          },
          "autor": {
            "type": "string"
          },
          "registradaEm": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "JustificativaEnviada": {
        "required": [
          "texto"
        ],
        "type": "object",
        "properties": {
          "texto": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "LancamentoDoCaixa": {
        "required": [
          "codigo",
          "tipo",
          "forma",
          "valor",
          "parcelas",
          "descricao",
          "origem",
          "comanda",
          "dia",
          "em",
          "por",
          "estornado",
          "estornadoEm",
          "motivoEstorno"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string",
            "format": "uuid"
          },
          "tipo": {
            "type": "string"
          },
          "forma": {
            "type": "string"
          },
          "valor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "parcelas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "descricao": {
            "type": "string"
          },
          "origem": {
            "type": "string"
          },
          "comanda": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "dia": {
            "type": "string",
            "format": "date"
          },
          "em": {
            "type": "string",
            "format": "date-time"
          },
          "por": {
            "type": [
              "null",
              "string"
            ]
          },
          "estornado": {
            "type": "boolean"
          },
          "estornadoEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "motivoEstorno": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "LeadResposta": {
        "required": [
          "chave",
          "cnpj",
          "razaoSocial",
          "nomeFantasia",
          "matriz",
          "uf",
          "municipio",
          "bairro",
          "endereco",
          "cep",
          "telefones",
          "whatsapp",
          "email",
          "emailDoContador",
          "site",
          "socios",
          "cnaePrincipal",
          "cnaesSecundarios",
          "porte",
          "abertaEm",
          "motivo",
          "palavras",
          "nota",
          "contratos",
          "valorEmContratos",
          "ultimoContratoEm",
          "situacao",
          "anotacao",
          "atualizadoEm",
          "atualizadoPor",
          "origem",
          "instagram",
          "fonteUrl",
          "observacaoDaPesquisa",
          "primeiroContatoEm",
          "segundoContatoEm",
          "ultimaRespostaEm",
          "whatsappAbertoEm",
          "whatsappAbertoTipo",
          "numeroJaContatado"
        ],
        "type": "object",
        "properties": {
          "chave": {
            "type": "string"
          },
          "cnpj": {
            "type": [
              "null",
              "string"
            ]
          },
          "razaoSocial": {
            "type": "string"
          },
          "nomeFantasia": {
            "type": [
              "null",
              "string"
            ]
          },
          "matriz": {
            "type": "boolean"
          },
          "uf": {
            "type": "string"
          },
          "municipio": {
            "type": "string"
          },
          "bairro": {
            "type": [
              "null",
              "string"
            ]
          },
          "endereco": {
            "type": "string"
          },
          "cep": {
            "type": [
              "null",
              "string"
            ]
          },
          "telefones": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "whatsapp": {
            "type": [
              "null",
              "string"
            ]
          },
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "emailDoContador": {
            "type": "boolean"
          },
          "site": {
            "type": [
              "null",
              "string"
            ]
          },
          "socios": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "cnaePrincipal": {
            "type": "string"
          },
          "cnaesSecundarios": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "porte": {
            "type": [
              "null",
              "string"
            ]
          },
          "abertaEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "motivo": {
            "type": "string"
          },
          "palavras": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "nota": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "contratos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "valorEmContratos": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "ultimoContratoEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "situacao": {
            "type": "string"
          },
          "anotacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "atualizadoEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "atualizadoPor": {
            "type": [
              "null",
              "string"
            ]
          },
          "origem": {
            "type": "string"
          },
          "instagram": {
            "type": [
              "null",
              "string"
            ]
          },
          "fonteUrl": {
            "type": [
              "null",
              "string"
            ]
          },
          "observacaoDaPesquisa": {
            "type": [
              "null",
              "string"
            ]
          },
          "primeiroContatoEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "segundoContatoEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "ultimaRespostaEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "whatsappAbertoEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "whatsappAbertoTipo": {
            "type": [
              "null",
              "string"
            ]
          },
          "numeroJaContatado": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "LeadsPorSituacao": {
        "required": [
          "situacao",
          "total"
        ],
        "type": "object",
        "properties": {
          "situacao": {
            "type": "string"
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "LeadsPorUf": {
        "required": [
          "uf",
          "total",
          "doRamo"
        ],
        "type": "object",
        "properties": {
          "uf": {
            "type": "string"
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "doRamo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "LeituraDoAcompanhamento": {
        "required": [
          "ultimaEm",
          "ultimaDeuCerto",
          "falha",
          "atualizadaEm"
        ],
        "type": "object",
        "properties": {
          "ultimaEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "ultimaDeuCerto": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "falha": {
            "type": [
              "null",
              "string"
            ]
          },
          "atualizadaEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        }
      },
      "LeituraDosDomicilios": {
        "required": [
          "ligada",
          "horario",
          "ultimaEm",
          "ultimaDeuCerto",
          "falha",
          "atualizadaEm",
          "domicilios",
          "emAndamento"
        ],
        "type": "object",
        "properties": {
          "ligada": {
            "type": "boolean"
          },
          "horario": {
            "type": [
              "null",
              "string"
            ]
          },
          "ultimaEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "ultimaDeuCerto": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "falha": {
            "type": [
              "null",
              "string"
            ]
          },
          "atualizadaEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "domicilios": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "emAndamento": {
            "type": "boolean"
          }
        }
      },
      "LembreteAutomaticoDoStudio": {
        "required": [
          "disponivel",
          "ligado",
          "ativo",
          "hora",
          "duasHorasAntes",
          "fuso",
          "podeAlterar",
          "emTeste",
          "aviso",
          "instancia"
        ],
        "type": "object",
        "properties": {
          "disponivel": {
            "type": "boolean"
          },
          "ligado": {
            "type": "boolean"
          },
          "ativo": {
            "type": "boolean"
          },
          "hora": {
            "type": "string"
          },
          "duasHorasAntes": {
            "type": "boolean"
          },
          "fuso": {
            "type": "string"
          },
          "podeAlterar": {
            "type": "boolean"
          },
          "emTeste": {
            "type": "boolean"
          },
          "aviso": {
            "type": [
              "null",
              "string"
            ]
          },
          "instancia": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "LembreteDaGestante": {
        "required": [
          "enviadoEm",
          "lido",
          "resposta",
          "proximo"
        ],
        "type": "object",
        "properties": {
          "enviadoEm": {
            "type": "string",
            "format": "date-time"
          },
          "lido": {
            "type": "boolean"
          },
          "resposta": {
            "type": [
              "null",
              "string"
            ]
          },
          "proximo": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "LembretesDoPreNatal": {
        "required": [
          "gestantes",
          "notificados"
        ],
        "type": "object",
        "properties": {
          "gestantes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "notificados": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "LimitesDaCaixa": {
        "required": [
          "porHora",
          "porDia"
        ],
        "type": "object",
        "properties": {
          "porHora": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "porDia": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "LimitesDoContrato": {
        "required": [
          "valorInicial",
          "valorAtual",
          "totalAcrescido",
          "percentualAcrescido",
          "tetoDeAcrescimo",
          "margemDeAcrescimo",
          "totalSuprimido",
          "percentualSuprimido",
          "tetoDeSupressao",
          "estourouOLimiteDeAcrescimo"
        ],
        "type": "object",
        "properties": {
          "valorInicial": {
            "type": "string"
          },
          "valorAtual": {
            "type": "string"
          },
          "totalAcrescido": {
            "type": "string"
          },
          "percentualAcrescido": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "tetoDeAcrescimo": {
            "type": "string"
          },
          "margemDeAcrescimo": {
            "type": "string"
          },
          "totalSuprimido": {
            "type": "string"
          },
          "percentualSuprimido": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "tetoDeSupressao": {
            "type": "string"
          },
          "estourouOLimiteDeAcrescimo": {
            "type": "boolean"
          }
        }
      },
      "LinhaDaAgendaRecusada": {
        "required": [
          "linha",
          "motivo"
        ],
        "type": "object",
        "properties": {
          "linha": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "motivo": {
            "type": "string"
          }
        }
      },
      "LinhaDaFicha": {
        "required": [
          "linha",
          "codigo",
          "quem",
          "situacao",
          "mensagem"
        ],
        "type": "object",
        "properties": {
          "linha": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "codigo": {
            "type": "string"
          },
          "quem": {
            "type": [
              "null",
              "string"
            ]
          },
          "situacao": {
            "type": "string"
          },
          "mensagem": {
            "type": "string"
          }
        }
      },
      "LinhaDaTabelaAps": {
        "required": [
          "componente",
          "equipe",
          "modalidade",
          "faixa",
          "valor",
          "efeitosDesde",
          "norma",
          "dispositivo",
          "fonteUrl"
        ],
        "type": "object",
        "properties": {
          "componente": {
            "type": "string"
          },
          "equipe": {
            "type": "string"
          },
          "modalidade": {
            "type": "string"
          },
          "faixa": {
            "type": "string"
          },
          "valor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "efeitosDesde": {
            "type": "string"
          },
          "norma": {
            "type": "string"
          },
          "dispositivo": {
            "type": "string"
          },
          "fonteUrl": {
            "type": "string"
          }
        }
      },
      "LinhaDoFechamento": {
        "required": [
          "subelemento",
          "saldoInicial",
          "entradas",
          "saidas",
          "baixas",
          "ajustes",
          "emTransito",
          "saldoFinal"
        ],
        "type": "object",
        "properties": {
          "subelemento": {
            "type": "string"
          },
          "saldoInicial": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "entradas": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "saidas": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "baixas": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "ajustes": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "emTransito": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "saldoFinal": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "LinhaDoInventario": {
        "required": [
          "id",
          "produtoId",
          "produto",
          "unidade",
          "lote",
          "validade",
          "loteNovo",
          "noSistema",
          "contada",
          "diferenca",
          "contadoPor"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "produtoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "produto": {
            "type": "string"
          },
          "unidade": {
            "type": "string"
          },
          "lote": {
            "type": [
              "null",
              "string"
            ]
          },
          "validade": {
            "type": [
              "null",
              "string"
            ]
          },
          "loteNovo": {
            "type": "boolean"
          },
          "noSistema": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "contada": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "diferenca": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "contadoPor": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "LinhaPorMes": {
        "required": [
          "mes",
          "recebidas",
          "respondidas",
          "respondidasNoPrazo"
        ],
        "type": "object",
        "properties": {
          "mes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "recebidas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "respondidas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "respondidasNoPrazo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "LinhaPorSecretaria": {
        "required": [
          "secretaria",
          "recebidas",
          "respondidas",
          "respondidasNoPrazo",
          "taxaNoPrazo"
        ],
        "type": "object",
        "properties": {
          "secretaria": {
            "type": "string"
          },
          "recebidas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "respondidas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "respondidasNoPrazo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "taxaNoPrazo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "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"
          }
        }
      },
      "ListaDoIndicador": {
        "required": [
          "codigo",
          "nome",
          "hoje",
          "de",
          "ate",
          "lidoEm",
          "unidade",
          "pessoas",
          "notaMinima",
          "notaMaxima",
          "faixaMinima",
          "faixaMaxima",
          "proxima",
          "praticas",
          "unidades",
          "microareas",
          "lista",
          "avisos"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string"
          },
          "nome": {
            "type": "string"
          },
          "hoje": {
            "type": "string",
            "format": "date"
          },
          "de": {
            "type": "string",
            "format": "date"
          },
          "ate": {
            "type": "string",
            "format": "date"
          },
          "lidoEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "unidade": {
            "type": [
              "null",
              "string"
            ]
          },
          "pessoas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "notaMinima": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "notaMaxima": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "faixaMinima": {
            "type": [
              "null",
              "string"
            ]
          },
          "faixaMaxima": {
            "type": [
              "null",
              "string"
            ]
          },
          "proxima": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ProximaFaixaEmPessoas"
              }
            ]
          },
          "praticas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PraticaDoIndicador"
            }
          },
          "unidades": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "microareas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MicroareaDoIndicador"
            }
          },
          "lista": {
            "$ref": "#/components/schemas/PaginaOfPessoaDoIndicador"
          },
          "avisos": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "LocalDaOuvidoria": {
        "required": [
          "id",
          "secretariaId",
          "secretaria",
          "nome",
          "endereco",
          "ativo"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "secretariaId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "secretaria": {
            "type": "string"
          },
          "nome": {
            "type": "string"
          },
          "endereco": {
            "type": [
              "null",
              "string"
            ]
          },
          "ativo": {
            "type": "boolean"
          }
        }
      },
      "LocalDaOuvidoriaEnviado": {
        "required": [
          "secretariaId",
          "nome",
          "endereco",
          "ativo"
        ],
        "type": "object",
        "properties": {
          "secretariaId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "endereco": {
            "type": [
              "null",
              "string"
            ]
          },
          "ativo": {
            "type": [
              "null",
              "boolean"
            ]
          }
        }
      },
      "LotacaoDaOuvidoria": {
        "required": [
          "usuarioCodigo",
          "usuario",
          "setorId",
          "setor"
        ],
        "type": "object",
        "properties": {
          "usuarioCodigo": {
            "type": "string",
            "format": "uuid"
          },
          "usuario": {
            "type": "string"
          },
          "setorId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "setor": {
            "type": "string"
          }
        }
      },
      "LotacaoDaOuvidoriaEnviada": {
        "required": [
          "setorId"
        ],
        "type": "object",
        "properties": {
          "setorId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          }
        }
      },
      "LoteDeMensagens": {
        "required": [
          "uids",
          "conta"
        ],
        "type": "object",
        "properties": {
          "uids": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          },
          "conta": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "LoteDoSaldo": {
        "required": [
          "loteId",
          "lote",
          "validade",
          "quantidade",
          "situacao",
          "diasParaVencer",
          "motivoDoBloqueio"
        ],
        "type": "object",
        "properties": {
          "loteId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "lote": {
            "type": [
              "null",
              "string"
            ]
          },
          "validade": {
            "type": [
              "null",
              "string"
            ]
          },
          "quantidade": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "situacao": {
            "type": "string"
          },
          "diasParaVencer": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "motivoDoBloqueio": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "LugarDaAcao": {
        "required": [
          "microarea",
          "agente",
          "unidade",
          "pessoas"
        ],
        "type": "object",
        "properties": {
          "microarea": {
            "type": "string"
          },
          "agente": {
            "type": [
              "null",
              "string"
            ]
          },
          "unidade": {
            "type": [
              "null",
              "string"
            ]
          },
          "pessoas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "LugarDoVinculoAps": {
        "required": [
          "ine",
          "equipe",
          "horas"
        ],
        "type": "object",
        "properties": {
          "ine": {
            "type": [
              "null",
              "string"
            ]
          },
          "equipe": {
            "type": "string"
          },
          "horas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "ManifestacaoEnviada": {
        "required": [
          "tipo",
          "secretariaId",
          "assuntoId",
          "localAtendimentoId",
          "teor",
          "identificar",
          "identificacao",
          "aceiteTermos"
        ],
        "type": "object",
        "properties": {
          "tipo": {
            "type": [
              "null",
              "string"
            ]
          },
          "secretariaId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "assuntoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "localAtendimentoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "teor": {
            "type": [
              "null",
              "string"
            ]
          },
          "identificar": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "identificacao": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/IdentificacaoEnviada"
              }
            ]
          },
          "aceiteTermos": {
            "type": [
              "null",
              "boolean"
            ]
          }
        }
      },
      "Marcacao": {
        "required": [
          "id",
          "paciente",
          "pacienteId",
          "telefone",
          "telefoneContato",
          "contatoNome",
          "destinoCidade",
          "destinoLocal",
          "data",
          "horaNoDestino",
          "temAcompanhante",
          "acompanhante",
          "descricao",
          "observacao",
          "situacao",
          "motivoCancelamento",
          "viagemId",
          "saida",
          "veiculo",
          "placa",
          "motorista",
          "foraDoPrazo",
          "aviso",
          "soNaVolta"
        ],
        "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"
          },
          "aviso": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/AvisoDaMarcacao"
              }
            ]
          },
          "soNaVolta": {
            "type": "boolean"
          }
        }
      },
      "MarcacaoDeEtiqueta": {
        "required": [
          "pasta",
          "uids",
          "ligada"
        ],
        "type": "object",
        "properties": {
          "pasta": {
            "type": [
              "null",
              "string"
            ]
          },
          "uids": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          },
          "ligada": {
            "type": "boolean"
          }
        }
      },
      "MarcacaoDoWebmail": {
        "required": [
          "marca",
          "ligada"
        ],
        "type": "object",
        "properties": {
          "marca": {
            "type": [
              "null",
              "string"
            ]
          },
          "ligada": {
            "type": "boolean"
          }
        }
      },
      "MarcacaoEmLote": {
        "required": [
          "uids",
          "marca",
          "ligada",
          "conta"
        ],
        "type": "object",
        "properties": {
          "uids": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          },
          "marca": {
            "type": [
              "null",
              "string"
            ]
          },
          "ligada": {
            "type": "boolean"
          },
          "conta": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "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"
            ]
          },
          "soNaVolta": {
            "type": "boolean",
            "default": false
          }
        }
      },
      "MarcacaoNoApp": {
        "required": [
          "pessoaId",
          "profissionalId",
          "dia",
          "horario"
        ],
        "type": "object",
        "properties": {
          "pessoaId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "profissionalId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "dia": {
            "type": "string",
            "format": "date"
          },
          "horario": {
            "type": "string"
          }
        }
      },
      "MarcacaoPeloApp": {
        "required": [
          "aceita",
          "vagasManha",
          "vagasTarde",
          "antecedenciaDias",
          "janelaDias",
          "funcao",
          "temExpediente"
        ],
        "type": "object",
        "properties": {
          "aceita": {
            "type": "boolean"
          },
          "vagasManha": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "vagasTarde": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "antecedenciaDias": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "janelaDias": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "funcao": {
            "type": [
              "null",
              "string"
            ]
          },
          "temExpediente": {
            "type": "boolean"
          }
        }
      },
      "MarcacaoPeloAppEnviada": {
        "required": [
          "aceita",
          "vagasManha",
          "vagasTarde",
          "antecedenciaDias",
          "janelaDias"
        ],
        "type": "object",
        "properties": {
          "aceita": {
            "type": "boolean"
          },
          "vagasManha": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "vagasTarde": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "antecedenciaDias": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "janelaDias": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "MatriculasDoAno": {
        "required": [
          "ano",
          "escolas",
          "matriculas",
          "creche",
          "preEscola",
          "anosIniciais",
          "anosFinais",
          "eja",
          "especial",
          "integral",
          "transporteMunicipal"
        ],
        "type": "object",
        "properties": {
          "ano": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "escolas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "matriculas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "creche": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "preEscola": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "anosIniciais": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "anosFinais": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "eja": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "especial": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "integral": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "transporteMunicipal": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "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"
          }
        }
      },
      "MedicamentoDaCmed": {
        "required": [
          "gtin",
          "produto",
          "apresentacao",
          "substancia",
          "laboratorio",
          "registro",
          "classeTerapeutica",
          "tarja",
          "pmvgSemImpostos",
          "pmvg18",
          "lista"
        ],
        "type": "object",
        "properties": {
          "gtin": {
            "type": "string"
          },
          "produto": {
            "type": "string"
          },
          "apresentacao": {
            "type": "string"
          },
          "substancia": {
            "type": "string"
          },
          "laboratorio": {
            "type": "string"
          },
          "registro": {
            "type": [
              "null",
              "string"
            ]
          },
          "classeTerapeutica": {
            "type": [
              "null",
              "string"
            ]
          },
          "tarja": {
            "type": [
              "null",
              "string"
            ]
          },
          "pmvgSemImpostos": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "pmvg18": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "lista": {
            "type": "string"
          }
        }
      },
      "MensagemAberta": {
        "required": [
          "uid",
          "assunto",
          "remetenteNome",
          "remetenteEndereco",
          "para",
          "cc",
          "data",
          "lida",
          "html",
          "texto",
          "imagensBloqueadas",
          "anexos",
          "etiquetas",
          "messageId"
        ],
        "type": "object",
        "properties": {
          "uid": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "assunto": {
            "type": [
              "null",
              "string"
            ]
          },
          "remetenteNome": {
            "type": [
              "null",
              "string"
            ]
          },
          "remetenteEndereco": {
            "type": [
              "null",
              "string"
            ]
          },
          "para": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "cc": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "data": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "lida": {
            "type": "boolean"
          },
          "html": {
            "type": "string"
          },
          "texto": {
            "type": [
              "null",
              "string"
            ]
          },
          "imagensBloqueadas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "anexos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AnexoDaMensagem"
            }
          },
          "etiquetas": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "messageId": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "MensagemDaCaixa": {
        "required": [
          "id",
          "destino",
          "destinatario",
          "texto",
          "origem",
          "situacao",
          "tentativas",
          "erro",
          "criadaEm",
          "enviadaEm",
          "entregueEm",
          "lidaEm"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "destino": {
            "type": "string"
          },
          "destinatario": {
            "type": [
              "null",
              "string"
            ]
          },
          "texto": {
            "type": "string"
          },
          "origem": {
            "type": "string"
          },
          "situacao": {
            "type": "string"
          },
          "tentativas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "erro": {
            "type": [
              "null",
              "string"
            ]
          },
          "criadaEm": {
            "type": "string"
          },
          "enviadaEm": {
            "type": [
              "null",
              "string"
            ]
          },
          "entregueEm": {
            "type": [
              "null",
              "string"
            ]
          },
          "lidaEm": {
            "type": [
              "null",
              "string"
            ]
          },
          "smsDeReserva": {
            "type": [
              "null",
              "string"
            ]
          },
          "smsEm": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "MensagemDaCivi": {
        "required": [
          "papel",
          "texto"
        ],
        "type": "object",
        "properties": {
          "papel": {
            "type": [
              "null",
              "string"
            ]
          },
          "texto": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "MensagemDaConversa": {
        "required": [
          "papel",
          "texto"
        ],
        "type": "object",
        "properties": {
          "papel": {
            "type": [
              "null",
              "string"
            ]
          },
          "texto": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "MensagemNoApp": {
        "required": [
          "id",
          "texto",
          "em",
          "de"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "texto": {
            "type": "string"
          },
          "em": {
            "type": "string",
            "format": "date-time"
          },
          "de": {
            "type": "string"
          }
        }
      },
      "MesDoFnde": {
        "required": [
          "mes",
          "total",
          "totalNoAnoAnterior"
        ],
        "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"
          },
          "totalNoAnoAnterior": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "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"
          }
        }
      },
      "MeuCofre": {
        "required": [
          "itens",
          "prazoDaSessaoEmMinutos"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CertificadoNoCofre"
            }
          },
          "prazoDaSessaoEmMinutos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "MeusDados": {
        "required": [
          "nome",
          "cns",
          "nascimento",
          "telefone",
          "telefoneContato",
          "contatoNome"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": "string"
          },
          "cns": {
            "type": [
              "null",
              "string"
            ]
          },
          "nascimento": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "telefoneContato": {
            "type": [
              "null",
              "string"
            ]
          },
          "contatoNome": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "MeusHorarios": {
        "required": [
          "nome",
          "proximos",
          "anteriores"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": "string"
          },
          "proximos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AgendamentoDaCliente"
            }
          },
          "anteriores": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AgendamentoDaCliente"
            }
          }
        }
      },
      "MicroareaDasGestantes": {
        "required": [
          "codigo",
          "agente",
          "gestantes",
          "comUrgencia"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string"
          },
          "agente": {
            "type": [
              "null",
              "string"
            ]
          },
          "gestantes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "comUrgencia": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "MicroareaDasVacinas": {
        "required": [
          "codigo",
          "agente",
          "pessoas",
          "emDia",
          "atrasada"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string"
          },
          "agente": {
            "type": [
              "null",
              "string"
            ]
          },
          "pessoas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "emDia": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "atrasada": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "MicroareaDasVisitas": {
        "required": [
          "codigo",
          "agente",
          "pessoas",
          "urgentes"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string"
          },
          "agente": {
            "type": [
              "null",
              "string"
            ]
          },
          "pessoas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "urgentes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "MicroareaDoAcompanhamento": {
        "required": [
          "codigo",
          "agente",
          "pessoas",
          "emDia",
          "comUrgencia",
          "precisamDeVisita"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string"
          },
          "agente": {
            "type": [
              "null",
              "string"
            ]
          },
          "pessoas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "emDia": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "comUrgencia": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "precisamDeVisita": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "MicroareaDoIndicador": {
        "required": [
          "codigo",
          "agente",
          "pessoas",
          "comFalta"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string"
          },
          "agente": {
            "type": [
              "null",
              "string"
            ]
          },
          "pessoas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "comFalta": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "MicroareaDoTerritorio": {
        "required": [
          "codigo",
          "agente"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string"
          },
          "agente": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "MigracaoRespondida": {
        "required": [
          "id",
          "provedor",
          "origem",
          "situacao",
          "corte",
          "copiadas",
          "puladas",
          "falhas",
          "totalPrevisto",
          "erro",
          "emAndamento",
          "podeRetomar"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "provedor": {
            "type": "string"
          },
          "origem": {
            "type": "string"
          },
          "situacao": {
            "type": "string"
          },
          "corte": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "copiadas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "puladas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "falhas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "totalPrevisto": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "erro": {
            "type": [
              "null",
              "string"
            ]
          },
          "emAndamento": {
            "type": "boolean"
          },
          "podeRetomar": {
            "type": "boolean"
          }
        }
      },
      "MinhaAgente": {
        "required": [
          "nome",
          "microarea",
          "equipe",
          "unidade"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": "string"
          },
          "microarea": {
            "type": [
              "null",
              "string"
            ]
          },
          "equipe": {
            "type": [
              "null",
              "string"
            ]
          },
          "unidade": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "MinimoEducacao": {
        "required": [
          "codigo",
          "nome",
          "regra",
          "limite",
          "ehMaximo",
          "valor",
          "situacao",
          "baseLegal"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "nome": {
            "type": "string"
          },
          "regra": {
            "type": "string"
          },
          "limite": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "ehMaximo": {
            "type": "boolean"
          },
          "valor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "situacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "baseLegal": {
            "type": "string"
          }
        }
      },
      "ModeloDeAviso": {
        "required": [
          "chave",
          "nome",
          "texto",
          "padrao"
        ],
        "type": "object",
        "properties": {
          "chave": {
            "type": "string"
          },
          "nome": {
            "type": "string"
          },
          "texto": {
            "type": "string"
          },
          "padrao": {
            "type": "boolean"
          }
        }
      },
      "ModeloDeMensagem": {
        "required": [
          "codigo",
          "texto",
          "atualizadoEm",
          "atualizadoPor"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string"
          },
          "texto": {
            "type": "string"
          },
          "atualizadoEm": {
            "type": "string",
            "format": "date-time"
          },
          "atualizadoPor": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ModeloDePecaEnviado": {
        "required": [
          "tipo",
          "nome",
          "naturezas",
          "secoes"
        ],
        "type": "object",
        "properties": {
          "tipo": {
            "type": [
              "null",
              "string"
            ]
          },
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "naturezas": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          },
          "secoes": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/SecaoDoModeloEnviada"
            }
          }
        }
      },
      "ModeloDoOrgao": {
        "required": [
          "id",
          "tipo",
          "nome",
          "naturezas",
          "secoes",
          "marcadoresDesconhecidos"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "tipo": {
            "$ref": "#/components/schemas/Opcao"
          },
          "nome": {
            "type": "string"
          },
          "naturezas": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "secoes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SecaoDoModelo"
            }
          },
          "marcadoresDesconhecidos": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ModeloEnviado": {
        "required": [
          "nome",
          "texto"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "texto": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "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"
          }
        }
      },
      "MoradorDaFicha": {
        "required": [
          "codigo",
          "nome",
          "idade",
          "parentesco",
          "celular",
          "responsavel"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string"
          },
          "nome": {
            "type": "string"
          },
          "idade": {
            "type": [
              "null",
              "string"
            ]
          },
          "parentesco": {
            "type": [
              "null",
              "string"
            ]
          },
          "celular": {
            "type": [
              "null",
              "string"
            ]
          },
          "responsavel": {
            "type": "boolean"
          }
        }
      },
      "MoradorDoDomicilio": {
        "required": [
          "pacienteId",
          "nome",
          "parentesco",
          "responsavel",
          "dataNascimento",
          "telefone",
          "nomeMae",
          "faleceu"
        ],
        "type": "object",
        "properties": {
          "pacienteId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "nome": {
            "type": "string"
          },
          "parentesco": {
            "type": [
              "null",
              "string"
            ]
          },
          "responsavel": {
            "type": "boolean"
          },
          "dataNascimento": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "nomeMae": {
            "type": [
              "null",
              "string"
            ]
          },
          "faleceu": {
            "type": "boolean"
          }
        }
      },
      "MotivoDaOuvidoria": {
        "required": [
          "motivo"
        ],
        "type": "object",
        "properties": {
          "motivo": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "MotivoDaVisita": {
        "required": [
          "lista",
          "frase",
          "tipo",
          "urgente"
        ],
        "type": "object",
        "properties": {
          "lista": {
            "type": "string"
          },
          "frase": {
            "type": "string"
          },
          "tipo": {
            "type": "string"
          },
          "urgente": {
            "type": "boolean"
          },
          "prazo": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          }
        }
      },
      "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"
            ]
          }
        }
      },
      "MovimentoDoEstoque": {
        "required": [
          "id",
          "operacao",
          "tipo",
          "quando",
          "almoxarifadoId",
          "almoxarifado",
          "produtoId",
          "produto",
          "unidade",
          "lote",
          "validade",
          "quantidade",
          "custoUnitario",
          "valor",
          "notaFiscal",
          "empenho",
          "fornecedor",
          "destino",
          "justificativa",
          "estornaId",
          "estornado",
          "usuario"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "operacao": {
            "type": "string",
            "format": "uuid"
          },
          "tipo": {
            "type": "string"
          },
          "quando": {
            "type": "string",
            "format": "date-time"
          },
          "almoxarifadoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "almoxarifado": {
            "type": "string"
          },
          "produtoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "produto": {
            "type": "string"
          },
          "unidade": {
            "type": "string"
          },
          "lote": {
            "type": [
              "null",
              "string"
            ]
          },
          "validade": {
            "type": [
              "null",
              "string"
            ]
          },
          "quantidade": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "custoUnitario": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "valor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "notaFiscal": {
            "type": [
              "null",
              "string"
            ]
          },
          "empenho": {
            "type": [
              "null",
              "string"
            ]
          },
          "fornecedor": {
            "type": [
              "null",
              "string"
            ]
          },
          "destino": {
            "type": [
              "null",
              "string"
            ]
          },
          "justificativa": {
            "type": [
              "null",
              "string"
            ]
          },
          "estornaId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "estornado": {
            "type": "boolean"
          },
          "usuario": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "MovimentoDoProduto": {
        "required": [
          "codigo",
          "tipo",
          "quantidade",
          "custoUnitario",
          "motivo",
          "comanda",
          "por",
          "em"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string",
            "format": "uuid"
          },
          "tipo": {
            "type": "string"
          },
          "quantidade": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "custoUnitario": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "motivo": {
            "type": [
              "null",
              "string"
            ]
          },
          "comanda": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "por": {
            "type": [
              "null",
              "string"
            ]
          },
          "em": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "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"
          }
        }
      },
      "MovimentoInterno": {
        "required": [
          "em",
          "titulo",
          "detalhe",
          "visivelAoCidadao",
          "autor",
          "setorDestino"
        ],
        "type": "object",
        "properties": {
          "em": {
            "type": "string",
            "format": "date-time"
          },
          "titulo": {
            "type": "string"
          },
          "detalhe": {
            "type": [
              "null",
              "string"
            ]
          },
          "visivelAoCidadao": {
            "type": "boolean"
          },
          "autor": {
            "type": [
              "null",
              "string"
            ]
          },
          "setorDestino": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "MovimentoPublico": {
        "required": [
          "data",
          "titulo",
          "detalhe"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": "string",
            "format": "date"
          },
          "titulo": {
            "type": "string"
          },
          "detalhe": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "MudancaDePasta": {
        "required": [
          "uids",
          "destino",
          "conta"
        ],
        "type": "object",
        "properties": {
          "uids": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          },
          "destino": {
            "type": [
              "null",
              "string"
            ]
          },
          "conta": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "MudancaDesdeALeitura": {
        "required": [
          "desde",
          "indicadores"
        ],
        "type": "object",
        "properties": {
          "desde": {
            "type": "string",
            "format": "date"
          },
          "indicadores": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MudancaDoIndicador"
            }
          }
        }
      },
      "MudancaDeSolicitacaoAps": {
        "required": [
          "fonte",
          "estrategia",
          "processo",
          "de",
          "para",
          "competencia"
        ],
        "type": "object",
        "properties": {
          "fonte": {
            "type": "string"
          },
          "estrategia": {
            "type": "string"
          },
          "processo": {
            "type": "string"
          },
          "de": {
            "type": [
              "null",
              "string"
            ]
          },
          "para": {
            "type": [
              "null",
              "string"
            ]
          },
          "competencia": {
            "type": "string"
          }
        }
      },
      "MudancaDoIndicador": {
        "required": [
          "codigo",
          "nome",
          "entraram",
          "sairam",
          "cumpriram"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string"
          },
          "nome": {
            "type": "string"
          },
          "entraram": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "sairam": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "cumpriram": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "MulherDoAcompanhamento": {
        "required": [
          "id",
          "pacienteId",
          "nome",
          "nascimento",
          "idade",
          "telefone",
          "microarea",
          "agente",
          "unidade",
          "ultimaConsulta",
          "preventivoEm",
          "preventivoPedidoEm",
          "mamografiaEm",
          "mamografiaPedidaEm",
          "hpvDoses",
          "pendencias",
          "noApp"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "pacienteId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "nascimento": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "idade": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "microarea": {
            "type": [
              "null",
              "string"
            ]
          },
          "agente": {
            "type": [
              "null",
              "string"
            ]
          },
          "unidade": {
            "type": [
              "null",
              "string"
            ]
          },
          "ultimaConsulta": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "preventivoEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "preventivoPedidoEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "mamografiaEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "mamografiaPedidaEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "hpvDoses": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pendencias": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PendenciaDoAcompanhamento"
            }
          },
          "noApp": {
            "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"
          }
        }
      },
      "NascimentoNoPec": {
        "required": [
          "peso",
          "altura",
          "perimetroCefalico",
          "apgar1",
          "apgar5",
          "idadeGestacionalSemanas",
          "tipoParto",
          "tipoGravidez"
        ],
        "type": "object",
        "properties": {
          "peso": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "altura": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "perimetroCefalico": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "apgar1": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "apgar5": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "idadeGestacionalSemanas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "tipoParto": {
            "type": [
              "null",
              "string"
            ]
          },
          "tipoGravidez": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "NivelDeAlertaArbovirose": {
        "required": [
          "nivel",
          "cor",
          "texto"
        ],
        "type": "object",
        "properties": {
          "nivel": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "cor": {
            "type": "string"
          },
          "texto": {
            "type": "string"
          }
        }
      },
      "NomeDoPerfil": {
        "required": [
          "nome"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "NotaDaComanda": {
        "required": [
          "comanda",
          "comandaSituacao",
          "nota",
          "canceladas",
          "emDuvida",
          "previa"
        ],
        "type": "object",
        "properties": {
          "comanda": {
            "type": "string",
            "format": "uuid"
          },
          "comandaSituacao": {
            "type": "string"
          },
          "nota": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/NotaFiscalDoStudio"
              }
            ]
          },
          "canceladas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NotaFiscalDoStudio"
            }
          },
          "emDuvida": {
            "type": "boolean"
          },
          "previa": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/PreviaDaNota"
              }
            ]
          }
        }
      },
      "NotaDoLugar": {
        "required": [
          "nome",
          "notaMinima",
          "notaMaxima",
          "faixaMinima",
          "faixaMaxima",
          "tendencia",
          "indicadores"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": "string"
          },
          "notaMinima": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "notaMaxima": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "faixaMinima": {
            "type": "string"
          },
          "faixaMaxima": {
            "type": "string"
          },
          "tendencia": {
            "type": [
              "null",
              "string"
            ]
          },
          "indicadores": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IndicadorDoInicio"
            }
          }
        }
      },
      "NotaFiscalDoStudio": {
        "required": [
          "codigo",
          "comanda",
          "comandaDia",
          "cliente",
          "tomadorNome",
          "tomadorCpf",
          "valor",
          "descricao",
          "codigoTributacao",
          "chaveDeAcesso",
          "numeroNfse",
          "serie",
          "numeroDps",
          "ambiente",
          "valendo",
          "situacao",
          "situacaoRotulo",
          "emitidaEm",
          "emitidaPor",
          "canceladaEm",
          "canceladaPor",
          "motivoDoCancelamento",
          "cancelarAte",
          "podeCancelar"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string",
            "format": "uuid"
          },
          "comanda": {
            "type": "string",
            "format": "uuid"
          },
          "comandaDia": {
            "type": "string",
            "format": "date"
          },
          "cliente": {
            "type": "string",
            "format": "uuid"
          },
          "tomadorNome": {
            "type": "string"
          },
          "tomadorCpf": {
            "type": [
              "null",
              "string"
            ]
          },
          "valor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "descricao": {
            "type": "string"
          },
          "codigoTributacao": {
            "type": "string"
          },
          "chaveDeAcesso": {
            "type": "string"
          },
          "numeroNfse": {
            "type": [
              "null",
              "string"
            ]
          },
          "serie": {
            "type": "string"
          },
          "numeroDps": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "ambiente": {
            "type": "string"
          },
          "valendo": {
            "type": "boolean"
          },
          "situacao": {
            "type": "string"
          },
          "situacaoRotulo": {
            "type": "string"
          },
          "emitidaEm": {
            "type": "string",
            "format": "date-time"
          },
          "emitidaPor": {
            "type": [
              "null",
              "string"
            ]
          },
          "canceladaEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "canceladaPor": {
            "type": [
              "null",
              "string"
            ]
          },
          "motivoDoCancelamento": {
            "type": [
              "null",
              "string"
            ]
          },
          "cancelarAte": {
            "type": "string",
            "format": "date"
          },
          "podeCancelar": {
            "type": "boolean"
          }
        }
      },
      "NovaCaixaDeEmail": {
        "required": [
          "usuario",
          "cotaMb"
        ],
        "type": "object",
        "properties": {
          "usuario": {
            "type": [
              "null",
              "string"
            ]
          },
          "cotaMb": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "NovaEtiqueta": {
        "required": [
          "nome",
          "cor"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "cor": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "NovaFoto": {
        "required": [
          "tipo",
          "base64"
        ],
        "type": "object",
        "properties": {
          "tipo": {
            "type": [
              "null",
              "string"
            ]
          },
          "base64": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "NovaMensagem": {
        "required": [
          "telefone",
          "destinatario",
          "texto"
        ],
        "type": "object",
        "properties": {
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "destinatario": {
            "type": [
              "null",
              "string"
            ]
          },
          "texto": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "NovaMensagemDoWebmail": {
        "required": [
          "para",
          "cc",
          "cco",
          "assunto",
          "corpo",
          "emRespostaA",
          "anexos"
        ],
        "type": "object",
        "properties": {
          "para": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          },
          "cc": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          },
          "cco": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          },
          "assunto": {
            "type": [
              "null",
              "string"
            ]
          },
          "corpo": {
            "type": [
              "null",
              "string"
            ]
          },
          "emRespostaA": {
            "type": [
              "null",
              "string"
            ]
          },
          "anexos": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/AnexoParaEnviar"
            }
          }
        }
      },
      "NovaSupressao": {
        "required": [
          "endereco",
          "detalhe"
        ],
        "type": "object",
        "properties": {
          "endereco": {
            "type": [
              "null",
              "string"
            ]
          },
          "detalhe": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "NumerosDeEnvio": {
        "required": [
          "destinatarios",
          "entregas",
          "devolucoes",
          "reclamacoes",
          "taxaDeDevolucao",
          "taxaDeReclamacao"
        ],
        "type": "object",
        "properties": {
          "destinatarios": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "entregas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "devolucoes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "reclamacoes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "taxaDeDevolucao": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "taxaDeReclamacao": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "ObstetricosNoPec": {
        "required": [
          "gestacoes",
          "partos",
          "abortos",
          "cesareas",
          "nascidosVivos",
          "filhosVivos",
          "ultimoParto"
        ],
        "type": "object",
        "properties": {
          "gestacoes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "partos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "abortos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "cesareas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "nascidosVivos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "filhosVivos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "ultimoParto": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          }
        }
      },
      "OcorrenciaAps": {
        "required": [
          "id",
          "severidade",
          "natureza",
          "tema",
          "titulo",
          "valor",
          "prazo",
          "afetados",
          "comoResolver",
          "evidencia"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "severidade": {
            "type": "string"
          },
          "natureza": {
            "type": "string"
          },
          "tema": {
            "type": "string"
          },
          "titulo": {
            "type": "string"
          },
          "valor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "prazo": {
            "type": [
              "null",
              "string"
            ]
          },
          "afetados": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "comoResolver": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "evidencia": {
            "type": "string"
          },
          "perde": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/PerdeORepasseAps"
            }
          }
        }
      },
      "OcorrenciaDaAgenda": {
        "required": [
          "id",
          "titulo",
          "descricao",
          "categoria",
          "categoriaRotulo",
          "temConsequencia",
          "inicio",
          "fim",
          "deUmDiaSo",
          "duracaoEmDias",
          "regra"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "titulo": {
            "type": "string"
          },
          "descricao": {
            "type": [
              "null",
              "string"
            ]
          },
          "categoria": {
            "type": "string"
          },
          "categoriaRotulo": {
            "type": "string"
          },
          "temConsequencia": {
            "type": "boolean"
          },
          "inicio": {
            "type": "string",
            "format": "date"
          },
          "fim": {
            "type": "string",
            "format": "date"
          },
          "deUmDiaSo": {
            "type": "boolean"
          },
          "duracaoEmDias": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "regra": {
            "type": "string"
          }
        }
      },
      "OcorrenciaDoInstrumento": {
        "required": [
          "quando",
          "perfil",
          "quem",
          "doConselho",
          "descricao"
        ],
        "type": "object",
        "properties": {
          "quando": {
            "type": [
              "null",
              "string"
            ]
          },
          "perfil": {
            "type": [
              "null",
              "string"
            ]
          },
          "quem": {
            "type": "string"
          },
          "doConselho": {
            "type": "boolean"
          },
          "descricao": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "Opcao": {
        "required": [
          "codigo",
          "rotulo"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string"
          },
          "rotulo": {
            "type": "string"
          }
        }
      },
      "OpcaoDeCota": {
        "required": [
          "mb",
          "rotulo",
          "padrao"
        ],
        "type": "object",
        "properties": {
          "mb": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "rotulo": {
            "type": "string"
          },
          "padrao": {
            "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"
          }
        }
      },
      "OpcaoDoEstoque": {
        "required": [
          "codigo",
          "rotulo"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string"
          },
          "rotulo": {
            "type": "string"
          }
        }
      },
      "OpcaoFiscalDoStudio": {
        "required": [
          "valor",
          "rotulo"
        ],
        "type": "object",
        "properties": {
          "valor": {
            "type": "string"
          },
          "rotulo": {
            "type": "string"
          }
        }
      },
      "OpcoesDeContratacao": {
        "required": [
          "estados",
          "ritos",
          "naturezasObjeto",
          "categorias",
          "metodosApuracao",
          "fontesPreco",
          "tiposPeca",
          "preenchimentos",
          "julgamentos",
          "papeisNoProcesso",
          "fasesDoConselho",
          "hipotesesDeDispensa"
        ],
        "type": "object",
        "properties": {
          "estados": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Opcao"
            }
          },
          "ritos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Opcao"
            }
          },
          "naturezasObjeto": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Opcao"
            }
          },
          "categorias": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Opcao"
            }
          },
          "metodosApuracao": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Opcao"
            }
          },
          "fontesPreco": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Opcao"
            }
          },
          "tiposPeca": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Opcao"
            }
          },
          "preenchimentos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Opcao"
            }
          },
          "julgamentos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Opcao"
            }
          },
          "papeisNoProcesso": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Opcao"
            }
          },
          "fasesDoConselho": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Opcao"
            }
          },
          "hipotesesDeDispensa": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Opcao"
            }
          }
        }
      },
      "OpcoesDeContrato": {
        "required": [
          "naturezas",
          "limites",
          "tiposDeAditivo",
          "situacoes",
          "diasDeAviso"
        ],
        "type": "object",
        "properties": {
          "naturezas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Opcao"
            }
          },
          "limites": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Opcao"
            }
          },
          "tiposDeAditivo": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Opcao"
            }
          },
          "situacoes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Opcao"
            }
          },
          "diasDeAviso": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "OpcoesDeMarcacao": {
        "required": [
          "pessoas"
        ],
        "type": "object",
        "properties": {
          "pessoas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PessoaParaMarcar"
            }
          }
        }
      },
      "OpcoesDePesquisa": {
        "required": [
          "fontes",
          "esferas",
          "minimoDeFontes",
          "mesesDeValidadeDaPesquisaDireta",
          "limiteCvParaMedia",
          "limiteCvParaMediaSaneada"
        ],
        "type": "object",
        "properties": {
          "fontes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FonteDePreco"
            }
          },
          "esferas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EsferaDePreco"
            }
          },
          "minimoDeFontes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "mesesDeValidadeDaPesquisaDireta": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "limiteCvParaMedia": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "limiteCvParaMediaSaneada": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "OpcoesDoEstoque": {
        "required": [
          "unidades",
          "exigencias"
        ],
        "type": "object",
        "properties": {
          "unidades": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OpcaoDoEstoque"
            }
          },
          "exigencias": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OpcaoDoEstoque"
            }
          }
        }
      },
      "OperacaoDoEstoque": {
        "required": [
          "operacao",
          "movimentos"
        ],
        "type": "object",
        "properties": {
          "operacao": {
            "type": "string",
            "format": "uuid"
          },
          "movimentos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MovimentoDoEstoque"
            }
          }
        }
      },
      "OQueFazer": {
        "required": [
          "hoje",
          "lidoEm",
          "prioridades",
          "daEquipe",
          "daAcs",
          "agentes",
          "configuracao"
        ],
        "type": "object",
        "properties": {
          "hoje": {
            "type": "string",
            "format": "date"
          },
          "lidoEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "prioridades": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ItemDoQuadro"
            }
          },
          "daEquipe": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ItemDoQuadro"
            }
          },
          "daAcs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ItemDoQuadro"
            }
          },
          "agentes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AcsDoPlano"
            }
          },
          "configuracao": {
            "$ref": "#/components/schemas/ConfiguracaoDoPlano"
          }
        }
      },
      "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"
          },
          "tenant": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/TenantResumo"
              }
            ]
          },
          "cpf": {
            "type": [
              "null",
              "string"
            ]
          },
          "logoPrefeituraAtualizadoEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "logoSaudeAtualizadoEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        }
      },
      "OrgaoDoDominio": {
        "required": [
          "codigo",
          "nome"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string",
            "format": "uuid"
          },
          "nome": {
            "type": "string"
          }
        }
      },
      "OrgaoNasContratacoes": {
        "required": [
          "municipio",
          "uf",
          "secretaria",
          "responsaveis",
          "timbre"
        ],
        "type": "object",
        "properties": {
          "municipio": {
            "type": "string"
          },
          "uf": {
            "type": "string"
          },
          "secretaria": {
            "type": [
              "null",
              "string"
            ]
          },
          "responsaveis": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResponsavelDeContratacao"
            }
          },
          "timbre": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/TimbreDoOrgao"
              }
            ]
          }
        }
      },
      "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"
            }
          },
          "tenant": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/TenantResumo"
              }
            ]
          },
          "logoPrefeituraAtualizadoEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "logoSaudeAtualizadoEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "subdominio": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "OrigemDoFundeb": {
        "required": [
          "origem",
          "valor"
        ],
        "type": "object",
        "properties": {
          "origem": {
            "type": "string"
          },
          "valor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "PacienteConhecido": {
        "required": [
          "paciente",
          "telefone",
          "unidade"
        ],
        "type": "object",
        "properties": {
          "paciente": {
            "type": "string"
          },
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "unidade": {
            "type": [
              "null",
              "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"
          },
          "domicilioId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "parentesco": {
            "type": [
              "null",
              "string"
            ]
          },
          "faleceu": {
            "type": "boolean",
            "default": false
          },
          "microarea": {
            "type": [
              "null",
              "string"
            ]
          },
          "agente": {
            "type": [
              "null",
              "string"
            ]
          },
          "unidade": {
            "type": [
              "null",
              "string"
            ]
          },
          "appUsadoEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        }
      },
      "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"
            ]
          }
        }
      },
      "PadraoDoCatalogoLido": {
        "required": [
          "tipo",
          "codigo",
          "nome",
          "classe"
        ],
        "type": "object",
        "properties": {
          "tipo": {
            "type": "string"
          },
          "codigo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "nome": {
            "type": "string"
          },
          "classe": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PagamentoAps": {
        "required": [
          "mes",
          "competenciaCnes",
          "recebido",
          "custeio",
          "implantacao",
          "descontos",
          "ajustes",
          "anterior",
          "teto",
          "populacao",
          "planos",
          "componentes",
          "coletadoEm"
        ],
        "type": "object",
        "properties": {
          "mes": {
            "type": "string"
          },
          "competenciaCnes": {
            "type": "string"
          },
          "recebido": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "custeio": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "implantacao": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "descontos": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "ajustes": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "anterior": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ComparacaoAps"
              }
            ]
          },
          "teto": {
            "$ref": "#/components/schemas/TetoAps"
          },
          "populacao": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "planos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PlanoDoPagamentoAps"
            }
          },
          "componentes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ComponenteDoPagamentoAps"
            }
          },
          "coletadoEm": {
            "type": "string",
            "format": "date-time"
          },
          "perda": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/PerdaAps"
              }
            ]
          }
        }
      },
      "PagamentoDaComandaDoStudio": {
        "required": [
          "forma",
          "formaRotulo",
          "valor",
          "parcelas"
        ],
        "type": "object",
        "properties": {
          "forma": {
            "type": "string"
          },
          "formaRotulo": {
            "type": "string"
          },
          "valor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "parcelas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "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"
            ]
          }
        }
      },
      "PagamentoDoEstado": {
        "required": [
          "data",
          "valor",
          "documento",
          "situacao"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "valor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "documento": {
            "type": [
              "null",
              "string"
            ]
          },
          "situacao": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PaginaDeMensagens": {
        "required": [
          "itens",
          "total"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResumoDaMensagem"
            }
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "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"
          }
        }
      },
      "PaginaOfAcsDoPagamentoAps": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AcsDoPagamentoAps"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfAgendamentoDoStudio": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AgendamentoDoStudio"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfAlmoxarifadoDoEstoque": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AlmoxarifadoDoEstoque"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfBaixaDoEstoque": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BaixaDoEstoque"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfCaixaDeEmailResumo": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CaixaDeEmailResumo"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfCandidatoARegra": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CandidatoARegra"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfCasaSemTelefone": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CasaSemTelefone"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfCategoriaDeEstoque": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CategoriaDeEstoque"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfClienteDoStudio": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ClienteDoStudio"
            }
          },
          "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"
          }
        }
      },
      "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"
          }
        }
      },
      "PaginaOfComandaSemNota": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ComandaSemNota"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfCriancaDoAcompanhamento": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CriancaDoAcompanhamento"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfCronicoDoAcompanhamento": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CronicoDoAcompanhamento"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfDomicilioResumo": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DomicilioResumo"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfDominioDeEmailResumo": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DominioDeEmailResumo"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfDominioNoServidor": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DominioNoServidor"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfDotacaoDoOrgao": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DotacaoDoOrgao"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfEquipeCnesResposta": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EquipeCnesResposta"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfEquipeDoPagamentoAps": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EquipeDoPagamentoAps"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfEstabelecimentoCnesResposta": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EstabelecimentoCnesResposta"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfGestanteDoAcompanhamento": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GestanteDoAcompanhamento"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfIdosoDoAcompanhamento": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IdosoDoAcompanhamento"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfInventarioDoEstoque": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InventarioDoEstoque"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfItemDaCaixa": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ItemDaCaixa"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfJovemDasVacinas": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/JovemDasVacinas"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfLancamentoDoCaixa": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LancamentoDoCaixa"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfLeadResposta": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LeadResposta"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfLinhaDoInventario": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LinhaDoInventario"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfMensagemDaCaixa": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MensagemDaCaixa"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfModeloDoOrgao": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ModeloDoOrgao"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfMovimentoDoEstoque": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MovimentoDoEstoque"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfMovimentoDoProduto": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MovimentoDoProduto"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfMulherDoAcompanhamento": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MulherDoAcompanhamento"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfNotaFiscalDoStudio": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NotaFiscalDoStudio"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfPessoaDoIndicador": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PessoaDoIndicador"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfPoliticaDoOrgaoLida": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PoliticaDoOrgaoLida"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfProdutoDoEstoque": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProdutoDoEstoque"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfProdutoDoStudio": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProdutoDoStudio"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfProfissionalCnesResposta": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProfissionalCnesResposta"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfProfissionalDaAgenda": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProfissionalDaAgenda"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfProfissionalDoStudio": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProfissionalDoStudio"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfRecadoDoApp": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RecadoDoApp"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfRegistroDeEmailItem": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RegistroDeEmailItem"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfRenovacaoNaFila": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RenovacaoNaFila"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfResumoDaComanda": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResumoDaComanda"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfResumoDeContrato": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResumoDeContrato"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfResumoDeImpugnacao": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResumoDeImpugnacao"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfResumoDePesquisa": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResumoDePesquisa"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfResumoDeProcesso": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResumoDeProcesso"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfSaldoDoEstoque": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SaldoDoEstoque"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfServicoDoStudio": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ServicoDoStudio"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfSupressaoItem": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SupressaoItem"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfTenantDetalhe": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TenantDetalhe"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfTransferenciaDoEstoque": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TransferenciaDoEstoque"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfUnidadeDeMedidaDoOrgao": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UnidadeDeMedidaDoOrgao"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfUnidadeDoOrgao": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UnidadeDoOrgao"
            }
          },
          "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"
          }
        }
      },
      "PaginaOfVisitaDaAcs": {
        "required": [
          "itens",
          "total",
          "numero",
          "tamanho"
        ],
        "type": "object",
        "properties": {
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VisitaDaAcs"
            }
          },
          "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"
          }
        }
      },
      "PainelCenso": {
        "required": [
          "ano",
          "anos",
          "redeMunicipal",
          "todasAsRedes",
          "serie",
          "escolas",
          "fundebPorAluno",
          "anoDoFundeb",
          "fundebDoAno",
          "matriculasDaConta",
          "ultimaColeta"
        ],
        "type": "object",
        "properties": {
          "ano": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "anos": {
            "type": "array",
            "items": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          "redeMunicipal": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/MatriculasDoAno"
              }
            ]
          },
          "todasAsRedes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "serie": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MatriculasDoAno"
            }
          },
          "escolas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EscolaDoCensoResposta"
            }
          },
          "fundebPorAluno": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "anoDoFundeb": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "fundebDoAno": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "matriculasDaConta": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "ultimaColeta": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ColetaDoModulo"
              }
            ]
          }
        }
      },
      "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"
          }
        }
      },
      "PainelDeContratacoes": {
        "required": [
          "total",
          "trioPendente",
          "processosComImpedimento",
          "totalBloqueantes",
          "valorTotalFormatado",
          "porEstado",
          "recentes",
          "ondeMaisErra"
        ],
        "type": "object",
        "properties": {
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "trioPendente": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "processosComImpedimento": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "totalBloqueantes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "valorTotalFormatado": {
            "type": "string"
          },
          "porEstado": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContagemPorEstado"
            }
          },
          "recentes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProcessoComAchados"
            }
          },
          "ondeMaisErra": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Reincidencia"
            }
          }
        }
      },
      "PainelDeEnvio": {
        "required": [
          "horas",
          "transporte",
          "sesConfigurado",
          "conta",
          "caixas",
          "limitePorHora",
          "limitePorDia",
          "destinatariosPorMensagem",
          "taxaParaBloquear",
          "reclamacoesParaBloquear"
        ],
        "type": "object",
        "properties": {
          "horas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "transporte": {
            "type": "string"
          },
          "sesConfigurado": {
            "type": "boolean"
          },
          "conta": {
            "$ref": "#/components/schemas/NumerosDeEnvio"
          },
          "caixas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EnvioPorCaixa"
            }
          },
          "limitePorHora": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "limitePorDia": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "destinatariosPorMensagem": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "taxaParaBloquear": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "reclamacoesParaBloquear": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "PainelDePrazos": {
        "required": [
          "totalEmAberto",
          "noPrazo",
          "atencao",
          "vencendo",
          "vencidas",
          "taxaRespostaNoPrazo",
          "respostasNoPrazo",
          "respostasTotal",
          "maisAtrasadas",
          "comProtocolos",
          "porUnidade"
        ],
        "type": "object",
        "properties": {
          "totalEmAberto": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "noPrazo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "atencao": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "vencendo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "vencidas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "taxaRespostaNoPrazo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "respostasNoPrazo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "respostasTotal": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "maisAtrasadas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ItemAtrasado"
            }
          },
          "comProtocolos": {
            "type": "boolean"
          },
          "porUnidade": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PrazosPorUnidade"
            }
          }
        }
      },
      "PainelDoDia": {
        "required": [
          "dia",
          "enviadas",
          "limite",
          "extra",
          "restantes",
          "lembretesPendentes",
          "primeirosContatos",
          "responderam",
          "demonstracoes",
          "abertasSemConfirmar"
        ],
        "type": "object",
        "properties": {
          "dia": {
            "type": "string",
            "format": "date"
          },
          "enviadas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "limite": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "extra": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "restantes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "lembretesPendentes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "primeirosContatos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "responderam": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "demonstracoes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "abertasSemConfirmar": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "PainelDosTelefones": {
        "required": [
          "casas",
          "casasCom",
          "pacientes",
          "pacientesComCelular",
          "porEquipe",
          "porMicroarea",
          "evolucao",
          "equipe",
          "microarea",
          "podeVerCasas",
          "podeGerir",
          "podeInformarCasa"
        ],
        "type": "object",
        "properties": {
          "casas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "casasCom": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pacientes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pacientesComCelular": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "porEquipe": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RecorteDosTelefones"
            }
          },
          "porMicroarea": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RecorteDosTelefones"
            }
          },
          "evolucao": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DiaDosTelefones"
            }
          },
          "equipe": {
            "type": [
              "null",
              "string"
            ]
          },
          "microarea": {
            "type": [
              "null",
              "string"
            ]
          },
          "podeVerCasas": {
            "type": "boolean"
          },
          "podeGerir": {
            "type": "boolean"
          },
          "podeInformarCasa": {
            "type": "boolean"
          }
        }
      },
      "PainelEducacao": {
        "required": [
          "exercicio",
          "bimestre",
          "minimos",
          "grupos",
          "serie",
          "historico",
          "ultimaColeta",
          "coletaEmCurso"
        ],
        "type": "object",
        "properties": {
          "exercicio": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "bimestre": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "minimos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MinimoEducacao"
            }
          },
          "grupos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GrupoDeIndicadores"
            }
          },
          "serie": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BimestreEducacao"
            }
          },
          "historico": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AnoEducacao"
            }
          },
          "ultimaColeta": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ColetaDoModulo"
              }
            ]
          },
          "coletaEmCurso": {
            "type": "boolean"
          }
        }
      },
      "PainelFnde": {
        "required": [
          "ano",
          "anos",
          "meses",
          "favorecidos",
          "creditos",
          "recebidoNoAno",
          "ultimaColeta",
          "coletaEmCurso"
        ],
        "type": "object",
        "properties": {
          "ano": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "anos": {
            "type": "array",
            "items": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          "meses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MesDoFnde"
            }
          },
          "favorecidos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FavorecidoDoFnde"
            }
          },
          "creditos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreditoDoFnde"
            }
          },
          "recebidoNoAno": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "ultimaColeta": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ColetaDoModulo"
              }
            ]
          },
          "coletaEmCurso": {
            "type": "boolean"
          }
        }
      },
      "PainelFundebMensal": {
        "required": [
          "ano",
          "anos",
          "meses",
          "origens",
          "recebidoNoAno",
          "recebidoAteOMesNoAnoAnterior",
          "previstoNoAno",
          "ultimaColeta"
        ],
        "type": "object",
        "properties": {
          "ano": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "anos": {
            "type": "array",
            "items": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          "meses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FundebDoMes"
            }
          },
          "origens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrigemDoFundeb"
            }
          },
          "recebidoNoAno": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "recebidoAteOMesNoAnoAnterior": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "previstoNoAno": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "ultimaColeta": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ColetaDoModulo"
              }
            ]
          }
        }
      },
      "PainelIdeb": {
        "required": [
          "edicao",
          "redes",
          "escolas",
          "ultimaColeta"
        ],
        "type": "object",
        "properties": {
          "edicao": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "redes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SerieDoIdeb"
            }
          },
          "escolas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IdebDaEscola"
            }
          },
          "ultimaColeta": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ColetaDoModulo"
              }
            ]
          }
        }
      },
      "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"
          },
          "projecao": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ProjecaoSiops"
              }
            ]
          },
          "evolucao": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/AnoNaEvolucao"
            }
          },
          "comparativo": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ComparativoSiops"
              }
            ]
          }
        }
      },
      "PainelTransporteEscolar": {
        "required": [
          "ano",
          "anos",
          "cnpjPrefeitura",
          "pteEmpenhado",
          "ptePagoNoAno",
          "ptePagoNoAnoAnterior",
          "pagamentos",
          "outrosDaSee",
          "semDetalhe",
          "ultimaColeta",
          "aviso"
        ],
        "type": "object",
        "properties": {
          "ano": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "anos": {
            "type": "array",
            "items": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          "cnpjPrefeitura": {
            "type": [
              "null",
              "string"
            ]
          },
          "pteEmpenhado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "ptePagoNoAno": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "ptePagoNoAnoAnterior": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "pagamentos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PagamentoDoEstado"
            }
          },
          "outrosDaSee": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RepasseDaSee"
            }
          },
          "semDetalhe": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "ultimaColeta": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ColetaDoModulo"
              }
            ]
          },
          "aviso": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PapelAtribuivel": {
        "required": [
          "valor",
          "rotulo",
          "descricao",
          "pertenceAOrgao"
        ],
        "type": "object",
        "properties": {
          "valor": {
            "type": "string"
          },
          "rotulo": {
            "type": "string"
          },
          "descricao": {
            "type": "string"
          },
          "pertenceAOrgao": {
            "type": "boolean"
          }
        }
      },
      "ParametroDaOuvidoriaEnviado": {
        "required": [
          "chave",
          "valor",
          "descricao"
        ],
        "type": "object",
        "properties": {
          "chave": {
            "type": [
              "null",
              "string"
            ]
          },
          "valor": {
            "type": [
              "null",
              "string"
            ]
          },
          "descricao": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ParametroEmUso": {
        "required": [
          "chave",
          "descricao",
          "padrao",
          "valor",
          "sobrescrito",
          "observacao"
        ],
        "type": "object",
        "properties": {
          "chave": {
            "type": "string"
          },
          "descricao": {
            "type": "string"
          },
          "padrao": {
            "type": "string"
          },
          "valor": {
            "type": "string"
          },
          "sobrescrito": {
            "type": "boolean"
          },
          "observacao": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ParametroLegalVigente": {
        "required": [
          "codigo",
          "nome",
          "valor",
          "valorFormatado",
          "fundamento",
          "vigenciaInicio",
          "vigenciaFim",
          "versao",
          "vigenteHoje"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string"
          },
          "nome": {
            "type": "string"
          },
          "valor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "valorFormatado": {
            "type": "string"
          },
          "fundamento": {
            "type": "string"
          },
          "vigenciaInicio": {
            "type": "string"
          },
          "vigenciaFim": {
            "type": [
              "null",
              "string"
            ]
          },
          "versao": {
            "type": "string"
          },
          "vigenteHoje": {
            "type": "boolean"
          }
        }
      },
      "ParcelaAps": {
        "required": [
          "mes",
          "recebido",
          "perdido",
          "competenciaCnes"
        ],
        "type": "object",
        "properties": {
          "mes": {
            "type": "string"
          },
          "recebido": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "perdido": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "competenciaCnes": {
            "type": "string"
          }
        }
      },
      "ParcelaDaEquipeAps": {
        "required": [
          "mes",
          "situacao",
          "motivo"
        ],
        "type": "object",
        "properties": {
          "mes": {
            "type": "string"
          },
          "situacao": {
            "type": "string"
          },
          "motivo": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ParentescoInformado": {
        "required": [
          "parentesco"
        ],
        "type": "object",
        "properties": {
          "parentesco": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ParesAps": {
        "required": [
          "criterio",
          "municipios"
        ],
        "type": "object",
        "properties": {
          "criterio": {
            "type": "string"
          },
          "municipios": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "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"
            ]
          }
        }
      },
      "ParteDaDespesa": {
        "required": [
          "nome",
          "doMunicipio",
          "medianaDoEstado"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": "string"
          },
          "doMunicipio": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "medianaDoEstado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "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
          },
          "pacienteId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "consulta": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "Passagem": {
        "required": [
          "codigo",
          "endereco",
          "expiraEm"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string"
          },
          "endereco": {
            "type": "string"
          },
          "expiraEm": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "PassagemEnviada": {
        "required": [
          "situacao"
        ],
        "type": "object",
        "properties": {
          "situacao": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PassoDaAplicacao": {
        "required": [
          "chave",
          "titulo",
          "situacao",
          "mensagem"
        ],
        "type": "object",
        "properties": {
          "chave": {
            "type": "string"
          },
          "titulo": {
            "type": "string"
          },
          "situacao": {
            "type": "string"
          },
          "mensagem": {
            "type": "string"
          }
        }
      },
      "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"
          }
        }
      },
      "PassoNoApp": {
        "required": [
          "codigo",
          "titulo",
          "situacao",
          "detalhe",
          "feitas",
          "meta",
          "quem"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string"
          },
          "titulo": {
            "type": "string"
          },
          "situacao": {
            "type": "string"
          },
          "detalhe": {
            "type": [
              "null",
              "string"
            ]
          },
          "feitas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "meta": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "quem": {
            "type": "string"
          }
        }
      },
      "Pasta": {
        "required": [
          "caminho",
          "nome",
          "papel",
          "total",
          "naoLidas"
        ],
        "type": "object",
        "properties": {
          "caminho": {
            "type": "string"
          },
          "nome": {
            "type": "string"
          },
          "papel": {
            "type": "string"
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "naoLidas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "PecaDoProcesso": {
        "required": [
          "id",
          "tipo",
          "sigla",
          "versao",
          "estado",
          "secoes",
          "secoesVazias"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "tipo": {
            "$ref": "#/components/schemas/Opcao"
          },
          "sigla": {
            "type": "string"
          },
          "versao": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "estado": {
            "$ref": "#/components/schemas/Opcao"
          },
          "secoes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SecaoDaPeca"
            }
          },
          "secoesVazias": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "PedidoACivi": {
        "required": [
          "conversa",
          "mensagens"
        ],
        "type": "object",
        "properties": {
          "conversa": {
            "type": "string",
            "format": "uuid"
          },
          "mensagens": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/MensagemDaCivi"
            }
          }
        }
      },
      "PedidoDeAbertura": {
        "required": [
          "tipo"
        ],
        "type": "object",
        "properties": {
          "tipo": {
            "type": "string"
          },
          "reabrir": {
            "type": "boolean",
            "default": false
          }
        }
      },
      "PedidoDeAcaoTratada": {
        "required": [
          "chave",
          "nota"
        ],
        "type": "object",
        "properties": {
          "chave": {
            "type": "string"
          },
          "nota": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PedidoDeAcesso": {
        "required": [
          "email",
          "papel",
          "senha"
        ],
        "type": "object",
        "properties": {
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "papel": {
            "type": [
              "null",
              "string"
            ]
          },
          "senha": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PedidoDeAdocao": {
        "required": [
          "nome",
          "orgao"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "orgao": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          }
        }
      },
      "PedidoDeAgendamento": {
        "required": [
          "cliente",
          "servico",
          "profissional",
          "inicio",
          "duracaoMinutos",
          "observacoes"
        ],
        "type": "object",
        "properties": {
          "cliente": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "servico": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "profissional": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "inicio": {
            "type": [
              "null",
              "string"
            ]
          },
          "duracaoMinutos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "observacoes": {
            "type": [
              "null",
              "string"
            ]
          },
          "encaixe": {
            "type": "boolean",
            "default": false
          }
        }
      },
      "PedidoDeAgendamentoPublico": {
        "required": [
          "nome",
          "celular",
          "servico",
          "profissional",
          "inicio"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "celular": {
            "type": [
              "null",
              "string"
            ]
          },
          "servico": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "profissional": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "inicio": {
            "type": [
              "null",
              "string"
            ]
          },
          "aceitaPromocoes": {
            "type": [
              "null",
              "boolean"
            ]
          }
        }
      },
      "PedidoDeAjusteDeEstoque": {
        "required": [
          "quantidade",
          "motivo"
        ],
        "type": "object",
        "properties": {
          "quantidade": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "motivo": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PedidoDeApelidoDoCertificado": {
        "required": [
          "apelido"
        ],
        "type": "object",
        "properties": {
          "apelido": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PedidoDeAplicacao": {
        "required": [
          "confirmacao"
        ],
        "type": "object",
        "properties": {
          "confirmacao": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PedidoDeAviso": {
        "required": [
          "consultas"
        ],
        "type": "object",
        "properties": {
          "consultas": {
            "type": "array",
            "items": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          }
        }
      },
      "PedidoDeBloqueio": {
        "required": [
          "profissional",
          "inicio",
          "fim",
          "motivo"
        ],
        "type": "object",
        "properties": {
          "profissional": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "inicio": {
            "type": [
              "null",
              "string"
            ]
          },
          "fim": {
            "type": [
              "null",
              "string"
            ]
          },
          "motivo": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PedidoDeCancelamento": {
        "required": [
          "motivo"
        ],
        "type": "object",
        "properties": {
          "motivo": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PedidoDeCancelamentoDaNotaDoStudio": {
        "required": [
          "motivo"
        ],
        "type": "object",
        "properties": {
          "motivo": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PedidoDeCliente": {
        "required": [
          "nome",
          "celular",
          "email",
          "nascimento",
          "observacoes"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "celular": {
            "type": [
              "null",
              "string"
            ]
          },
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "nascimento": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "observacoes": {
            "type": [
              "null",
              "string"
            ]
          },
          "aceitaMensagensPromocionais": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "cpf": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PedidoDeCodigo": {
        "required": [
          "codigo"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PedidoDeCodigoDeEntrada": {
        "required": [
          "celular",
          "painel"
        ],
        "type": "object",
        "properties": {
          "celular": {
            "type": [
              "null",
              "string"
            ]
          },
          "painel": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PedidoDeCodigoDoApp": {
        "required": [
          "celular"
        ],
        "type": "object",
        "properties": {
          "celular": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PedidoDeColeta": {
        "required": [
          "ano"
        ],
        "type": "object",
        "properties": {
          "ano": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "PedidoDeComanda": {
        "required": [
          "cliente",
          "observacao"
        ],
        "type": "object",
        "properties": {
          "cliente": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "observacao": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PedidoDeConfirmacao": {
        "required": [
          "agendamentos"
        ],
        "type": "object",
        "properties": {
          "agendamentos": {
            "type": "array",
            "items": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          }
        }
      },
      "PedidoDeContaDoProfissional": {
        "required": [
          "email"
        ],
        "type": "object",
        "properties": {
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "celular": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PedidoDeContatoDoLead": {
        "required": [
          "situacao",
          "anotacao"
        ],
        "type": "object",
        "properties": {
          "situacao": {
            "type": "string"
          },
          "anotacao": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PedidoDeConversa": {
        "required": [
          "mensagens"
        ],
        "type": "object",
        "properties": {
          "mensagens": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/MensagemDaConversa"
            }
          },
          "acesso": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PedidoDeCotaDaCaixa": {
        "required": [
          "cotaMb"
        ],
        "type": "object",
        "properties": {
          "cotaMb": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "PedidoDeDesconto": {
        "required": [
          "valor"
        ],
        "type": "object",
        "properties": {
          "valor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "PedidoDeDestrava": {
        "required": [
          "pin"
        ],
        "type": "object",
        "properties": {
          "pin": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PedidoDeEmissaoDaNota": {
        "required": [
          "cpfDoCliente"
        ],
        "type": "object",
        "properties": {
          "cpfDoCliente": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PedidoDeEnquadramentoEnviado": {
        "required": [
          "naturezaObjeto",
          "valorAnual",
          "dataDeReferencia",
          "exercicio"
        ],
        "type": "object",
        "properties": {
          "naturezaObjeto": {
            "type": [
              "null",
              "string"
            ]
          },
          "valorAnual": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "dataDeReferencia": {
            "type": [
              "null",
              "string"
            ]
          },
          "exercicio": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "categoria": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "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"
            ]
          },
          "subdominio": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PedidoDeEntradaDeEstoque": {
        "required": [
          "quantidade",
          "custoUnitario",
          "motivo"
        ],
        "type": "object",
        "properties": {
          "quantidade": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "custoUnitario": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "motivo": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PedidoDeEntradaNaCaixa": {
        "required": [
          "endereco",
          "senha"
        ],
        "type": "object",
        "properties": {
          "endereco": {
            "type": [
              "null",
              "string"
            ]
          },
          "senha": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PedidoDeEnvio": {
        "required": [
          "tipo"
        ],
        "type": "object",
        "properties": {
          "tipo": {
            "type": "string"
          }
        }
      },
      "PedidoDeEstorno": {
        "required": [
          "motivo"
        ],
        "type": "object",
        "properties": {
          "motivo": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PedidoDeExpediente": {
        "required": [
          "faixas"
        ],
        "type": "object",
        "properties": {
          "faixas": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/FaixaDoExpediente"
            }
          }
        }
      },
      "PedidoDeExportacaoNominal": {
        "required": [
          "justificativa",
          "unidade",
          "microarea",
          "criterio",
          "situacao",
          "quem",
          "busca"
        ],
        "type": "object",
        "properties": {
          "justificativa": {
            "type": [
              "null",
              "string"
            ]
          },
          "unidade": {
            "type": [
              "null",
              "string"
            ]
          },
          "microarea": {
            "type": [
              "null",
              "string"
            ]
          },
          "criterio": {
            "type": [
              "null",
              "string"
            ]
          },
          "situacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "quem": {
            "type": [
              "null",
              "string"
            ]
          },
          "busca": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PedidoDeFechamento": {
        "required": [
          "pagamentos"
        ],
        "type": "object",
        "properties": {
          "pagamentos": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/PedidoDePagamento"
            }
          }
        }
      },
      "PedidoDeImportacao": {
        "required": [
          "tipo",
          "arquivoBase64"
        ],
        "type": "object",
        "properties": {
          "tipo": {
            "type": "string"
          },
          "arquivoBase64": {
            "type": "string"
          }
        }
      },
      "PedidoDeLancamento": {
        "required": [
          "forma",
          "valor",
          "parcelas",
          "descricao"
        ],
        "type": "object",
        "properties": {
          "forma": {
            "type": [
              "null",
              "string"
            ]
          },
          "valor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "parcelas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "descricao": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PedidoDeLembreteAutomatico": {
        "required": [
          "ligado",
          "hora"
        ],
        "type": "object",
        "properties": {
          "ligado": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "hora": {
            "type": [
              "null",
              "string"
            ]
          },
          "duasHorasAntes": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "instancia": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PedidoDeLembretes": {
        "required": [
          "microarea"
        ],
        "type": "object",
        "properties": {
          "microarea": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PedidoDeLimite": {
        "required": [
          "limiteDiario"
        ],
        "type": "object",
        "properties": {
          "limiteDiario": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "PedidoDeMenuDoPainel": {
        "required": [
          "modulos"
        ],
        "type": "object",
        "properties": {
          "modulos": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "PedidoDeModelo": {
        "required": [
          "texto"
        ],
        "type": "object",
        "properties": {
          "texto": {
            "type": "string"
          }
        }
      },
      "PedidoDeModulos": {
        "required": [
          "modulos"
        ],
        "type": "object",
        "properties": {
          "modulos": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "PedidoDeNota": {
        "required": [
          "nota"
        ],
        "type": "object",
        "properties": {
          "nota": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "PedidoDeNotasEmLoteDoStudio": {
        "required": [
          "comandas"
        ],
        "type": "object",
        "properties": {
          "comandas": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string",
              "format": "uuid"
            }
          }
        }
      },
      "PedidoDeOrgaoDoDominio": {
        "required": [
          "orgao"
        ],
        "type": "object",
        "properties": {
          "orgao": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          }
        }
      },
      "PedidoDePagamento": {
        "required": [
          "forma",
          "valor",
          "parcelas"
        ],
        "type": "object",
        "properties": {
          "forma": {
            "type": [
              "null",
              "string"
            ]
          },
          "valor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "parcelas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "PedidoDePagamentoDeComissoes": {
        "required": [
          "profissional",
          "de",
          "ate"
        ],
        "type": "object",
        "properties": {
          "profissional": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "de": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "ate": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "forma": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PedidoDeParabens": {
        "required": [
          "pacientes"
        ],
        "type": "object",
        "properties": {
          "pacientes": {
            "type": "array",
            "items": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          },
          "texto": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PedidoDePassagem": {
        "required": [
          "painel"
        ],
        "type": "object",
        "properties": {
          "painel": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PedidoDePosicaoDaCapa": {
        "required": [
          "posicaoY"
        ],
        "type": "object",
        "properties": {
          "posicaoY": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "PedidoDeProdutoDoStudio": {
        "required": [
          "nome",
          "marca",
          "preco",
          "custo",
          "estoqueMinimo"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "marca": {
            "type": [
              "null",
              "string"
            ]
          },
          "preco": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "custo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "estoqueMinimo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "estoqueInicial": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "PedidoDeProdutoNaComanda": {
        "required": [
          "produto",
          "quantidade",
          "profissional"
        ],
        "type": "object",
        "properties": {
          "produto": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "quantidade": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "profissional": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          }
        }
      },
      "PedidoDeProfissional": {
        "required": [
          "nome",
          "apelido",
          "celular",
          "cor",
          "comissaoPercentual",
          "temAgenda",
          "servicos"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "apelido": {
            "type": [
              "null",
              "string"
            ]
          },
          "celular": {
            "type": [
              "null",
              "string"
            ]
          },
          "cor": {
            "type": [
              "null",
              "string"
            ]
          },
          "comissaoPercentual": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "temAgenda": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "servicos": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string",
              "format": "uuid"
            }
          },
          "acesso": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/PedidoDeAcesso"
              }
            ]
          },
          "regime": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PedidoDeProvisionamento": {
        "required": [
          "nome",
          "orgao",
          "confirmacao"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "orgao": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "confirmacao": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PedidoDeRecuperacaoDeSenha": {
        "required": [
          "email",
          "painel"
        ],
        "type": "object",
        "properties": {
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "painel": {
            "type": [
              "null",
              "string"
            ]
          },
          "celular": {
            "type": [
              "null",
              "string"
            ]
          },
          "canal": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PedidoDeRedacaoEnviado": {
        "required": [
          "acao",
          "tipo",
          "secao",
          "html",
          "objeto",
          "orgao"
        ],
        "type": "object",
        "properties": {
          "acao": {
            "type": [
              "null",
              "string"
            ]
          },
          "tipo": {
            "type": [
              "null",
              "string"
            ]
          },
          "secao": {
            "type": [
              "null",
              "string"
            ]
          },
          "html": {
            "type": [
              "null",
              "string"
            ]
          },
          "objeto": {
            "type": [
              "null",
              "string"
            ]
          },
          "orgao": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PedidoDeRedefinicaoDeSenha": {
        "required": [
          "token",
          "senhaNova"
        ],
        "type": "object",
        "properties": {
          "token": {
            "type": [
              "null",
              "string"
            ]
          },
          "senhaNova": {
            "type": [
              "null",
              "string"
            ]
          },
          "celular": {
            "type": [
              "null",
              "string"
            ]
          },
          "codigo": {
            "type": [
              "null",
              "string"
            ]
          },
          "painel": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PedidoDeResposta": {
        "required": [
          "resposta",
          "observacao"
        ],
        "type": "object",
        "properties": {
          "resposta": {
            "type": "string"
          },
          "observacao": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PedidoDeSegundoFator": {
        "required": [
          "codigo"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PedidoDeSenha": {
        "required": [
          "senha"
        ],
        "type": "object",
        "properties": {
          "senha": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PedidoDeServico": {
        "required": [
          "nome",
          "categoria",
          "duracaoMinutos",
          "preco",
          "comissaoPercentual",
          "online"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "categoria": {
            "type": [
              "null",
              "string"
            ]
          },
          "duracaoMinutos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "preco": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "comissaoPercentual": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "online": {
            "type": [
              "null",
              "boolean"
            ]
          }
        }
      },
      "PedidoDeServicoNaComanda": {
        "required": [
          "agendamento",
          "servico",
          "profissional",
          "preco"
        ],
        "type": "object",
        "properties": {
          "agendamento": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "servico": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "profissional": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "preco": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "PedidoDeServicosSugeridos": {
        "required": [
          "ramo",
          "servicos"
        ],
        "type": "object",
        "properties": {
          "ramo": {
            "type": [
              "null",
              "string"
            ]
          },
          "servicos": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "PedidoDeSituacao": {
        "required": [
          "ativo"
        ],
        "type": "object",
        "properties": {
          "ativo": {
            "type": "boolean"
          }
        }
      },
      "PedidoDeSituacaoDoProduto": {
        "required": [
          "ativo"
        ],
        "type": "object",
        "properties": {
          "ativo": {
            "type": "boolean"
          }
        }
      },
      "PedidoDeTenantDoOrgao": {
        "required": [
          "tenant"
        ],
        "type": "object",
        "properties": {
          "tenant": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          }
        }
      },
      "PedidoDeTrocaDeOrgao": {
        "required": [
          "codigo"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          }
        }
      },
      "PedidoDeTrocaDePassagem": {
        "required": [
          "codigo",
          "painel"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": [
              "null",
              "string"
            ]
          },
          "painel": {
            "type": [
              "null",
              "string"
            ]
          },
          "cliente": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PedidoDeTrocaDeSenha": {
        "required": [
          "senhaAtual",
          "senhaNova"
        ],
        "type": "object",
        "properties": {
          "senhaAtual": {
            "type": [
              "null",
              "string"
            ]
          },
          "senhaNova": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PedidoDeUnidadesDaConta": {
        "required": [
          "unidades"
        ],
        "type": "object",
        "properties": {
          "unidades": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          }
        }
      },
      "PedidoDoAgendamentoOnline": {
        "required": [
          "slug",
          "ativo",
          "antecedenciaMinimaMinutos",
          "diasAFrente",
          "mensagem"
        ],
        "type": "object",
        "properties": {
          "slug": {
            "type": [
              "null",
              "string"
            ]
          },
          "ativo": {
            "type": "boolean"
          },
          "antecedenciaMinimaMinutos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "diasAFrente": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "mensagem": {
            "type": [
              "null",
              "string"
            ]
          },
          "conversaComIa": {
            "type": [
              "null",
              "boolean"
            ]
          }
        }
      },
      "PedidoDoEmitenteDoStudio": {
        "required": [
          "inscricao",
          "razaoSocial",
          "nomeFantasia",
          "inscricaoMunicipal",
          "municipioIbge",
          "municipioNome",
          "uf",
          "regime",
          "codigoTributacaoPadrao",
          "serie",
          "proximoNumeroDps",
          "ambiente",
          "certificado"
        ],
        "type": "object",
        "properties": {
          "inscricao": {
            "type": [
              "null",
              "string"
            ]
          },
          "razaoSocial": {
            "type": [
              "null",
              "string"
            ]
          },
          "nomeFantasia": {
            "type": [
              "null",
              "string"
            ]
          },
          "inscricaoMunicipal": {
            "type": [
              "null",
              "string"
            ]
          },
          "municipioIbge": {
            "type": [
              "null",
              "string"
            ]
          },
          "municipioNome": {
            "type": [
              "null",
              "string"
            ]
          },
          "uf": {
            "type": [
              "null",
              "string"
            ]
          },
          "regime": {
            "type": [
              "null",
              "string"
            ]
          },
          "codigoTributacaoPadrao": {
            "type": [
              "null",
              "string"
            ]
          },
          "serie": {
            "type": [
              "null",
              "string"
            ]
          },
          "proximoNumeroDps": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "ambiente": {
            "type": [
              "null",
              "string"
            ]
          },
          "certificado": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "codigosPorServico": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/CodigoDoServicoNaNota"
            }
          }
        }
      },
      "PedidoDoEstabelecimento": {
        "required": [
          "ramo",
          "fuso",
          "telefone",
          "endereco",
          "instagram"
        ],
        "type": "object",
        "properties": {
          "ramo": {
            "type": [
              "null",
              "string"
            ]
          },
          "fuso": {
            "type": [
              "null",
              "string"
            ]
          },
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "endereco": {
            "type": [
              "null",
              "string"
            ]
          },
          "instagram": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PendenciaDoAcompanhamento": {
        "required": [
          "codigo",
          "frase",
          "quem",
          "urgente"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string"
          },
          "frase": {
            "type": "string"
          },
          "quem": {
            "type": "string"
          },
          "urgente": {
            "type": "boolean"
          }
        }
      },
      "PendenciaDoProfissionalAps": {
        "required": [
          "tipo",
          "situacao",
          "texto",
          "chaveDaAcao"
        ],
        "type": "object",
        "properties": {
          "tipo": {
            "type": "string"
          },
          "situacao": {
            "type": "string"
          },
          "texto": {
            "type": "string"
          },
          "chaveDaAcao": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PerdaAps": {
        "required": [
          "total",
          "glosa",
          "qualidade",
          "vinculo",
          "proporcional",
          "descontos",
          "completa",
          "naoPagas",
          "valorUnitario",
          "itens"
        ],
        "type": "object",
        "properties": {
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "glosa": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "qualidade": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "vinculo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "proporcional": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "descontos": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "completa": {
            "type": "boolean"
          },
          "naoPagas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "valorUnitario": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ItemDePerdaAps"
            }
          }
        }
      },
      "PerdaDaParcelaResumoAps": {
        "required": [
          "mes",
          "exata",
          "estimada",
          "completa"
        ],
        "type": "object",
        "properties": {
          "mes": {
            "type": "string"
          },
          "exata": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "estimada": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "completa": {
            "type": "boolean"
          }
        }
      },
      "PerdaDoAnoAps": {
        "required": [
          "ano",
          "parcelas",
          "parcelasComPerda",
          "total",
          "mediaDasComPerda"
        ],
        "type": "object",
        "properties": {
          "ano": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "parcelas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "parcelasComPerda": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "mediaDasComPerda": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "PerdeORepasseAps": {
        "required": [
          "ine",
          "equipe",
          "motivo"
        ],
        "type": "object",
        "properties": {
          "ine": {
            "type": "string"
          },
          "equipe": {
            "type": "string"
          },
          "motivo": {
            "type": "string"
          }
        }
      },
      "PerfilDaConta": {
        "required": [
          "codigo",
          "nome",
          "email",
          "celular"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string",
            "format": "uuid"
          },
          "nome": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "celular": {
            "type": [
              "null",
              "string"
            ]
          },
          "foto": {
            "type": [
              "null",
              "string"
            ]
          },
          "capa": {
            "type": [
              "null",
              "string"
            ]
          },
          "capaPosicaoY": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "PerfilNaOuvidoria": {
        "required": [
          "papel",
          "papelRotulo",
          "leManifestacoes",
          "administraCadastros",
          "setorId",
          "setor",
          "portal",
          "nomeDoPortal"
        ],
        "type": "object",
        "properties": {
          "papel": {
            "type": "string"
          },
          "papelRotulo": {
            "type": "string"
          },
          "leManifestacoes": {
            "type": "boolean"
          },
          "administraCadastros": {
            "type": "boolean"
          },
          "setorId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "setor": {
            "type": [
              "null",
              "string"
            ]
          },
          "portal": {
            "type": [
              "null",
              "string"
            ]
          },
          "nomeDoPortal": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PerfilRespondido": {
        "required": [
          "dono",
          "nome",
          "deveTrocarSenha",
          "cotaVendidaMb"
        ],
        "type": "object",
        "properties": {
          "dono": {
            "type": "string"
          },
          "nome": {
            "type": "string"
          },
          "deveTrocarSenha": {
            "type": "boolean"
          },
          "cotaVendidaMb": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "PesquisaEnviada": {
        "required": [
          "objeto"
        ],
        "type": "object",
        "properties": {
          "objeto": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PesquisaEscolhida": {
        "required": [
          "pesquisaId"
        ],
        "type": "object",
        "properties": {
          "pesquisaId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          }
        }
      },
      "PessoaDoIndicador": {
        "required": [
          "pacienteId",
          "nome",
          "nascimento",
          "unidade",
          "microarea",
          "agente",
          "pontos",
          "pontosPossiveis",
          "criterios"
        ],
        "type": "object",
        "properties": {
          "pacienteId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "nascimento": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "unidade": {
            "type": [
              "null",
              "string"
            ]
          },
          "microarea": {
            "type": [
              "null",
              "string"
            ]
          },
          "agente": {
            "type": [
              "null",
              "string"
            ]
          },
          "pontos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pontosPossiveis": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "criterios": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CriterioDaPessoa"
            }
          }
        }
      },
      "PessoaDoRoteiro": {
        "required": [
          "pacienteId",
          "nome",
          "nascimento",
          "telefone",
          "motivos"
        ],
        "type": "object",
        "properties": {
          "pacienteId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "nascimento": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "motivos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MotivoDaVisita"
            }
          }
        }
      },
      "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"
            ]
          }
        }
      },
      "PessoaNoApp": {
        "required": [
          "id",
          "nome",
          "primeiroNome"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "nome": {
            "type": "string"
          },
          "primeiroNome": {
            "type": "string"
          }
        }
      },
      "PessoaParaMarcar": {
        "required": [
          "id",
          "nome",
          "primeiroNome",
          "unidade",
          "profissionais",
          "motivo"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "nome": {
            "type": "string"
          },
          "primeiroNome": {
            "type": "string"
          },
          "unidade": {
            "type": [
              "null",
              "string"
            ]
          },
          "profissionais": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProfissionalParaMarcar"
            }
          },
          "motivo": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PlanejamentoDoMunicipio": {
        "required": [
          "gestoes",
          "gestao",
          "instrumentos",
          "resumo",
          "alertas",
          "ultimaColeta",
          "coletaEmCurso"
        ],
        "type": "object",
        "properties": {
          "gestoes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GestaoDoPlanejamento"
            }
          },
          "gestao": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/GestaoDoPlanejamento"
              }
            ]
          },
          "instrumentos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InstrumentoDoPlanejamento"
            }
          },
          "resumo": {
            "$ref": "#/components/schemas/ResumoDoPlanejamento"
          },
          "alertas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InstrumentoDoPlanejamento"
            }
          },
          "ultimaColeta": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ColetaDoModulo"
              }
            ]
          },
          "coletaEmCurso": {
            "type": "boolean"
          }
        }
      },
      "PlanoDaAps": {
        "required": [
          "municipio",
          "acoes",
          "geradoEm"
        ],
        "type": "object",
        "properties": {
          "municipio": {
            "type": "string"
          },
          "acoes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AcaoRecomendada"
            }
          },
          "geradoEm": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "PlanoDaEducacao": {
        "required": [
          "municipio",
          "exercicio",
          "bimestre",
          "acoes",
          "agenda",
          "ultimaColeta",
          "coletaEmCurso",
          "comoConferir"
        ],
        "type": "object",
        "properties": {
          "municipio": {
            "type": "string"
          },
          "exercicio": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "bimestre": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "acoes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AcaoRecomendada"
            }
          },
          "agenda": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CompromissoDoAno"
            }
          },
          "ultimaColeta": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ColetaDoModulo"
              }
            ]
          },
          "coletaEmCurso": {
            "type": "boolean"
          },
          "comoConferir": {
            "type": "string"
          }
        }
      },
      "PlanoDaMigracao": {
        "required": [
          "porPasta",
          "totalDeMensagens",
          "totalBytes",
          "jaCopiadas",
          "avisos"
        ],
        "type": "object",
        "properties": {
          "porPasta": {
            "type": "object",
            "additionalProperties": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          "totalDeMensagens": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "totalBytes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "jaCopiadas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "avisos": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "PlanoDoFinanceiro": {
        "required": [
          "municipio",
          "acoes",
          "geradoEm"
        ],
        "type": "object",
        "properties": {
          "municipio": {
            "type": "string"
          },
          "acoes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AcaoRecomendada"
            }
          },
          "geradoEm": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "PlanoDoPagamentoAps": {
        "required": [
          "codigo",
          "chave",
          "descricao",
          "esfera",
          "integral",
          "ajuste",
          "desconto",
          "efetivo",
          "implantacao",
          "ajusteImplantacao",
          "descontoImplantacao",
          "totalImplantacao"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "chave": {
            "type": "string"
          },
          "descricao": {
            "type": "string"
          },
          "esfera": {
            "type": [
              "null",
              "string"
            ]
          },
          "integral": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "ajuste": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "desconto": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "efetivo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "implantacao": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "ajusteImplantacao": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "descontoImplantacao": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "totalImplantacao": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "PoliticaDePrivacidade": {
        "required": [
          "estabelecimento",
          "titulo",
          "versao",
          "controlador",
          "contato",
          "operador",
          "secoes"
        ],
        "type": "object",
        "properties": {
          "estabelecimento": {
            "type": "string"
          },
          "titulo": {
            "type": "string"
          },
          "versao": {
            "type": "string"
          },
          "controlador": {
            "type": "string"
          },
          "contato": {
            "type": [
              "null",
              "string"
            ]
          },
          "operador": {
            "type": "string"
          },
          "secoes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SecaoDaPolitica"
            }
          }
        }
      },
      "PoliticaDoOrgaoLida": {
        "required": [
          "id",
          "tipo",
          "severidade",
          "descricao",
          "origem",
          "ativa",
          "rito",
          "categoria",
          "metodo",
          "fontes",
          "termos"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "tipo": {
            "$ref": "#/components/schemas/Opcao"
          },
          "severidade": {
            "type": "string"
          },
          "descricao": {
            "type": "string"
          },
          "origem": {
            "type": [
              "null",
              "string"
            ]
          },
          "ativa": {
            "type": "boolean"
          },
          "rito": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Opcao"
              }
            ]
          },
          "categoria": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Opcao"
              }
            ]
          },
          "metodo": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/Opcao"
              }
            ]
          },
          "fontes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Opcao"
            }
          },
          "termos": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "PoliticaEnviada": {
        "required": [
          "tipo",
          "severidade",
          "descricao",
          "origem",
          "rito",
          "categoria",
          "metodo",
          "fontes",
          "termos"
        ],
        "type": "object",
        "properties": {
          "tipo": {
            "type": [
              "null",
              "string"
            ]
          },
          "severidade": {
            "type": [
              "null",
              "string"
            ]
          },
          "descricao": {
            "type": [
              "null",
              "string"
            ]
          },
          "origem": {
            "type": [
              "null",
              "string"
            ]
          },
          "rito": {
            "type": [
              "null",
              "string"
            ]
          },
          "categoria": {
            "type": [
              "null",
              "string"
            ]
          },
          "metodo": {
            "type": [
              "null",
              "string"
            ]
          },
          "fontes": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          },
          "termos": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "PontoDaEvolucao": {
        "required": [
          "bimestre",
          "acumulado",
          "doBimestre"
        ],
        "type": "object",
        "properties": {
          "bimestre": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "acumulado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "doBimestre": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "PontoDaEvolucaoAps": {
        "required": [
          "mes",
          "recebido",
          "custeio",
          "implantacao",
          "descontos",
          "ajustes",
          "equipesNaoPagas",
          "acsNaoPagos"
        ],
        "type": "object",
        "properties": {
          "mes": {
            "type": "string"
          },
          "recebido": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "custeio": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "implantacao": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "descontos": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "ajustes": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "equipesNaoPagas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "acsNaoPagos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "perdido": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "perdaGlosa": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "perdaQualidade": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "perdaVinculo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "perdaProporcional": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "perdaEstimada": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "perdaCompleta": {
            "type": [
              "null",
              "boolean"
            ]
          }
        }
      },
      "PontoDaImpugnacao": {
        "required": [
          "numero",
          "descricao",
          "clausulaAtacada",
          "deOficio",
          "julgamento",
          "fundamentacao",
          "julgadoPor",
          "julgadoEm",
          "candidatoARegra"
        ],
        "type": "object",
        "properties": {
          "numero": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "descricao": {
            "type": "string"
          },
          "clausulaAtacada": {
            "type": [
              "null",
              "string"
            ]
          },
          "deOficio": {
            "type": "boolean"
          },
          "julgamento": {
            "$ref": "#/components/schemas/Opcao"
          },
          "fundamentacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "julgadoPor": {
            "type": [
              "null",
              "string"
            ]
          },
          "julgadoEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "candidatoARegra": {
            "type": "boolean"
          }
        }
      },
      "PontoDaProducaoAps": {
        "required": [
          "competencia",
          "municipio",
          "mediana",
          "p25",
          "p75"
        ],
        "type": "object",
        "properties": {
          "competencia": {
            "type": "string"
          },
          "municipio": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "mediana": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "p25": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "p75": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "PontoDeAuriculo": {
        "required": [
          "ponto",
          "livre",
          "material"
        ],
        "type": "object",
        "properties": {
          "ponto": {
            "type": [
              "null",
              "string"
            ]
          },
          "livre": {
            "type": [
              "null",
              "string"
            ]
          },
          "material": {
            "type": "string"
          }
        }
      },
      "PontoDoCatalogo": {
        "required": [
          "codigo",
          "nome",
          "para"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string"
          },
          "nome": {
            "type": "string"
          },
          "para": {
            "type": "string"
          }
        }
      },
      "PontoEnviado": {
        "required": [
          "descricao",
          "clausulaAtacada",
          "deOficio"
        ],
        "type": "object",
        "properties": {
          "descricao": {
            "type": [
              "null",
              "string"
            ]
          },
          "clausulaAtacada": {
            "type": [
              "null",
              "string"
            ]
          },
          "deOficio": {
            "type": "boolean"
          }
        }
      },
      "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"
          }
        }
      },
      "PortalDaOuvidoria": {
        "required": [
          "nome",
          "secretarias",
          "temCartaDeServicos"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": "string"
          },
          "secretarias": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SecretariaPublica"
            }
          },
          "temCartaDeServicos": {
            "type": "boolean"
          }
        }
      },
      "PortalDaOuvidoriaEnviado": {
        "required": [
          "slug",
          "nomeExibido"
        ],
        "type": "object",
        "properties": {
          "slug": {
            "type": [
              "null",
              "string"
            ]
          },
          "nomeExibido": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PortalDoMunicipio": {
        "required": [
          "subdominio",
          "orgao",
          "municipio",
          "uf",
          "brasao",
          "sistemas"
        ],
        "type": "object",
        "properties": {
          "subdominio": {
            "type": "string"
          },
          "orgao": {
            "type": "string"
          },
          "municipio": {
            "type": "string"
          },
          "uf": {
            "type": "string"
          },
          "brasao": {
            "type": [
              "null",
              "string"
            ]
          },
          "sistemas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SistemaDoPortal"
            }
          }
        }
      },
      "PortalDoOrgao": {
        "required": [
          "slug",
          "nomeExibido"
        ],
        "type": "object",
        "properties": {
          "slug": {
            "type": "string"
          },
          "nomeExibido": {
            "type": "string"
          }
        }
      },
      "PraticaDeQualidade": {
        "required": [
          "codigo",
          "descricao",
          "pontos",
          "pessoas",
          "cumprem",
          "naoCumprem",
          "naoSabemos",
          "ganhoPorPessoa"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string"
          },
          "descricao": {
            "type": "string"
          },
          "pontos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pessoas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "cumprem": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "naoCumprem": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "naoSabemos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "ganhoPorPessoa": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "PraticaDoIndicador": {
        "required": [
          "codigo",
          "titulo",
          "pontos",
          "quem",
          "pessoas",
          "cumprem",
          "faltam",
          "noPrazo",
          "naoSabemos"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string"
          },
          "titulo": {
            "type": "string"
          },
          "pontos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "quem": {
            "type": "string"
          },
          "pessoas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "cumprem": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "faltam": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "noPrazo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "naoSabemos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "PrazoDaAcaoAps": {
        "required": [
          "competencia",
          "parcela"
        ],
        "type": "object",
        "properties": {
          "competencia": {
            "type": "string"
          },
          "parcela": {
            "type": "string"
          }
        }
      },
      "PrazosPorUnidade": {
        "required": [
          "secretaria",
          "setor",
          "emAberto",
          "vencidas",
          "respostasNoPrazo",
          "respostasTotal",
          "taxaRespostaNoPrazo"
        ],
        "type": "object",
        "properties": {
          "secretaria": {
            "type": "string"
          },
          "setor": {
            "type": [
              "null",
              "string"
            ]
          },
          "emAberto": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "vencidas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "respostasNoPrazo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "respostasTotal": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "taxaRespostaNoPrazo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "PrecoDaCesta": {
        "required": [
          "posicao",
          "fonte",
          "inciso",
          "fontePreferencial",
          "esfera",
          "origem",
          "identificacao",
          "dataDoPreco",
          "valorUnitario",
          "valorUnitarioFormatado",
          "considerado",
          "motivoDoDescarte",
          "descartadoEm"
        ],
        "type": "object",
        "properties": {
          "posicao": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "fonte": {
            "$ref": "#/components/schemas/Opcao"
          },
          "inciso": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "fontePreferencial": {
            "type": "boolean"
          },
          "esfera": {
            "$ref": "#/components/schemas/Opcao"
          },
          "origem": {
            "type": "string"
          },
          "identificacao": {
            "type": "string"
          },
          "dataDoPreco": {
            "type": "string"
          },
          "valorUnitario": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "valorUnitarioFormatado": {
            "type": "string"
          },
          "considerado": {
            "type": "boolean"
          },
          "motivoDoDescarte": {
            "type": [
              "null",
              "string"
            ]
          },
          "descartadoEm": {
            "type": [
              "null",
              "string"
            ]
          },
          "valorAtualizadoFormatado": {
            "type": [
              "null",
              "string"
            ]
          },
          "atualizacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "unidade": {
            "type": [
              "null",
              "string"
            ]
          },
          "unidadeDiferente": {
            "type": "boolean",
            "default": false
          }
        }
      },
      "PrecoEnviado": {
        "required": [
          "fonte",
          "esfera",
          "origem",
          "identificacao",
          "dataDoPreco",
          "valorUnitario"
        ],
        "type": "object",
        "properties": {
          "fonte": {
            "type": [
              "null",
              "string"
            ]
          },
          "esfera": {
            "type": [
              "null",
              "string"
            ]
          },
          "origem": {
            "type": [
              "null",
              "string"
            ]
          },
          "identificacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "dataDoPreco": {
            "type": [
              "null",
              "string"
            ]
          },
          "valorUnitario": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "PrecosDeNotasEnviados": {
        "required": [
          "chaves"
        ],
        "type": "object",
        "properties": {
          "chaves": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "PrecosDoComprasGovEnviados": {
        "required": [
          "tipo",
          "codigo",
          "chaves"
        ],
        "type": "object",
        "properties": {
          "tipo": {
            "type": [
              "null",
              "string"
            ]
          },
          "codigo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "chaves": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "PrecosDoPncpEnviados": {
        "required": [
          "chaves"
        ],
        "type": "object",
        "properties": {
          "chaves": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "PreNatalNoPec": {
        "required": [
          "dum",
          "altoRisco",
          "tipoDeGravidez",
          "planejada",
          "fonteIdadeGestacional"
        ],
        "type": "object",
        "properties": {
          "dum": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "altoRisco": {
            "type": "boolean"
          },
          "tipoDeGravidez": {
            "type": [
              "null",
              "string"
            ]
          },
          "planejada": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "fonteIdadeGestacional": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PreviaDaNota": {
        "required": [
          "valor",
          "descricao",
          "tomadorNome",
          "tomadorCpf",
          "codigoTributacao",
          "servicos",
          "impedimento"
        ],
        "type": "object",
        "properties": {
          "valor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "descricao": {
            "type": "string"
          },
          "tomadorNome": {
            "type": "string"
          },
          "tomadorCpf": {
            "type": [
              "null",
              "string"
            ]
          },
          "codigoTributacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "servicos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ServicoNaNota"
            }
          },
          "impedimento": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PreviaDosParabens": {
        "required": [
          "dia",
          "enviar",
          "nomes",
          "fora",
          "modoDeTeste"
        ],
        "type": "object",
        "properties": {
          "dia": {
            "type": "string"
          },
          "enviar": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "nomes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "fora": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ForaDosParabens"
            }
          },
          "modoDeTeste": {
            "type": "boolean"
          }
        }
      },
      "ProblemaNoPec": {
        "required": [
          "descricao",
          "codigo",
          "situacao",
          "desde"
        ],
        "type": "object",
        "properties": {
          "descricao": {
            "type": "string"
          },
          "codigo": {
            "type": [
              "null",
              "string"
            ]
          },
          "situacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "desde": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          }
        }
      },
      "ProcessoComAchados": {
        "required": [
          "resumo",
          "bloqueantes"
        ],
        "type": "object",
        "properties": {
          "resumo": {
            "$ref": "#/components/schemas/ResumoDeProcesso"
          },
          "bloqueantes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "ProcessoEnviado": {
        "required": [
          "numero",
          "exercicio",
          "objetoDescricao",
          "categoria",
          "rito",
          "usaRegistroPrecos",
          "naturezaObjeto",
          "dotacaoCodigo",
          "dotacaoPrograma",
          "valorGlobal",
          "metodoApuracao",
          "fontePreco",
          "dataApuracao",
          "referenciaExterna"
        ],
        "type": "object",
        "properties": {
          "numero": {
            "type": [
              "null",
              "string"
            ]
          },
          "exercicio": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "objetoDescricao": {
            "type": [
              "null",
              "string"
            ]
          },
          "categoria": {
            "type": [
              "null",
              "string"
            ]
          },
          "rito": {
            "type": [
              "null",
              "string"
            ]
          },
          "usaRegistroPrecos": {
            "type": "boolean"
          },
          "naturezaObjeto": {
            "type": [
              "null",
              "string"
            ]
          },
          "dotacaoCodigo": {
            "type": [
              "null",
              "string"
            ]
          },
          "dotacaoPrograma": {
            "type": [
              "null",
              "string"
            ]
          },
          "valorGlobal": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "metodoApuracao": {
            "type": [
              "null",
              "string"
            ]
          },
          "fontePreco": {
            "type": [
              "null",
              "string"
            ]
          },
          "dataApuracao": {
            "type": [
              "null",
              "string"
            ]
          },
          "referenciaExterna": {
            "type": [
              "null",
              "string"
            ]
          },
          "unidadeRequisitanteId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "hipoteseDispensa": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ProducaoAps": {
        "required": [
          "equipes",
          "criterio"
        ],
        "type": "object",
        "properties": {
          "equipes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProducaoDaEquipeAps"
            }
          },
          "criterio": {
            "type": "string"
          }
        }
      },
      "ProducaoApsResposta": {
        "required": [
          "competencia",
          "parcial",
          "modelo",
          "metrica",
          "pares",
          "modelos",
          "metricas",
          "competencias",
          "tipos",
          "regras"
        ],
        "type": "object",
        "properties": {
          "competencia": {
            "type": "string"
          },
          "parcial": {
            "type": "boolean"
          },
          "modelo": {
            "type": "string"
          },
          "metrica": {
            "type": "string"
          },
          "pares": {
            "$ref": "#/components/schemas/ParesAps"
          },
          "modelos": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "metricas": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "competencias": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "tipos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProducaoDoTipoAps"
            }
          },
          "regras": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "detalheTecnico": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ProducaoDaEquipe": {
        "required": [
          "equipe",
          "unidade",
          "medicas",
          "enfermagem",
          "odontologicas",
          "outras",
          "medicasPorDiaUtil",
          "enfermagemPorDiaUtil"
        ],
        "type": "object",
        "properties": {
          "equipe": {
            "type": [
              "null",
              "string"
            ]
          },
          "unidade": {
            "type": "string"
          },
          "medicas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "enfermagem": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "odontologicas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "outras": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "medicasPorDiaUtil": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "enfermagemPorDiaUtil": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "metaMedicas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "metaEnfermagem": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "faltamMedicas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "faltamEnfermagem": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "ProducaoDaEquipeAps": {
        "required": [
          "ine",
          "visitas",
          "porAcs"
        ],
        "type": "object",
        "properties": {
          "ine": {
            "type": "string"
          },
          "visitas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "porAcs": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "ProducaoDoMes": {
        "required": [
          "mes",
          "meses",
          "lidoEm",
          "unidade",
          "unidades",
          "diasUteis",
          "diasUteisAteHoje",
          "equipes",
          "profissionais",
          "vacinas",
          "avisos"
        ],
        "type": "object",
        "properties": {
          "mes": {
            "type": "string",
            "format": "date"
          },
          "meses": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "date"
            }
          },
          "lidoEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "unidade": {
            "type": [
              "null",
              "string"
            ]
          },
          "unidades": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "diasUteis": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "diasUteisAteHoje": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "equipes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProducaoDaEquipe"
            }
          },
          "profissionais": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProducaoDoProfissional"
            }
          },
          "vacinas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DosesDaVacina"
            }
          },
          "avisos": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "referencia": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ProducaoDoProfissional": {
        "required": [
          "nome",
          "cbo",
          "categoria",
          "equipe",
          "unidade",
          "total",
          "porTipo"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "cbo": {
            "type": [
              "null",
              "string"
            ]
          },
          "categoria": {
            "type": "string"
          },
          "equipe": {
            "type": [
              "null",
              "string"
            ]
          },
          "unidade": {
            "type": "string"
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "porTipo": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContagemDeTipo"
            }
          }
        }
      },
      "ProducaoDoTipoAps": {
        "required": [
          "tipo",
          "producao",
          "equipes",
          "porEquipe",
          "mediana",
          "municipiosPares",
          "p25",
          "p75",
          "posicao"
        ],
        "type": "object",
        "properties": {
          "tipo": {
            "type": "string"
          },
          "producao": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "equipes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "porEquipe": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "mediana": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "municipiosPares": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "p25": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "p75": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "posicao": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ProdutoDoEstoque": {
        "required": [
          "id",
          "categoriaId",
          "categoria",
          "nome",
          "descricao",
          "unidade",
          "unidadeDeCompra",
          "fatorDeCompra",
          "catmat",
          "gtins",
          "registroAnvisa",
          "certificadoDeAprovacao",
          "estoqueMinimo",
          "estoqueMaximo",
          "ativo",
          "exigeLote",
          "exigeValidade",
          "exigeRegistroAnvisa",
          "exigeCertificadoDeAprovacao",
          "saldo"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "categoriaId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "categoria": {
            "type": "string"
          },
          "nome": {
            "type": "string"
          },
          "descricao": {
            "type": [
              "null",
              "string"
            ]
          },
          "unidade": {
            "type": "string"
          },
          "unidadeDeCompra": {
            "type": [
              "null",
              "string"
            ]
          },
          "fatorDeCompra": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "catmat": {
            "type": [
              "null",
              "string"
            ]
          },
          "gtins": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "registroAnvisa": {
            "type": [
              "null",
              "string"
            ]
          },
          "certificadoDeAprovacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "estoqueMinimo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "estoqueMaximo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "ativo": {
            "type": "boolean"
          },
          "exigeLote": {
            "type": "string"
          },
          "exigeValidade": {
            "type": "string"
          },
          "exigeRegistroAnvisa": {
            "type": "string"
          },
          "exigeCertificadoDeAprovacao": {
            "type": "string"
          },
          "saldo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "ProdutoDoStudio": {
        "required": [
          "codigo",
          "nome",
          "marca",
          "preco",
          "custo",
          "estoqueAtual",
          "estoqueMinimo",
          "abaixoDoMinimo",
          "ativo",
          "atualizadoEm"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string",
            "format": "uuid"
          },
          "nome": {
            "type": "string"
          },
          "marca": {
            "type": [
              "null",
              "string"
            ]
          },
          "preco": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "custo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "estoqueAtual": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "estoqueMinimo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "abaixoDoMinimo": {
            "type": "boolean"
          },
          "ativo": {
            "type": "boolean"
          },
          "atualizadoEm": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ProdutoEnviado": {
        "required": [
          "categoriaId",
          "nome",
          "descricao",
          "unidade",
          "unidadeDeCompra",
          "fatorDeCompra",
          "catmat",
          "gtins",
          "registroAnvisa",
          "certificadoDeAprovacao",
          "estoqueMinimo",
          "estoqueMaximo"
        ],
        "type": "object",
        "properties": {
          "categoriaId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "descricao": {
            "type": [
              "null",
              "string"
            ]
          },
          "unidade": {
            "type": [
              "null",
              "string"
            ]
          },
          "unidadeDeCompra": {
            "type": [
              "null",
              "string"
            ]
          },
          "fatorDeCompra": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "catmat": {
            "type": [
              "null",
              "string"
            ]
          },
          "gtins": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          },
          "registroAnvisa": {
            "type": [
              "null",
              "string"
            ]
          },
          "certificadoDeAprovacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "estoqueMinimo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "estoqueMaximo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "ProfissionaisEmAtencaoAps": {
        "required": [
          "competencia",
          "competencias",
          "total",
          "variacao",
          "maxConsecutivo",
          "mediaConsecutivo",
          "emRisco",
          "faixas",
          "evolucao",
          "porCbo",
          "profissionais",
          "regras"
        ],
        "type": "object",
        "properties": {
          "competencia": {
            "type": "string"
          },
          "competencias": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "variacao": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "maxConsecutivo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "mediaConsecutivo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "emRisco": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "faixas": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/FaixasDeRiscoAps"
              }
            ]
          },
          "evolucao": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EvolucaoDaAtencaoAps"
            }
          },
          "porCbo": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TotalPorCboAps"
            }
          },
          "profissionais": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProfissionalEmAtencaoAps"
            }
          },
          "regras": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ProfissionalCnesResposta": {
        "required": [
          "competencia",
          "nome",
          "cbo",
          "ocupacao",
          "cnes",
          "estabelecimento",
          "vinculo",
          "cargaAmbulatorial",
          "cargaHospitalar",
          "cargaOutra",
          "cargaTotal",
          "atendeSus",
          "ine",
          "equipe",
          "tipoEquipe",
          "entradaNaEquipe",
          "saidaDaEquipe"
        ],
        "type": "object",
        "properties": {
          "competencia": {
            "type": "string"
          },
          "nome": {
            "type": "string"
          },
          "cbo": {
            "type": "string"
          },
          "ocupacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "cnes": {
            "type": "string"
          },
          "estabelecimento": {
            "type": [
              "null",
              "string"
            ]
          },
          "vinculo": {
            "type": [
              "null",
              "string"
            ]
          },
          "cargaAmbulatorial": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "cargaHospitalar": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "cargaOutra": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "cargaTotal": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "atendeSus": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "ine": {
            "type": [
              "null",
              "string"
            ]
          },
          "equipe": {
            "type": [
              "null",
              "string"
            ]
          },
          "tipoEquipe": {
            "type": [
              "null",
              "string"
            ]
          },
          "entradaNaEquipe": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "saidaDaEquipe": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          }
        }
      },
      "ProfissionalDaAgenda": {
        "required": [
          "id",
          "nome",
          "telefone",
          "areas",
          "especialidade",
          "conselho",
          "registro",
          "corAgenda",
          "ativo",
          "temLogin",
          "foto"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "nome": {
            "type": "string"
          },
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "areas": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "especialidade": {
            "type": [
              "null",
              "string"
            ]
          },
          "conselho": {
            "type": [
              "null",
              "string"
            ]
          },
          "registro": {
            "type": [
              "null",
              "string"
            ]
          },
          "corAgenda": {
            "type": [
              "null",
              "string"
            ]
          },
          "ativo": {
            "type": "boolean"
          },
          "temLogin": {
            "type": "boolean"
          },
          "foto": {
            "type": [
              "null",
              "string"
            ]
          },
          "app": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/MarcacaoPeloApp"
              }
            ]
          }
        }
      },
      "ProfissionalDaComposicaoAps": {
        "required": [
          "nome",
          "cbo",
          "ocupacao",
          "cargaNaEquipe",
          "cargaTotal",
          "outrasEquipes"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": "string"
          },
          "cbo": {
            "type": "string"
          },
          "ocupacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "cargaNaEquipe": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "cargaTotal": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "outrasEquipes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LugarDoVinculoAps"
            }
          }
        }
      },
      "ProfissionalDaEquipeAps": {
        "required": [
          "nome",
          "grupo",
          "cbos",
          "cargaNaEquipe",
          "cargaTotal",
          "chInformada",
          "contaNaComposicao",
          "outrasEquipes",
          "pendencias"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": "string"
          },
          "grupo": {
            "type": [
              "null",
              "string"
            ]
          },
          "cbos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CboDoProfissionalAps"
            }
          },
          "cargaNaEquipe": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "cargaTotal": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "chInformada": {
            "type": "boolean"
          },
          "contaNaComposicao": {
            "type": "boolean"
          },
          "outrasEquipes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LugarDoVinculoAps"
            }
          },
          "pendencias": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PendenciaDoProfissionalAps"
            }
          }
        }
      },
      "ProfissionalDoSalao": {
        "required": [
          "codigo",
          "nome",
          "cor",
          "servicos"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string",
            "format": "uuid"
          },
          "nome": {
            "type": "string"
          },
          "cor": {
            "type": [
              "null",
              "string"
            ]
          },
          "servicos": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          }
        }
      },
      "ProfissionalDoStudio": {
        "required": [
          "codigo",
          "nome",
          "apelido",
          "celular",
          "cor",
          "comissaoPercentual",
          "temAgenda",
          "ativo",
          "servicos",
          "acesso"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string",
            "format": "uuid"
          },
          "nome": {
            "type": "string"
          },
          "apelido": {
            "type": [
              "null",
              "string"
            ]
          },
          "celular": {
            "type": [
              "null",
              "string"
            ]
          },
          "cor": {
            "type": [
              "null",
              "string"
            ]
          },
          "comissaoPercentual": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "temAgenda": {
            "type": "boolean"
          },
          "ativo": {
            "type": "boolean"
          },
          "servicos": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          },
          "acesso": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/AcessoDoProfissional"
              }
            ]
          },
          "regime": {
            "type": "string",
            "default": "comissionado"
          },
          "regimeRotulo": {
            "type": "string",
            "default": "Comissionado"
          }
        }
      },
      "ProfissionalEmAtencaoAps": {
        "required": [
          "cns",
          "nome",
          "cbo",
          "ocupacao",
          "ine",
          "equipe",
          "cnes",
          "mesesSemProducao",
          "maisDe",
          "risco",
          "comoResolver"
        ],
        "type": "object",
        "properties": {
          "cns": {
            "type": "string"
          },
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "cbo": {
            "type": [
              "null",
              "string"
            ]
          },
          "ocupacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "ine": {
            "type": [
              "null",
              "string"
            ]
          },
          "equipe": {
            "type": [
              "null",
              "string"
            ]
          },
          "cnes": {
            "type": [
              "null",
              "string"
            ]
          },
          "mesesSemProducao": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "maisDe": {
            "type": "boolean"
          },
          "risco": {
            "type": [
              "null",
              "string"
            ]
          },
          "comoResolver": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ProfissionalEnviado": {
        "required": [
          "nome",
          "telefone",
          "areas",
          "especialidade",
          "conselho",
          "registro",
          "corAgenda"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "areas": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          },
          "especialidade": {
            "type": [
              "null",
              "string"
            ]
          },
          "conselho": {
            "type": [
              "null",
              "string"
            ]
          },
          "registro": {
            "type": [
              "null",
              "string"
            ]
          },
          "corAgenda": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ProfissionalLivre": {
        "required": [
          "codigo",
          "nome"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string",
            "format": "uuid"
          },
          "nome": {
            "type": "string"
          }
        }
      },
      "ProfissionalNaAgenda": {
        "required": [
          "codigo",
          "nome",
          "cor",
          "expediente"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string",
            "format": "uuid"
          },
          "nome": {
            "type": "string"
          },
          "cor": {
            "type": [
              "null",
              "string"
            ]
          },
          "expediente": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FaixaDoExpediente"
            }
          }
        }
      },
      "ProfissionalNaGrade": {
        "required": [
          "id",
          "nome",
          "especialidade",
          "areas",
          "cor",
          "faixas",
          "foto"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "nome": {
            "type": "string"
          },
          "especialidade": {
            "type": [
              "null",
              "string"
            ]
          },
          "areas": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "cor": {
            "type": [
              "null",
              "string"
            ]
          },
          "faixas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FaixaDeExpediente"
            }
          },
          "foto": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ProfissionalParaMarcar": {
        "required": [
          "id",
          "nome",
          "funcao"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "nome": {
            "type": "string"
          },
          "funcao": {
            "type": "string"
          },
          "jaMarcada": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        }
      },
      "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"
            }
          }
        }
      },
      "ProjecaoSiops": {
        "required": [
          "baseEstimadaDoAno",
          "minimoEstimadoDoAno",
          "aplicadoAteAqui",
          "faltaPorMes",
          "ritmoPorMes",
          "mesesRestantes"
        ],
        "type": "object",
        "properties": {
          "baseEstimadaDoAno": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "minimoEstimadoDoAno": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "aplicadoAteAqui": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "faltaPorMes": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "ritmoPorMes": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "mesesRestantes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "ProntuarioDoPec": {
        "required": [
          "lidoEm",
          "aoVivo",
          "falha",
          "cadastro",
          "preNatal",
          "gestacoes",
          "agendamentos",
          "ultimoAtendimento",
          "clinico"
        ],
        "type": "object",
        "properties": {
          "lidoEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "aoVivo": {
            "type": "boolean"
          },
          "falha": {
            "type": [
              "null",
              "string"
            ]
          },
          "cadastro": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/CadastroNoPec"
              }
            ]
          },
          "preNatal": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/PreNatalNoPec"
              }
            ]
          },
          "gestacoes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GestacaoNoPec"
            }
          },
          "agendamentos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AgendamentoNoPec"
            }
          },
          "ultimoAtendimento": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/UltimoAtendimentoDoPec"
              }
            ]
          },
          "clinico": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ClinicoNoPec"
              }
            ]
          }
        }
      },
      "ProrrogacaoDoContrato": {
        "required": [
          "numero",
          "fimAnterior",
          "novoFim",
          "dataDeAssinatura",
          "dataDaPesquisa",
          "conclusao",
          "autor"
        ],
        "type": "object",
        "properties": {
          "numero": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "fimAnterior": {
            "type": "string"
          },
          "novoFim": {
            "type": "string"
          },
          "dataDeAssinatura": {
            "type": "string"
          },
          "dataDaPesquisa": {
            "type": "string"
          },
          "conclusao": {
            "type": "string"
          },
          "autor": {
            "type": "string"
          }
        }
      },
      "ProrrogacaoEnviada": {
        "required": [
          "novoFim",
          "dataDeAssinatura",
          "dataDaPesquisa",
          "conclusao"
        ],
        "type": "object",
        "properties": {
          "novoFim": {
            "type": [
              "null",
              "string"
            ]
          },
          "dataDeAssinatura": {
            "type": [
              "null",
              "string"
            ]
          },
          "dataDaPesquisa": {
            "type": [
              "null",
              "string"
            ]
          },
          "conclusao": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ProtocoloDeAuriculoDaLista": {
        "required": [
          "id",
          "nome",
          "descricao",
          "pontos"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "nome": {
            "type": "string"
          },
          "descricao": {
            "type": [
              "null",
              "string"
            ]
          },
          "pontos": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ProtocoloDeAuriculoEnviado": {
        "required": [
          "nome",
          "descricao",
          "pontos"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "descricao": {
            "type": [
              "null",
              "string"
            ]
          },
          "pontos": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ProximaFaixa": {
        "required": [
          "faixa",
          "faltamPontos"
        ],
        "type": "object",
        "properties": {
          "faixa": {
            "type": "string"
          },
          "faltamPontos": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "ProximaFaixaEmPessoas": {
        "required": [
          "faixa",
          "pessoas",
          "comecePor"
        ],
        "type": "object",
        "properties": {
          "faixa": {
            "type": "string"
          },
          "pessoas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "comecePor": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ProximaSessaoDeAuriculo": {
        "required": [
          "numero",
          "de",
          "orelha",
          "agendamentoId",
          "agendamentoEm"
        ],
        "type": "object",
        "properties": {
          "numero": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "de": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "orelha": {
            "type": "string"
          },
          "agendamentoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "agendamentoEm": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "QualidadeDaUnidade": {
        "required": [
          "unidade",
          "notaMinima",
          "notaMaxima",
          "faixaMinima",
          "faixaMaxima",
          "valorMensalMinimo",
          "valorMensalMaximo",
          "indicadores"
        ],
        "type": "object",
        "properties": {
          "unidade": {
            "type": "string"
          },
          "notaMinima": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "notaMaxima": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "faixaMinima": {
            "type": "string"
          },
          "faixaMaxima": {
            "type": "string"
          },
          "valorMensalMinimo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "valorMensalMaximo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "indicadores": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IndicadorDeQualidade"
            }
          }
        }
      },
      "QuantoVale": {
        "required": [
          "hoje",
          "quadrimestreDe",
          "quadrimestreAte",
          "regras",
          "valoresPorEquipe",
          "unidades",
          "avisos"
        ],
        "type": "object",
        "properties": {
          "hoje": {
            "type": "string",
            "format": "date"
          },
          "quadrimestreDe": {
            "type": "string",
            "format": "date"
          },
          "quadrimestreAte": {
            "type": "string",
            "format": "date"
          },
          "regras": {
            "type": "string"
          },
          "valoresPorEquipe": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ValorDaFaixa"
            }
          },
          "unidades": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QualidadeDaUnidade"
            }
          },
          "avisos": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "RamoDoStudio": {
        "required": [
          "valor",
          "rotulo",
          "servicos"
        ],
        "type": "object",
        "properties": {
          "valor": {
            "type": "string"
          },
          "rotulo": {
            "type": "string"
          },
          "servicos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ServicoSugeridoDoRamo"
            }
          }
        }
      },
      "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"
          }
        }
      },
      "RascunhoDeResposta": {
        "required": [
          "texto"
        ],
        "type": "object",
        "properties": {
          "texto": {
            "type": "string"
          }
        }
      },
      "ReaberturaDoCidadao": {
        "required": [
          "protocolo",
          "chave",
          "motivo"
        ],
        "type": "object",
        "properties": {
          "protocolo": {
            "type": [
              "null",
              "string"
            ]
          },
          "chave": {
            "type": [
              "null",
              "string"
            ]
          },
          "motivo": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "RecadoDoApp": {
        "required": [
          "id",
          "tipo",
          "titulo",
          "texto",
          "publico",
          "microarea",
          "idadeMinima",
          "idadeMaxima",
          "enviadoPor",
          "enviadoEm",
          "pessoas",
          "notificados",
          "lidos",
          "responderam"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "tipo": {
            "type": "string"
          },
          "titulo": {
            "type": "string"
          },
          "texto": {
            "type": "string"
          },
          "publico": {
            "type": "string"
          },
          "microarea": {
            "type": [
              "null",
              "string"
            ]
          },
          "idadeMinima": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "idadeMaxima": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "enviadoPor": {
            "type": "string"
          },
          "enviadoEm": {
            "type": "string",
            "format": "date-time"
          },
          "pessoas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "notificados": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "lidos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "responderam": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "RecadoEnviado": {
        "required": [
          "tipo",
          "titulo",
          "texto",
          "publico",
          "microarea",
          "idadeMinima",
          "idadeMaxima"
        ],
        "type": "object",
        "properties": {
          "tipo": {
            "type": [
              "null",
              "string"
            ]
          },
          "titulo": {
            "type": [
              "null",
              "string"
            ]
          },
          "texto": {
            "type": [
              "null",
              "string"
            ]
          },
          "publico": {
            "type": [
              "null",
              "string"
            ]
          },
          "microarea": {
            "type": [
              "null",
              "string"
            ]
          },
          "idadeMinima": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "idadeMaxima": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "RecorteDosTelefones": {
        "required": [
          "nome",
          "casas",
          "casasCom",
          "pacientes",
          "pacientesComCelular"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": "string"
          },
          "casas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "casasCom": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pacientes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pacientesComCelular": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "ReemissaoEnviada": {
        "required": [
          "justificativa",
          "documentoConferido"
        ],
        "type": "object",
        "properties": {
          "justificativa": {
            "type": [
              "null",
              "string"
            ]
          },
          "documentoConferido": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ReferenciaDoComponenteAps": {
        "required": [
          "componente",
          "descricao",
          "subtipo",
          "portaria",
          "valores"
        ],
        "type": "object",
        "properties": {
          "componente": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "descricao": {
            "type": "string"
          },
          "subtipo": {
            "type": [
              "null",
              "string"
            ]
          },
          "portaria": {
            "type": [
              "null",
              "string"
            ]
          },
          "valores": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ValorDeReferenciaAps"
            }
          }
        }
      },
      "RegistroDeEmailItem": {
        "required": [
          "em",
          "por",
          "acao",
          "dominio",
          "caixa",
          "resultado",
          "detalhe"
        ],
        "type": "object",
        "properties": {
          "em": {
            "type": "string",
            "format": "date-time"
          },
          "por": {
            "type": "string"
          },
          "acao": {
            "type": "string"
          },
          "dominio": {
            "type": "string"
          },
          "caixa": {
            "type": [
              "null",
              "string"
            ]
          },
          "resultado": {
            "type": "string"
          },
          "detalhe": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "RegistroDnsConferido": {
        "required": [
          "tipo",
          "nome",
          "esperado",
          "encontrados"
        ],
        "type": "object",
        "properties": {
          "tipo": {
            "type": "string"
          },
          "nome": {
            "type": "string"
          },
          "esperado": {
            "type": "string"
          },
          "encontrados": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "RegistroPelaOuvidoria": {
        "required": [
          "origem",
          "manifestacao"
        ],
        "type": "object",
        "properties": {
          "origem": {
            "type": [
              "null",
              "string"
            ]
          },
          "manifestacao": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ManifestacaoEnviada"
              }
            ]
          }
        }
      },
      "RegraDaAcaoAps": {
        "required": [
          "texto",
          "limite",
          "norma"
        ],
        "type": "object",
        "properties": {
          "texto": {
            "type": "string"
          },
          "limite": {
            "type": [
              "null",
              "string"
            ]
          },
          "norma": {
            "type": "string"
          }
        }
      },
      "RegraDeComposicaoAps": {
        "required": [
          "tipo",
          "modalidade",
          "exigidos",
          "cargaHoraria",
          "portaria",
          "observacao"
        ],
        "type": "object",
        "properties": {
          "tipo": {
            "type": "string"
          },
          "modalidade": {
            "type": "string"
          },
          "exigidos": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "cargaHoraria": {
            "type": [
              "null",
              "string"
            ]
          },
          "portaria": {
            "type": "string"
          },
          "observacao": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "RegraDoCatalogo": {
        "required": [
          "codigo",
          "descricao",
          "severidade",
          "fundamento",
          "tipo"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string"
          },
          "descricao": {
            "type": "string"
          },
          "severidade": {
            "type": "string"
          },
          "fundamento": {
            "type": [
              "null",
              "string"
            ]
          },
          "tipo": {
            "type": "string"
          }
        }
      },
      "RegraRespondida": {
        "required": [
          "id",
          "nome",
          "ordem",
          "ativa",
          "campo",
          "valor",
          "etiquetaChave",
          "pastaDestino",
          "marcarLida",
          "pararAqui"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "nome": {
            "type": "string"
          },
          "ordem": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "ativa": {
            "type": "boolean"
          },
          "campo": {
            "type": "string"
          },
          "valor": {
            "type": "string"
          },
          "etiquetaChave": {
            "type": [
              "null",
              "string"
            ]
          },
          "pastaDestino": {
            "type": [
              "null",
              "string"
            ]
          },
          "marcarLida": {
            "type": "boolean"
          },
          "pararAqui": {
            "type": "boolean"
          }
        }
      },
      "RegrasPublicadas": {
        "required": [
          "publicadas"
        ],
        "type": "object",
        "properties": {
          "publicadas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "Reincidencia": {
        "required": [
          "regra",
          "severidade",
          "ocorrencias",
          "processos",
          "exemplo"
        ],
        "type": "object",
        "properties": {
          "regra": {
            "type": "string"
          },
          "severidade": {
            "type": "string"
          },
          "ocorrencias": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "processos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "exemplo": {
            "type": "string"
          }
        }
      },
      "RelatorioAnualDaOuvidoria": {
        "required": [
          "ano",
          "orgao",
          "publico",
          "minimoPorRecorte",
          "geradoEm",
          "recebidas",
          "identificadas",
          "semIdentificacao",
          "respondidas",
          "respondidasNoPrazo",
          "taxaNoPrazo",
          "diasMedioAteResposta",
          "prorrogadas",
          "reabertas",
          "arquivadas",
          "complementacoesPedidas",
          "emAbertoHoje",
          "vencidasHoje",
          "porTipo",
          "porCanal",
          "porSecretaria",
          "assuntosMaisFrequentes",
          "porMes",
          "anosDisponiveis"
        ],
        "type": "object",
        "properties": {
          "ano": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "orgao": {
            "type": "string"
          },
          "publico": {
            "type": "boolean"
          },
          "minimoPorRecorte": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "geradoEm": {
            "type": "string",
            "format": "date-time"
          },
          "recebidas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "identificadas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "semIdentificacao": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "respondidas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "respondidasNoPrazo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "taxaNoPrazo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "diasMedioAteResposta": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "prorrogadas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "reabertas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "arquivadas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "complementacoesPedidas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "emAbertoHoje": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "vencidasHoje": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "porTipo": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContagemRotulada"
            }
          },
          "porCanal": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContagemRotulada"
            }
          },
          "porSecretaria": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LinhaPorSecretaria"
            }
          },
          "assuntosMaisFrequentes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContagemRotulada"
            }
          },
          "porMes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LinhaPorMes"
            }
          },
          "anosDisponiveis": {
            "type": "array",
            "items": {
              "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"
          }
        }
      },
      "RelatorioDoStudio": {
        "required": [
          "de",
          "ate",
          "faturamento",
          "comandas",
          "ticketMedio",
          "clientesNovos",
          "porDia",
          "porServico",
          "porProfissional",
          "porForma"
        ],
        "type": "object",
        "properties": {
          "de": {
            "type": "string",
            "format": "date"
          },
          "ate": {
            "type": "string",
            "format": "date"
          },
          "faturamento": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "comandas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "ticketMedio": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "clientesNovos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "porDia": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ValorPorDia"
            }
          },
          "porServico": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ValorPorNome"
            }
          },
          "porProfissional": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ValorPorNome"
            }
          },
          "porForma": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ValorPorNome"
            }
          }
        }
      },
      "RemanejamentoAps": {
        "required": [
          "competencia",
          "incompletas",
          "ajusteCh",
          "remanejamento",
          "emParte",
          "semProfissional",
          "exigemContratacao",
          "sugestoes",
          "criterios"
        ],
        "type": "object",
        "properties": {
          "competencia": {
            "type": "string"
          },
          "incompletas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "ajusteCh": {
            "$ref": "#/components/schemas/ValorDeEquipesAps"
          },
          "remanejamento": {
            "$ref": "#/components/schemas/ValorDeEquipesAps"
          },
          "emParte": {
            "$ref": "#/components/schemas/ValorDeEquipesAps"
          },
          "semProfissional": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "exigemContratacao": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "sugestoes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SugestaoDeRemanejamentoAps"
            }
          },
          "criterios": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "RemarcacaoEnviada": {
        "required": [
          "profissionalId",
          "unidadeId",
          "inicio",
          "duracaoMinutos"
        ],
        "type": "object",
        "properties": {
          "profissionalId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "unidadeId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "inicio": {
            "type": [
              "null",
              "string"
            ]
          },
          "duracaoMinutos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "RemedioEnviado": {
        "required": [
          "nome",
          "comoTomar",
          "quantidade",
          "diasEntreRetiradas",
          "receitaAte",
          "observacao"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "comoTomar": {
            "type": [
              "null",
              "string"
            ]
          },
          "quantidade": {
            "type": [
              "null",
              "string"
            ]
          },
          "diasEntreRetiradas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "receitaAte": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "observacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "noApp": {
            "type": "boolean",
            "default": true
          },
          "ativo": {
            "type": "boolean",
            "default": true
          }
        }
      },
      "RemedioNoApp": {
        "required": [
          "id",
          "nome",
          "comoTomar",
          "quantidade",
          "ultimaRetirada",
          "proximaRetirada",
          "receitaAte",
          "retiradas"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "nome": {
            "type": "string"
          },
          "comoTomar": {
            "type": [
              "null",
              "string"
            ]
          },
          "quantidade": {
            "type": [
              "null",
              "string"
            ]
          },
          "ultimaRetirada": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "proximaRetirada": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "receitaAte": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "retiradas": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "date"
            }
          },
          "podePedirRenovacao": {
            "type": "boolean",
            "default": false
          },
          "renovacao": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/RenovacaoNoApp"
              }
            ]
          }
        }
      },
      "RemedioNoCartao": {
        "required": [
          "id",
          "nome",
          "comoTomar",
          "quantidade",
          "diasEntreRetiradas",
          "receitaAte",
          "observacao",
          "noApp",
          "ativo",
          "ultimaRetirada",
          "proximaRetirada",
          "retiradas"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "nome": {
            "type": "string"
          },
          "comoTomar": {
            "type": [
              "null",
              "string"
            ]
          },
          "quantidade": {
            "type": [
              "null",
              "string"
            ]
          },
          "diasEntreRetiradas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "receitaAte": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "observacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "noApp": {
            "type": "boolean"
          },
          "ativo": {
            "type": "boolean"
          },
          "ultimaRetirada": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "proximaRetirada": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "retiradas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RetiradaNoCartao"
            }
          }
        }
      },
      "RemedioNoPec": {
        "required": [
          "nome",
          "posologia",
          "inicio",
          "fim",
          "usoContinuo"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": "string"
          },
          "posologia": {
            "type": [
              "null",
              "string"
            ]
          },
          "inicio": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "fim": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "usoContinuo": {
            "type": "boolean"
          }
        }
      },
      "RemediosDaPessoa": {
        "required": [
          "pacienteId",
          "nome",
          "remedios"
        ],
        "type": "object",
        "properties": {
          "pacienteId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "nome": {
            "type": "string"
          },
          "remedios": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RemedioNoApp"
            }
          }
        }
      },
      "RemediosNoApp": {
        "required": [
          "pessoas"
        ],
        "type": "object",
        "properties": {
          "pessoas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RemediosDaPessoa"
            }
          }
        }
      },
      "RenovacaoDaCivi": {
        "required": [
          "rotulo",
          "remedioId"
        ],
        "type": "object",
        "properties": {
          "rotulo": {
            "type": "string"
          },
          "remedioId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          }
        }
      },
      "RenovacaoNaFila": {
        "required": [
          "id",
          "pacienteId",
          "paciente",
          "telefone",
          "remedioId",
          "remedio",
          "receitaAte",
          "pedidaEm",
          "situacao",
          "receitaAteNova",
          "resposta",
          "respondidaEm",
          "respondidaPor"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "pacienteId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "paciente": {
            "type": "string"
          },
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "remedioId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "remedio": {
            "type": "string"
          },
          "receitaAte": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "pedidaEm": {
            "type": "string",
            "format": "date-time"
          },
          "situacao": {
            "type": "string"
          },
          "receitaAteNova": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "resposta": {
            "type": [
              "null",
              "string"
            ]
          },
          "respondidaEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "respondidaPor": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "RenovacaoNoApp": {
        "required": [
          "situacao",
          "pedidaEm",
          "receitaAteNova",
          "resposta"
        ],
        "type": "object",
        "properties": {
          "situacao": {
            "type": "string"
          },
          "pedidaEm": {
            "type": "string",
            "format": "date-time"
          },
          "receitaAteNova": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "resposta": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "RepasseDaSee": {
        "required": [
          "empenho",
          "anoDoEmpenho",
          "acao",
          "historico",
          "empenhado",
          "pagoNoAno",
          "convenio"
        ],
        "type": "object",
        "properties": {
          "empenho": {
            "type": "string"
          },
          "anoDoEmpenho": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "acao": {
            "type": [
              "null",
              "string"
            ]
          },
          "historico": {
            "type": [
              "null",
              "string"
            ]
          },
          "empenhado": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "pagoNoAno": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "convenio": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "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"
          }
        }
      },
      "RequisitoDoProcesso": {
        "required": [
          "descricao",
          "eliminatorio",
          "justificativaTecnica",
          "temJustificativa"
        ],
        "type": "object",
        "properties": {
          "descricao": {
            "type": "string"
          },
          "eliminatorio": {
            "type": "boolean"
          },
          "justificativaTecnica": {
            "type": [
              "null",
              "string"
            ]
          },
          "temJustificativa": {
            "type": "boolean"
          }
        }
      },
      "RequisitoEnviado": {
        "required": [
          "descricao",
          "eliminatorio",
          "justificativaTecnica"
        ],
        "type": "object",
        "properties": {
          "descricao": {
            "type": [
              "null",
              "string"
            ]
          },
          "eliminatorio": {
            "type": "boolean"
          },
          "justificativaTecnica": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "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": [
              "null",
              "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"
          }
        }
      },
      "ResponsavelDeContratacao": {
        "required": [
          "id",
          "papel",
          "nome",
          "matricula",
          "cargo",
          "usuarioId"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "papel": {
            "$ref": "#/components/schemas/Opcao"
          },
          "nome": {
            "type": "string"
          },
          "matricula": {
            "type": "string"
          },
          "cargo": {
            "type": [
              "null",
              "string"
            ]
          },
          "usuarioId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          }
        }
      },
      "ResponsavelEnviado": {
        "required": [
          "papel",
          "nome",
          "matricula",
          "cargo",
          "usuarioId"
        ],
        "type": "object",
        "properties": {
          "papel": {
            "type": [
              "null",
              "string"
            ]
          },
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "matricula": {
            "type": [
              "null",
              "string"
            ]
          },
          "cargo": {
            "type": [
              "null",
              "string"
            ]
          },
          "usuarioId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          }
        }
      },
      "RespostaAoAviso": {
        "required": [
          "opcao"
        ],
        "type": "object",
        "properties": {
          "opcao": {
            "type": "string"
          }
        }
      },
      "RespostaARenovacao": {
        "required": [
          "decisao",
          "receitaAte",
          "resposta"
        ],
        "type": "object",
        "properties": {
          "decisao": {
            "type": [
              "null",
              "string"
            ]
          },
          "receitaAte": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "resposta": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "RespostaASugestao": {
        "required": [
          "aceitar",
          "parentesco"
        ],
        "type": "object",
        "properties": {
          "aceitar": {
            "type": "boolean"
          },
          "parentesco": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "RespostaAutomaticaRespondida": {
        "required": [
          "ativa",
          "assunto",
          "texto",
          "inicio",
          "fim",
          "dias"
        ],
        "type": "object",
        "properties": {
          "ativa": {
            "type": "boolean"
          },
          "assunto": {
            "type": "string"
          },
          "texto": {
            "type": "string"
          },
          "inicio": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "fim": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "dias": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "RespostaDaCivi": {
        "required": [
          "texto",
          "horarios",
          "renovacoes",
          "soBotoes"
        ],
        "type": "object",
        "properties": {
          "texto": {
            "type": "string"
          },
          "horarios": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HorarioDaCivi"
            }
          },
          "renovacoes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RenovacaoDaCivi"
            }
          },
          "soBotoes": {
            "type": "boolean"
          },
          "marcada": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ConsultaMarcadaNoApp"
              }
            ]
          }
        }
      },
      "RespostaDaConversa": {
        "required": [
          "resposta",
          "agendamento",
          "acesso"
        ],
        "type": "object",
        "properties": {
          "resposta": {
            "type": "string"
          },
          "agendamento": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/AgendamentoDaConversa"
              }
            ]
          },
          "acesso": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "RespostaNoApp": {
        "required": [
          "vou"
        ],
        "type": "object",
        "properties": {
          "vou": {
            "type": "boolean"
          }
        }
      },
      "RespostaPublica": {
        "required": [
          "data",
          "texto"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": "string",
            "format": "date"
          },
          "texto": {
            "type": "string"
          }
        }
      },
      "RespostaResumo": {
        "required": [
          "em",
          "texto",
          "dentroDoPrazo",
          "autor"
        ],
        "type": "object",
        "properties": {
          "em": {
            "type": "string",
            "format": "date-time"
          },
          "texto": {
            "type": "string"
          },
          "dentroDoPrazo": {
            "type": "boolean"
          },
          "autor": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ResultadoDaAnalise": {
        "required": [
          "arquivo",
          "tipo",
          "caracteres",
          "bloqueantes",
          "limpo",
          "achados"
        ],
        "type": "object",
        "properties": {
          "arquivo": {
            "type": "string"
          },
          "tipo": {
            "$ref": "#/components/schemas/Opcao"
          },
          "caracteres": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "bloqueantes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "limpo": {
            "type": "boolean"
          },
          "achados": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AchadoDeConformidade"
            }
          }
        }
      },
      "ResultadoDaAplicacao": {
        "required": [
          "dominio",
          "passos"
        ],
        "type": "object",
        "properties": {
          "dominio": {
            "type": "string"
          },
          "passos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PassoDaAplicacao"
            }
          }
        }
      },
      "ResultadoDaExclusao": {
        "required": [
          "dominio",
          "avisos"
        ],
        "type": "object",
        "properties": {
          "dominio": {
            "type": "string"
          },
          "avisos": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "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"
            }
          }
        }
      },
      "ResultadoDaImportacaoDeLeads": {
        "required": [
          "linhas",
          "novas",
          "atualizadas",
          "duplicadas",
          "ignoradas",
          "avisos"
        ],
        "type": "object",
        "properties": {
          "linhas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "novas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "atualizadas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "duplicadas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "ignoradas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "avisos": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ResultadoDaNotaDoStudio": {
        "required": [
          "comanda",
          "emitida",
          "nota",
          "semResposta",
          "jaExistia",
          "codigo",
          "mensagem",
          "situacaoDaReceita",
          "respostaDaReceita"
        ],
        "type": "object",
        "properties": {
          "comanda": {
            "type": "string",
            "format": "uuid"
          },
          "emitida": {
            "type": "boolean"
          },
          "nota": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/NotaFiscalDoStudio"
              }
            ]
          },
          "semResposta": {
            "type": "boolean"
          },
          "jaExistia": {
            "type": "boolean"
          },
          "codigo": {
            "type": [
              "null",
              "string"
            ]
          },
          "mensagem": {
            "type": [
              "null",
              "string"
            ]
          },
          "situacaoDaReceita": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "respostaDaReceita": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ResultadoDoAviso": {
        "required": [
          "enviadas",
          "recusas"
        ],
        "type": "object",
        "properties": {
          "enviadas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "recusas": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ResultadoDoIdebResposta": {
        "required": [
          "ano",
          "ideb",
          "nota",
          "fluxo",
          "portugues",
          "matematica",
          "aprovacao",
          "meta"
        ],
        "type": "object",
        "properties": {
          "ano": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "ideb": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "nota": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "fluxo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "portugues": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "matematica": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "aprovacao": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "meta": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "ResultadoDoLoteDoStudio": {
        "required": [
          "pedidas",
          "emitidas",
          "naoEmitidas",
          "ambiente",
          "valendo",
          "itens"
        ],
        "type": "object",
        "properties": {
          "pedidas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "emitidas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "naoEmitidas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "ambiente": {
            "type": "string"
          },
          "valendo": {
            "type": "boolean"
          },
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResultadoDaNotaDoStudio"
            }
          }
        }
      },
      "ResultadoDosAvisos": {
        "required": [
          "enfileirados",
          "semTelefone",
          "viagem"
        ],
        "type": "object",
        "properties": {
          "enfileirados": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "semTelefone": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "viagem": {
            "$ref": "#/components/schemas/ViagemDaFrota"
          }
        }
      },
      "ResumoDaComanda": {
        "required": [
          "codigo",
          "cliente",
          "clienteNome",
          "dia",
          "situacao",
          "itens",
          "total",
          "abertaEm"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string",
            "format": "uuid"
          },
          "cliente": {
            "type": "string",
            "format": "uuid"
          },
          "clienteNome": {
            "type": "string"
          },
          "dia": {
            "type": "string",
            "format": "date"
          },
          "situacao": {
            "type": "string"
          },
          "itens": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "abertaEm": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ResumoDaMensagem": {
        "required": [
          "uid",
          "assunto",
          "remetenteNome",
          "remetenteEndereco",
          "para",
          "data",
          "lida",
          "respondida",
          "marcada",
          "temAnexo",
          "tamanhoBytes",
          "previa",
          "etiquetas"
        ],
        "type": "object",
        "properties": {
          "uid": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "assunto": {
            "type": [
              "null",
              "string"
            ]
          },
          "remetenteNome": {
            "type": [
              "null",
              "string"
            ]
          },
          "remetenteEndereco": {
            "type": [
              "null",
              "string"
            ]
          },
          "para": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "data": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "lida": {
            "type": "boolean"
          },
          "respondida": {
            "type": "boolean"
          },
          "marcada": {
            "type": "boolean"
          },
          "temAnexo": {
            "type": "boolean"
          },
          "tamanhoBytes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "previa": {
            "type": [
              "null",
              "string"
            ]
          },
          "etiquetas": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ResumoDaProspeccao": {
        "required": [
          "coletadoEm",
          "contratos",
          "total",
          "doRamo",
          "comWhatsapp",
          "comEmail",
          "comSite",
          "porUf",
          "porSituacao"
        ],
        "type": "object",
        "properties": {
          "coletadoEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "contratos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "doRamo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "comWhatsapp": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "comEmail": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "comSite": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "porUf": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LeadsPorUf"
            }
          },
          "porSituacao": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LeadsPorSituacao"
            }
          }
        }
      },
      "ResumoDasCriancas": {
        "required": [
          "criancas",
          "ate2Anos",
          "emDia",
          "vacinaAtrasada",
          "vacinasEmDia",
          "comUrgencia",
          "microareas",
          "pendencias",
          "leitura",
          "unidades",
          "semCadastro"
        ],
        "type": "object",
        "properties": {
          "criancas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "ate2Anos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "emDia": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "vacinaAtrasada": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "vacinasEmDia": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "comUrgencia": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "microareas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MicroareaDoAcompanhamento"
            }
          },
          "pendencias": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContagemDePendencia"
            }
          },
          "leitura": {
            "$ref": "#/components/schemas/LeituraDoAcompanhamento"
          },
          "unidades": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "semCadastro": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "semVacina": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32",
            "default": 0
          }
        }
      },
      "ResumoDasGestantes": {
        "required": [
          "gestantes",
          "puerperas",
          "altoRisco",
          "comUrgencia",
          "microareas",
          "pendencias",
          "leitura"
        ],
        "type": "object",
        "properties": {
          "gestantes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "puerperas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "altoRisco": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "comUrgencia": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "microareas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MicroareaDasGestantes"
            }
          },
          "pendencias": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContagemDePendencia"
            }
          },
          "leitura": {
            "$ref": "#/components/schemas/LeituraDoAcompanhamento"
          },
          "unidades": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          },
          "noApp": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32",
            "default": 0
          },
          "disseramJaFiz": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32",
            "default": 0
          }
        }
      },
      "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"
            }
          }
        }
      },
      "ResumoDasMulheres": {
        "required": [
          "mulheres",
          "emDia",
          "idadeDoPreventivo",
          "preventivoEmDia",
          "idadeDaMamografia",
          "mamografiaEmDia",
          "microareas",
          "pendencias",
          "leitura",
          "unidades",
          "semCadastro"
        ],
        "type": "object",
        "properties": {
          "mulheres": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "emDia": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "idadeDoPreventivo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "preventivoEmDia": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "idadeDaMamografia": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "mamografiaEmDia": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "microareas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MicroareaDoAcompanhamento"
            }
          },
          "pendencias": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContagemDePendencia"
            }
          },
          "leitura": {
            "$ref": "#/components/schemas/LeituraDoAcompanhamento"
          },
          "unidades": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "semCadastro": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "ResumoDasVacinasDosJovens": {
        "required": [
          "total",
          "emDia",
          "atrasada",
          "semRegistro",
          "naoSabemos",
          "microareas",
          "leitura",
          "unidades",
          "semCadastro",
          "naoInformadas"
        ],
        "type": "object",
        "properties": {
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "emDia": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "atrasada": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "semRegistro": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "naoSabemos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "microareas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MicroareaDasVacinas"
            }
          },
          "leitura": {
            "$ref": "#/components/schemas/LeituraDoAcompanhamento"
          },
          "unidades": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "semCadastro": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "naoInformadas": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "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"
          },
          "semSaldo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32",
            "default": 0
          },
          "anoDoRecebido": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32",
            "default": 0
          },
          "creditosForaDaLista": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/CreditoForaDaLista"
            }
          }
        }
      },
      "ResumoDeContrato": {
        "required": [
          "id",
          "numero",
          "objeto",
          "contratado",
          "situacao",
          "inicio",
          "vigenciaFim",
          "diasParaVencer",
          "vencendo",
          "valorAtualFormatado",
          "processoOrigemId",
          "processoOrigemNumero"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "numero": {
            "type": "string"
          },
          "objeto": {
            "type": "string"
          },
          "contratado": {
            "type": "string"
          },
          "situacao": {
            "$ref": "#/components/schemas/Opcao"
          },
          "inicio": {
            "type": "string"
          },
          "vigenciaFim": {
            "type": "string"
          },
          "diasParaVencer": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "vencendo": {
            "type": "boolean"
          },
          "valorAtualFormatado": {
            "type": "string"
          },
          "processoOrigemId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "processoOrigemNumero": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "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"
          }
        }
      },
      "ResumoDeImpugnacao": {
        "required": [
          "id",
          "processoId",
          "processoNumero",
          "impugnante",
          "impugnanteDocumento",
          "impugnanteRepresentante",
          "dataProtocolo",
          "dataAberturaCertame",
          "limiteParaProtocolo",
          "tempestiva",
          "estado",
          "resultado",
          "totalDePontos",
          "pontosPendentes",
          "candidatosARegra"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "processoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "processoNumero": {
            "type": "string"
          },
          "impugnante": {
            "type": "string"
          },
          "impugnanteDocumento": {
            "type": [
              "null",
              "string"
            ]
          },
          "impugnanteRepresentante": {
            "type": [
              "null",
              "string"
            ]
          },
          "dataProtocolo": {
            "type": "string"
          },
          "dataAberturaCertame": {
            "type": "string"
          },
          "limiteParaProtocolo": {
            "type": "string"
          },
          "tempestiva": {
            "type": "boolean"
          },
          "estado": {
            "$ref": "#/components/schemas/Opcao"
          },
          "resultado": {
            "$ref": "#/components/schemas/Opcao"
          },
          "totalDePontos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pontosPendentes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "candidatosARegra": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "ResumoDePesquisa": {
        "required": [
          "id",
          "codigo",
          "objeto",
          "responsavel",
          "estado",
          "criadaEm",
          "finalizadaEm",
          "quantidadeDeItens",
          "valorGlobal",
          "valorGlobalFormatado",
          "pendencias"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "codigo": {
            "type": "string"
          },
          "objeto": {
            "type": "string"
          },
          "responsavel": {
            "type": "string"
          },
          "estado": {
            "$ref": "#/components/schemas/Opcao"
          },
          "criadaEm": {
            "type": "string",
            "format": "date-time"
          },
          "finalizadaEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "quantidadeDeItens": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "valorGlobal": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "valorGlobalFormatado": {
            "type": [
              "null",
              "string"
            ]
          },
          "pendencias": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "ResumoDeProcesso": {
        "required": [
          "id",
          "numero",
          "exercicio",
          "objeto",
          "rito",
          "estado",
          "usaRegistroPrecos",
          "valorFormatado",
          "trioCompleto"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "numero": {
            "type": "string"
          },
          "exercicio": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "objeto": {
            "type": "string"
          },
          "rito": {
            "$ref": "#/components/schemas/Opcao"
          },
          "estado": {
            "$ref": "#/components/schemas/Opcao"
          },
          "usaRegistroPrecos": {
            "type": "boolean"
          },
          "valorFormatado": {
            "type": [
              "null",
              "string"
            ]
          },
          "trioCompleto": {
            "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"
            ]
          }
        }
      },
      "ResumoDoCadastroAps": {
        "required": [
          "equipes",
          "verificadas",
          "composicaoCompleta",
          "composicaoIncompleta",
          "semProfissional",
          "vinculosIrregulares",
          "duplicidadeIntermunicipal",
          "desligamentoPendente",
          "comGlosa",
          "naoHomologadas"
        ],
        "type": "object",
        "properties": {
          "equipes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "verificadas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "composicaoCompleta": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "composicaoIncompleta": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "semProfissional": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "vinculosIrregulares": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "duplicidadeIntermunicipal": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "desligamentoPendente": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "comGlosa": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "naoHomologadas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "ResumoDoPlanejamento": {
        "required": [
          "total",
          "concluidos",
          "comOMunicipio",
          "noConselho",
          "prazosVencidos",
          "prazosPerto"
        ],
        "type": "object",
        "properties": {
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "concluidos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "comOMunicipio": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "noConselho": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "prazosVencidos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "prazosPerto": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "aindaNaoEHora": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32",
            "default": 0
          }
        }
      },
      "ResumoDosAvisos": {
        "required": [
          "pacientesAvisados",
          "pacientesPorAvisar",
          "semTelefone",
          "motorista",
          "motoristaPorAvisar",
          "naoVao"
        ],
        "type": "object",
        "properties": {
          "pacientesAvisados": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pacientesPorAvisar": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "semTelefone": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "motorista": {
            "type": [
              "null",
              "string"
            ]
          },
          "motoristaPorAvisar": {
            "type": "boolean"
          },
          "naoVao": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "ResumoDosCronicos": {
        "required": [
          "condicao",
          "pessoas",
          "emDia",
          "comUrgencia",
          "pressaoAlta",
          "microareas",
          "pendencias",
          "leitura",
          "unidades",
          "semCadastro"
        ],
        "type": "object",
        "properties": {
          "condicao": {
            "type": "string"
          },
          "pessoas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "emDia": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "comUrgencia": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "pressaoAlta": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "microareas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MicroareaDoAcompanhamento"
            }
          },
          "pendencias": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContagemDePendencia"
            }
          },
          "leitura": {
            "$ref": "#/components/schemas/LeituraDoAcompanhamento"
          },
          "unidades": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "semCadastro": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "ResumoDosIdosos": {
        "required": [
          "pessoas",
          "emDia",
          "semIvcf",
          "riscoAlto",
          "comUrgencia",
          "microareas",
          "pendencias",
          "leitura",
          "unidades",
          "semCadastro"
        ],
        "type": "object",
        "properties": {
          "pessoas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "emDia": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "semIvcf": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "riscoAlto": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "comUrgencia": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "microareas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MicroareaDoAcompanhamento"
            }
          },
          "pendencias": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContagemDePendencia"
            }
          },
          "leitura": {
            "$ref": "#/components/schemas/LeituraDoAcompanhamento"
          },
          "unidades": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "semCadastro": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "ResumoDosProfissionaisAps": {
        "required": [
          "total",
          "comPendencia",
          "comCh",
          "semCh"
        ],
        "type": "object",
        "properties": {
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "comPendencia": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "comCh": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "semCh": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "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"
            ]
          }
        }
      },
      "RetiradaDeItemEnviada": {
        "required": [
          "motivo"
        ],
        "type": "object",
        "properties": {
          "motivo": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "RetiradaDoItem": {
        "required": [
          "motivo",
          "quando",
          "quem"
        ],
        "type": "object",
        "properties": {
          "motivo": {
            "type": "string"
          },
          "quando": {
            "type": "string",
            "format": "date-time"
          },
          "quem": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "RetiradaEnviada": {
        "required": [
          "remedios",
          "data",
          "quemRetirou"
        ],
        "type": "object",
        "properties": {
          "remedios": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int64"
            }
          },
          "data": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "quemRetirou": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "RetiradaNoCartao": {
        "required": [
          "id",
          "data",
          "quantidade",
          "quemRetirou",
          "registradoPor",
          "podeDesfazer"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "data": {
            "type": "string",
            "format": "date"
          },
          "quantidade": {
            "type": [
              "null",
              "string"
            ]
          },
          "quemRetirou": {
            "type": [
              "null",
              "string"
            ]
          },
          "registradoPor": {
            "type": "string"
          },
          "podeDesfazer": {
            "type": "boolean"
          }
        }
      },
      "RoteiroAnterior": {
        "required": [
          "dia",
          "casas",
          "feitas"
        ],
        "type": "object",
        "properties": {
          "dia": {
            "type": "string",
            "format": "date"
          },
          "casas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "feitas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "ausentes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32",
            "default": 0
          },
          "recusadas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32",
            "default": 0
          }
        }
      },
      "RoteiroDaAcs": {
        "required": [
          "microarea",
          "agente",
          "dia",
          "combinado",
          "combinadoEm",
          "combinadoPor",
          "carteira",
          "visitadasNoMes",
          "faltam",
          "fimDaJanela",
          "diasDeTrabalho",
          "cota",
          "cotaNecessaria",
          "cabe",
          "casas"
        ],
        "type": "object",
        "properties": {
          "microarea": {
            "type": "string"
          },
          "agente": {
            "type": [
              "null",
              "string"
            ]
          },
          "dia": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "combinado": {
            "type": "boolean"
          },
          "combinadoEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "combinadoPor": {
            "type": [
              "null",
              "string"
            ]
          },
          "carteira": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "visitadasNoMes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "faltam": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "fimDaJanela": {
            "type": "string",
            "format": "date"
          },
          "diasDeTrabalho": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "cota": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "cotaNecessaria": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "cabe": {
            "type": "boolean"
          },
          "casas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CasaDoRoteiro"
            }
          },
          "teto": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32",
            "default": 0
          },
          "foraDoMes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32",
            "default": 0
          },
          "semListas": {
            "type": "boolean",
            "default": false
          },
          "unidade": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "RotuloLido": {
        "required": [
          "nome",
          "marca",
          "fabricante",
          "principioAtivo",
          "concentracao",
          "apresentacao",
          "unidadeSugerida",
          "quantidadeNaEmbalagem",
          "categoriaSugeridaId",
          "categoriaSugerida",
          "codigoDeBarras",
          "lote",
          "validade",
          "registroAnvisa",
          "certificadoDeAprovacao",
          "descricao",
          "produto",
          "avisos",
          "modelo"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "marca": {
            "type": [
              "null",
              "string"
            ]
          },
          "fabricante": {
            "type": [
              "null",
              "string"
            ]
          },
          "principioAtivo": {
            "type": [
              "null",
              "string"
            ]
          },
          "concentracao": {
            "type": [
              "null",
              "string"
            ]
          },
          "apresentacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "unidadeSugerida": {
            "type": [
              "null",
              "string"
            ]
          },
          "quantidadeNaEmbalagem": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "categoriaSugeridaId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "categoriaSugerida": {
            "type": [
              "null",
              "string"
            ]
          },
          "codigoDeBarras": {
            "type": [
              "null",
              "string"
            ]
          },
          "lote": {
            "type": [
              "null",
              "string"
            ]
          },
          "validade": {
            "type": [
              "null",
              "string"
            ]
          },
          "registroAnvisa": {
            "type": [
              "null",
              "string"
            ]
          },
          "certificadoDeAprovacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "descricao": {
            "type": [
              "null",
              "string"
            ]
          },
          "produto": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ProdutoDoEstoque"
              }
            ]
          },
          "avisos": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "modelo": {
            "type": "string"
          },
          "cmed": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/MedicamentoDaCmed"
              }
            ]
          }
        }
      },
      "SaidaEnviada": {
        "required": [
          "almoxarifadoId",
          "destino",
          "itens"
        ],
        "type": "object",
        "properties": {
          "almoxarifadoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "destino": {
            "type": [
              "null",
              "string"
            ]
          },
          "itens": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/ItemDeSaida"
            }
          }
        }
      },
      "SalaoPublico": {
        "required": [
          "nome",
          "ramo",
          "logomarca",
          "mensagem",
          "telefone",
          "endereco",
          "instagram",
          "diasAFrente",
          "antecedenciaMinimaMinutos",
          "servicos",
          "profissionais"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": "string"
          },
          "ramo": {
            "type": "string"
          },
          "logomarca": {
            "type": [
              "null",
              "string"
            ]
          },
          "mensagem": {
            "type": [
              "null",
              "string"
            ]
          },
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "endereco": {
            "type": [
              "null",
              "string"
            ]
          },
          "instagram": {
            "type": [
              "null",
              "string"
            ]
          },
          "diasAFrente": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "antecedenciaMinimaMinutos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "servicos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ServicoDoSalao"
            }
          },
          "profissionais": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProfissionalDoSalao"
            }
          },
          "privacidade": {
            "type": [
              "null",
              "string"
            ]
          },
          "conversaLigada": {
            "type": "boolean",
            "default": false
          },
          "manifesto": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "SaldoDoEstoque": {
        "required": [
          "almoxarifadoId",
          "almoxarifado",
          "produtoId",
          "produto",
          "categoria",
          "unidade",
          "quantidade",
          "custoMedio",
          "valor",
          "estoqueMinimo",
          "abaixoDoMinimo",
          "lotes"
        ],
        "type": "object",
        "properties": {
          "almoxarifadoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "almoxarifado": {
            "type": "string"
          },
          "produtoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "produto": {
            "type": "string"
          },
          "categoria": {
            "type": "string"
          },
          "unidade": {
            "type": "string"
          },
          "quantidade": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "custoMedio": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "valor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "estoqueMinimo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "abaixoDoMinimo": {
            "type": "boolean"
          },
          "lotes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LoteDoSaldo"
            }
          }
        }
      },
      "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"
          }
        }
      },
      "ScoreAps": {
        "required": [
          "nota",
          "criterio",
          "eixos"
        ],
        "type": "object",
        "properties": {
          "nota": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "criterio": {
            "type": "string"
          },
          "eixos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EixoDoScoreAps"
            }
          }
        }
      },
      "SecaoDaPeca": {
        "required": [
          "ordem",
          "codigo",
          "titulo",
          "cabecalho",
          "conteudo",
          "origem",
          "vazia"
        ],
        "type": "object",
        "properties": {
          "ordem": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "codigo": {
            "type": "string"
          },
          "titulo": {
            "type": "string"
          },
          "cabecalho": {
            "type": "string"
          },
          "conteudo": {
            "type": "string"
          },
          "origem": {
            "type": "string"
          },
          "vazia": {
            "type": "boolean"
          }
        }
      },
      "SecaoDaPolitica": {
        "required": [
          "titulo",
          "paragrafos"
        ],
        "type": "object",
        "properties": {
          "titulo": {
            "type": "string"
          },
          "paragrafos": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "SecaoDoModelo": {
        "required": [
          "ordem",
          "codigo",
          "titulo",
          "textoBase",
          "obrigatoria",
          "preenchimento",
          "marcadores"
        ],
        "type": "object",
        "properties": {
          "ordem": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "codigo": {
            "type": "string"
          },
          "titulo": {
            "type": "string"
          },
          "textoBase": {
            "type": "string"
          },
          "obrigatoria": {
            "type": "boolean"
          },
          "preenchimento": {
            "type": "string"
          },
          "marcadores": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "SecaoDoModeloEnviada": {
        "required": [
          "codigo",
          "titulo",
          "textoBase",
          "obrigatoria",
          "preenchimento"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": [
              "null",
              "string"
            ]
          },
          "titulo": {
            "type": [
              "null",
              "string"
            ]
          },
          "textoBase": {
            "type": [
              "null",
              "string"
            ]
          },
          "obrigatoria": {
            "type": "boolean"
          },
          "preenchimento": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "SecaoEnviada": {
        "required": [
          "conteudo"
        ],
        "type": "object",
        "properties": {
          "conteudo": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "SecretariaDaOuvidoria": {
        "required": [
          "id",
          "nome",
          "sigla",
          "ativa"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "nome": {
            "type": "string"
          },
          "sigla": {
            "type": "string"
          },
          "ativa": {
            "type": "boolean"
          }
        }
      },
      "SecretariaDaOuvidoriaEnviada": {
        "required": [
          "nome",
          "sigla",
          "ativa"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "sigla": {
            "type": [
              "null",
              "string"
            ]
          },
          "ativa": {
            "type": [
              "null",
              "boolean"
            ]
          }
        }
      },
      "SecretariaEnviada": {
        "required": [
          "secretaria"
        ],
        "type": "object",
        "properties": {
          "secretaria": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "SecretariaPublica": {
        "required": [
          "id",
          "nome",
          "sigla"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "nome": {
            "type": "string"
          },
          "sigla": {
            "type": "string"
          }
        }
      },
      "SegredoDoAutenticador": {
        "required": [
          "segredo",
          "uri"
        ],
        "type": "object",
        "properties": {
          "segredo": {
            "type": "string"
          },
          "uri": {
            "type": "string"
          }
        }
      },
      "SegundoFatorDaConta": {
        "required": [
          "ligado",
          "ligadoEm",
          "codigosDeRecuperacaoDisponiveis"
        ],
        "type": "object",
        "properties": {
          "ligado": {
            "type": "boolean"
          },
          "ligadoEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "codigosDeRecuperacaoDisponiveis": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "SemanaDeArboviroseResposta": {
        "required": [
          "semana",
          "inicio",
          "alerta",
          "casos",
          "casosEstimados",
          "casosEstimadosMinimo",
          "casosEstimadosMaximo",
          "rt",
          "incidencia"
        ],
        "type": "object",
        "properties": {
          "semana": {
            "type": "string"
          },
          "inicio": {
            "type": "string",
            "format": "date"
          },
          "alerta": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/NivelDeAlertaArbovirose"
              }
            ]
          },
          "casos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "casosEstimados": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "casosEstimadosMinimo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "casosEstimadosMaximo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "rt": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "incidencia": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "SerieDoIdeb": {
        "required": [
          "etapa",
          "nomeDaEtapa",
          "rede",
          "resultados"
        ],
        "type": "object",
        "properties": {
          "etapa": {
            "type": "string"
          },
          "nomeDaEtapa": {
            "type": "string"
          },
          "rede": {
            "type": "string"
          },
          "resultados": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResultadoDoIdebResposta"
            }
          }
        }
      },
      "ServicoDaAgenda": {
        "required": [
          "id",
          "nome",
          "duracaoMinutos",
          "area",
          "ativo"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "nome": {
            "type": "string"
          },
          "duracaoMinutos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "area": {
            "type": [
              "null",
              "string"
            ]
          },
          "ativo": {
            "type": "boolean"
          }
        }
      },
      "ServicoDaCartaEnviado": {
        "required": [
          "secretariaId",
          "nome",
          "descricao",
          "requisitos",
          "prazoAtendimento",
          "responsavel",
          "formasDeAcesso",
          "publicado",
          "ordem"
        ],
        "type": "object",
        "properties": {
          "secretariaId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "descricao": {
            "type": [
              "null",
              "string"
            ]
          },
          "requisitos": {
            "type": [
              "null",
              "string"
            ]
          },
          "prazoAtendimento": {
            "type": [
              "null",
              "string"
            ]
          },
          "responsavel": {
            "type": [
              "null",
              "string"
            ]
          },
          "formasDeAcesso": {
            "type": [
              "null",
              "string"
            ]
          },
          "publicado": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "ordem": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "ServicoDaCartaResumo": {
        "required": [
          "id",
          "secretariaId",
          "secretaria",
          "nome",
          "descricao",
          "requisitos",
          "prazoAtendimento",
          "responsavel",
          "formasDeAcesso",
          "publicado",
          "ordem"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "secretariaId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "secretaria": {
            "type": "string"
          },
          "nome": {
            "type": "string"
          },
          "descricao": {
            "type": "string"
          },
          "requisitos": {
            "type": [
              "null",
              "string"
            ]
          },
          "prazoAtendimento": {
            "type": [
              "null",
              "string"
            ]
          },
          "responsavel": {
            "type": [
              "null",
              "string"
            ]
          },
          "formasDeAcesso": {
            "type": [
              "null",
              "string"
            ]
          },
          "publicado": {
            "type": "boolean"
          },
          "ordem": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "ServicoDoSalao": {
        "required": [
          "codigo",
          "nome",
          "categoria",
          "duracaoMinutos",
          "preco"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string",
            "format": "uuid"
          },
          "nome": {
            "type": "string"
          },
          "categoria": {
            "type": [
              "null",
              "string"
            ]
          },
          "duracaoMinutos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "preco": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "ServicoDoStudio": {
        "required": [
          "codigo",
          "nome",
          "categoria",
          "duracaoMinutos",
          "preco",
          "comissaoPercentual",
          "online",
          "ativo"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string",
            "format": "uuid"
          },
          "nome": {
            "type": "string"
          },
          "categoria": {
            "type": [
              "null",
              "string"
            ]
          },
          "duracaoMinutos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "preco": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "comissaoPercentual": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "online": {
            "type": "boolean"
          },
          "ativo": {
            "type": "boolean"
          }
        }
      },
      "ServicoEnviado": {
        "required": [
          "nome",
          "duracaoMinutos",
          "area"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "duracaoMinutos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "area": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ServicoNaNota": {
        "required": [
          "servico",
          "profissional",
          "parceiro",
          "valor",
          "cotaDoParceiro",
          "parteDoSalao",
          "codigoTributacao"
        ],
        "type": "object",
        "properties": {
          "servico": {
            "type": "string"
          },
          "profissional": {
            "type": "string"
          },
          "parceiro": {
            "type": "boolean"
          },
          "valor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "cotaDoParceiro": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "parteDoSalao": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "codigoTributacao": {
            "type": "string"
          }
        }
      },
      "ServicoPublico": {
        "required": [
          "id",
          "secretaria",
          "nome",
          "descricao",
          "requisitos",
          "prazoAtendimento",
          "responsavel",
          "formasDeAcesso"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "secretaria": {
            "type": "string"
          },
          "nome": {
            "type": "string"
          },
          "descricao": {
            "type": "string"
          },
          "requisitos": {
            "type": [
              "null",
              "string"
            ]
          },
          "prazoAtendimento": {
            "type": [
              "null",
              "string"
            ]
          },
          "responsavel": {
            "type": [
              "null",
              "string"
            ]
          },
          "formasDeAcesso": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ServicosSugeridosCriados": {
        "required": [
          "criados",
          "pulados"
        ],
        "type": "object",
        "properties": {
          "criados": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ServicoDoStudio"
            }
          },
          "pulados": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ServicoSugeridoDoRamo": {
        "required": [
          "nome",
          "categoria",
          "duracaoMinutos"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": "string"
          },
          "categoria": {
            "type": "string"
          },
          "duracaoMinutos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "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"
            ]
          },
          "aguardandoSegundoFator": {
            "type": "boolean",
            "default": false
          }
        }
      },
      "SessaoDeAuriculoDaFicha": {
        "required": [
          "id",
          "numero",
          "data",
          "agendamentoId",
          "orelha",
          "escalaAntes",
          "escalaDepois",
          "reacoes",
          "nota",
          "pontos"
        ],
        "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"
          },
          "data": {
            "type": "string"
          },
          "agendamentoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "orelha": {
            "type": "string"
          },
          "escalaAntes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "escalaDepois": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "reacoes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "nota": {
            "type": [
              "null",
              "string"
            ]
          },
          "pontos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PontoDeAuriculo"
            }
          }
        }
      },
      "SessaoDeAuriculoEnviada": {
        "required": [
          "data",
          "agendamentoId",
          "orelha",
          "escalaAntes",
          "escalaDepois",
          "reacoes",
          "nota",
          "pontos"
        ],
        "type": "object",
        "properties": {
          "data": {
            "type": [
              "null",
              "string"
            ]
          },
          "agendamentoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "orelha": {
            "type": [
              "null",
              "string"
            ]
          },
          "escalaAntes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "escalaDepois": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "reacoes": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          },
          "nota": {
            "type": [
              "null",
              "string"
            ]
          },
          "pontos": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/PontoDeAuriculo"
            }
          }
        }
      },
      "SessaoDoWebmailRespondida": {
        "required": [
          "caixa",
          "chaveiro"
        ],
        "type": "object",
        "properties": {
          "caixa": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/CaixaRespondida"
              }
            ]
          },
          "chaveiro": {
            "type": "boolean"
          }
        }
      },
      "SetorDaOuvidoria": {
        "required": [
          "id",
          "secretariaId",
          "secretaria",
          "nome",
          "ativo"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "secretariaId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "secretaria": {
            "type": "string"
          },
          "nome": {
            "type": "string"
          },
          "ativo": {
            "type": "boolean"
          }
        }
      },
      "SetorDaOuvidoriaEnviado": {
        "required": [
          "secretariaId",
          "nome",
          "ativo"
        ],
        "type": "object",
        "properties": {
          "secretariaId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "ativo": {
            "type": [
              "null",
              "boolean"
            ]
          }
        }
      },
      "SinoDaOuvidoria": {
        "required": [
          "vencidas",
          "alertas"
        ],
        "type": "object",
        "properties": {
          "vencidas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "alertas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AlertaDoSino"
            }
          }
        }
      },
      "SistemaDoPortal": {
        "required": [
          "codigo",
          "nome",
          "descricao",
          "icone",
          "endereco",
          "liberado"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string"
          },
          "nome": {
            "type": "string"
          },
          "descricao": {
            "type": [
              "null",
              "string"
            ]
          },
          "icone": {
            "type": [
              "null",
              "string"
            ]
          },
          "endereco": {
            "type": [
              "null",
              "string"
            ]
          },
          "liberado": {
            "type": [
              "null",
              "boolean"
            ]
          }
        }
      },
      "SituacaoDaCivi": {
        "required": [
          "conversa",
          "conversasRestantesHoje"
        ],
        "type": "object",
        "properties": {
          "conversa": {
            "type": "boolean"
          },
          "conversasRestantesHoje": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "SituacaoDoEstoqueEnviada": {
        "required": [
          "ativo"
        ],
        "type": "object",
        "properties": {
          "ativo": {
            "type": "boolean"
          }
        }
      },
      "SituacaoDoServidorDeEmail": {
        "required": [
          "configurado",
          "alcancavel",
          "mensagem",
          "contasUsadas",
          "contasLimite"
        ],
        "type": "object",
        "properties": {
          "configurado": {
            "type": "boolean"
          },
          "alcancavel": {
            "type": "boolean"
          },
          "mensagem": {
            "type": "string"
          },
          "contasUsadas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "contasLimite": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "SituacaoDoWhatsApp": {
        "required": [
          "estado",
          "numero",
          "nome",
          "mensagem"
        ],
        "type": "object",
        "properties": {
          "estado": {
            "type": "string"
          },
          "numero": {
            "type": [
              "null",
              "string"
            ]
          },
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "mensagem": {
            "type": "string"
          }
        }
      },
      "SituacaoEnviada": {
        "required": [
          "situacao"
        ],
        "type": "object",
        "properties": {
          "situacao": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "SituacaoRegistrada": {
        "required": [
          "situacao"
        ],
        "type": "object",
        "properties": {
          "situacao": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "SobraDaEquipeAps": {
        "required": [
          "nome",
          "cbo",
          "ocupacao",
          "cargaNaEquipe",
          "motivo"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": "string"
          },
          "cbo": {
            "type": "string"
          },
          "ocupacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "cargaNaEquipe": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "motivo": {
            "type": "string"
          }
        }
      },
      "SobreDoApp": {
        "required": [
          "texto",
          "prefeito",
          "secretario",
          "endereco",
          "telefone",
          "horario",
          "site",
          "instagram"
        ],
        "type": "object",
        "properties": {
          "texto": {
            "type": [
              "null",
              "string"
            ]
          },
          "prefeito": {
            "type": [
              "null",
              "string"
            ]
          },
          "secretario": {
            "type": [
              "null",
              "string"
            ]
          },
          "endereco": {
            "type": [
              "null",
              "string"
            ]
          },
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "horario": {
            "type": [
              "null",
              "string"
            ]
          },
          "site": {
            "type": [
              "null",
              "string"
            ]
          },
          "instagram": {
            "type": [
              "null",
              "string"
            ]
          },
          "gestao": {
            "type": [
              "null",
              "string"
            ]
          },
          "cargoDoSecretario": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "SolicitacaoDaApsResposta": {
        "required": [
          "fonte",
          "estrategia",
          "processo",
          "status",
          "vagas",
          "deferidas",
          "diasNoStatus",
          "desde",
          "vistoDesde",
          "vigente",
          "pontual"
        ],
        "type": "object",
        "properties": {
          "fonte": {
            "type": "string"
          },
          "estrategia": {
            "type": "string"
          },
          "processo": {
            "type": "string"
          },
          "status": {
            "type": [
              "null",
              "string"
            ]
          },
          "vagas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "deferidas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "diasNoStatus": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "desde": {
            "type": [
              "null",
              "string"
            ]
          },
          "vistoDesde": {
            "type": "string"
          },
          "vigente": {
            "type": "boolean"
          },
          "pontual": {
            "type": "boolean"
          }
        }
      },
      "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"
            ]
          }
        }
      },
      "SugestaoDeDependente": {
        "required": [
          "id",
          "nome",
          "nascimento",
          "motivo",
          "parentesco"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "nome": {
            "type": "string"
          },
          "nascimento": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "motivo": {
            "type": "string"
          },
          "parentesco": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "SugestaoDeGenerico": {
        "required": [
          "numero",
          "pacientes",
          "casas"
        ],
        "type": "object",
        "properties": {
          "numero": {
            "type": "string"
          },
          "pacientes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "casas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "SugestaoDeRemanejamentoAps": {
        "required": [
          "ine",
          "nome",
          "falta",
          "acao",
          "de",
          "valor"
        ],
        "type": "object",
        "properties": {
          "ine": {
            "type": "string"
          },
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "falta": {
            "type": "string"
          },
          "acao": {
            "type": "string"
          },
          "de": {
            "type": [
              "null",
              "string"
            ]
          },
          "valor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "SupressaoItem": {
        "required": [
          "endereco",
          "motivo",
          "detalhe",
          "caixaOrigem",
          "criadaEm",
          "criadaPor"
        ],
        "type": "object",
        "properties": {
          "endereco": {
            "type": "string"
          },
          "motivo": {
            "type": "string"
          },
          "detalhe": {
            "type": [
              "null",
              "string"
            ]
          },
          "caixaOrigem": {
            "type": [
              "null",
              "string"
            ]
          },
          "criadaEm": {
            "type": "string",
            "format": "date-time"
          },
          "criadaPor": {
            "type": "string"
          }
        }
      },
      "TelefoneDaCasaEnviado": {
        "required": [
          "domicilioId",
          "telefone",
          "de",
          "parentesco",
          "segundoTelefone",
          "segundoDe"
        ],
        "type": "object",
        "properties": {
          "domicilioId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "de": {
            "type": [
              "null",
              "string"
            ]
          },
          "parentesco": {
            "type": [
              "null",
              "string"
            ]
          },
          "segundoTelefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "segundoDe": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "TelefoneDaVez": {
        "required": [
          "pacienteId",
          "nome",
          "precisaDoCelular",
          "celular",
          "motivo",
          "semTelefoneEm",
          "contatoTelefone",
          "contatoNome",
          "casa",
          "sugestoes",
          "perguntar"
        ],
        "type": "object",
        "properties": {
          "pacienteId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "nome": {
            "type": "string"
          },
          "precisaDoCelular": {
            "type": "boolean"
          },
          "celular": {
            "type": [
              "null",
              "string"
            ]
          },
          "motivo": {
            "type": [
              "null",
              "string"
            ]
          },
          "semTelefoneEm": {
            "type": [
              "null",
              "string"
            ]
          },
          "contatoTelefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "contatoNome": {
            "type": [
              "null",
              "string"
            ]
          },
          "casa": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/CasaDoPaciente"
              }
            ]
          },
          "sugestoes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TelefoneSugerido"
            }
          },
          "perguntar": {
            "type": "boolean"
          }
        }
      },
      "TelefoneEnviado": {
        "required": [
          "telefone"
        ],
        "type": "object",
        "properties": {
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "TelefoneGenericoDaLista": {
        "required": [
          "id",
          "numero",
          "motivo",
          "criadoEm",
          "criadoPor"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "numero": {
            "type": "string"
          },
          "motivo": {
            "type": [
              "null",
              "string"
            ]
          },
          "criadoEm": {
            "type": "string"
          },
          "criadoPor": {
            "type": "string"
          }
        }
      },
      "TelefoneGenericoEnviado": {
        "required": [
          "numero",
          "motivo"
        ],
        "type": "object",
        "properties": {
          "numero": {
            "type": [
              "null",
              "string"
            ]
          },
          "motivo": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "TelefonesEnviados": {
        "required": [
          "telefone",
          "telefoneContato",
          "contatoNome"
        ],
        "type": "object",
        "properties": {
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "telefoneContato": {
            "type": [
              "null",
              "string"
            ]
          },
          "contatoNome": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "TelefoneSugerido": {
        "required": [
          "nome",
          "parentesco",
          "telefone"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": "string"
          },
          "parentesco": {
            "type": [
              "null",
              "string"
            ]
          },
          "telefone": {
            "type": "string"
          }
        }
      },
      "TemaDoRadar": {
        "required": [
          "tema",
          "quantidade",
          "emAberto",
          "urgentes",
          "secretaria",
          "primeiro",
          "ultimo",
          "manifestacoes"
        ],
        "type": "object",
        "properties": {
          "tema": {
            "type": "string"
          },
          "quantidade": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "emAberto": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "urgentes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "secretaria": {
            "type": [
              "null",
              "string"
            ]
          },
          "primeiro": {
            "type": "string",
            "format": "date"
          },
          "ultimo": {
            "type": "string",
            "format": "date"
          },
          "manifestacoes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ItemDoRadar"
            }
          }
        }
      },
      "TenantDetalhe": {
        "required": [
          "codigo",
          "nome",
          "cnpj",
          "ativo",
          "criadoEm",
          "clientes"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string",
            "format": "uuid"
          },
          "nome": {
            "type": "string"
          },
          "cnpj": {
            "type": [
              "null",
              "string"
            ]
          },
          "ativo": {
            "type": "boolean"
          },
          "criadoEm": {
            "type": "string",
            "format": "date-time"
          },
          "clientes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "TenantResumo": {
        "required": [
          "codigo",
          "nome"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string",
            "format": "uuid"
          },
          "nome": {
            "type": "string"
          }
        }
      },
      "TetoAps": {
        "required": [
          "eSF",
          "eAP",
          "acs"
        ],
        "type": "object",
        "properties": {
          "eSF": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "eAP": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "acs": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "TetoDaModalidadeAps": {
        "required": [
          "linha",
          "equipe",
          "modalidade",
          "credenciadas",
          "teto",
          "solicitadas",
          "saldo",
          "semCusteio",
          "financiaveis",
          "acimaDoTeto",
          "semProfissional",
          "inativasNoCnes",
          "cotaAlternativaDe",
          "pagas",
          "noCnes"
        ],
        "type": "object",
        "properties": {
          "linha": {
            "type": "string"
          },
          "equipe": {
            "type": "string"
          },
          "modalidade": {
            "type": [
              "null",
              "string"
            ]
          },
          "credenciadas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "teto": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "solicitadas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "saldo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "semCusteio": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "financiaveis": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "acimaDoTeto": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "semProfissional": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "inativasNoCnes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "cotaAlternativaDe": {
            "type": [
              "null",
              "string"
            ]
          },
          "pagas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "noCnes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "TetosAps": {
        "required": [
          "mes",
          "competenciaCnes",
          "populacao",
          "linhas",
          "regras"
        ],
        "type": "object",
        "properties": {
          "mes": {
            "type": "string"
          },
          "competenciaCnes": {
            "type": "string"
          },
          "populacao": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "linhas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TetoDaModalidadeAps"
            }
          },
          "regras": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "TextoDaOuvidoria": {
        "required": [
          "texto"
        ],
        "type": "object",
        "properties": {
          "texto": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "TextoRedigidoDaIa": {
        "required": [
          "html",
          "modelo",
          "tokensEntrada",
          "tokensSaida",
          "bloqueantes",
          "achados"
        ],
        "type": "object",
        "properties": {
          "html": {
            "type": "string"
          },
          "modelo": {
            "type": "string"
          },
          "tokensEntrada": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "tokensSaida": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "bloqueantes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "achados": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AchadoDeConformidade"
            }
          }
        }
      },
      "TextoTarjado": {
        "required": [
          "texto"
        ],
        "type": "object",
        "properties": {
          "texto": {
            "type": "string"
          }
        }
      },
      "TimbreDoOrgao": {
        "required": [
          "nome",
          "hash",
          "tamanho",
          "enviadoEm",
          "enviadoPor",
          "temCabecalho",
          "temImagem"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": "string"
          },
          "hash": {
            "type": "string"
          },
          "tamanho": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "enviadoEm": {
            "type": "string",
            "format": "date-time"
          },
          "enviadoPor": {
            "type": [
              "null",
              "string"
            ]
          },
          "temCabecalho": {
            "type": "boolean"
          },
          "temImagem": {
            "type": "boolean"
          }
        }
      },
      "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"
          }
        }
      },
      "TotalPorCboAps": {
        "required": [
          "cbo",
          "ocupacao",
          "total"
        ],
        "type": "object",
        "properties": {
          "cbo": {
            "type": "string"
          },
          "ocupacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "TotalPorForma": {
        "required": [
          "forma",
          "rotulo",
          "entradas",
          "saidas",
          "saldo"
        ],
        "type": "object",
        "properties": {
          "forma": {
            "type": "string"
          },
          "rotulo": {
            "type": "string"
          },
          "entradas": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "saidas": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "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"
          }
        }
      },
      "TotalPorTipoAps": {
        "required": [
          "tipo",
          "total"
        ],
        "type": "object",
        "properties": {
          "tipo": {
            "type": "string"
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "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"
          }
        }
      },
      "TrajetoriaAps": {
        "required": [
          "quadrimestre",
          "otimo",
          "bom",
          "suficiente",
          "regular"
        ],
        "type": "object",
        "properties": {
          "quadrimestre": {
            "type": "string"
          },
          "otimo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "bom": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "suficiente": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "regular": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "TransferenciaDoEstoque": {
        "required": [
          "id",
          "origemId",
          "origem",
          "destinoId",
          "destino",
          "situacao",
          "observacao",
          "enviadaEm",
          "enviadaPor",
          "concluidaEm",
          "concluidaPor",
          "itens"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "origemId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "origem": {
            "type": "string"
          },
          "destinoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "destino": {
            "type": "string"
          },
          "situacao": {
            "type": "string"
          },
          "observacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "enviadaEm": {
            "type": "string",
            "format": "date-time"
          },
          "enviadaPor": {
            "type": [
              "null",
              "string"
            ]
          },
          "concluidaEm": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "concluidaPor": {
            "type": [
              "null",
              "string"
            ]
          },
          "itens": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MovimentoDoEstoque"
            }
          }
        }
      },
      "TransferenciaEnviada": {
        "required": [
          "origemId",
          "destinoId",
          "observacao",
          "itens"
        ],
        "type": "object",
        "properties": {
          "origemId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "destinoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "observacao": {
            "type": [
              "null",
              "string"
            ]
          },
          "itens": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/ItemDeSaida"
            }
          }
        }
      },
      "TransicaoAps": {
        "required": [
          "vigente",
          "texto"
        ],
        "type": "object",
        "properties": {
          "vigente": {
            "type": "boolean"
          },
          "texto": {
            "type": "string"
          }
        }
      },
      "TransicaoEnviada": {
        "required": [
          "destino",
          "motivo"
        ],
        "type": "object",
        "properties": {
          "destino": {
            "type": [
              "null",
              "string"
            ]
          },
          "motivo": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "TratadaAps": {
        "required": [
          "por",
          "em",
          "nota"
        ],
        "type": "object",
        "properties": {
          "por": {
            "type": "string"
          },
          "em": {
            "type": "string",
            "format": "date-time"
          },
          "nota": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "TratamentoDeAuriculoDaFicha": {
        "required": [
          "id",
          "profissional",
          "inicio",
          "sessoesPrevistas",
          "queixa",
          "objetivos",
          "jaFez",
          "contraindicacoes",
          "altaEm",
          "altaMotivo",
          "altaNota",
          "sessoes"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "profissional": {
            "type": "string"
          },
          "inicio": {
            "type": "string"
          },
          "sessoesPrevistas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "queixa": {
            "type": "string"
          },
          "objetivos": {
            "type": [
              "null",
              "string"
            ]
          },
          "jaFez": {
            "type": "boolean"
          },
          "contraindicacoes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "altaEm": {
            "type": [
              "null",
              "string"
            ]
          },
          "altaMotivo": {
            "type": [
              "null",
              "string"
            ]
          },
          "altaNota": {
            "type": [
              "null",
              "string"
            ]
          },
          "sessoes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SessaoDeAuriculoDaFicha"
            }
          }
        }
      },
      "TratamentoDeAuriculoDaLista": {
        "required": [
          "id",
          "pacienteId",
          "paciente",
          "profissional",
          "inicio",
          "feitas",
          "previstas",
          "ultimaEscalaAntes",
          "ultimaEscalaDepois",
          "ultimaSessao",
          "altaEm"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "pacienteId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "paciente": {
            "type": "string"
          },
          "profissional": {
            "type": "string"
          },
          "inicio": {
            "type": "string"
          },
          "feitas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "previstas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "ultimaEscalaAntes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "ultimaEscalaDepois": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "ultimaSessao": {
            "type": [
              "null",
              "string"
            ]
          },
          "altaEm": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "TratamentoDeAuriculoEnviado": {
        "required": [
          "pacienteId",
          "sessoesPrevistas",
          "queixa",
          "objetivos",
          "jaFez",
          "contraindicacoes"
        ],
        "type": "object",
        "properties": {
          "pacienteId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "sessoesPrevistas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "queixa": {
            "type": [
              "null",
              "string"
            ]
          },
          "objetivos": {
            "type": [
              "null",
              "string"
            ]
          },
          "jaFez": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "contraindicacoes": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          }
        }
      },
      "TriagemSugerida": {
        "required": [
          "situacao",
          "tipo",
          "tipoRotulo",
          "secretariaId",
          "secretaria",
          "assuntoId",
          "assunto",
          "setorId",
          "setor",
          "urgencia",
          "motivoUrgencia",
          "resumo",
          "tema",
          "outrosDoMesmoTema",
          "alertasDeTerceiros",
          "erro",
          "feitaEm"
        ],
        "type": "object",
        "properties": {
          "situacao": {
            "type": "string"
          },
          "tipo": {
            "type": [
              "null",
              "string"
            ]
          },
          "tipoRotulo": {
            "type": [
              "null",
              "string"
            ]
          },
          "secretariaId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "secretaria": {
            "type": [
              "null",
              "string"
            ]
          },
          "assuntoId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "assunto": {
            "type": [
              "null",
              "string"
            ]
          },
          "setorId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "setor": {
            "type": [
              "null",
              "string"
            ]
          },
          "urgencia": {
            "type": [
              "null",
              "string"
            ]
          },
          "motivoUrgencia": {
            "type": [
              "null",
              "string"
            ]
          },
          "resumo": {
            "type": [
              "null",
              "string"
            ]
          },
          "tema": {
            "type": [
              "null",
              "string"
            ]
          },
          "outrosDoMesmoTema": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "alertasDeTerceiros": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "erro": {
            "type": [
              "null",
              "string"
            ]
          },
          "feitaEm": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "TributacaoDoServico": {
        "required": [
          "servico",
          "servicoNome",
          "codigoTributacao"
        ],
        "type": "object",
        "properties": {
          "servico": {
            "type": "string",
            "format": "uuid"
          },
          "servicoNome": {
            "type": "string"
          },
          "codigoTributacao": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "TrocaDaPropriaSenha": {
        "required": [
          "senhaAtual",
          "senhaNova",
          "confirmacao"
        ],
        "type": "object",
        "properties": {
          "senhaAtual": {
            "type": [
              "null",
              "string"
            ]
          },
          "senhaNova": {
            "type": [
              "null",
              "string"
            ]
          },
          "confirmacao": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "TrocaDeConta": {
        "required": [
          "endereco"
        ],
        "type": "object",
        "properties": {
          "endereco": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "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"
          }
        }
      },
      "UltimoAtendimentoDoPec": {
        "required": [
          "em",
          "profissional",
          "ocupacao"
        ],
        "type": "object",
        "properties": {
          "em": {
            "type": "string",
            "format": "date-time"
          },
          "profissional": {
            "type": "string"
          },
          "ocupacao": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "UltimoAviso": {
        "required": [
          "situacao",
          "em",
          "saidaAvisada",
          "desatualizado",
          "erro",
          "resposta"
        ],
        "type": "object",
        "properties": {
          "situacao": {
            "type": "string"
          },
          "em": {
            "type": "string"
          },
          "saidaAvisada": {
            "type": "string"
          },
          "desatualizado": {
            "type": "boolean"
          },
          "erro": {
            "type": [
              "null",
              "string"
            ]
          },
          "resposta": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "UnidadeDaAgenda": {
        "required": [
          "id",
          "nome",
          "endereco",
          "telefone",
          "ativa"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "nome": {
            "type": "string"
          },
          "endereco": {
            "type": [
              "null",
              "string"
            ]
          },
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "ativa": {
            "type": "boolean"
          },
          "telefoneDeAtendimento": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "UnidadeDeMedidaDoOrgao": {
        "required": [
          "id",
          "sigla",
          "nome",
          "ativa"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "sigla": {
            "type": "string"
          },
          "nome": {
            "type": "string"
          },
          "ativa": {
            "type": "boolean"
          }
        }
      },
      "UnidadeDeMedidaEnviada": {
        "required": [
          "sigla",
          "nome"
        ],
        "type": "object",
        "properties": {
          "sigla": {
            "type": [
              "null",
              "string"
            ]
          },
          "nome": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "UnidadeDoOrgao": {
        "required": [
          "id",
          "nome",
          "sigla",
          "ativa"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "nome": {
            "type": "string"
          },
          "sigla": {
            "type": [
              "null",
              "string"
            ]
          },
          "ativa": {
            "type": "boolean"
          }
        }
      },
      "UnidadeEnviada": {
        "required": [
          "nome",
          "endereco",
          "telefone"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "endereco": {
            "type": [
              "null",
              "string"
            ]
          },
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "telefoneDeAtendimento": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "UnidadeRequisitanteEnviada": {
        "required": [
          "nome",
          "sigla"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "sigla": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "UnidadeResumida": {
        "required": [
          "id",
          "nome"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "nome": {
            "type": "string"
          }
        }
      },
      "UnidadesDaConta": {
        "required": [
          "todas",
          "unidades"
        ],
        "type": "object",
        "properties": {
          "todas": {
            "type": "boolean"
          },
          "unidades": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UnidadeResumida"
            }
          }
        }
      },
      "UsuarioDaSessao": {
        "required": [
          "codigo",
          "nome",
          "email",
          "papel",
          "papelRotulo",
          "podeEscrever",
          "podeAdministrarUsuarios",
          "podeAdministrarOrgaos",
          "podeTrocarDeOrgao",
          "podeGerirTransporte",
          "modulosDoPapel",
          "painel",
          "paineis",
          "podeGerirAgenda"
        ],
        "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"
            }
          },
          "podeGerirAgenda": {
            "type": "boolean"
          },
          "tenant": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/TenantResumo"
              }
            ]
          },
          "podeAdministrarClientes": {
            "type": "boolean",
            "default": false
          },
          "senhaProvisoria": {
            "type": "boolean",
            "default": false
          },
          "temSegundoFator": {
            "type": "boolean",
            "default": false
          },
          "soAPropriaAgenda": {
            "type": "boolean",
            "default": false
          },
          "soAPropriaMicroarea": {
            "type": "boolean",
            "default": false
          },
          "microarea": {
            "type": [
              "null",
              "string"
            ]
          },
          "soAFarmacia": {
            "type": "boolean",
            "default": false
          },
          "soARecepcao": {
            "type": "boolean",
            "default": false
          },
          "foto": {
            "type": [
              "null",
              "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"
            }
          },
          "tenant": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/TenantResumo"
              }
            ]
          },
          "senhaProvisoria": {
            "type": "boolean",
            "default": false
          },
          "celular": {
            "type": [
              "null",
              "string"
            ]
          },
          "microarea": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "VacinaNoPec": {
        "required": [
          "nome",
          "dose",
          "aplicada",
          "aprazada"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": "string"
          },
          "dose": {
            "type": [
              "null",
              "string"
            ]
          },
          "aplicada": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "aprazada": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          }
        }
      },
      "ValorDaFaixa": {
        "required": [
          "faixa",
          "rotulo",
          "valorMensal"
        ],
        "type": "object",
        "properties": {
          "faixa": {
            "type": "string"
          },
          "rotulo": {
            "type": "string"
          },
          "valorMensal": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "ValorDeEquipesAps": {
        "required": [
          "equipes",
          "valor"
        ],
        "type": "object",
        "properties": {
          "equipes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "valor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "ValorDeReferenciaAps": {
        "required": [
          "rotulo",
          "valor"
        ],
        "type": "object",
        "properties": {
          "rotulo": {
            "type": "string"
          },
          "valor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "ValorDoPlanoAps": {
        "required": [
          "chave",
          "rotulo",
          "valor"
        ],
        "type": "object",
        "properties": {
          "chave": {
            "type": "string"
          },
          "rotulo": {
            "type": "string"
          },
          "valor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "ValorDoProcesso": {
        "required": [
          "global",
          "formatado",
          "porExtenso",
          "metodo",
          "fonte",
          "dataApuracao",
          "referenciaExterna"
        ],
        "type": "object",
        "properties": {
          "global": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "formatado": {
            "type": "string"
          },
          "porExtenso": {
            "type": "string"
          },
          "metodo": {
            "$ref": "#/components/schemas/Opcao"
          },
          "fonte": {
            "$ref": "#/components/schemas/Opcao"
          },
          "dataApuracao": {
            "type": "string"
          },
          "referenciaExterna": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ValoresAps": {
        "required": [
          "mes",
          "componentes",
          "faltam"
        ],
        "type": "object",
        "properties": {
          "mes": {
            "type": "string"
          },
          "componentes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReferenciaDoComponenteAps"
            }
          },
          "faltam": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "tabelas": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/LinhaDaTabelaAps"
            }
          }
        }
      },
      "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"
          }
        }
      },
      "ValorPorDia": {
        "required": [
          "dia",
          "valor",
          "comandas"
        ],
        "type": "object",
        "properties": {
          "dia": {
            "type": "string",
            "format": "date"
          },
          "valor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "comandas": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "ValorPorNome": {
        "required": [
          "nome",
          "valor",
          "quantidade"
        ],
        "type": "object",
        "properties": {
          "nome": {
            "type": "string"
          },
          "valor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "quantidade": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "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",
          "avisos"
        ],
        "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"
            ]
          },
          "avisos": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ResumoDosAvisos"
              }
            ]
          }
        }
      },
      "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"
            }
          }
        }
      },
      "VinculoDaModalidadeAps": {
        "required": [
          "modalidade",
          "dimensao",
          "otimo",
          "bom",
          "suficiente",
          "regular",
          "equipes",
          "estimado"
        ],
        "type": "object",
        "properties": {
          "modalidade": {
            "type": "string"
          },
          "dimensao": {
            "type": "string"
          },
          "otimo": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "bom": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "suficiente": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "regular": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "equipes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "estimado": {
            "type": "boolean"
          }
        }
      },
      "VinculoDaPrometida": {
        "required": [
          "chave"
        ],
        "type": "object",
        "properties": {
          "chave": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "VinculoEnviado": {
        "required": [
          "dependenteId",
          "parentesco"
        ],
        "type": "object",
        "properties": {
          "dependenteId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "parentesco": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "VinculoNoPainel": {
        "required": [
          "pacienteId",
          "nome",
          "nascimento",
          "parentesco",
          "origem",
          "usaOApp"
        ],
        "type": "object",
        "properties": {
          "pacienteId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "nome": {
            "type": "string"
          },
          "nascimento": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "parentesco": {
            "type": [
              "null",
              "string"
            ]
          },
          "origem": {
            "type": "string"
          },
          "usaOApp": {
            "type": "boolean"
          }
        }
      },
      "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"
            }
          },
          "semEmendaNoAno": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32",
            "default": 0
          },
          "totalSemEmendaNoAno": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double",
            "default": 0
          },
          "prometidasAguardando": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32",
            "default": 0
          },
          "valorPrometidoAguardando": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double",
            "default": 0
          },
          "prometidasComSugestao": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32",
            "default": 0
          }
        }
      },
      "VisaoGeralAps": {
        "required": [
          "mes",
          "competenciaCnes",
          "recebido",
          "score",
          "ocorrencias",
          "composicaoDaPerda",
          "cadastro",
          "producao",
          "producaoAusente",
          "evolucaoDoCadastro",
          "perdaPorParcela",
          "perdaDoAno",
          "regras"
        ],
        "type": "object",
        "properties": {
          "mes": {
            "type": "string"
          },
          "competenciaCnes": {
            "type": "string"
          },
          "recebido": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "score": {
            "$ref": "#/components/schemas/ScoreAps"
          },
          "ocorrencias": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OcorrenciaAps"
            }
          },
          "composicaoDaPerda": {
            "$ref": "#/components/schemas/ComposicaoDaPerdaAps"
          },
          "cadastro": {
            "$ref": "#/components/schemas/CadastroAps"
          },
          "producao": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ProducaoAps"
              }
            ]
          },
          "producaoAusente": {
            "type": [
              "null",
              "string"
            ]
          },
          "evolucaoDoCadastro": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CadastroDaCompetenciaAps"
            }
          },
          "perdaPorParcela": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PerdaDaParcelaResumoAps"
            }
          },
          "perdaDoAno": {
            "$ref": "#/components/schemas/PerdaDoAnoAps"
          },
          "regras": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "VisitaDaAcs": {
        "required": [
          "pacienteId",
          "nome",
          "nascimento",
          "telefone",
          "endereco",
          "microarea",
          "agente",
          "ultimaVisita",
          "urgente",
          "motivos"
        ],
        "type": "object",
        "properties": {
          "pacienteId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "nome": {
            "type": [
              "null",
              "string"
            ]
          },
          "nascimento": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "telefone": {
            "type": [
              "null",
              "string"
            ]
          },
          "endereco": {
            "type": [
              "null",
              "string"
            ]
          },
          "microarea": {
            "type": [
              "null",
              "string"
            ]
          },
          "agente": {
            "type": [
              "null",
              "string"
            ]
          },
          "ultimaVisita": {
            "type": [
              "null",
              "string"
            ],
            "format": "date"
          },
          "urgente": {
            "type": "boolean"
          },
          "motivos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MotivoDaVisita"
            }
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "Operação"
    },
    {
      "name": "Sessões"
    },
    {
      "name": "Portal do município"
    },
    {
      "name": "App da população"
    },
    {
      "name": "Órgãos"
    },
    {
      "name": "Tenants"
    },
    {
      "name": "Usuários"
    },
    {
      "name": "Perfil"
    },
    {
      "name": "Base pública"
    },
    {
      "name": "Custos"
    },
    {
      "name": "Sábio E-mail"
    },
    {
      "name": "Módulos"
    },
    {
      "name": "Certificados"
    },
    {
      "name": "Senha"
    },
    {
      "name": "Painéis"
    },
    {
      "name": "Captação de clientes"
    },
    {
      "name": "Comunicação"
    },
    {
      "name": "Webmail"
    },
    {
      "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": "Financeiro · Planejamento do SUS"
    },
    {
      "name": "Financeiro · Agenda do Gestor"
    },
    {
      "name": "Financeiro · O que fazer"
    },
    {
      "name": "Transporte · Veículos"
    },
    {
      "name": "Transporte · Motoristas"
    },
    {
      "name": "Transporte · Pacientes"
    },
    {
      "name": "Transporte · Marcação"
    },
    {
      "name": "Transporte · Viagens"
    },
    {
      "name": "Transporte · Destinos"
    },
    {
      "name": "Financeiro Educação"
    },
    {
      "name": "APS — Atenção Primária"
    },
    {
      "name": "Vigilância em saúde"
    },
    {
      "name": "Recepção"
    },
    {
      "name": "Agenda"
    },
    {
      "name": "Campanha do telefone"
    },
    {
      "name": "Auriculoterapia"
    },
    {
      "name": "Pacientes"
    },
    {
      "name": "Pacientes · Configurações"
    },
    {
      "name": "Pacientes · Recados do app"
    },
    {
      "name": "Pacientes · Gestantes"
    },
    {
      "name": "Pacientes · Hipertensos e diabéticos"
    },
    {
      "name": "Pacientes · Crianças"
    },
    {
      "name": "Pacientes · Vacinas de 5 a 19 anos"
    },
    {
      "name": "Pacientes · Pessoas idosas"
    },
    {
      "name": "Pacientes · Saúde da mulher"
    },
    {
      "name": "Pacientes · Visitas da ACS"
    },
    {
      "name": "Pacientes · O que fazer"
    },
    {
      "name": "Pacientes · Domicílios"
    },
    {
      "name": "Contratações"
    },
    {
      "name": "Estoque"
    },
    {
      "name": "Sábio E-mail · órgão"
    },
    {
      "name": "Ouvidoria · portal do cidadão"
    },
    {
      "name": "Ouvidoria"
    },
    {
      "name": "Studio · agendamento online"
    },
    {
      "name": "Studio"
    },
    {
      "name": "Studio · Nota fiscal"
    }
  ]
}