{
  "openapi": "3.0.4",
  "info": {
    "title": "LightHouse — Ocorrências (GPT pack)",
    "description": "API principal do Leankeep — gestão de manutenção predial (preventiva e corretiva). Documentação gerada a partir do Swagger real da aplicação.\n\n## Rate limiting\n\nLimite: **250 requisições/hora** por credencial (janela de 1 hora; valor pode variar por ambiente - confirme o vigente com o time). Ao exceder, a API responde **429 Too Many Requests**. A integração deve respeitar o código 429 (não reenviar imediatamente), aplicar **backoff exponencial** antes de tentar de novo e distribuir chamadas ao longo do tempo em vez de picos. Ver o guia [Rate limiting](/guides/rate-limiting).",
    "version": "2.0.0.5",
    "contact": {
      "name": "Leankeep Software"
    }
  },
  "servers": [
    {
      "url": "https://lighthouse.lkp.dev.br",
      "description": "Sandbox"
    },
    {
      "url": "https://lighthousev2.lkp.app.br",
      "description": "Produção"
    }
  ],
  "security": [
    {
      "Bearer": []
    }
  ],
  "paths": {
    "/v1/usuarios": {
      "get": {
        "tags": [
          "Usuarios (V1)"
        ],
        "parameters": [
          {
            "name": "SiteId",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "format": "int32"
              },
              "deprecated": true
            }
          },
          {
            "name": "Fornecedores",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "format": "int32"
              },
              "deprecated": true
            }
          },
          {
            "name": "Search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "UsuarioId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "description": "Filtro genérico por usuário; prefira ExecutorId ou EmitenteId quando a intenção for clara."
          },
          {
            "name": "EmpresaId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "TipoUsuario",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/ETipoUsuario"
            }
          },
          {
            "name": "UnidadeId",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "format": "int32"
              }
            }
          },
          {
            "name": "GrupoUnidadeId",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "format": "int32"
              }
            }
          },
          {
            "name": "SubGrupoUnidadeId",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "format": "int32"
              }
            }
          },
          {
            "name": "EstadoId",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "format": "int32"
              }
            }
          },
          {
            "name": "CidadeId",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "format": "int32"
              }
            }
          },
          {
            "name": "FornecedorId",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "format": "int32"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Usuarios"
                  }
                },
                "example": [
                  {
                    "usuario": 1,
                    "nome": "Fulano de Tal",
                    "email": "usuario@empresa.com.br",
                    "inativo": false,
                    "superUsuario": false,
                    "login": "⚠️ A confirmar",
                    "usuarioDesignado": false,
                    "filtrosDefault": false,
                    "filtrosAlteracaoDefault": false,
                    "filtrosTodosTiposAnomalias": false,
                    "tipo": 1,
                    "cargo": 1,
                    "setor": 1,
                    "assinaturaPath": "/uploads/exemplo.png",
                    "celular": "11999998888",
                    "dataCadastro": "2026-06-29T10:00:00Z",
                    "acessoTodasAreas": false,
                    "tipoNome": "⚠️ A confirmar",
                    "image": "⚠️ A confirmar",
                    "emailValido": false
                  }
                ]
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Usuarios"
                  }
                },
                "example": [
                  {
                    "usuario": 1,
                    "nome": "Fulano de Tal",
                    "email": "usuario@empresa.com.br",
                    "inativo": false,
                    "superUsuario": false,
                    "login": "⚠️ A confirmar",
                    "usuarioDesignado": false,
                    "filtrosDefault": false,
                    "filtrosAlteracaoDefault": false,
                    "filtrosTodosTiposAnomalias": false,
                    "tipo": 1,
                    "cargo": 1,
                    "setor": 1,
                    "assinaturaPath": "/uploads/exemplo.png",
                    "celular": "11999998888",
                    "dataCadastro": "2026-06-29T10:00:00Z",
                    "acessoTodasAreas": false,
                    "tipoNome": "⚠️ A confirmar",
                    "image": "⚠️ A confirmar",
                    "emailValido": false
                  }
                ]
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Usuarios"
                  }
                },
                "example": [
                  {
                    "usuario": 1,
                    "nome": "Fulano de Tal",
                    "email": "usuario@empresa.com.br",
                    "inativo": false,
                    "superUsuario": false,
                    "login": "⚠️ A confirmar",
                    "usuarioDesignado": false,
                    "filtrosDefault": false,
                    "filtrosAlteracaoDefault": false,
                    "filtrosTodosTiposAnomalias": false,
                    "tipo": 1,
                    "cargo": 1,
                    "setor": 1,
                    "assinaturaPath": "/uploads/exemplo.png",
                    "celular": "11999998888",
                    "dataCadastro": "2026-06-29T10:00:00Z",
                    "acessoTodasAreas": false,
                    "tipoNome": "⚠️ A confirmar",
                    "image": "⚠️ A confirmar",
                    "emailValido": false
                  }
                ]
              }
            }
          },
          "400": {
            "description": "Bad Request - payload inválido (ver a mensagem retornada para o campo/motivo específico).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "Um ou mais campos do payload são inválidos.",
                  "instance": null
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "Um ou mais campos do payload são inválidos.",
                  "instance": null
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "Um ou mais campos do payload são inválidos.",
                  "instance": null
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "Um ou mais campos do payload são inválidos.",
                  "instance": null
                }
              }
            }
          },
          "403": {
            "description": "Forbidden - autenticado, mas sem permissão para o recurso/empresa.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.3",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "Usuário autenticado, mas sem permissão para este recurso/empresa.",
                  "instance": null
                }
              }
            }
          },
          "404": {
            "description": "Not Found - recurso inexistente para o identificador informado.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.4",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "Recurso inexistente para o identificador informado.",
                  "instance": null
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests - limite de 250 req/h excedido. Aguarde e aplique backoff exponencial (ver guia Rate limiting).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc6585#section-4",
                  "title": "Too Many Requests",
                  "status": 429,
                  "detail": "Limite de 250 requisições/hora excedido. Aguarde e aplique backoff exponencial antes de tentar novamente.",
                  "instance": null
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorCommandResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorCommandResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorCommandResult"
                }
              }
            }
          }
        },
        "operationId": "buscarUsuariosV1",
        "summary": "Buscar usuários",
        "description": "Busca usuários pelo nome via parâmetro Search. Use o campo 'usuario' da resposta como ID nos filtros UsuarioId/ExecutorId/EmitenteId.",
        "x-openai-isConsequential": false
      }
    },
    "/v3/ocorrencias": {
      "get": {
        "tags": [
          "Ocorrencias (V3)"
        ],
        "parameters": [
          {
            "name": "PageIndex",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "required": true,
            "schema": {
              "maximum": 100,
              "minimum": 1,
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "DataInicio",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "DataTermino",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "EmpresaId",
            "in": "header",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "UnidadeId",
            "in": "header",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "GrupoUnidadeId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "SubGrupoUnidadeId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderByDataLimiteExecucao",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "SolicitanteId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "ExecutorId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "description": "Use quando a pergunta for sobre ocorrências/atividades EXECUTADAS, RESOLVIDAS ou SOLUCIONADAS por uma pessoa."
          },
          {
            "name": "FornecedorId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "NaoAutorizadas",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "Atrasadas",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "SistemaEmpresaId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "GrupoAreaId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SubGrupoAreaId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "AreaId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "TipoEquipamentoId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "EquipamentoId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SetorId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "StatusIds",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "StatusCorrecaoId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PrioridadeAnomaliaId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Indisponibilidade",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "Auditoria",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "StatusAprovacao",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/EStatusAprovacao"
            }
          },
          {
            "name": "AuditoriaId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "UsuarioId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "description": "Filtro genérico por usuário; prefira ExecutorId ou EmitenteId quando a intenção for clara."
          },
          {
            "name": "OcorrenciaTipica",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "SelectedDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "Usuario.Usuario",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Usuario.Nome",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Usuario.Email",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Usuario.Senha",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Usuario.Inativo",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "Usuario.SuperUsuario",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "Usuario.Login",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Usuario.UsuarioDesignado",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "Usuario.FiltrosDefault",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "Usuario.FiltrosAlteracaoDefault",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "Usuario.FiltrosTodosTiposAnomalias",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "Usuario.Tipo",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Usuario.Cargo",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Usuario.Setor",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Usuario.AssinaturaPath",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Usuario.Celular",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Usuario.DataCadastro",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "Usuario.AcessoTodasAreas",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "Usuario.TipoNome",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Usuario.Foto",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "byte"
            }
          },
          {
            "name": "Usuario.Image",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Usuario.EmailValido",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "AreasIds",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "format": "int32"
              }
            }
          },
          {
            "name": "SitesIds",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "TemPermissaoChamado",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "SoTipoChamado",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "UsuariosCargoSetor",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/Usuarios"
              }
            }
          },
          {
            "name": "LastUpadateDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OcorrenciasListV3"
                  }
                },
                "example": [
                  {
                    "anomaliaId": 123,
                    "anomaliaGid": "⚠️ A confirmar",
                    "siteId": 123,
                    "siteNome": "⚠️ A confirmar",
                    "cqa": "⚠️ A confirmar",
                    "descricao": "Vazamento no sistema hidráulico do 3º andar",
                    "dataRegistro": "2026-06-29T10:00:00Z",
                    "dataLimiteExecucao": "2026-06-29T10:00:00Z",
                    "status": 1,
                    "statusNome": "⚠️ A confirmar",
                    "sistemaEmpresaNome": "⚠️ A confirmar",
                    "areaNome": "⚠️ A confirmar",
                    "areaIdentificacaoAmbiente": "⚠️ A confirmar",
                    "grupoAreaNome": "⚠️ A confirmar",
                    "subGrupoAreaNome": "⚠️ A confirmar",
                    "equipamentoNome": "⚠️ A confirmar",
                    "equipamentoTag": "⚠️ A confirmar",
                    "prioridadeCor": "⚠️ A confirmar",
                    "prioridadeId": 123,
                    "prioridadeExibir": false,
                    "fotosPaths": "⚠️ A confirmar",
                    "emitentesIds": "⚠️ A confirmar",
                    "emitentesNomes": "⚠️ A confirmar",
                    "ultimaCorrecaoExecutoresIds": "⚠️ A confirmar",
                    "temCorrecao": false,
                    "statusAprovacao": 1,
                    "tipoUltimaCorrecao": 1,
                    "ultimaCorrecaoId": "⚠️ A confirmar",
                    "ultimaCorrecaoInicio": "2026-06-29T10:00:00Z",
                    "habilitarAutorizacao": false,
                    "indisponibilidade": false,
                    "permitirContato": false,
                    "auditoriaId": "AUDITORIA_ID_EXEMPLO",
                    "linkExterno": "⚠️ A confirmar",
                    "identificacaoSolicitante": "⚠️ A confirmar",
                    "ultimaCorrecaoExecutoresIdsList": [
                      1
                    ],
                    "emitentesIdsList": [
                      1
                    ],
                    "emitentesNomesList": [
                      "⚠️ A confirmar"
                    ],
                    "fotosPathsList": [
                      "⚠️ A confirmar"
                    ],
                    "fotoPath": "/uploads/exemplo.png",
                    "permissaoAprovarOcorrencia": {
                      "regrasEspecificasList": [
                        false
                      ],
                      "operacao": 1
                    },
                    "permissaoAlterarPrioridade": {
                      "regrasEspecificasList": [
                        false
                      ],
                      "operacao": 1
                    },
                    "permissaoNovaCorrecao": {
                      "regrasEspecificasList": [
                        false
                      ],
                      "operacao": 1
                    },
                    "isAguardandoAprovacao": false,
                    "isEditable": false
                  }
                ]
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OcorrenciasListV3"
                  }
                },
                "example": [
                  {
                    "anomaliaId": 123,
                    "anomaliaGid": "⚠️ A confirmar",
                    "siteId": 123,
                    "siteNome": "⚠️ A confirmar",
                    "cqa": "⚠️ A confirmar",
                    "descricao": "Vazamento no sistema hidráulico do 3º andar",
                    "dataRegistro": "2026-06-29T10:00:00Z",
                    "dataLimiteExecucao": "2026-06-29T10:00:00Z",
                    "status": 1,
                    "statusNome": "⚠️ A confirmar",
                    "sistemaEmpresaNome": "⚠️ A confirmar",
                    "areaNome": "⚠️ A confirmar",
                    "areaIdentificacaoAmbiente": "⚠️ A confirmar",
                    "grupoAreaNome": "⚠️ A confirmar",
                    "subGrupoAreaNome": "⚠️ A confirmar",
                    "equipamentoNome": "⚠️ A confirmar",
                    "equipamentoTag": "⚠️ A confirmar",
                    "prioridadeCor": "⚠️ A confirmar",
                    "prioridadeId": 123,
                    "prioridadeExibir": false,
                    "fotosPaths": "⚠️ A confirmar",
                    "emitentesIds": "⚠️ A confirmar",
                    "emitentesNomes": "⚠️ A confirmar",
                    "ultimaCorrecaoExecutoresIds": "⚠️ A confirmar",
                    "temCorrecao": false,
                    "statusAprovacao": 1,
                    "tipoUltimaCorrecao": 1,
                    "ultimaCorrecaoId": "⚠️ A confirmar",
                    "ultimaCorrecaoInicio": "2026-06-29T10:00:00Z",
                    "habilitarAutorizacao": false,
                    "indisponibilidade": false,
                    "permitirContato": false,
                    "auditoriaId": "AUDITORIA_ID_EXEMPLO",
                    "linkExterno": "⚠️ A confirmar",
                    "identificacaoSolicitante": "⚠️ A confirmar",
                    "ultimaCorrecaoExecutoresIdsList": [
                      1
                    ],
                    "emitentesIdsList": [
                      1
                    ],
                    "emitentesNomesList": [
                      "⚠️ A confirmar"
                    ],
                    "fotosPathsList": [
                      "⚠️ A confirmar"
                    ],
                    "fotoPath": "/uploads/exemplo.png",
                    "permissaoAprovarOcorrencia": {
                      "regrasEspecificasList": [
                        false
                      ],
                      "operacao": 1
                    },
                    "permissaoAlterarPrioridade": {
                      "regrasEspecificasList": [
                        false
                      ],
                      "operacao": 1
                    },
                    "permissaoNovaCorrecao": {
                      "regrasEspecificasList": [
                        false
                      ],
                      "operacao": 1
                    },
                    "isAguardandoAprovacao": false,
                    "isEditable": false
                  }
                ]
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OcorrenciasListV3"
                  }
                },
                "example": [
                  {
                    "anomaliaId": 123,
                    "anomaliaGid": "⚠️ A confirmar",
                    "siteId": 123,
                    "siteNome": "⚠️ A confirmar",
                    "cqa": "⚠️ A confirmar",
                    "descricao": "Vazamento no sistema hidráulico do 3º andar",
                    "dataRegistro": "2026-06-29T10:00:00Z",
                    "dataLimiteExecucao": "2026-06-29T10:00:00Z",
                    "status": 1,
                    "statusNome": "⚠️ A confirmar",
                    "sistemaEmpresaNome": "⚠️ A confirmar",
                    "areaNome": "⚠️ A confirmar",
                    "areaIdentificacaoAmbiente": "⚠️ A confirmar",
                    "grupoAreaNome": "⚠️ A confirmar",
                    "subGrupoAreaNome": "⚠️ A confirmar",
                    "equipamentoNome": "⚠️ A confirmar",
                    "equipamentoTag": "⚠️ A confirmar",
                    "prioridadeCor": "⚠️ A confirmar",
                    "prioridadeId": 123,
                    "prioridadeExibir": false,
                    "fotosPaths": "⚠️ A confirmar",
                    "emitentesIds": "⚠️ A confirmar",
                    "emitentesNomes": "⚠️ A confirmar",
                    "ultimaCorrecaoExecutoresIds": "⚠️ A confirmar",
                    "temCorrecao": false,
                    "statusAprovacao": 1,
                    "tipoUltimaCorrecao": 1,
                    "ultimaCorrecaoId": "⚠️ A confirmar",
                    "ultimaCorrecaoInicio": "2026-06-29T10:00:00Z",
                    "habilitarAutorizacao": false,
                    "indisponibilidade": false,
                    "permitirContato": false,
                    "auditoriaId": "AUDITORIA_ID_EXEMPLO",
                    "linkExterno": "⚠️ A confirmar",
                    "identificacaoSolicitante": "⚠️ A confirmar",
                    "ultimaCorrecaoExecutoresIdsList": [
                      1
                    ],
                    "emitentesIdsList": [
                      1
                    ],
                    "emitentesNomesList": [
                      "⚠️ A confirmar"
                    ],
                    "fotosPathsList": [
                      "⚠️ A confirmar"
                    ],
                    "fotoPath": "/uploads/exemplo.png",
                    "permissaoAprovarOcorrencia": {
                      "regrasEspecificasList": [
                        false
                      ],
                      "operacao": 1
                    },
                    "permissaoAlterarPrioridade": {
                      "regrasEspecificasList": [
                        false
                      ],
                      "operacao": 1
                    },
                    "permissaoNovaCorrecao": {
                      "regrasEspecificasList": [
                        false
                      ],
                      "operacao": 1
                    },
                    "isAguardandoAprovacao": false,
                    "isEditable": false
                  }
                ]
              }
            }
          },
          "400": {
            "description": "Bad Request - payload inválido (ver a mensagem retornada para o campo/motivo específico).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "Um ou mais campos do payload são inválidos.",
                  "instance": null
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "Um ou mais campos do payload são inválidos.",
                  "instance": null
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "Um ou mais campos do payload são inválidos.",
                  "instance": null
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "Um ou mais campos do payload são inválidos.",
                  "instance": null
                }
              }
            }
          },
          "403": {
            "description": "Forbidden - autenticado, mas sem permissão para o recurso/empresa.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.3",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "Usuário autenticado, mas sem permissão para este recurso/empresa.",
                  "instance": null
                }
              }
            }
          },
          "404": {
            "description": "Not Found - recurso inexistente para o identificador informado.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.4",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "Recurso inexistente para o identificador informado.",
                  "instance": null
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests - limite de 250 req/h excedido. Aguarde e aplique backoff exponencial (ver guia Rate limiting).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc6585#section-4",
                  "title": "Too Many Requests",
                  "status": 429,
                  "detail": "Limite de 250 requisições/hora excedido. Aguarde e aplique backoff exponencial antes de tentar novamente.",
                  "instance": null
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorCommandResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorCommandResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorCommandResult"
                }
              }
            }
          }
        },
        "operationId": "listarOcorrenciasV3",
        "summary": "Listar ocorrências",
        "description": "Lista ocorrências corretivas com filtros (período, unidade, área, status, executor/emitente etc.). Versão recomendada para este recurso (domínio mais evoluído) - ver [Versionamento](/guides/versioning).",
        "x-openai-isConsequential": false
      },
      "post": {
        "tags": [
          "Ocorrencias (V3)"
        ],
        "parameters": [
          {
            "name": "EmpresaId",
            "in": "header",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "UnidadeId",
            "in": "header",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveOcorrenciaCommand"
              },
              "example": {
                "empresaId": 123,
                "siteId": 456,
                "plataforma": 6,
                "tipoAnomalia": 1,
                "descricao": "Vazamento no sistema hidráulico do 3º andar",
                "dataRegistro": "2026-06-29T10:00:00Z",
                "anomaliaTipicaId": 10,
                "areaId": 789,
                "prioridadeAnomaliaId": 2
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveOcorrenciaCommand"
              },
              "example": {
                "empresaId": 123,
                "siteId": 456,
                "plataforma": 6,
                "tipoAnomalia": 1,
                "descricao": "Vazamento no sistema hidráulico do 3º andar",
                "dataRegistro": "2026-06-29T10:00:00Z",
                "anomaliaTipicaId": 10,
                "areaId": 789,
                "prioridadeAnomaliaId": 2
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SaveOcorrenciaCommand"
              },
              "example": {
                "empresaId": 123,
                "siteId": 456,
                "plataforma": 6,
                "tipoAnomalia": 1,
                "descricao": "Vazamento no sistema hidráulico do 3º andar",
                "dataRegistro": "2026-06-29T10:00:00Z",
                "anomaliaTipicaId": 10,
                "areaId": 789,
                "prioridadeAnomaliaId": 2
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SaveOcorrenciaCommandResult"
                },
                "example": {
                  "success": false,
                  "message": "⚠️ A confirmar",
                  "data": {},
                  "empresaNaoHabilitada": false,
                  "anomaliaId": "ANOMALIA_ID_EXEMPLO",
                  "isCreated": false,
                  "fotoPath": "/uploads/exemplo.png",
                  "pathToDelete": "⚠️ A confirmar",
                  "fotosResult": {
                    "fotoPathCreated": "⚠️ A confirmar",
                    "fotoPathToDelete": "⚠️ A confirmar",
                    "fotoCreatedPaths": {},
                    "fotoPathToDeleteList": [
                      "⚠️ A confirmar"
                    ]
                  },
                  "ocorrenciasDuplicadas": [
                    {
                      "cqa": "⚠️ A confirmar",
                      "descricao": "Vazamento no sistema hidráulico do 3º andar",
                      "emitentes": [
                        "⚠️ A confirmar"
                      ]
                    }
                  ],
                  "uploadToken": {
                    "token": "⚠️ A confirmar",
                    "expiresAt": "2026-06-29T10:00:00Z"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SaveOcorrenciaCommandResult"
                },
                "example": {
                  "success": false,
                  "message": "⚠️ A confirmar",
                  "data": {},
                  "empresaNaoHabilitada": false,
                  "anomaliaId": "ANOMALIA_ID_EXEMPLO",
                  "isCreated": false,
                  "fotoPath": "/uploads/exemplo.png",
                  "pathToDelete": "⚠️ A confirmar",
                  "fotosResult": {
                    "fotoPathCreated": "⚠️ A confirmar",
                    "fotoPathToDelete": "⚠️ A confirmar",
                    "fotoCreatedPaths": {},
                    "fotoPathToDeleteList": [
                      "⚠️ A confirmar"
                    ]
                  },
                  "ocorrenciasDuplicadas": [
                    {
                      "cqa": "⚠️ A confirmar",
                      "descricao": "Vazamento no sistema hidráulico do 3º andar",
                      "emitentes": [
                        "⚠️ A confirmar"
                      ]
                    }
                  ],
                  "uploadToken": {
                    "token": "⚠️ A confirmar",
                    "expiresAt": "2026-06-29T10:00:00Z"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SaveOcorrenciaCommandResult"
                },
                "example": {
                  "success": false,
                  "message": "⚠️ A confirmar",
                  "data": {},
                  "empresaNaoHabilitada": false,
                  "anomaliaId": "ANOMALIA_ID_EXEMPLO",
                  "isCreated": false,
                  "fotoPath": "/uploads/exemplo.png",
                  "pathToDelete": "⚠️ A confirmar",
                  "fotosResult": {
                    "fotoPathCreated": "⚠️ A confirmar",
                    "fotoPathToDelete": "⚠️ A confirmar",
                    "fotoCreatedPaths": {},
                    "fotoPathToDeleteList": [
                      "⚠️ A confirmar"
                    ]
                  },
                  "ocorrenciasDuplicadas": [
                    {
                      "cqa": "⚠️ A confirmar",
                      "descricao": "Vazamento no sistema hidráulico do 3º andar",
                      "emitentes": [
                        "⚠️ A confirmar"
                      ]
                    }
                  ],
                  "uploadToken": {
                    "token": "⚠️ A confirmar",
                    "expiresAt": "2026-06-29T10:00:00Z"
                  }
                }
              }
            }
          },
          "201": {
            "description": "Created",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SaveOcorrenciaCommandResult"
                },
                "example": {
                  "success": false,
                  "message": "⚠️ A confirmar",
                  "data": {},
                  "empresaNaoHabilitada": false,
                  "anomaliaId": "ANOMALIA_ID_EXEMPLO",
                  "isCreated": false,
                  "fotoPath": "/uploads/exemplo.png",
                  "pathToDelete": "⚠️ A confirmar",
                  "fotosResult": {
                    "fotoPathCreated": "⚠️ A confirmar",
                    "fotoPathToDelete": "⚠️ A confirmar",
                    "fotoCreatedPaths": {},
                    "fotoPathToDeleteList": [
                      "⚠️ A confirmar"
                    ]
                  },
                  "ocorrenciasDuplicadas": [
                    {
                      "cqa": "⚠️ A confirmar",
                      "descricao": "Vazamento no sistema hidráulico do 3º andar",
                      "emitentes": [
                        "⚠️ A confirmar"
                      ]
                    }
                  ],
                  "uploadToken": {
                    "token": "⚠️ A confirmar",
                    "expiresAt": "2026-06-29T10:00:00Z"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SaveOcorrenciaCommandResult"
                },
                "example": {
                  "success": false,
                  "message": "⚠️ A confirmar",
                  "data": {},
                  "empresaNaoHabilitada": false,
                  "anomaliaId": "ANOMALIA_ID_EXEMPLO",
                  "isCreated": false,
                  "fotoPath": "/uploads/exemplo.png",
                  "pathToDelete": "⚠️ A confirmar",
                  "fotosResult": {
                    "fotoPathCreated": "⚠️ A confirmar",
                    "fotoPathToDelete": "⚠️ A confirmar",
                    "fotoCreatedPaths": {},
                    "fotoPathToDeleteList": [
                      "⚠️ A confirmar"
                    ]
                  },
                  "ocorrenciasDuplicadas": [
                    {
                      "cqa": "⚠️ A confirmar",
                      "descricao": "Vazamento no sistema hidráulico do 3º andar",
                      "emitentes": [
                        "⚠️ A confirmar"
                      ]
                    }
                  ],
                  "uploadToken": {
                    "token": "⚠️ A confirmar",
                    "expiresAt": "2026-06-29T10:00:00Z"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SaveOcorrenciaCommandResult"
                },
                "example": {
                  "success": false,
                  "message": "⚠️ A confirmar",
                  "data": {},
                  "empresaNaoHabilitada": false,
                  "anomaliaId": "ANOMALIA_ID_EXEMPLO",
                  "isCreated": false,
                  "fotoPath": "/uploads/exemplo.png",
                  "pathToDelete": "⚠️ A confirmar",
                  "fotosResult": {
                    "fotoPathCreated": "⚠️ A confirmar",
                    "fotoPathToDelete": "⚠️ A confirmar",
                    "fotoCreatedPaths": {},
                    "fotoPathToDeleteList": [
                      "⚠️ A confirmar"
                    ]
                  },
                  "ocorrenciasDuplicadas": [
                    {
                      "cqa": "⚠️ A confirmar",
                      "descricao": "Vazamento no sistema hidráulico do 3º andar",
                      "emitentes": [
                        "⚠️ A confirmar"
                      ]
                    }
                  ],
                  "uploadToken": {
                    "token": "⚠️ A confirmar",
                    "expiresAt": "2026-06-29T10:00:00Z"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SaveOcorrenciaCommandResult"
                },
                "example": {
                  "success": false,
                  "message": "Ocorrência típica inválida",
                  "data": {},
                  "empresaNaoHabilitada": false,
                  "anomaliaId": "ANOMALIA_ID_EXEMPLO",
                  "isCreated": false,
                  "fotoPath": "/uploads/exemplo.png",
                  "pathToDelete": "⚠️ A confirmar",
                  "fotosResult": {
                    "fotoPathCreated": "⚠️ A confirmar",
                    "fotoPathToDelete": "⚠️ A confirmar",
                    "fotoCreatedPaths": {},
                    "fotoPathToDeleteList": [
                      "⚠️ A confirmar"
                    ]
                  },
                  "ocorrenciasDuplicadas": [
                    {
                      "cqa": "⚠️ A confirmar",
                      "descricao": "Vazamento no sistema hidráulico do 3º andar",
                      "emitentes": [
                        "⚠️ A confirmar"
                      ]
                    }
                  ],
                  "uploadToken": {
                    "token": "⚠️ A confirmar",
                    "expiresAt": "2026-06-29T10:00:00Z"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SaveOcorrenciaCommandResult"
                },
                "example": {
                  "success": false,
                  "message": "Ocorrência típica inválida",
                  "data": {},
                  "empresaNaoHabilitada": false,
                  "anomaliaId": "ANOMALIA_ID_EXEMPLO",
                  "isCreated": false,
                  "fotoPath": "/uploads/exemplo.png",
                  "pathToDelete": "⚠️ A confirmar",
                  "fotosResult": {
                    "fotoPathCreated": "⚠️ A confirmar",
                    "fotoPathToDelete": "⚠️ A confirmar",
                    "fotoCreatedPaths": {},
                    "fotoPathToDeleteList": [
                      "⚠️ A confirmar"
                    ]
                  },
                  "ocorrenciasDuplicadas": [
                    {
                      "cqa": "⚠️ A confirmar",
                      "descricao": "Vazamento no sistema hidráulico do 3º andar",
                      "emitentes": [
                        "⚠️ A confirmar"
                      ]
                    }
                  ],
                  "uploadToken": {
                    "token": "⚠️ A confirmar",
                    "expiresAt": "2026-06-29T10:00:00Z"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SaveOcorrenciaCommandResult"
                },
                "example": {
                  "success": false,
                  "message": "Ocorrência típica inválida",
                  "data": {},
                  "empresaNaoHabilitada": false,
                  "anomaliaId": "ANOMALIA_ID_EXEMPLO",
                  "isCreated": false,
                  "fotoPath": "/uploads/exemplo.png",
                  "pathToDelete": "⚠️ A confirmar",
                  "fotosResult": {
                    "fotoPathCreated": "⚠️ A confirmar",
                    "fotoPathToDelete": "⚠️ A confirmar",
                    "fotoCreatedPaths": {},
                    "fotoPathToDeleteList": [
                      "⚠️ A confirmar"
                    ]
                  },
                  "ocorrenciasDuplicadas": [
                    {
                      "cqa": "⚠️ A confirmar",
                      "descricao": "Vazamento no sistema hidráulico do 3º andar",
                      "emitentes": [
                        "⚠️ A confirmar"
                      ]
                    }
                  ],
                  "uploadToken": {
                    "token": "⚠️ A confirmar",
                    "expiresAt": "2026-06-29T10:00:00Z"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "Um ou mais campos do payload são inválidos.",
                  "instance": null
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "Um ou mais campos do payload são inválidos.",
                  "instance": null
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "Um ou mais campos do payload são inválidos.",
                  "instance": null
                }
              }
            }
          },
          "403": {
            "description": "Forbidden - autenticado, mas sem permissão para o recurso/empresa.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.3",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "Usuário autenticado, mas sem permissão para este recurso/empresa.",
                  "instance": null
                }
              }
            }
          },
          "404": {
            "description": "Not Found - recurso inexistente para o identificador informado.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.4",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "Recurso inexistente para o identificador informado.",
                  "instance": null
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests - limite de 250 req/h excedido. Aguarde e aplique backoff exponencial (ver guia Rate limiting).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc6585#section-4",
                  "title": "Too Many Requests",
                  "status": 429,
                  "detail": "Limite de 250 requisições/hora excedido. Aguarde e aplique backoff exponencial antes de tentar novamente.",
                  "instance": null
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorCommandResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorCommandResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorCommandResult"
                }
              }
            }
          }
        },
        "operationId": "criarOcorrenciaV3",
        "summary": "Criar ocorrência",
        "description": "Cria uma nova ocorrência corretiva (SaveOcorrenciaCommand). Campos obrigatórios: empresaId, siteId, plataforma. Fluxo completo em [Resolver uma ocorrência](/guides/recipe-resolver-ocorrencia). Versão recomendada para este recurso (domínio mais evoluído) - ver [Versionamento](/guides/versioning).",
        "x-openai-isConsequential": true
      }
    },
    "/v3/ocorrencias/count": {
      "get": {
        "tags": [
          "Ocorrencias (V3)"
        ],
        "parameters": [
          {
            "name": "DataInicio",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "DataTermino",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "EmpresaId",
            "in": "header",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "UnidadeId",
            "in": "header",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "GrupoUnidadeId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "SubGrupoUnidadeId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "OrderByDataLimiteExecucao",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "SolicitanteId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "ExecutorId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "description": "Use quando a pergunta for sobre ocorrências/atividades EXECUTADAS, RESOLVIDAS ou SOLUCIONADAS por uma pessoa."
          },
          {
            "name": "FornecedorId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "NaoAutorizadas",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "Atrasadas",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "SistemaEmpresaId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "GrupoAreaId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SubGrupoAreaId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "AreaId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "TipoEquipamentoId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "EquipamentoId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SetorId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "StatusIds",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "StatusCorrecaoId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PrioridadeAnomaliaId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Indisponibilidade",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "Auditoria",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "StatusAprovacao",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/EStatusAprovacao"
            }
          },
          {
            "name": "AuditoriaId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "UsuarioId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "description": "Filtro genérico por usuário; prefira ExecutorId ou EmitenteId quando a intenção for clara."
          },
          {
            "name": "OcorrenciaTipica",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "SelectedDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "Usuario.Usuario",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Usuario.Nome",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Usuario.Email",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Usuario.Senha",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Usuario.Inativo",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "Usuario.SuperUsuario",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "Usuario.Login",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Usuario.UsuarioDesignado",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "Usuario.FiltrosDefault",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "Usuario.FiltrosAlteracaoDefault",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "Usuario.FiltrosTodosTiposAnomalias",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "Usuario.Tipo",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Usuario.Cargo",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Usuario.Setor",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Usuario.AssinaturaPath",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Usuario.Celular",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Usuario.DataCadastro",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "Usuario.AcessoTodasAreas",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "Usuario.TipoNome",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Usuario.Foto",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "byte"
            }
          },
          {
            "name": "Usuario.Image",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Usuario.EmailValido",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "AreasIds",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "format": "int32"
              }
            }
          },
          {
            "name": "SitesIds",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "TemPermissaoChamado",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "SoTipoChamado",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "UsuariosCargoSetor",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/Usuarios"
              }
            }
          },
          {
            "name": "LastUpadateDate",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 1
              },
              "application/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 1
              },
              "text/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                },
                "example": 1
              }
            }
          },
          "400": {
            "description": "Bad Request - payload inválido (ver a mensagem retornada para o campo/motivo específico).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "Um ou mais campos do payload são inválidos.",
                  "instance": null
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "Um ou mais campos do payload são inválidos.",
                  "instance": null
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "Um ou mais campos do payload são inválidos.",
                  "instance": null
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "Um ou mais campos do payload são inválidos.",
                  "instance": null
                }
              }
            }
          },
          "403": {
            "description": "Forbidden - autenticado, mas sem permissão para o recurso/empresa.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.3",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "Usuário autenticado, mas sem permissão para este recurso/empresa.",
                  "instance": null
                }
              }
            }
          },
          "404": {
            "description": "Not Found - recurso inexistente para o identificador informado.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.4",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "Recurso inexistente para o identificador informado.",
                  "instance": null
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests - limite de 250 req/h excedido. Aguarde e aplique backoff exponencial (ver guia Rate limiting).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc6585#section-4",
                  "title": "Too Many Requests",
                  "status": 429,
                  "detail": "Limite de 250 requisições/hora excedido. Aguarde e aplique backoff exponencial antes de tentar novamente.",
                  "instance": null
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorCommandResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorCommandResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorCommandResult"
                }
              }
            }
          }
        },
        "operationId": "contarOcorrenciasV3",
        "summary": "Contar ocorrências",
        "description": "Conta ocorrências que atendem aos filtros, sem carregar a lista completa - use para dashboards/indicadores em vez de listar e contar no cliente. Versão recomendada para este recurso (domínio mais evoluído) - ver [Versionamento](/guides/versioning).",
        "x-openai-isConsequential": false
      }
    },
    "/v3/ocorrencias/config/{empresaId}": {
      "get": {
        "tags": [
          "Ocorrencias (V3)"
        ],
        "parameters": [
          {
            "name": "empresaId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "siteId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "isAuditoria",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "tipo",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/ETipoConfigOcorrencia"
            }
          },
          {
            "name": "EmpresaId",
            "in": "header",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "UnidadeId",
            "in": "header",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ConfiguracoesAnomalias"
                },
                "example": {
                  "configuracaoAnomalia": 1,
                  "tipo": 1,
                  "empresa": 1,
                  "fornecedorObrigatorio": false,
                  "fornecedorExibir": false,
                  "siteObrigatorio": false,
                  "siteExibir": false,
                  "sistemaObrigatorio": false,
                  "sistemaExibir": false,
                  "anomaliaTipicaObrigatoria": false,
                  "anomaliaTipicaExibir": false,
                  "setorObrigatorio": false,
                  "setorExibir": false,
                  "grupoAreaObrigatorio": false,
                  "grupoAreaExibir": false,
                  "subgrupoAreaObrigatorio": false,
                  "subgrupoAreaExibir": false,
                  "areaObrigatoria": false,
                  "areaExibir": false,
                  "tipoEquipamentoObrigatorio": false,
                  "tipoEquipamentoExibir": false,
                  "equipamentoObrigatorio": false,
                  "equipamentoExibir": false,
                  "tipoObrigatorio": false,
                  "tipoExibir": false,
                  "emitenteObrigatorio": false,
                  "emitenteExibir": false,
                  "detectadoObrigatorio": false,
                  "detectadoExibir": false,
                  "executorObrigatorio": false,
                  "executorExibir": false,
                  "dataObrigatoria": false,
                  "dataExibir": false,
                  "dataLimiteObrigatoria": false,
                  "dataLimiteExibir": false,
                  "descricaoObrigatoria": false,
                  "descricaoExibir": false,
                  "fotoObrigatoria": false,
                  "fotoExibir": false,
                  "prioridadeObrigatoria": false,
                  "prioridadeExibir": false,
                  "observacaoObrigatoria": false,
                  "observacaoExibir": false,
                  "epiExibir": false,
                  "epiObrigatorio": false,
                  "bloquearBaixaAtividadeOcorrencia": false,
                  "custoObrigatorio": false,
                  "custoExibir": false,
                  "centroCustoObrigatorio": false,
                  "centroCustoExibir": false,
                  "custoTotalExibir": false,
                  "labels": {
                    "configuracaoAnomaliasLabels": 1,
                    "empresa": 1,
                    "tipo": 1,
                    "fornecedorLabel": "Rótulo customizado",
                    "siteLabel": "Rótulo customizado",
                    "sistemaLabel": "Rótulo customizado",
                    "anomaliaTipicaLabel": "Rótulo customizado",
                    "setorLabel": "Rótulo customizado",
                    "grupoAreaLabel": "Rótulo customizado",
                    "subgrupoAreaLabel": "Rótulo customizado",
                    "areaLabel": "Rótulo customizado",
                    "tipoEquipamentoLabel": "Rótulo customizado",
                    "equipamentoLabel": "Rótulo customizado",
                    "tipoLabel": "Rótulo customizado",
                    "emitenteLabel": "Rótulo customizado",
                    "detectadoLabel": "Rótulo customizado",
                    "executorLabel": "Rótulo customizado",
                    "dataLabel": "Rótulo customizado",
                    "dataLimiteLabel": "Rótulo customizado",
                    "descricaoLabel": "Vazamento no sistema hidráulico do 3º andar",
                    "fotoLabel": "Rótulo customizado",
                    "prioridadeLabel": "Rótulo customizado",
                    "observacaoLabel": "Registrado via integração",
                    "epiLabel": "Rótulo customizado",
                    "custoLabel": "Rótulo customizado",
                    "centroCustoLabel": "Rótulo customizado",
                    "custoTotalLabel": "Rótulo customizado",
                    "tituloPagina": "⚠️ A confirmar",
                    "textoApoio": "⚠️ A confirmar",
                    "corMarca": "⚠️ A confirmar",
                    "tituloPaginaSucesso": "⚠️ A confirmar",
                    "textoApoioSucesso": "⚠️ A confirmar",
                    "logotipoPath": "/uploads/exemplo.png"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConfiguracoesAnomalias"
                },
                "example": {
                  "configuracaoAnomalia": 1,
                  "tipo": 1,
                  "empresa": 1,
                  "fornecedorObrigatorio": false,
                  "fornecedorExibir": false,
                  "siteObrigatorio": false,
                  "siteExibir": false,
                  "sistemaObrigatorio": false,
                  "sistemaExibir": false,
                  "anomaliaTipicaObrigatoria": false,
                  "anomaliaTipicaExibir": false,
                  "setorObrigatorio": false,
                  "setorExibir": false,
                  "grupoAreaObrigatorio": false,
                  "grupoAreaExibir": false,
                  "subgrupoAreaObrigatorio": false,
                  "subgrupoAreaExibir": false,
                  "areaObrigatoria": false,
                  "areaExibir": false,
                  "tipoEquipamentoObrigatorio": false,
                  "tipoEquipamentoExibir": false,
                  "equipamentoObrigatorio": false,
                  "equipamentoExibir": false,
                  "tipoObrigatorio": false,
                  "tipoExibir": false,
                  "emitenteObrigatorio": false,
                  "emitenteExibir": false,
                  "detectadoObrigatorio": false,
                  "detectadoExibir": false,
                  "executorObrigatorio": false,
                  "executorExibir": false,
                  "dataObrigatoria": false,
                  "dataExibir": false,
                  "dataLimiteObrigatoria": false,
                  "dataLimiteExibir": false,
                  "descricaoObrigatoria": false,
                  "descricaoExibir": false,
                  "fotoObrigatoria": false,
                  "fotoExibir": false,
                  "prioridadeObrigatoria": false,
                  "prioridadeExibir": false,
                  "observacaoObrigatoria": false,
                  "observacaoExibir": false,
                  "epiExibir": false,
                  "epiObrigatorio": false,
                  "bloquearBaixaAtividadeOcorrencia": false,
                  "custoObrigatorio": false,
                  "custoExibir": false,
                  "centroCustoObrigatorio": false,
                  "centroCustoExibir": false,
                  "custoTotalExibir": false,
                  "labels": {
                    "configuracaoAnomaliasLabels": 1,
                    "empresa": 1,
                    "tipo": 1,
                    "fornecedorLabel": "Rótulo customizado",
                    "siteLabel": "Rótulo customizado",
                    "sistemaLabel": "Rótulo customizado",
                    "anomaliaTipicaLabel": "Rótulo customizado",
                    "setorLabel": "Rótulo customizado",
                    "grupoAreaLabel": "Rótulo customizado",
                    "subgrupoAreaLabel": "Rótulo customizado",
                    "areaLabel": "Rótulo customizado",
                    "tipoEquipamentoLabel": "Rótulo customizado",
                    "equipamentoLabel": "Rótulo customizado",
                    "tipoLabel": "Rótulo customizado",
                    "emitenteLabel": "Rótulo customizado",
                    "detectadoLabel": "Rótulo customizado",
                    "executorLabel": "Rótulo customizado",
                    "dataLabel": "Rótulo customizado",
                    "dataLimiteLabel": "Rótulo customizado",
                    "descricaoLabel": "Vazamento no sistema hidráulico do 3º andar",
                    "fotoLabel": "Rótulo customizado",
                    "prioridadeLabel": "Rótulo customizado",
                    "observacaoLabel": "Registrado via integração",
                    "epiLabel": "Rótulo customizado",
                    "custoLabel": "Rótulo customizado",
                    "centroCustoLabel": "Rótulo customizado",
                    "custoTotalLabel": "Rótulo customizado",
                    "tituloPagina": "⚠️ A confirmar",
                    "textoApoio": "⚠️ A confirmar",
                    "corMarca": "⚠️ A confirmar",
                    "tituloPaginaSucesso": "⚠️ A confirmar",
                    "textoApoioSucesso": "⚠️ A confirmar",
                    "logotipoPath": "/uploads/exemplo.png"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConfiguracoesAnomalias"
                },
                "example": {
                  "configuracaoAnomalia": 1,
                  "tipo": 1,
                  "empresa": 1,
                  "fornecedorObrigatorio": false,
                  "fornecedorExibir": false,
                  "siteObrigatorio": false,
                  "siteExibir": false,
                  "sistemaObrigatorio": false,
                  "sistemaExibir": false,
                  "anomaliaTipicaObrigatoria": false,
                  "anomaliaTipicaExibir": false,
                  "setorObrigatorio": false,
                  "setorExibir": false,
                  "grupoAreaObrigatorio": false,
                  "grupoAreaExibir": false,
                  "subgrupoAreaObrigatorio": false,
                  "subgrupoAreaExibir": false,
                  "areaObrigatoria": false,
                  "areaExibir": false,
                  "tipoEquipamentoObrigatorio": false,
                  "tipoEquipamentoExibir": false,
                  "equipamentoObrigatorio": false,
                  "equipamentoExibir": false,
                  "tipoObrigatorio": false,
                  "tipoExibir": false,
                  "emitenteObrigatorio": false,
                  "emitenteExibir": false,
                  "detectadoObrigatorio": false,
                  "detectadoExibir": false,
                  "executorObrigatorio": false,
                  "executorExibir": false,
                  "dataObrigatoria": false,
                  "dataExibir": false,
                  "dataLimiteObrigatoria": false,
                  "dataLimiteExibir": false,
                  "descricaoObrigatoria": false,
                  "descricaoExibir": false,
                  "fotoObrigatoria": false,
                  "fotoExibir": false,
                  "prioridadeObrigatoria": false,
                  "prioridadeExibir": false,
                  "observacaoObrigatoria": false,
                  "observacaoExibir": false,
                  "epiExibir": false,
                  "epiObrigatorio": false,
                  "bloquearBaixaAtividadeOcorrencia": false,
                  "custoObrigatorio": false,
                  "custoExibir": false,
                  "centroCustoObrigatorio": false,
                  "centroCustoExibir": false,
                  "custoTotalExibir": false,
                  "labels": {
                    "configuracaoAnomaliasLabels": 1,
                    "empresa": 1,
                    "tipo": 1,
                    "fornecedorLabel": "Rótulo customizado",
                    "siteLabel": "Rótulo customizado",
                    "sistemaLabel": "Rótulo customizado",
                    "anomaliaTipicaLabel": "Rótulo customizado",
                    "setorLabel": "Rótulo customizado",
                    "grupoAreaLabel": "Rótulo customizado",
                    "subgrupoAreaLabel": "Rótulo customizado",
                    "areaLabel": "Rótulo customizado",
                    "tipoEquipamentoLabel": "Rótulo customizado",
                    "equipamentoLabel": "Rótulo customizado",
                    "tipoLabel": "Rótulo customizado",
                    "emitenteLabel": "Rótulo customizado",
                    "detectadoLabel": "Rótulo customizado",
                    "executorLabel": "Rótulo customizado",
                    "dataLabel": "Rótulo customizado",
                    "dataLimiteLabel": "Rótulo customizado",
                    "descricaoLabel": "Vazamento no sistema hidráulico do 3º andar",
                    "fotoLabel": "Rótulo customizado",
                    "prioridadeLabel": "Rótulo customizado",
                    "observacaoLabel": "Registrado via integração",
                    "epiLabel": "Rótulo customizado",
                    "custoLabel": "Rótulo customizado",
                    "centroCustoLabel": "Rótulo customizado",
                    "custoTotalLabel": "Rótulo customizado",
                    "tituloPagina": "⚠️ A confirmar",
                    "textoApoio": "⚠️ A confirmar",
                    "corMarca": "⚠️ A confirmar",
                    "tituloPaginaSucesso": "⚠️ A confirmar",
                    "textoApoioSucesso": "⚠️ A confirmar",
                    "logotipoPath": "/uploads/exemplo.png"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request - payload inválido (ver a mensagem retornada para o campo/motivo específico).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "Um ou mais campos do payload são inválidos.",
                  "instance": null
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "Um ou mais campos do payload são inválidos.",
                  "instance": null
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "Um ou mais campos do payload são inválidos.",
                  "instance": null
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "Um ou mais campos do payload são inválidos.",
                  "instance": null
                }
              }
            }
          },
          "403": {
            "description": "Forbidden - autenticado, mas sem permissão para o recurso/empresa.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.3",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "Usuário autenticado, mas sem permissão para este recurso/empresa.",
                  "instance": null
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "Um ou mais campos do payload são inválidos.",
                  "instance": null
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "Um ou mais campos do payload são inválidos.",
                  "instance": null
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "Um ou mais campos do payload são inválidos.",
                  "instance": null
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests - limite de 250 req/h excedido. Aguarde e aplique backoff exponencial (ver guia Rate limiting).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc6585#section-4",
                  "title": "Too Many Requests",
                  "status": 429,
                  "detail": "Limite de 250 requisições/hora excedido. Aguarde e aplique backoff exponencial antes de tentar novamente.",
                  "instance": null
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorCommandResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorCommandResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorCommandResult"
                }
              }
            }
          }
        },
        "operationId": "obterConfiguracaoOcorrenciasV3",
        "summary": "Consultar configuração de ocorrências",
        "description": "Retorna as regras e campos obrigatórios configurados pela empresa para abertura de ocorrências - consulte antes de montar o payload de criação. Versão recomendada para este recurso (domínio mais evoluído) - ver [Versionamento](/guides/versioning).",
        "x-openai-isConsequential": false
      }
    },
    "/v3/ocorrencias/tipicas/{empresaId}": {
      "get": {
        "tags": [
          "Ocorrencias (V3)"
        ],
        "parameters": [
          {
            "name": "empresaId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "siteId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "sistemaEmpresaId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "grupoAreaId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "subGrupoAreaId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "tipoEquipamentoId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "isAuditoria",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "fornecedoresIds",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "format": "int32"
              }
            }
          },
          {
            "name": "EmpresaId",
            "in": "header",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "UnidadeId",
            "in": "header",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OcorrenciasTipicasList"
                  }
                },
                "example": [
                  {
                    "anomaliaId": 123,
                    "descricao": "Vazamento no sistema hidráulico do 3º andar",
                    "sistemaEmpresaId": 123,
                    "sistemaEmpresaNome": "⚠️ A confirmar",
                    "prioridadeAnomaliaId": 123,
                    "prioridadeAnomaliaDescricao": "⚠️ A confirmar",
                    "prioridadeDiaLimite": 1,
                    "gid": "⚠️ A confirmar",
                    "executores": [
                      {
                        "executor": 1,
                        "avisoEmailCadastro": false,
                        "avisoEmailConclusao": false,
                        "usuarioNome": "⚠️ A confirmar"
                      }
                    ],
                    "fornecedores": [
                      {
                        "fornecedor": 1,
                        "fornecedorNome": "⚠️ A confirmar"
                      }
                    ],
                    "epis": [
                      {
                        "material": 1,
                        "materialNome": "⚠️ A confirmar"
                      }
                    ],
                    "tipoId": 123,
                    "tipoNome": "⚠️ A confirmar",
                    "areaId": 123,
                    "areaNome": "⚠️ A confirmar",
                    "areaIdentificacaoAmbiente": "⚠️ A confirmar",
                    "areaGid": "⚠️ A confirmar",
                    "grupoAreaId": 123,
                    "grupoAreaAgrupamento": "⚠️ A confirmar",
                    "grupoAreaGid": "⚠️ A confirmar",
                    "subGrupoAreaId": 123,
                    "subGrupoAreaNome": "⚠️ A confirmar",
                    "subGrupoAreaGid": "⚠️ A confirmar",
                    "equipamentoId": 123,
                    "equipamentoNome": "⚠️ A confirmar",
                    "equipamentoTag": "⚠️ A confirmar",
                    "equipamentoGid": "⚠️ A confirmar",
                    "tipoEquipamentoId": 123,
                    "tipoEquipamentoNome": "⚠️ A confirmar",
                    "setorId": 123,
                    "setorNome": "⚠️ A confirmar"
                  }
                ]
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OcorrenciasTipicasList"
                  }
                },
                "example": [
                  {
                    "anomaliaId": 123,
                    "descricao": "Vazamento no sistema hidráulico do 3º andar",
                    "sistemaEmpresaId": 123,
                    "sistemaEmpresaNome": "⚠️ A confirmar",
                    "prioridadeAnomaliaId": 123,
                    "prioridadeAnomaliaDescricao": "⚠️ A confirmar",
                    "prioridadeDiaLimite": 1,
                    "gid": "⚠️ A confirmar",
                    "executores": [
                      {
                        "executor": 1,
                        "avisoEmailCadastro": false,
                        "avisoEmailConclusao": false,
                        "usuarioNome": "⚠️ A confirmar"
                      }
                    ],
                    "fornecedores": [
                      {
                        "fornecedor": 1,
                        "fornecedorNome": "⚠️ A confirmar"
                      }
                    ],
                    "epis": [
                      {
                        "material": 1,
                        "materialNome": "⚠️ A confirmar"
                      }
                    ],
                    "tipoId": 123,
                    "tipoNome": "⚠️ A confirmar",
                    "areaId": 123,
                    "areaNome": "⚠️ A confirmar",
                    "areaIdentificacaoAmbiente": "⚠️ A confirmar",
                    "areaGid": "⚠️ A confirmar",
                    "grupoAreaId": 123,
                    "grupoAreaAgrupamento": "⚠️ A confirmar",
                    "grupoAreaGid": "⚠️ A confirmar",
                    "subGrupoAreaId": 123,
                    "subGrupoAreaNome": "⚠️ A confirmar",
                    "subGrupoAreaGid": "⚠️ A confirmar",
                    "equipamentoId": 123,
                    "equipamentoNome": "⚠️ A confirmar",
                    "equipamentoTag": "⚠️ A confirmar",
                    "equipamentoGid": "⚠️ A confirmar",
                    "tipoEquipamentoId": 123,
                    "tipoEquipamentoNome": "⚠️ A confirmar",
                    "setorId": 123,
                    "setorNome": "⚠️ A confirmar"
                  }
                ]
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OcorrenciasTipicasList"
                  }
                },
                "example": [
                  {
                    "anomaliaId": 123,
                    "descricao": "Vazamento no sistema hidráulico do 3º andar",
                    "sistemaEmpresaId": 123,
                    "sistemaEmpresaNome": "⚠️ A confirmar",
                    "prioridadeAnomaliaId": 123,
                    "prioridadeAnomaliaDescricao": "⚠️ A confirmar",
                    "prioridadeDiaLimite": 1,
                    "gid": "⚠️ A confirmar",
                    "executores": [
                      {
                        "executor": 1,
                        "avisoEmailCadastro": false,
                        "avisoEmailConclusao": false,
                        "usuarioNome": "⚠️ A confirmar"
                      }
                    ],
                    "fornecedores": [
                      {
                        "fornecedor": 1,
                        "fornecedorNome": "⚠️ A confirmar"
                      }
                    ],
                    "epis": [
                      {
                        "material": 1,
                        "materialNome": "⚠️ A confirmar"
                      }
                    ],
                    "tipoId": 123,
                    "tipoNome": "⚠️ A confirmar",
                    "areaId": 123,
                    "areaNome": "⚠️ A confirmar",
                    "areaIdentificacaoAmbiente": "⚠️ A confirmar",
                    "areaGid": "⚠️ A confirmar",
                    "grupoAreaId": 123,
                    "grupoAreaAgrupamento": "⚠️ A confirmar",
                    "grupoAreaGid": "⚠️ A confirmar",
                    "subGrupoAreaId": 123,
                    "subGrupoAreaNome": "⚠️ A confirmar",
                    "subGrupoAreaGid": "⚠️ A confirmar",
                    "equipamentoId": 123,
                    "equipamentoNome": "⚠️ A confirmar",
                    "equipamentoTag": "⚠️ A confirmar",
                    "equipamentoGid": "⚠️ A confirmar",
                    "tipoEquipamentoId": 123,
                    "tipoEquipamentoNome": "⚠️ A confirmar",
                    "setorId": 123,
                    "setorNome": "⚠️ A confirmar"
                  }
                ]
              }
            }
          },
          "400": {
            "description": "Bad Request - payload inválido (ver a mensagem retornada para o campo/motivo específico).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "Um ou mais campos do payload são inválidos.",
                  "instance": null
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "Um ou mais campos do payload são inválidos.",
                  "instance": null
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "Um ou mais campos do payload são inválidos.",
                  "instance": null
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "Um ou mais campos do payload são inválidos.",
                  "instance": null
                }
              }
            }
          },
          "403": {
            "description": "Forbidden - autenticado, mas sem permissão para o recurso/empresa.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.3",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "Usuário autenticado, mas sem permissão para este recurso/empresa.",
                  "instance": null
                }
              }
            }
          },
          "404": {
            "description": "Not Found - recurso inexistente para o identificador informado.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.4",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "Recurso inexistente para o identificador informado.",
                  "instance": null
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests - limite de 250 req/h excedido. Aguarde e aplique backoff exponencial (ver guia Rate limiting).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc6585#section-4",
                  "title": "Too Many Requests",
                  "status": 429,
                  "detail": "Limite de 250 requisições/hora excedido. Aguarde e aplique backoff exponencial antes de tentar novamente.",
                  "instance": null
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorCommandResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorCommandResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorCommandResult"
                }
              }
            }
          }
        },
        "operationId": "listarOcorrenciasTipicasV3",
        "summary": "Listar ocorrências típicas",
        "description": "Lista as ocorrências típicas (modelos pré-configurados) da empresa - consulte antes de criar uma ocorrência para obter o anomaliaTipicaId válido. Versão recomendada para este recurso (domínio mais evoluído) - ver [Versionamento](/guides/versioning).",
        "x-openai-isConsequential": false
      }
    },
    "/v3/correcoes": {
      "get": {
        "tags": [
          "Correcoes (V3)"
        ],
        "parameters": [
          {
            "name": "ocorrenciaId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "EmpresaId",
            "in": "header",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "UnidadeId",
            "in": "header",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CorrecoesListV3"
                  }
                },
                "example": [
                  {
                    "correcaoId": 123,
                    "correcaoGid": "⚠️ A confirmar",
                    "tipoCorrecaoNome": "⚠️ A confirmar",
                    "tipoCorrecao": 1,
                    "descricao": "Vazamento no sistema hidráulico do 3º andar",
                    "inicio": "2026-06-29T10:00:00Z",
                    "termino": "2026-06-29T10:00:00Z",
                    "executoresNomes": "⚠️ A confirmar",
                    "materiaisNomes": "⚠️ A confirmar",
                    "custoTotal": 42.5,
                    "fotoPath": "/uploads/exemplo.png",
                    "fotosPathsList": [
                      "⚠️ A confirmar"
                    ],
                    "habilitarAprovacao": false,
                    "habilitarAutorizacao": false
                  }
                ]
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CorrecoesListV3"
                  }
                },
                "example": [
                  {
                    "correcaoId": 123,
                    "correcaoGid": "⚠️ A confirmar",
                    "tipoCorrecaoNome": "⚠️ A confirmar",
                    "tipoCorrecao": 1,
                    "descricao": "Vazamento no sistema hidráulico do 3º andar",
                    "inicio": "2026-06-29T10:00:00Z",
                    "termino": "2026-06-29T10:00:00Z",
                    "executoresNomes": "⚠️ A confirmar",
                    "materiaisNomes": "⚠️ A confirmar",
                    "custoTotal": 42.5,
                    "fotoPath": "/uploads/exemplo.png",
                    "fotosPathsList": [
                      "⚠️ A confirmar"
                    ],
                    "habilitarAprovacao": false,
                    "habilitarAutorizacao": false
                  }
                ]
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CorrecoesListV3"
                  }
                },
                "example": [
                  {
                    "correcaoId": 123,
                    "correcaoGid": "⚠️ A confirmar",
                    "tipoCorrecaoNome": "⚠️ A confirmar",
                    "tipoCorrecao": 1,
                    "descricao": "Vazamento no sistema hidráulico do 3º andar",
                    "inicio": "2026-06-29T10:00:00Z",
                    "termino": "2026-06-29T10:00:00Z",
                    "executoresNomes": "⚠️ A confirmar",
                    "materiaisNomes": "⚠️ A confirmar",
                    "custoTotal": 42.5,
                    "fotoPath": "/uploads/exemplo.png",
                    "fotosPathsList": [
                      "⚠️ A confirmar"
                    ],
                    "habilitarAprovacao": false,
                    "habilitarAutorizacao": false
                  }
                ]
              }
            }
          },
          "400": {
            "description": "Bad Request - payload inválido (ver a mensagem retornada para o campo/motivo específico).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "Um ou mais campos do payload são inválidos.",
                  "instance": null
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "Um ou mais campos do payload são inválidos.",
                  "instance": null
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "Um ou mais campos do payload são inválidos.",
                  "instance": null
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "Um ou mais campos do payload são inválidos.",
                  "instance": null
                }
              }
            }
          },
          "403": {
            "description": "Forbidden - autenticado, mas sem permissão para o recurso/empresa.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.3",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "Usuário autenticado, mas sem permissão para este recurso/empresa.",
                  "instance": null
                }
              }
            }
          },
          "404": {
            "description": "Not Found - recurso inexistente para o identificador informado.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.4",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "Recurso inexistente para o identificador informado.",
                  "instance": null
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests - limite de 250 req/h excedido. Aguarde e aplique backoff exponencial (ver guia Rate limiting).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc6585#section-4",
                  "title": "Too Many Requests",
                  "status": 429,
                  "detail": "Limite de 250 requisições/hora excedido. Aguarde e aplique backoff exponencial antes de tentar novamente.",
                  "instance": null
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorCommandResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorCommandResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorCommandResult"
                }
              }
            }
          }
        },
        "operationId": "listarCorrecoesV3",
        "summary": "Listar correções",
        "description": "Lista as ações corretivas (Correções) de uma ocorrência. Versão recomendada para este recurso (domínio mais evoluído) - ver [Versionamento](/guides/versioning).",
        "x-openai-isConsequential": false
      },
      "post": {
        "tags": [
          "Correcoes (V3)"
        ],
        "parameters": [
          {
            "name": "EmpresaId",
            "in": "header",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "UnidadeId",
            "in": "header",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveCorrecaoCommand"
              },
              "example": {
                "anomaliaId": "ANOMALIA_ID_DO_PASSO_3",
                "inicio": "2026-06-29T10:30:00Z",
                "plataforma": 6,
                "termino": "2026-06-29T12:00:00Z",
                "tipoCorrecaoId": 1,
                "descricao": "Substituição do conector hidráulico danificado",
                "observacao": "Peça substituída com estoque local"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveCorrecaoCommand"
              },
              "example": {
                "anomaliaId": "ANOMALIA_ID_DO_PASSO_3",
                "inicio": "2026-06-29T10:30:00Z",
                "plataforma": 6,
                "termino": "2026-06-29T12:00:00Z",
                "tipoCorrecaoId": 1,
                "descricao": "Substituição do conector hidráulico danificado",
                "observacao": "Peça substituída com estoque local"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SaveCorrecaoCommand"
              },
              "example": {
                "anomaliaId": "ANOMALIA_ID_DO_PASSO_3",
                "inicio": "2026-06-29T10:30:00Z",
                "plataforma": 6,
                "termino": "2026-06-29T12:00:00Z",
                "tipoCorrecaoId": 1,
                "descricao": "Substituição do conector hidráulico danificado",
                "observacao": "Peça substituída com estoque local"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SaveCorrecaoCommandResult"
                },
                "example": {
                  "success": false,
                  "message": "⚠️ A confirmar",
                  "data": {},
                  "fotoPath": "/uploads/exemplo.png",
                  "assinaturaPath": "/uploads/exemplo.png",
                  "isCreated": false,
                  "correcaoId": "⚠️ A confirmar",
                  "pathsToDelete": [
                    "⚠️ A confirmar"
                  ],
                  "isSolucionada": false,
                  "fotosResult": {
                    "fotoPathCreated": "⚠️ A confirmar",
                    "fotoPathToDelete": "⚠️ A confirmar",
                    "fotoCreatedPaths": {},
                    "fotoPathToDeleteList": [
                      "⚠️ A confirmar"
                    ]
                  }
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SaveCorrecaoCommandResult"
                },
                "example": {
                  "success": false,
                  "message": "⚠️ A confirmar",
                  "data": {},
                  "fotoPath": "/uploads/exemplo.png",
                  "assinaturaPath": "/uploads/exemplo.png",
                  "isCreated": false,
                  "correcaoId": "⚠️ A confirmar",
                  "pathsToDelete": [
                    "⚠️ A confirmar"
                  ],
                  "isSolucionada": false,
                  "fotosResult": {
                    "fotoPathCreated": "⚠️ A confirmar",
                    "fotoPathToDelete": "⚠️ A confirmar",
                    "fotoCreatedPaths": {},
                    "fotoPathToDeleteList": [
                      "⚠️ A confirmar"
                    ]
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SaveCorrecaoCommandResult"
                },
                "example": {
                  "success": false,
                  "message": "⚠️ A confirmar",
                  "data": {},
                  "fotoPath": "/uploads/exemplo.png",
                  "assinaturaPath": "/uploads/exemplo.png",
                  "isCreated": false,
                  "correcaoId": "⚠️ A confirmar",
                  "pathsToDelete": [
                    "⚠️ A confirmar"
                  ],
                  "isSolucionada": false,
                  "fotosResult": {
                    "fotoPathCreated": "⚠️ A confirmar",
                    "fotoPathToDelete": "⚠️ A confirmar",
                    "fotoCreatedPaths": {},
                    "fotoPathToDeleteList": [
                      "⚠️ A confirmar"
                    ]
                  }
                }
              }
            }
          },
          "201": {
            "description": "Created",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SaveCorrecaoCommandResult"
                },
                "example": {
                  "success": false,
                  "message": "⚠️ A confirmar",
                  "data": {},
                  "fotoPath": "/uploads/exemplo.png",
                  "assinaturaPath": "/uploads/exemplo.png",
                  "isCreated": false,
                  "correcaoId": "⚠️ A confirmar",
                  "pathsToDelete": [
                    "⚠️ A confirmar"
                  ],
                  "isSolucionada": false,
                  "fotosResult": {
                    "fotoPathCreated": "⚠️ A confirmar",
                    "fotoPathToDelete": "⚠️ A confirmar",
                    "fotoCreatedPaths": {},
                    "fotoPathToDeleteList": [
                      "⚠️ A confirmar"
                    ]
                  }
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SaveCorrecaoCommandResult"
                },
                "example": {
                  "success": false,
                  "message": "⚠️ A confirmar",
                  "data": {},
                  "fotoPath": "/uploads/exemplo.png",
                  "assinaturaPath": "/uploads/exemplo.png",
                  "isCreated": false,
                  "correcaoId": "⚠️ A confirmar",
                  "pathsToDelete": [
                    "⚠️ A confirmar"
                  ],
                  "isSolucionada": false,
                  "fotosResult": {
                    "fotoPathCreated": "⚠️ A confirmar",
                    "fotoPathToDelete": "⚠️ A confirmar",
                    "fotoCreatedPaths": {},
                    "fotoPathToDeleteList": [
                      "⚠️ A confirmar"
                    ]
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SaveCorrecaoCommandResult"
                },
                "example": {
                  "success": false,
                  "message": "⚠️ A confirmar",
                  "data": {},
                  "fotoPath": "/uploads/exemplo.png",
                  "assinaturaPath": "/uploads/exemplo.png",
                  "isCreated": false,
                  "correcaoId": "⚠️ A confirmar",
                  "pathsToDelete": [
                    "⚠️ A confirmar"
                  ],
                  "isSolucionada": false,
                  "fotosResult": {
                    "fotoPathCreated": "⚠️ A confirmar",
                    "fotoPathToDelete": "⚠️ A confirmar",
                    "fotoCreatedPaths": {},
                    "fotoPathToDeleteList": [
                      "⚠️ A confirmar"
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SaveCorrecaoCommandResult"
                },
                "example": {
                  "success": false,
                  "message": "Ocorrência típica inválida",
                  "data": {},
                  "fotoPath": "/uploads/exemplo.png",
                  "assinaturaPath": "/uploads/exemplo.png",
                  "isCreated": false,
                  "correcaoId": "⚠️ A confirmar",
                  "pathsToDelete": [
                    "⚠️ A confirmar"
                  ],
                  "isSolucionada": false,
                  "fotosResult": {
                    "fotoPathCreated": "⚠️ A confirmar",
                    "fotoPathToDelete": "⚠️ A confirmar",
                    "fotoCreatedPaths": {},
                    "fotoPathToDeleteList": [
                      "⚠️ A confirmar"
                    ]
                  }
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SaveCorrecaoCommandResult"
                },
                "example": {
                  "success": false,
                  "message": "Ocorrência típica inválida",
                  "data": {},
                  "fotoPath": "/uploads/exemplo.png",
                  "assinaturaPath": "/uploads/exemplo.png",
                  "isCreated": false,
                  "correcaoId": "⚠️ A confirmar",
                  "pathsToDelete": [
                    "⚠️ A confirmar"
                  ],
                  "isSolucionada": false,
                  "fotosResult": {
                    "fotoPathCreated": "⚠️ A confirmar",
                    "fotoPathToDelete": "⚠️ A confirmar",
                    "fotoCreatedPaths": {},
                    "fotoPathToDeleteList": [
                      "⚠️ A confirmar"
                    ]
                  }
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SaveCorrecaoCommandResult"
                },
                "example": {
                  "success": false,
                  "message": "Ocorrência típica inválida",
                  "data": {},
                  "fotoPath": "/uploads/exemplo.png",
                  "assinaturaPath": "/uploads/exemplo.png",
                  "isCreated": false,
                  "correcaoId": "⚠️ A confirmar",
                  "pathsToDelete": [
                    "⚠️ A confirmar"
                  ],
                  "isSolucionada": false,
                  "fotosResult": {
                    "fotoPathCreated": "⚠️ A confirmar",
                    "fotoPathToDelete": "⚠️ A confirmar",
                    "fotoCreatedPaths": {},
                    "fotoPathToDeleteList": [
                      "⚠️ A confirmar"
                    ]
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "Um ou mais campos do payload são inválidos.",
                  "instance": null
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "Um ou mais campos do payload são inválidos.",
                  "instance": null
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
                  "title": "Bad Request",
                  "status": 400,
                  "detail": "Um ou mais campos do payload são inválidos.",
                  "instance": null
                }
              }
            }
          },
          "403": {
            "description": "Forbidden - autenticado, mas sem permissão para o recurso/empresa.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.3",
                  "title": "Forbidden",
                  "status": 403,
                  "detail": "Usuário autenticado, mas sem permissão para este recurso/empresa.",
                  "instance": null
                }
              }
            }
          },
          "404": {
            "description": "Not Found - recurso inexistente para o identificador informado.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.4",
                  "title": "Not Found",
                  "status": 404,
                  "detail": "Recurso inexistente para o identificador informado.",
                  "instance": null
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests - limite de 250 req/h excedido. Aguarde e aplique backoff exponencial (ver guia Rate limiting).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                },
                "example": {
                  "type": "https://tools.ietf.org/html/rfc6585#section-4",
                  "title": "Too Many Requests",
                  "status": 429,
                  "detail": "Limite de 250 requisições/hora excedido. Aguarde e aplique backoff exponencial antes de tentar novamente.",
                  "instance": null
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorCommandResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorCommandResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorCommandResult"
                }
              }
            }
          }
        },
        "operationId": "criarCorrecaoV3",
        "summary": "Criar correção",
        "description": "Registra uma correção (ação corretiva) em uma ocorrência (SaveCorrecaoCommand: anomaliaId, inicio, plataforma). Consulte GET /v3/correcoes/tipos antes. Peça confirmação ao usuário antes de gravar.",
        "x-openai-isConsequential": true
      }
    }
  },
  "components": {
    "securitySchemes": {
      "Bearer": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "JWT emitido pelo AuthCenter. Cole apenas o token (sem o prefixo Bearer)."
      }
    },
    "schemas": {
      "ETipoUsuario": {
        "enum": [
          1,
          2,
          3,
          4
        ],
        "type": "integer",
        "format": "int32",
        "description": "Tipo do usuário: 2 = Administrador, 3 = Operacional, 4 = Chamado. Determina as permissões geradas na criação."
      },
      "Usuarios": {
        "type": "object",
        "properties": {
          "usuario": {
            "type": "integer",
            "format": "int32"
          },
          "nome": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "inativo": {
            "type": "boolean"
          },
          "superUsuario": {
            "type": "boolean",
            "nullable": true
          },
          "login": {
            "type": "string",
            "nullable": true
          },
          "usuarioDesignado": {
            "type": "boolean",
            "nullable": true
          },
          "filtrosDefault": {
            "type": "boolean",
            "nullable": true
          },
          "filtrosAlteracaoDefault": {
            "type": "boolean",
            "nullable": true
          },
          "filtrosTodosTiposAnomalias": {
            "type": "boolean",
            "nullable": true
          },
          "tipo": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "cargo": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "setor": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "assinaturaPath": {
            "type": "string",
            "nullable": true
          },
          "celular": {
            "type": "string",
            "nullable": true
          },
          "dataCadastro": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "acessoTodasAreas": {
            "type": "boolean"
          },
          "tipoNome": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "image": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "emailValido": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "ProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": {}
      },
      "ErrorCommandResult": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "hash": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EStatusAprovacao": {
        "enum": [
          1,
          2,
          3,
          4
        ],
        "type": "integer",
        "format": "int32",
        "description": "Resultado da aprovação de uma ocorrência: 1 = Aprovado; 2 = Reprovado/Rejeitado; 3 = Pendente; 4 = reservado."
      },
      "OcorrenciasListV3": {
        "type": "object",
        "properties": {
          "anomaliaId": {
            "type": "integer",
            "format": "int32"
          },
          "anomaliaGid": {
            "type": "string",
            "nullable": true
          },
          "siteId": {
            "type": "integer",
            "format": "int32"
          },
          "siteNome": {
            "type": "string",
            "nullable": true
          },
          "cqa": {
            "type": "string",
            "nullable": true
          },
          "descricao": {
            "type": "string",
            "nullable": true
          },
          "dataRegistro": {
            "type": "string",
            "format": "date-time"
          },
          "dataLimiteExecucao": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/EStatusOcorrencia"
          },
          "statusNome": {
            "type": "string",
            "nullable": true
          },
          "sistemaEmpresaNome": {
            "type": "string",
            "nullable": true
          },
          "areaNome": {
            "type": "string",
            "nullable": true
          },
          "areaIdentificacaoAmbiente": {
            "type": "string",
            "nullable": true
          },
          "grupoAreaNome": {
            "type": "string",
            "nullable": true
          },
          "subGrupoAreaNome": {
            "type": "string",
            "nullable": true
          },
          "equipamentoNome": {
            "type": "string",
            "nullable": true
          },
          "equipamentoTag": {
            "type": "string",
            "nullable": true
          },
          "prioridadeCor": {
            "type": "string",
            "nullable": true
          },
          "prioridadeId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "prioridadeExibir": {
            "type": "boolean"
          },
          "fotosPaths": {
            "type": "string",
            "nullable": true
          },
          "emitentesIds": {
            "type": "string",
            "nullable": true
          },
          "emitentesNomes": {
            "type": "string",
            "nullable": true
          },
          "ultimaCorrecaoExecutoresIds": {
            "type": "string",
            "nullable": true
          },
          "temCorrecao": {
            "type": "boolean"
          },
          "statusAprovacao": {
            "$ref": "#/components/schemas/EStatusAprovacao"
          },
          "tipoUltimaCorrecao": {
            "$ref": "#/components/schemas/ETipoCorrecao"
          },
          "ultimaCorrecaoId": {
            "type": "string",
            "nullable": true
          },
          "ultimaCorrecaoInicio": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "habilitarAutorizacao": {
            "type": "boolean"
          },
          "indisponibilidade": {
            "type": "boolean",
            "nullable": true
          },
          "permitirContato": {
            "type": "boolean",
            "nullable": true
          },
          "auditoriaId": {
            "type": "string",
            "nullable": true
          },
          "linkExterno": {
            "type": "string",
            "nullable": true
          },
          "identificacaoSolicitante": {
            "type": "string",
            "nullable": true
          },
          "ultimaCorrecaoExecutoresIdsList": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true,
            "readOnly": true
          },
          "emitentesIdsList": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true,
            "readOnly": true
          },
          "emitentesNomesList": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "readOnly": true
          },
          "fotosPathsList": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "readOnly": true
          },
          "fotoPath": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "permissaoAprovarOcorrencia": {
            "$ref": "#/components/schemas/RegraPermissaoOperacao"
          },
          "permissaoAlterarPrioridade": {
            "$ref": "#/components/schemas/RegraPermissaoOperacao"
          },
          "permissaoNovaCorrecao": {
            "$ref": "#/components/schemas/RegraPermissaoOperacao"
          },
          "isAguardandoAprovacao": {
            "type": "boolean",
            "readOnly": true
          },
          "isEditable": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "ETipoConfigOcorrencia": {
        "enum": [
          1,
          3,
          4,
          5
        ],
        "type": "integer",
        "format": "int32"
      },
      "ConfiguracoesAnomalias": {
        "type": "object",
        "properties": {
          "configuracaoAnomalia": {
            "type": "integer",
            "format": "int32"
          },
          "tipo": {
            "type": "integer",
            "format": "int32"
          },
          "empresa": {
            "type": "integer",
            "format": "int32"
          },
          "fornecedorObrigatorio": {
            "type": "boolean"
          },
          "fornecedorExibir": {
            "type": "boolean"
          },
          "siteObrigatorio": {
            "type": "boolean"
          },
          "siteExibir": {
            "type": "boolean"
          },
          "sistemaObrigatorio": {
            "type": "boolean"
          },
          "sistemaExibir": {
            "type": "boolean"
          },
          "anomaliaTipicaObrigatoria": {
            "type": "boolean"
          },
          "anomaliaTipicaExibir": {
            "type": "boolean"
          },
          "setorObrigatorio": {
            "type": "boolean"
          },
          "setorExibir": {
            "type": "boolean"
          },
          "grupoAreaObrigatorio": {
            "type": "boolean"
          },
          "grupoAreaExibir": {
            "type": "boolean"
          },
          "subgrupoAreaObrigatorio": {
            "type": "boolean"
          },
          "subgrupoAreaExibir": {
            "type": "boolean"
          },
          "areaObrigatoria": {
            "type": "boolean"
          },
          "areaExibir": {
            "type": "boolean"
          },
          "tipoEquipamentoObrigatorio": {
            "type": "boolean"
          },
          "tipoEquipamentoExibir": {
            "type": "boolean"
          },
          "equipamentoObrigatorio": {
            "type": "boolean"
          },
          "equipamentoExibir": {
            "type": "boolean"
          },
          "tipoObrigatorio": {
            "type": "boolean"
          },
          "tipoExibir": {
            "type": "boolean"
          },
          "emitenteObrigatorio": {
            "type": "boolean"
          },
          "emitenteExibir": {
            "type": "boolean"
          },
          "detectadoObrigatorio": {
            "type": "boolean"
          },
          "detectadoExibir": {
            "type": "boolean"
          },
          "executorObrigatorio": {
            "type": "boolean"
          },
          "executorExibir": {
            "type": "boolean"
          },
          "dataObrigatoria": {
            "type": "boolean"
          },
          "dataExibir": {
            "type": "boolean"
          },
          "dataLimiteObrigatoria": {
            "type": "boolean"
          },
          "dataLimiteExibir": {
            "type": "boolean"
          },
          "descricaoObrigatoria": {
            "type": "boolean"
          },
          "descricaoExibir": {
            "type": "boolean"
          },
          "fotoObrigatoria": {
            "type": "boolean"
          },
          "fotoExibir": {
            "type": "boolean"
          },
          "prioridadeObrigatoria": {
            "type": "boolean"
          },
          "prioridadeExibir": {
            "type": "boolean"
          },
          "observacaoObrigatoria": {
            "type": "boolean"
          },
          "observacaoExibir": {
            "type": "boolean"
          },
          "epiExibir": {
            "type": "boolean"
          },
          "epiObrigatorio": {
            "type": "boolean"
          },
          "bloquearBaixaAtividadeOcorrencia": {
            "type": "boolean",
            "nullable": true
          },
          "custoObrigatorio": {
            "type": "boolean"
          },
          "custoExibir": {
            "type": "boolean"
          },
          "centroCustoObrigatorio": {
            "type": "boolean"
          },
          "centroCustoExibir": {
            "type": "boolean"
          },
          "custoTotalExibir": {
            "type": "boolean"
          },
          "labels": {
            "$ref": "#/components/schemas/ConfiguracoesAnomaliasLabels"
          }
        },
        "additionalProperties": false
      },
      "OcorrenciasTipicasList": {
        "type": "object",
        "properties": {
          "anomaliaId": {
            "type": "integer",
            "format": "int32"
          },
          "descricao": {
            "type": "string",
            "nullable": true
          },
          "sistemaEmpresaId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "sistemaEmpresaNome": {
            "type": "string",
            "nullable": true
          },
          "prioridadeAnomaliaId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "prioridadeAnomaliaDescricao": {
            "type": "string",
            "nullable": true
          },
          "prioridadeDiaLimite": {
            "type": "integer",
            "format": "int32"
          },
          "gid": {
            "type": "string",
            "nullable": true
          },
          "executores": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AnomaliasExecutoresList"
            },
            "nullable": true
          },
          "fornecedores": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FornecedoresAnomaliasList"
            },
            "nullable": true
          },
          "epis": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AnomaliasEpisList"
            },
            "nullable": true
          },
          "tipoId": {
            "type": "integer",
            "format": "int32"
          },
          "tipoNome": {
            "type": "string",
            "nullable": true
          },
          "areaId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "areaNome": {
            "type": "string",
            "nullable": true
          },
          "areaIdentificacaoAmbiente": {
            "type": "string",
            "nullable": true
          },
          "areaGid": {
            "type": "string",
            "nullable": true
          },
          "grupoAreaId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "grupoAreaAgrupamento": {
            "type": "string",
            "nullable": true
          },
          "grupoAreaGid": {
            "type": "string",
            "nullable": true
          },
          "subGrupoAreaId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "subGrupoAreaNome": {
            "type": "string",
            "nullable": true
          },
          "subGrupoAreaGid": {
            "type": "string",
            "nullable": true
          },
          "equipamentoId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "equipamentoNome": {
            "type": "string",
            "nullable": true
          },
          "equipamentoTag": {
            "type": "string",
            "nullable": true
          },
          "equipamentoGid": {
            "type": "string",
            "nullable": true
          },
          "tipoEquipamentoId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "tipoEquipamentoNome": {
            "type": "string",
            "nullable": true
          },
          "setorId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "setorNome": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SaveOcorrenciaCommand": {
        "required": [
          "empresaId",
          "plataforma",
          "siteId"
        ],
        "type": "object",
        "properties": {
          "anomaliaId": {
            "type": "string",
            "nullable": true
          },
          "empresaId": {
            "type": "integer",
            "format": "int32"
          },
          "siteId": {
            "type": "integer",
            "format": "int32"
          },
          "tipoAnomalia": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "descricao": {
            "type": "string",
            "nullable": true
          },
          "dataRegistro": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "dataLimiteExecucao": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "anomaliaTipicaId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "grupoAreaId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "subgrupoAreaId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "areaId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "tipoEquipamentoId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "equipamentoId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "sistemaEmpresaId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "prioridadeAnomaliaId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "observacao": {
            "type": "string",
            "nullable": true
          },
          "auditoriaId": {
            "type": "string",
            "nullable": true
          },
          "setorId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "linkExterno": {
            "type": "string",
            "nullable": true
          },
          "identificacaoSolicitante": {
            "type": "string",
            "nullable": true
          },
          "fornecedores": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          },
          "epis": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          },
          "emitentes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SaveEmitenteOcorrenciaCommand"
            },
            "nullable": true
          },
          "executores": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SaveExecutorOcorrenciaCommand"
            },
            "nullable": true
          },
          "fotos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SaveFotoOcorrenciaCommand"
            },
            "nullable": true
          },
          "temFoto": {
            "type": "boolean",
            "nullable": true
          },
          "plataforma": {
            "$ref": "#/components/schemas/EPlataforma"
          },
          "indisponibilidade": {
            "type": "boolean",
            "nullable": true
          },
          "permitirContato": {
            "type": "boolean",
            "nullable": true
          },
          "emailSolicitante": {
            "type": "string",
            "nullable": true
          },
          "telefoneSolicitante": {
            "type": "string",
            "nullable": true
          },
          "validarDuplicidade": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "SaveOcorrenciaCommandResult": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "data": {
            "nullable": true,
            "type": "object"
          },
          "empresaNaoHabilitada": {
            "type": "boolean"
          },
          "anomaliaId": {
            "type": "string",
            "nullable": true
          },
          "isCreated": {
            "type": "boolean"
          },
          "fotoPath": {
            "type": "string",
            "nullable": true
          },
          "pathToDelete": {
            "type": "string",
            "nullable": true
          },
          "fotosResult": {
            "$ref": "#/components/schemas/SaveFotoCommandResult"
          },
          "ocorrenciasDuplicadas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OcorrenciasDuplicadas"
            },
            "nullable": true
          },
          "uploadToken": {
            "$ref": "#/components/schemas/UploadTokenInfo"
          }
        },
        "additionalProperties": false
      },
      "CorrecoesListV3": {
        "type": "object",
        "properties": {
          "correcaoId": {
            "type": "integer",
            "format": "int32"
          },
          "correcaoGid": {
            "type": "string",
            "nullable": true
          },
          "tipoCorrecaoNome": {
            "type": "string",
            "nullable": true
          },
          "tipoCorrecao": {
            "$ref": "#/components/schemas/ETipoCorrecao"
          },
          "descricao": {
            "type": "string",
            "nullable": true
          },
          "inicio": {
            "type": "string",
            "format": "date-time"
          },
          "termino": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "executoresNomes": {
            "type": "string",
            "nullable": true
          },
          "materiaisNomes": {
            "type": "string",
            "nullable": true
          },
          "custoTotal": {
            "type": "number",
            "format": "double"
          },
          "fotoPath": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "fotosPathsList": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true,
            "readOnly": true
          },
          "habilitarAprovacao": {
            "type": "boolean"
          },
          "habilitarAutorizacao": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "SaveCorrecaoCommand": {
        "required": [
          "anomaliaId",
          "inicio",
          "plataforma"
        ],
        "type": "object",
        "properties": {
          "correcaoId": {
            "type": "string",
            "nullable": true
          },
          "anomaliaId": {
            "minLength": 1,
            "type": "string"
          },
          "descricao": {
            "type": "string",
            "nullable": true
          },
          "inicio": {
            "type": "string",
            "format": "date-time"
          },
          "termino": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "setorId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "tipoCorrecaoId": {
            "type": "integer",
            "format": "int32"
          },
          "epis": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          },
          "materiais": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SaveMaterialCorrecaoCommand"
            },
            "nullable": true
          },
          "emitentes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SaveEmitenteCorrecaoCommand"
            },
            "nullable": true
          },
          "executores": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SaveExecutorCorrecaoCommand"
            },
            "nullable": true
          },
          "fotos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SaveFotoCorrecaoCommand"
            },
            "nullable": true
          },
          "assinaturaPath": {
            "type": "string",
            "nullable": true
          },
          "temFoto": {
            "type": "boolean",
            "nullable": true
          },
          "temAssinatura": {
            "type": "boolean",
            "nullable": true
          },
          "usuarioAssinatura": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "nomeUsuarioAssinatura": {
            "type": "string",
            "nullable": true
          },
          "observacao": {
            "type": "string",
            "nullable": true
          },
          "custo": {
            "type": "number",
            "format": "double"
          },
          "plataforma": {
            "$ref": "#/components/schemas/EPlataforma"
          }
        },
        "additionalProperties": false
      },
      "SaveCorrecaoCommandResult": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "data": {
            "nullable": true,
            "type": "object"
          },
          "fotoPath": {
            "type": "string",
            "nullable": true
          },
          "assinaturaPath": {
            "type": "string",
            "nullable": true
          },
          "isCreated": {
            "type": "boolean"
          },
          "correcaoId": {
            "type": "string",
            "nullable": true
          },
          "pathsToDelete": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "isSolucionada": {
            "type": "boolean"
          },
          "fotosResult": {
            "$ref": "#/components/schemas/SaveFotoCommandResult"
          }
        },
        "additionalProperties": false
      },
      "EStatusOcorrencia": {
        "enum": [
          1,
          2,
          3,
          4,
          5
        ],
        "type": "integer",
        "format": "int32"
      },
      "ETipoCorrecao": {
        "enum": [
          1,
          3,
          4,
          5,
          6,
          7,
          14
        ],
        "type": "integer",
        "format": "int32",
        "description": "Valores-base de tipo de ação corretiva do sistema. Cada empresa configura seu próprio subconjunto - use sempre GET /v3/correcoes/tipos para obter os tipos efetivamente disponíveis em vez de fixar um destes valores."
      },
      "RegraPermissaoOperacao": {
        "type": "object",
        "properties": {
          "regrasEspecificasList": {
            "type": "array",
            "items": {
              "type": "boolean"
            },
            "nullable": true
          },
          "operacao": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "ConfiguracoesAnomaliasLabels": {
        "type": "object",
        "properties": {
          "configuracaoAnomaliasLabels": {
            "type": "integer",
            "format": "int32"
          },
          "empresa": {
            "type": "integer",
            "format": "int32"
          },
          "tipo": {
            "type": "integer",
            "format": "int32"
          },
          "fornecedorLabel": {
            "type": "string",
            "nullable": true
          },
          "siteLabel": {
            "type": "string",
            "nullable": true
          },
          "sistemaLabel": {
            "type": "string",
            "nullable": true
          },
          "anomaliaTipicaLabel": {
            "type": "string",
            "nullable": true
          },
          "setorLabel": {
            "type": "string",
            "nullable": true
          },
          "grupoAreaLabel": {
            "type": "string",
            "nullable": true
          },
          "subgrupoAreaLabel": {
            "type": "string",
            "nullable": true
          },
          "areaLabel": {
            "type": "string",
            "nullable": true
          },
          "tipoEquipamentoLabel": {
            "type": "string",
            "nullable": true
          },
          "equipamentoLabel": {
            "type": "string",
            "nullable": true
          },
          "tipoLabel": {
            "type": "string",
            "nullable": true
          },
          "emitenteLabel": {
            "type": "string",
            "nullable": true
          },
          "detectadoLabel": {
            "type": "string",
            "nullable": true
          },
          "executorLabel": {
            "type": "string",
            "nullable": true
          },
          "dataLabel": {
            "type": "string",
            "nullable": true
          },
          "dataLimiteLabel": {
            "type": "string",
            "nullable": true
          },
          "descricaoLabel": {
            "type": "string",
            "nullable": true
          },
          "fotoLabel": {
            "type": "string",
            "nullable": true
          },
          "prioridadeLabel": {
            "type": "string",
            "nullable": true
          },
          "observacaoLabel": {
            "type": "string",
            "nullable": true
          },
          "epiLabel": {
            "type": "string",
            "nullable": true
          },
          "custoLabel": {
            "type": "string",
            "nullable": true
          },
          "centroCustoLabel": {
            "type": "string",
            "nullable": true
          },
          "custoTotalLabel": {
            "type": "string",
            "nullable": true
          },
          "tituloPagina": {
            "type": "string",
            "nullable": true
          },
          "textoApoio": {
            "type": "string",
            "nullable": true
          },
          "corMarca": {
            "type": "string",
            "nullable": true
          },
          "tituloPaginaSucesso": {
            "type": "string",
            "nullable": true
          },
          "textoApoioSucesso": {
            "type": "string",
            "nullable": true
          },
          "logotipoPath": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AnomaliasExecutoresList": {
        "type": "object",
        "properties": {
          "executor": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "avisoEmailCadastro": {
            "type": "boolean"
          },
          "avisoEmailConclusao": {
            "type": "boolean"
          },
          "usuarioNome": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FornecedoresAnomaliasList": {
        "type": "object",
        "properties": {
          "fornecedor": {
            "type": "integer",
            "format": "int32"
          },
          "fornecedorNome": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AnomaliasEpisList": {
        "type": "object",
        "properties": {
          "material": {
            "type": "integer",
            "format": "int32"
          },
          "materialNome": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SaveEmitenteOcorrenciaCommand": {
        "type": "object",
        "properties": {
          "emitenteId": {
            "type": "integer",
            "format": "int32"
          },
          "emailCadastro": {
            "type": "boolean"
          },
          "emailCorrecao": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "SaveExecutorOcorrenciaCommand": {
        "type": "object",
        "properties": {
          "executorId": {
            "type": "integer",
            "format": "int32"
          },
          "emailCadastro": {
            "type": "boolean"
          },
          "emailCorrecao": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "SaveFotoOcorrenciaCommand": {
        "type": "object",
        "properties": {
          "anomaliaFotoGid": {
            "type": "string",
            "nullable": true
          },
          "fotoPath": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EPlataforma": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          9,
          10
        ],
        "type": "integer",
        "format": "int32",
        "description": "Origem da requisição. Use sempre o inteiro (nunca a string \"WEB\"/\"API\"). Valor recomendado para integrações via API: 6. Demais valores (0,2,3,4,5,7,9,10) são canais internos - consulte o time AuthCenter. Mapeamento conhecido: 6 = API (integrações server-side); 1 = WEB (interface web)."
      },
      "SaveFotoCommandResult": {
        "type": "object",
        "properties": {
          "fotoPathCreated": {
            "type": "string",
            "nullable": true
          },
          "fotoPathToDelete": {
            "type": "string",
            "nullable": true
          },
          "fotoCreatedPaths": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "nullable": true
            },
            "nullable": true
          },
          "fotoPathToDeleteList": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "OcorrenciasDuplicadas": {
        "type": "object",
        "properties": {
          "cqa": {
            "type": "string",
            "nullable": true
          },
          "descricao": {
            "type": "string",
            "nullable": true
          },
          "emitentes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UploadTokenInfo": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string",
            "nullable": true
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SaveMaterialCorrecaoCommand": {
        "type": "object",
        "properties": {
          "materialId": {
            "type": "integer",
            "format": "int32"
          },
          "custo": {
            "type": "number",
            "format": "double"
          },
          "custoMaoObra": {
            "type": "number",
            "format": "double"
          },
          "quantidade": {
            "type": "number",
            "format": "double"
          },
          "almoxarifadoId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SaveEmitenteCorrecaoCommand": {
        "type": "object",
        "properties": {
          "emitenteId": {
            "type": "integer",
            "format": "int32"
          },
          "emailAviso": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "SaveExecutorCorrecaoCommand": {
        "type": "object",
        "properties": {
          "executorId": {
            "type": "integer",
            "format": "int32"
          },
          "tempo": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "emailAviso": {
            "type": "boolean",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SaveFotoCorrecaoCommand": {
        "type": "object",
        "properties": {
          "acaoCorretivaFotoGid": {
            "type": "string",
            "nullable": true
          },
          "fotoPath": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    }
  }
}