{
  "components": {
    "headers": {
      "RetryAfter": {
        "description": "Segundos até a próxima consulta; só enquanto o enriquecimento não é terminal. Em geral `5`; enquanto o enriquecimento aguarda uma nova rodada de coleta, os segundos até `nextRetryAt` (no mínimo 5); nunca além de um `deadline` ainda à frente (então no mínimo 1).",
        "schema": {
          "minimum": 1,
          "type": "integer"
        }
      }
    },
    "parameters": {
      "EnrichmentID": {
        "in": "path",
        "name": "id",
        "required": true,
        "schema": {
          "pattern": "^enr_",
          "type": "string"
        },
        "description": "O id do enriquecimento (`enr_…`)."
      }
    },
    "schemas": {
      "Accepted": {
        "properties": {
          "id": {
            "type": "string",
            "description": "O id do enriquecimento."
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          }
        },
        "required": ["id", "status"],
        "type": "object",
        "description": "Resposta `202`: o enriquecimento segue em processamento."
      },
      "Callback": {
        "properties": {
          "headers": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "Enviados junto do callback (até 20). `Content-Type`, `X-Zarv-Timestamp` e `X-Zarv-Signature` são reservados. Headers de credencial (`Authorization`, `Cookie`, chaves de API e nomes com token, secret, password, auth, signature, credential ou session) são guardados cifrados e nunca voltam em nenhuma leitura.",
            "maxProperties": 20,
            "type": "object"
          },
          "url": {
            "description": "Só `https`. Endereço IP literal, `localhost`, `*.internal` e `*.cluster.local` são recusados.",
            "format": "uri",
            "maxLength": 2048,
            "type": "string"
          }
        },
        "required": ["url"],
        "type": "object",
        "description": "Onde entregar o resultado quando o enriquecimento não termina dentro da espera síncrona. Veja [Webhook](https://developers.zarv.com/api/id-v3/webhook)."
      },
      "CreateEnrichment": {
        "additionalProperties": false,
        "properties": {
          "callback": {
            "$ref": "#/components/schemas/Callback"
          },
          "document": {
            "description": "CPF ou CNPJ (numérico ou alfanumérico), com ou sem pontuação.",
            "example": "12.abc.345/01de-35",
            "type": "string"
          },
          "metadata": {
            "additionalProperties": true,
            "description": "Objeto livre, devolvido como enviado. A Zarv não lê o conteúdo.",
            "type": "object"
          },
          "options": {
            "properties": {
              "deadline": {
                "description": "Prazo total do enriquecimento, em duração (`90s`, `10m`, `2h`); mínimo `1m`, sem máximo; outro formato é `400 invalid_deadline`. Nenhuma nova tentativa passa dele: excedido, o enriquecimento termina `FAILED` com `failureReason: deadline_exceeded`. Normalizado antes da idempotência (`2h` e `120m` são o mesmo pedido).",
                "example": "2h",
                "type": "string"
              },
              "modules": {
                "additionalProperties": {
                  "type": "object"
                },
                "description": "Módulos adicionais (add-ons) do perfil a executar, por nome. Um add-on só roda quando pedido aqui. Por enquanto todo valor deve ser `{}`. Módulo fora do perfil: `422 module_not_in_profile`.",
                "example": {
                  "financeAdvanced": {}
                },
                "type": "object"
              }
            },
            "type": "object",
            "description": "Opcional. Só pede mais do que o perfil já entrega, dentro do que ele permite."
          },
          "profileId": {
            "type": "string",
            "description": "O perfil que define quais módulos e datasets rodam. Deve ser do seu workspace ou um perfil global da Zarv."
          }
        },
        "required": ["document", "profileId"],
        "type": "object",
        "description": "Corpo da criação de um enriquecimento."
      },
      "Enrichment": {
        "properties": {
          "batchId": {
            "description": "O lote que criou este enriquecimento (`bat_…`); ausente quando veio da criação unitária.",
            "type": "string"
          },
          "completedAt": {
            "format": "date-time",
            "type": ["string", "null"],
            "description": "Quando chegou a um status terminal; `null` antes disso."
          },
          "createdAt": {
            "format": "date-time",
            "type": "string",
            "description": "Quando o enriquecimento foi criado (UTC)."
          },
          "data": {
            "additionalProperties": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/Dataset_person_finance_1_0"
                },
                {
                  "$ref": "#/components/schemas/Dataset_person_finance_1_1"
                },
                {
                  "$ref": "#/components/schemas/Dataset_person_financeAdvanced_2_0"
                },
                {
                  "$ref": "#/components/schemas/Dataset_person_lawsuits_1_0"
                },
                {
                  "$ref": "#/components/schemas/Dataset_person_lawsuits_2_0"
                },
                {
                  "$ref": "#/components/schemas/Dataset_person_profile_1_0"
                },
                {
                  "$ref": "#/components/schemas/Dataset_person_profile_2_0"
                },
                {
                  "$ref": "#/components/schemas/Dataset_person_related_1_0"
                },
                {
                  "$ref": "#/components/schemas/Dataset_person_related_1_1"
                },
                {
                  "$ref": "#/components/schemas/Dataset_person_related_2_0"
                },
                {
                  "$ref": "#/components/schemas/Dataset_company_finance_1_0"
                },
                {
                  "$ref": "#/components/schemas/Dataset_company_financeAdvanced_2_0"
                },
                {
                  "$ref": "#/components/schemas/Dataset_company_lawsuits_1_0"
                },
                {
                  "$ref": "#/components/schemas/Dataset_company_lawsuits_2_0"
                },
                {
                  "$ref": "#/components/schemas/Dataset_company_ownersLawsuits_1_0"
                },
                {
                  "$ref": "#/components/schemas/Dataset_company_profile_1_0"
                },
                {
                  "$ref": "#/components/schemas/Dataset_company_related_1_0"
                },
                {
                  "$ref": "#/components/schemas/Dataset_company_related_2_0"
                }
              ],
              "discriminator": {
                "propertyName": "dataset",
                "mapping": {
                  "person-finance-1.0": "#/components/schemas/Dataset_person_finance_1_0",
                  "person-finance-1.1": "#/components/schemas/Dataset_person_finance_1_1",
                  "person-financeAdvanced-2.0": "#/components/schemas/Dataset_person_financeAdvanced_2_0",
                  "person-lawsuits-1.0": "#/components/schemas/Dataset_person_lawsuits_1_0",
                  "person-lawsuits-2.0": "#/components/schemas/Dataset_person_lawsuits_2_0",
                  "person-profile-1.0": "#/components/schemas/Dataset_person_profile_1_0",
                  "person-profile-2.0": "#/components/schemas/Dataset_person_profile_2_0",
                  "person-related-1.0": "#/components/schemas/Dataset_person_related_1_0",
                  "person-related-1.1": "#/components/schemas/Dataset_person_related_1_1",
                  "person-related-2.0": "#/components/schemas/Dataset_person_related_2_0",
                  "company-finance-1.0": "#/components/schemas/Dataset_company_finance_1_0",
                  "company-financeAdvanced-2.0": "#/components/schemas/Dataset_company_financeAdvanced_2_0",
                  "company-lawsuits-1.0": "#/components/schemas/Dataset_company_lawsuits_1_0",
                  "company-lawsuits-2.0": "#/components/schemas/Dataset_company_lawsuits_2_0",
                  "company-ownersLawsuits-1.0": "#/components/schemas/Dataset_company_ownersLawsuits_1_0",
                  "company-profile-1.0": "#/components/schemas/Dataset_company_profile_1_0",
                  "company-related-1.0": "#/components/schemas/Dataset_company_related_1_0",
                  "company-related-2.0": "#/components/schemas/Dataset_company_related_2_0"
                }
              }
            },
            "description": "Os dados de cada módulo, por nome, no formato publicado pelo dataset. Presente com `include`, ou no `200` de uma criação que terminou a tempo. Veja [Datasets](https://developers.zarv.com/api/id-v3/datasets/).",
            "type": "object"
          },
          "deadline": {
            "description": "`createdAt` + `options.deadline`, em UTC; ausente sem `options.deadline`.",
            "format": "date-time",
            "type": "string"
          },
          "document": {
            "description": "O documento normalizado completo (sem pontuação, em maiúsculas).",
            "type": "string"
          },
          "entity": {
            "enum": ["person", "company"],
            "type": "string",
            "description": "`pf` (CPF) ou `pj` (CNPJ), derivado do documento."
          },
          "failureReason": {
            "description": "Só quando `FAILED` (ex.: `retry_exhausted`, `deadline_exceeded`, `poison`, `invalid_plan`, `recovery_panic`, `network_incomplete`, `network_unavailable`). Um enriquecimento `FAILED` não é cobrado.",
            "type": "string"
          },
          "id": {
            "example": "enr_0199a0b2-7c1e-7d4a-9f0e-3b1c2d4e5f60",
            "type": "string",
            "description": "O id do enriquecimento."
          },
          "lane": {
            "description": "A raia de criação: `interactive` (criação unitária) ou `batch` (criação em lote). Gravada na criação, nunca muda.",
            "enum": ["interactive", "batch"],
            "type": "string"
          },
          "metadata": {
            "additionalProperties": true,
            "type": "object",
            "description": "O `metadata` enviado na criação."
          },
          "modules": {
            "additionalProperties": {
              "$ref": "#/components/schemas/Module"
            },
            "description": "O estado de cada módulo do plano, por nome. Ausente nos itens da listagem.",
            "type": "object"
          },
          "nextRetryAt": {
            "description": "UTC. Só enquanto o enriquecimento aguarda uma nova rodada de coleta dos módulos que falharam (o status continua `FETCHING`): quando essa rodada roda.",
            "format": "date-time",
            "type": "string"
          },
          "outcome": {
            "example": "subject_not_found",
            "type": ["string", "null"],
            "description": "Só quando `COMPLETED`: `ok` (o titular foi encontrado e os módulos rodaram) ou `subject_not_found` (o documento não tem titular conhecido; só o módulo `profile` rodou). `null` nos demais status."
          },
          "profile": {
            "properties": {
              "id": {
                "type": "string"
              },
              "kind": {
                "description": "O tipo do perfil: `enrichment` ou `verification`. Um enriquecimento só roda perfis `enrichment`.",
                "enum": ["enrichment", "verification"],
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            },
            "required": ["id", "name", "kind"],
            "type": "object",
            "description": "O perfil usado."
          },
          "recoveryRound": {
            "description": "Rodadas de nova coleta já executadas (até 3); ausente quando nenhuma.",
            "maximum": 3,
            "minimum": 1,
            "type": "integer"
          },
          "status": {
            "$ref": "#/components/schemas/Status"
          }
        },
        "required": [
          "id",
          "status",
          "outcome",
          "entity",
          "document",
          "profile",
          "metadata",
          "createdAt",
          "completedAt"
        ],
        "type": "object",
        "description": "Um enriquecimento."
      },
      "EnrichmentBatchRequest": {
        "additionalProperties": false,
        "properties": {
          "callback": {
            "$ref": "#/components/schemas/Callback"
          },
          "items": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "document": {
                  "description": "CPF ou CNPJ (numérico ou alfanumérico), com ou sem pontuação.",
                  "type": "string"
                },
                "metadata": {
                  "additionalProperties": true,
                  "type": "object"
                }
              },
              "required": ["document"],
              "type": "object"
            },
            "maxItems": 500,
            "minItems": 1,
            "type": "array",
            "description": "De 1 a 500 itens. Acima disso, `413 batch_too_large`."
          },
          "metadata": {
            "additionalProperties": true,
            "description": "Objeto livre, copiado para cada item; o `metadata` do item sobrescreve chave a chave.",
            "type": "object"
          },
          "options": {
            "$ref": "#/components/schemas/CreateEnrichment/properties/options"
          },
          "profileId": {
            "description": "Um perfil para todos os itens.",
            "type": "string"
          }
        },
        "required": ["profileId", "items"],
        "type": "object",
        "description": "Corpo da criação em lote. `profileId`, `options`, `callback` e `metadata` valem para todos os itens."
      },
      "EnrichmentBatchResult": {
        "properties": {
          "batchId": {
            "example": "bat_0199a0b2-7c1e-7d4a-9f0e-3b1c2d4e5f60",
            "type": "string",
            "description": "Identifica o lote; use em `GET /api/v3/enrichments?batchId=` para listar os itens."
          },
          "created": {
            "type": "integer"
          },
          "failed": {
            "type": "integer"
          },
          "items": {
            "description": "Uma entrada por item enviado, na ordem do request, cada uma com o documento exatamente como enviado.",
            "items": {
              "properties": {
                "document": {
                  "description": "O documento do item exatamente como enviado no request (sem normalização), no item criado e no item com erro. É o único lugar onde o documento aparece: `error.message` nunca o traz.",
                  "example": "529.982.247-25",
                  "type": "string"
                },
                "error": {
                  "properties": {
                    "code": {
                      "enum": [
                        "invalid_document",
                        "profile_entity_mismatch",
                        "duplicate_in_request",
                        "invalid_metadata"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "required": ["code", "message"],
                  "type": "object"
                },
                "id": {
                  "description": "O id do enriquecimento criado; ausente quando o item traz `error`.",
                  "type": "string"
                },
                "index": {
                  "minimum": 0,
                  "type": "integer"
                }
              },
              "required": ["index", "document"],
              "type": "object"
            },
            "type": "array"
          },
          "total": {
            "type": "integer"
          }
        },
        "required": ["batchId", "total", "created", "failed", "items"],
        "type": "object",
        "description": "Resposta `202` da criação em lote."
      },
      "Error": {
        "description": "O envelope de erro de todas as rotas. `message` nunca contém documento, token ou outro dado pessoal. Rota desconhecida responde `404 not_found` e método errado `405 method_not_allowed`, com o mesmo envelope.",
        "properties": {
          "error": {
            "properties": {
              "code": {
                "example": "profile_not_found",
                "type": "string",
                "description": "Código estável, em snake_case. Trate o erro por ele."
              },
              "message": {
                "type": "string",
                "description": "Texto para diagnóstico; pode mudar."
              }
            },
            "required": ["code", "message"],
            "type": "object"
          }
        },
        "required": ["error"],
        "type": "object"
      },
      "Module": {
        "properties": {
          "dataset": {
            "description": "O dataset que respondeu (ex.: `person-profile-2.0`) quando `ok`; antes disso, o dataset planejado.",
            "type": "string"
          },
          "network": {
            "$ref": "#/components/schemas/NetworkState",
            "description": "Apenas em `lawsuits`: o estado da rede de processos."
          },
          "nextAttemptAt": {
            "description": "Próxima tentativa; só enquanto `retrying`.",
            "format": "date-time",
            "type": "string"
          },
          "status": {
            "enum": ["pending", "retrying", "ok", "failed"],
            "type": "string",
            "description": "`pending` (ainda não começou), `retrying` (em nova tentativa), `ok` (concluído) ou `failed`."
          }
        },
        "required": ["dataset", "status"],
        "type": "object",
        "description": "O estado de um módulo do plano."
      },
      "NetworkNode": {
        "allOf": [
          {
            "$ref": "#/components/schemas/NetworkNodeHead"
          },
          {
            "properties": {
              "document": {
                "type": "string"
              },
              "lawsuits": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/Dataset_person_lawsuits_1_0__facts"
                  },
                  {
                    "$ref": "#/components/schemas/Dataset_person_lawsuits_2_0__facts"
                  },
                  {
                    "$ref": "#/components/schemas/Dataset_company_lawsuits_1_0__facts"
                  },
                  {
                    "$ref": "#/components/schemas/Dataset_company_lawsuits_2_0__facts"
                  }
                ]
              }
            },
            "required": ["document"],
            "type": "object"
          }
        ]
      },
      "NetworkNodeHead": {
        "properties": {
          "dataset": {
            "example": "person-lawsuits-1.0",
            "type": "string"
          },
          "entity": {
            "enum": ["person", "company"],
            "type": "string"
          },
          "name": {
            "description": "O nome do relacionado como o dado o traz; ausente quando nenhum dado traz o nome.",
            "example": "MARIA SILVA",
            "type": "string"
          },
          "reason": {
            "enum": [
              "not_found",
              "document_refused",
              "response_too_large",
              "exhausted"
            ],
            "nullable": true,
            "type": "string"
          },
          "ref": {
            "example": "n01",
            "type": "string"
          },
          "relations": {
            "items": {
              "$ref": "#/components/schemas/NetworkRelation"
            },
            "type": "array"
          },
          "status": {
            "enum": ["ok", "failed", "skipped"],
            "type": "string"
          }
        },
        "required": ["ref", "entity", "relations", "status", "dataset"],
        "type": "object"
      },
      "NetworkRelation": {
        "properties": {
          "role": {
            "description": "O nome do vínculo como o provedor o informa, sem tradução; ausente quando o vínculo não tem (família, `GROUP` e `CO_DEFENDANT`).",
            "example": "SOCIO-ADMINISTRADOR",
            "type": "string"
          },
          "type": {
            "example": "BROTHER",
            "type": "string"
          }
        },
        "required": ["type"],
        "type": "object"
      },
      "NetworkState": {
        "properties": {
          "documents": {
            "description": "Quantos nós a rede tem; sempre presente quando `ok` (inclusive `0`).",
            "type": "integer"
          },
          "reason": {
            "description": "Só quando `skipped`: `related_disabled`, `lawsuits_disabled`, `network_not_configured`, `subject_not_found` ou `not_run` (o enriquecimento foi concluído sem a etapa da rede).",
            "enum": [
              "lawsuits_disabled",
              "network_not_configured",
              "related_disabled",
              "subject_not_found",
              "not_run"
            ],
            "example": "related_disabled",
            "type": "string"
          },
          "status": {
            "enum": ["running", "ok", "skipped", "failed"],
            "type": "string"
          },
          "withLawsuits": {
            "description": "Quantos nós têm ao menos um processo; sempre presente quando `ok` (inclusive `0`).",
            "type": "integer"
          }
        },
        "required": ["status"],
        "type": "object"
      },
      "NetworkSummary": {
        "properties": {
          "candidates": {
            "type": "integer"
          },
          "nodes": {
            "additionalProperties": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/NetworkNodeHead"
                },
                {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Dataset_person_lawsuits_1_0__facts_summary"
                    },
                    {
                      "$ref": "#/components/schemas/Dataset_person_lawsuits_2_0__facts_summary"
                    },
                    {
                      "$ref": "#/components/schemas/Dataset_company_lawsuits_1_0__facts_summary"
                    },
                    {
                      "$ref": "#/components/schemas/Dataset_company_lawsuits_2_0__facts_summary"
                    }
                  ]
                }
              ]
            },
            "description": "Indexados pelo documento. Cada valor é o cabeçalho do nó mais o fato de processos, sem a lista `items`.",
            "type": "object"
          },
          "reason": {
            "description": "Só quando `skipped`: `related_disabled`, `lawsuits_disabled`, `network_not_configured`, `subject_not_found` ou `not_run` (o enriquecimento foi concluído sem a etapa da rede).",
            "enum": [
              "lawsuits_disabled",
              "network_not_configured",
              "related_disabled",
              "subject_not_found",
              "not_run"
            ],
            "type": "string"
          },
          "selected": {
            "type": "integer"
          },
          "status": {
            "enum": ["ok", "skipped"],
            "type": "string"
          }
        },
        "required": ["status", "candidates", "selected", "nodes"],
        "type": "object"
      },
      "Profile": {
        "properties": {
          "entity": {
            "enum": ["person", "company"],
            "type": "string"
          },
          "modules": {
            "additionalProperties": {
              "$ref": "#/components/schemas/ProfileModule"
            },
            "description": "Cada módulo habilitado no perfil, pelo nome, com o dataset que ele usa. Add-ons aparecem aqui, mas só rodam quando pedidos em `options.modules`.",
            "type": "object"
          },
          "profile": {
            "properties": {
              "id": {
                "type": "string"
              },
              "kind": {
                "description": "O tipo do perfil: `enrichment` ou `verification`. Um enriquecimento só roda perfis `enrichment`.",
                "enum": ["enrichment", "verification"],
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            },
            "required": ["id", "name", "kind"],
            "type": "object"
          }
        },
        "required": ["profile", "entity", "modules"],
        "type": "object"
      },
      "ProfileModule": {
        "properties": {
          "dataset": {
            "description": "O dataset e a versão do módulo (por exemplo, `person-finance-1.1`), igual a `modules[].dataset` no enriquecimento.",
            "type": "string"
          }
        },
        "required": ["dataset"],
        "type": "object"
      },
      "Status": {
        "enum": ["CREATED", "FETCHING", "COMPLETED", "FAILED"],
        "type": "string",
        "description": "`CREATED` (recebido), `FETCHING` (coletando os módulos), `COMPLETED` e `FAILED` (terminais)."
      },
      "Dataset_person_finance_1_0": {
        "type": "object",
        "properties": {
          "dataset": {
            "const": "person-finance-1.0"
          },
          "finance": {
            "$ref": "#/components/schemas/Dataset_person_finance_1_0__facts"
          },
          "module": {
            "const": "finance"
          },
          "rules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset_person_finance_1_0__result"
            }
          }
        },
        "required": ["dataset", "module"],
        "additionalProperties": false
      },
      "Dataset_person_finance_1_0__assistance": {
        "type": "object",
        "properties": {
          "active": {
            "type": "integer"
          },
          "amountReceived": {
            "type": "number"
          },
          "installments": {
            "type": "integer"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset_person_finance_1_0__program"
            }
          },
          "receiving": {
            "type": "boolean"
          },
          "total": {
            "type": "integer"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_finance_1_0__debts": {
        "type": "object",
        "properties": {
          "consecutiveMonths": {
            "type": "integer"
          },
          "current": {
            "type": "boolean"
          },
          "firstAt": {
            "type": "string",
            "format": "date"
          },
          "last180Days": {
            "type": "integer"
          },
          "last30Days": {
            "type": "integer"
          },
          "last365Days": {
            "type": "integer"
          },
          "last90Days": {
            "type": "integer"
          },
          "lastAt": {
            "type": "string",
            "format": "date"
          },
          "maxConsecutiveMonths": {
            "type": "integer"
          },
          "months": {
            "type": "integer"
          },
          "occurrences": {
            "type": "integer"
          },
          "origins": {
            "type": "integer"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_finance_1_0__facts": {
        "type": "object",
        "properties": {
          "assets": {
            "type": "string"
          },
          "assistance": {
            "$ref": "#/components/schemas/Dataset_person_finance_1_0__assistance"
          },
          "debts": {
            "$ref": "#/components/schemas/Dataset_person_finance_1_0__debts"
          },
          "income": {
            "$ref": "#/components/schemas/Dataset_person_finance_1_0__income"
          },
          "taxReturns": {
            "$ref": "#/components/schemas/Dataset_person_finance_1_0__taxReturns"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_finance_1_0__income": {
        "type": "object",
        "properties": {
          "band": {
            "type": "string"
          },
          "basis": {
            "type": "string"
          },
          "monthlyBRL": {
            "type": "number"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_finance_1_0__paymentValue": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer"
          },
          "value": {
            "type": "number"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_finance_1_0__payments": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer"
          },
          "duplicateReferenceDates": {
            "type": "integer"
          },
          "first": {
            "type": "number"
          },
          "last": {
            "type": "number"
          },
          "sum": {
            "type": "number"
          },
          "values": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset_person_finance_1_0__paymentValue"
            }
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_finance_1_0__program": {
        "type": "object",
        "properties": {
          "active": {
            "type": "boolean"
          },
          "amount": {
            "type": "number"
          },
          "context": {
            "type": "string"
          },
          "endDate": {
            "type": "string",
            "format": "date"
          },
          "installments": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "payments": {
            "$ref": "#/components/schemas/Dataset_person_finance_1_0__payments"
          },
          "startDate": {
            "type": "string",
            "format": "date"
          },
          "state": {
            "type": "string"
          },
          "totalAmount": {
            "type": "number"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_finance_1_0__result": {
        "type": "object",
        "properties": {
          "evidence": {
            "type": "object"
          },
          "fired": {
            "type": "boolean"
          },
          "magnitude": {
            "type": "number"
          },
          "notApplicable": {
            "type": "boolean"
          },
          "reason": {
            "type": "string"
          },
          "rule": {
            "type": "string",
            "enum": [
              "FINANCE_PERSON_ASSISTANCES",
              "FINANCE_PERSON_DEBTS_HISTORY",
              "FINANCE_PERSON_INCOME",
              "FINANCE_PERSON_NO_TAX_RETURNS",
              "FINANCE_PERSON_SOCIAL_ASSISTANCES"
            ]
          }
        },
        "required": ["fired", "rule"],
        "additionalProperties": false
      },
      "Dataset_person_finance_1_0__taxReturns": {
        "type": "object",
        "properties": {
          "filed": {
            "type": "integer"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset_person_finance_1_0__taxYear"
            }
          },
          "latest": {
            "type": "string"
          },
          "years": {
            "type": "integer"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_finance_1_0__taxYear": {
        "type": "object",
        "properties": {
          "filed": {
            "type": "boolean"
          },
          "status": {
            "type": "string"
          },
          "year": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_finance_1_1": {
        "type": "object",
        "properties": {
          "dataset": {
            "const": "person-finance-1.1"
          },
          "finance": {
            "$ref": "#/components/schemas/Dataset_person_finance_1_1__facts"
          },
          "module": {
            "const": "finance"
          },
          "rules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset_person_finance_1_1__result"
            }
          }
        },
        "required": ["dataset", "module"],
        "additionalProperties": false
      },
      "Dataset_person_finance_1_1__assistance": {
        "type": "object",
        "properties": {
          "active": {
            "type": "integer"
          },
          "amountReceived": {
            "type": "number"
          },
          "installments": {
            "type": "integer"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset_person_finance_1_1__program"
            }
          },
          "receiving": {
            "type": "boolean"
          },
          "total": {
            "type": "integer"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_finance_1_1__facts": {
        "type": "object",
        "properties": {
          "assets": {
            "type": "string"
          },
          "assistance": {
            "$ref": "#/components/schemas/Dataset_person_finance_1_1__assistance"
          },
          "income": {
            "$ref": "#/components/schemas/Dataset_person_finance_1_1__income"
          },
          "taxReturns": {
            "$ref": "#/components/schemas/Dataset_person_finance_1_1__taxReturns"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_finance_1_1__income": {
        "type": "object",
        "properties": {
          "band": {
            "type": "string"
          },
          "basis": {
            "type": "string"
          },
          "monthlyBRL": {
            "type": "number"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_finance_1_1__paymentValue": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer"
          },
          "value": {
            "type": "number"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_finance_1_1__payments": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer"
          },
          "duplicateReferenceDates": {
            "type": "integer"
          },
          "first": {
            "type": "number"
          },
          "last": {
            "type": "number"
          },
          "sum": {
            "type": "number"
          },
          "values": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset_person_finance_1_1__paymentValue"
            }
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_finance_1_1__program": {
        "type": "object",
        "properties": {
          "active": {
            "type": "boolean"
          },
          "amount": {
            "type": "number"
          },
          "context": {
            "type": "string"
          },
          "endDate": {
            "type": "string",
            "format": "date"
          },
          "installments": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "payments": {
            "$ref": "#/components/schemas/Dataset_person_finance_1_1__payments"
          },
          "startDate": {
            "type": "string",
            "format": "date"
          },
          "state": {
            "type": "string"
          },
          "totalAmount": {
            "type": "number"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_finance_1_1__result": {
        "type": "object",
        "properties": {
          "evidence": {
            "type": "object"
          },
          "fired": {
            "type": "boolean"
          },
          "magnitude": {
            "type": "number"
          },
          "notApplicable": {
            "type": "boolean"
          },
          "reason": {
            "type": "string"
          },
          "rule": {
            "type": "string",
            "enum": [
              "FINANCE_PERSON_ASSISTANCES",
              "FINANCE_PERSON_INCOME",
              "FINANCE_PERSON_NO_TAX_RETURNS",
              "FINANCE_PERSON_SOCIAL_ASSISTANCES"
            ]
          }
        },
        "required": ["fired", "rule"],
        "additionalProperties": false
      },
      "Dataset_person_finance_1_1__taxReturns": {
        "type": "object",
        "properties": {
          "filed": {
            "type": "integer"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset_person_finance_1_1__taxYear"
            }
          },
          "latest": {
            "type": "string"
          },
          "years": {
            "type": "integer"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_finance_1_1__taxYear": {
        "type": "object",
        "properties": {
          "filed": {
            "type": "boolean"
          },
          "status": {
            "type": "string"
          },
          "year": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_financeAdvanced_2_0": {
        "type": "object",
        "properties": {
          "dataset": {
            "const": "person-financeAdvanced-2.0"
          },
          "financeAdvanced": {
            "$ref": "#/components/schemas/Dataset_person_financeAdvanced_2_0__facts"
          },
          "module": {
            "const": "financeAdvanced"
          },
          "rules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset_person_financeAdvanced_2_0__result"
            }
          }
        },
        "required": ["dataset", "module"],
        "additionalProperties": false
      },
      "Dataset_person_financeAdvanced_2_0__chequeRegister": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_financeAdvanced_2_0__entry": {
        "type": "object",
        "properties": {
          "amountBrl": {
            "type": "number"
          },
          "city": {
            "type": "string"
          },
          "contractId": {
            "type": "string"
          },
          "court": {
            "type": "string"
          },
          "creditor": {
            "type": "string"
          },
          "disputed": {
            "type": "boolean"
          },
          "dueAt": {
            "type": "string",
            "format": "date"
          },
          "nature": {
            "type": "string"
          },
          "notaryOffice": {
            "type": "string"
          },
          "occurredAt": {
            "type": "string",
            "format": "date"
          },
          "recordedAt": {
            "type": "string",
            "format": "date"
          },
          "state": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_financeAdvanced_2_0__facts": {
        "type": "object",
        "properties": {
          "badChecks": {
            "$ref": "#/components/schemas/Dataset_person_financeAdvanced_2_0__chequeRegister"
          },
          "bankruptcy": {
            "$ref": "#/components/schemas/Dataset_person_financeAdvanced_2_0__totals"
          },
          "history": {
            "$ref": "#/components/schemas/Dataset_person_financeAdvanced_2_0__historyWindow"
          },
          "judgementFilings": {
            "$ref": "#/components/schemas/Dataset_person_financeAdvanced_2_0__register"
          },
          "overdueDebts": {
            "$ref": "#/components/schemas/Dataset_person_financeAdvanced_2_0__register"
          },
          "protests": {
            "$ref": "#/components/schemas/Dataset_person_financeAdvanced_2_0__register"
          },
          "registration": {
            "$ref": "#/components/schemas/Dataset_person_financeAdvanced_2_0__registration"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_financeAdvanced_2_0__historyWindow": {
        "type": "object",
        "properties": {
          "atEdge": {
            "type": "boolean"
          },
          "daysFromCutoff": {
            "type": "integer"
          },
          "oldestAt": {
            "type": "string",
            "format": "date"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_financeAdvanced_2_0__register": {
        "type": "object",
        "properties": {
          "balanceBrl": {
            "type": "number"
          },
          "count": {
            "type": "integer"
          },
          "firstAt": {
            "type": "string",
            "format": "date"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset_person_financeAdvanced_2_0__entry"
            }
          },
          "lastAt": {
            "type": "string",
            "format": "date"
          },
          "truncated": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_financeAdvanced_2_0__registration": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string"
          },
          "statusAt": {
            "type": "string",
            "format": "date"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_financeAdvanced_2_0__result": {
        "type": "object",
        "properties": {
          "evidence": {
            "type": "object"
          },
          "fired": {
            "type": "boolean"
          },
          "magnitude": {
            "type": "number"
          },
          "notApplicable": {
            "type": "boolean"
          },
          "reason": {
            "type": "string"
          },
          "rule": {
            "type": "string",
            "enum": [
              "FINANCE_ADVANCED_PERSON_BANKRUPTCY",
              "FINANCE_ADVANCED_PERSON_DISHONORED_CHECK",
              "FINANCE_ADVANCED_PERSON_HAS_OVERDUE_DEBTS",
              "FINANCE_ADVANCED_PERSON_HAS_PROTESTS",
              "FINANCE_ADVANCED_PERSON_HISTORY_AT_WINDOW_EDGE",
              "FINANCE_ADVANCED_PERSON_JUDGEMENT_FILINGS"
            ]
          }
        },
        "required": ["fired", "rule"],
        "additionalProperties": false
      },
      "Dataset_person_financeAdvanced_2_0__totals": {
        "type": "object",
        "properties": {
          "balanceBrl": {
            "type": "number"
          },
          "count": {
            "type": "integer"
          },
          "lastAt": {
            "type": "string",
            "format": "date"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_lawsuits_1_0": {
        "type": "object",
        "properties": {
          "dataset": {
            "const": "person-lawsuits-1.0"
          },
          "lawsuits": {
            "$ref": "#/components/schemas/Dataset_person_lawsuits_1_0__facts"
          },
          "module": {
            "const": "lawsuits"
          },
          "rules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset_person_lawsuits_1_0__result"
            }
          }
        },
        "required": ["dataset", "module"],
        "additionalProperties": false
      },
      "Dataset_person_lawsuits_1_0__bucket": {
        "type": "object",
        "properties": {
          "lawsuitCount": {
            "type": "integer"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_lawsuits_1_0__counters": {
        "type": "object",
        "properties": {
          "administrative": {
            "type": "integer"
          },
          "asActive": {
            "type": "integer"
          },
          "asPassive": {
            "type": "integer"
          },
          "bankruptcy": {
            "type": "integer"
          },
          "civil": {
            "type": "integer"
          },
          "criminal": {
            "type": "integer"
          },
          "drugs": {
            "type": "integer"
          },
          "labor": {
            "type": "integer"
          },
          "sexualOffense": {
            "type": "integer"
          },
          "taxExecution": {
            "type": "integer"
          },
          "total": {
            "type": "integer"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_lawsuits_1_0__coverage": {
        "type": "object",
        "properties": {
          "discardedAsNonDisputant": {
            "type": "integer"
          },
          "distinctCases": {
            "type": "integer"
          },
          "inferenceRate": {
            "type": "number"
          },
          "total": {
            "type": "integer"
          },
          "truncated": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_lawsuits_1_0__dimension": {
        "type": "object",
        "properties": {
          "indicatorCount": {
            "type": "integer"
          },
          "lawsuitCount": {
            "type": "integer"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_lawsuits_1_0__facts": {
        "type": "object",
        "properties": {
          "counters": {
            "$ref": "#/components/schemas/Dataset_person_lawsuits_1_0__counters"
          },
          "coverage": {
            "$ref": "#/components/schemas/Dataset_person_lawsuits_1_0__coverage"
          },
          "dimensions": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/Dataset_person_lawsuits_1_0__dimension"
            }
          },
          "indicators": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/Dataset_person_lawsuits_1_0__indicator"
            }
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Lawsuit_NormalizedLawsuit"
            }
          },
          "relationships": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/Dataset_person_lawsuits_1_0__bucket"
            }
          },
          "windows": {
            "$ref": "#/components/schemas/Dataset_person_lawsuits_1_0__windows"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_lawsuits_1_0__indicator": {
        "type": "object",
        "properties": {
          "activeRatio": {
            "type": "number"
          },
          "count": {
            "type": "integer"
          },
          "countByStage": {
            "type": "object",
            "additionalProperties": {
              "type": "integer"
            }
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_lawsuits_1_0__result": {
        "type": "object",
        "properties": {
          "evidence": {
            "type": "object"
          },
          "fired": {
            "type": "boolean"
          },
          "magnitude": {
            "type": "number"
          },
          "notApplicable": {
            "type": "boolean"
          },
          "reason": {
            "type": "string"
          },
          "rule": {
            "type": "string",
            "enum": [
              "LAWSUITS_PERSON_HISTORY_INFERRED",
              "LAWSUITS_PERSON_ONLY_AS_NON_DISPUTANT",
              "LAWSUITS_PERSON_TRUNCATED"
            ]
          }
        },
        "required": ["fired", "rule"],
        "additionalProperties": false
      },
      "Dataset_person_lawsuits_1_0__windows": {
        "type": "object",
        "properties": {
          "last180Days": {
            "type": "integer"
          },
          "last30Days": {
            "type": "integer"
          },
          "last365Days": {
            "type": "integer"
          },
          "last90Days": {
            "type": "integer"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_lawsuits_1_0__facts_summary": {
        "type": "object",
        "properties": {
          "counters": {
            "$ref": "#/components/schemas/Dataset_person_lawsuits_1_0__counters"
          },
          "coverage": {
            "$ref": "#/components/schemas/Dataset_person_lawsuits_1_0__coverage"
          },
          "dimensions": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/Dataset_person_lawsuits_1_0__dimension"
            }
          },
          "indicators": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/Dataset_person_lawsuits_1_0__indicator"
            }
          },
          "relationships": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/Dataset_person_lawsuits_1_0__bucket"
            }
          },
          "windows": {
            "$ref": "#/components/schemas/Dataset_person_lawsuits_1_0__windows"
          }
        }
      },
      "Dataset_person_lawsuits_2_0": {
        "type": "object",
        "properties": {
          "dataset": {
            "const": "person-lawsuits-2.0"
          },
          "lawsuits": {
            "$ref": "#/components/schemas/Dataset_person_lawsuits_2_0__facts"
          },
          "module": {
            "const": "lawsuits"
          },
          "rules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset_person_lawsuits_2_0__result"
            }
          }
        },
        "required": ["dataset", "module"],
        "additionalProperties": false
      },
      "Dataset_person_lawsuits_2_0__bucket": {
        "type": "object",
        "properties": {
          "lawsuitCount": {
            "type": "integer"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_lawsuits_2_0__counters": {
        "type": "object",
        "properties": {
          "administrative": {
            "type": "integer"
          },
          "asActive": {
            "type": "integer"
          },
          "asPassive": {
            "type": "integer"
          },
          "bankruptcy": {
            "type": "integer"
          },
          "civil": {
            "type": "integer"
          },
          "criminal": {
            "type": "integer"
          },
          "drugs": {
            "type": "integer"
          },
          "labor": {
            "type": "integer"
          },
          "sexualOffense": {
            "type": "integer"
          },
          "taxExecution": {
            "type": "integer"
          },
          "total": {
            "type": "integer"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_lawsuits_2_0__coverage": {
        "type": "object",
        "properties": {
          "discardedAsNonDisputant": {
            "type": "integer"
          },
          "distinctCases": {
            "type": "integer"
          },
          "inferenceRate": {
            "type": "number"
          },
          "total": {
            "type": "integer"
          },
          "truncated": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_lawsuits_2_0__dimension": {
        "type": "object",
        "properties": {
          "indicatorCount": {
            "type": "integer"
          },
          "lawsuitCount": {
            "type": "integer"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_lawsuits_2_0__facts": {
        "type": "object",
        "properties": {
          "counters": {
            "$ref": "#/components/schemas/Dataset_person_lawsuits_2_0__counters"
          },
          "coverage": {
            "$ref": "#/components/schemas/Dataset_person_lawsuits_2_0__coverage"
          },
          "dimensions": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/Dataset_person_lawsuits_2_0__dimension"
            }
          },
          "indicators": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/Dataset_person_lawsuits_2_0__indicator"
            }
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Lawsuit_NormalizedLawsuit"
            }
          },
          "relationships": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/Dataset_person_lawsuits_2_0__bucket"
            }
          },
          "windows": {
            "$ref": "#/components/schemas/Dataset_person_lawsuits_2_0__windows"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_lawsuits_2_0__indicator": {
        "type": "object",
        "properties": {
          "activeRatio": {
            "type": "number"
          },
          "count": {
            "type": "integer"
          },
          "countByStage": {
            "type": "object",
            "additionalProperties": {
              "type": "integer"
            }
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_lawsuits_2_0__result": {
        "type": "object",
        "properties": {
          "evidence": {
            "type": "object"
          },
          "fired": {
            "type": "boolean"
          },
          "magnitude": {
            "type": "number"
          },
          "notApplicable": {
            "type": "boolean"
          },
          "reason": {
            "type": "string"
          },
          "rule": {
            "type": "string",
            "enum": [
              "LAWSUITS_PERSON_HISTORY_INFERRED",
              "LAWSUITS_PERSON_ONLY_AS_NON_DISPUTANT",
              "LAWSUITS_PERSON_TRUNCATED"
            ]
          }
        },
        "required": ["fired", "rule"],
        "additionalProperties": false
      },
      "Dataset_person_lawsuits_2_0__windows": {
        "type": "object",
        "properties": {
          "last180Days": {
            "type": "integer"
          },
          "last30Days": {
            "type": "integer"
          },
          "last365Days": {
            "type": "integer"
          },
          "last90Days": {
            "type": "integer"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_lawsuits_2_0__facts_summary": {
        "type": "object",
        "properties": {
          "counters": {
            "$ref": "#/components/schemas/Dataset_person_lawsuits_2_0__counters"
          },
          "coverage": {
            "$ref": "#/components/schemas/Dataset_person_lawsuits_2_0__coverage"
          },
          "dimensions": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/Dataset_person_lawsuits_2_0__dimension"
            }
          },
          "indicators": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/Dataset_person_lawsuits_2_0__indicator"
            }
          },
          "relationships": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/Dataset_person_lawsuits_2_0__bucket"
            }
          },
          "windows": {
            "$ref": "#/components/schemas/Dataset_person_lawsuits_2_0__windows"
          }
        }
      },
      "Dataset_person_profile_1_0": {
        "type": "object",
        "properties": {
          "dataset": {
            "const": "person-profile-1.0"
          },
          "module": {
            "const": "profile"
          },
          "profile": {
            "$ref": "#/components/schemas/Dataset_person_profile_1_0__facts"
          },
          "rules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset_person_profile_1_0__result"
            }
          }
        },
        "required": ["dataset", "module"],
        "additionalProperties": false
      },
      "Dataset_person_profile_1_0__alternativeIDs": {
        "type": "object",
        "properties": {
          "socialSecurity": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_profile_1_0__facts": {
        "type": "object",
        "properties": {
          "alternativeIds": {
            "$ref": "#/components/schemas/Dataset_person_profile_1_0__alternativeIDs"
          },
          "birthDate": {
            "type": "string",
            "format": "date"
          },
          "exists": {
            "type": "boolean"
          },
          "gender": {
            "type": "string"
          },
          "isDeceased": {
            "type": "boolean"
          },
          "name": {
            "type": "string"
          },
          "nationality": {
            "type": "string"
          },
          "parents": {
            "$ref": "#/components/schemas/Dataset_person_profile_1_0__parents"
          },
          "record": {
            "$ref": "#/components/schemas/Dataset_person_profile_1_0__record"
          },
          "taxId": {
            "$ref": "#/components/schemas/Dataset_person_profile_1_0__taxID"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_profile_1_0__parents": {
        "type": "object",
        "properties": {
          "father": {
            "type": "string"
          },
          "mother": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_profile_1_0__record": {
        "type": "object",
        "properties": {
          "createdAt": {
            "type": "string",
            "format": "date"
          },
          "updatedAt": {
            "type": "string",
            "format": "date"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_profile_1_0__result": {
        "type": "object",
        "properties": {
          "evidence": {
            "type": "object"
          },
          "fired": {
            "type": "boolean"
          },
          "magnitude": {
            "type": "number"
          },
          "notApplicable": {
            "type": "boolean"
          },
          "reason": {
            "type": "string"
          },
          "rule": {
            "type": "string",
            "enum": [
              "PROFILE_PERSON_DECEASED",
              "PROFILE_PERSON_IRREGULAR_STATUS"
            ]
          }
        },
        "required": ["fired", "rule"],
        "additionalProperties": false
      },
      "Dataset_person_profile_1_0__taxID": {
        "type": "object",
        "properties": {
          "country": {
            "type": "string"
          },
          "fiscalRegion": {
            "type": "string"
          },
          "number": {
            "type": "string"
          },
          "origin": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "statusDate": {
            "type": "string",
            "format": "date"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_profile_2_0": {
        "type": "object",
        "properties": {
          "dataset": {
            "const": "person-profile-2.0"
          },
          "module": {
            "const": "profile"
          },
          "profile": {
            "$ref": "#/components/schemas/Dataset_person_profile_2_0__facts"
          },
          "rules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset_person_profile_2_0__result"
            }
          }
        },
        "required": ["dataset", "module"],
        "additionalProperties": false
      },
      "Dataset_person_profile_2_0__address": {
        "type": "object",
        "properties": {
          "active": {
            "type": "boolean"
          },
          "city": {
            "type": "string"
          },
          "complement": {
            "type": "string"
          },
          "confirmations": {
            "type": "integer"
          },
          "country": {
            "type": "string"
          },
          "lastSeenAt": {
            "type": "string",
            "format": "date"
          },
          "main": {
            "type": "boolean"
          },
          "neighborhood": {
            "type": "string"
          },
          "number": {
            "type": "string"
          },
          "preferred": {
            "type": "boolean"
          },
          "state": {
            "type": "string"
          },
          "street": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "zipCode": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_profile_2_0__addressBlock": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset_person_profile_2_0__address"
            }
          },
          "newestPassageAt": {
            "type": "string",
            "format": "date"
          },
          "oldestPassageAt": {
            "type": "string",
            "format": "date"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_profile_2_0__alternativeIDs": {
        "type": "object",
        "properties": {
          "socialSecurity": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_profile_2_0__contacts": {
        "type": "object",
        "properties": {
          "addresses": {
            "$ref": "#/components/schemas/Dataset_person_profile_2_0__addressBlock"
          },
          "emails": {
            "$ref": "#/components/schemas/Dataset_person_profile_2_0__emailBlock"
          },
          "phones": {
            "$ref": "#/components/schemas/Dataset_person_profile_2_0__phoneBlock"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_profile_2_0__email": {
        "type": "object",
        "properties": {
          "active": {
            "type": "boolean"
          },
          "address": {
            "type": "string"
          },
          "confirmations": {
            "type": "integer"
          },
          "domain": {
            "type": "string"
          },
          "lastSeenAt": {
            "type": "string",
            "format": "date"
          },
          "main": {
            "type": "boolean"
          },
          "preferred": {
            "type": "boolean"
          },
          "type": {
            "type": "string"
          },
          "validationStatus": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_profile_2_0__emailBlock": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset_person_profile_2_0__email"
            }
          },
          "newestPassageAt": {
            "type": "string",
            "format": "date"
          },
          "oldestPassageAt": {
            "type": "string",
            "format": "date"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_profile_2_0__facts": {
        "type": "object",
        "properties": {
          "alternativeIds": {
            "$ref": "#/components/schemas/Dataset_person_profile_2_0__alternativeIDs"
          },
          "birthDate": {
            "type": "string",
            "format": "date"
          },
          "contacts": {
            "$ref": "#/components/schemas/Dataset_person_profile_2_0__contacts"
          },
          "exists": {
            "type": "boolean"
          },
          "gender": {
            "type": "string"
          },
          "isDeceased": {
            "type": "boolean"
          },
          "isForeign": {
            "type": "boolean"
          },
          "name": {
            "type": "string"
          },
          "nationality": {
            "type": "string"
          },
          "origin": {
            "type": "string"
          },
          "parents": {
            "$ref": "#/components/schemas/Dataset_person_profile_2_0__parents"
          },
          "politicallyExposed": {
            "type": "boolean"
          },
          "record": {
            "$ref": "#/components/schemas/Dataset_person_profile_2_0__record"
          },
          "taxId": {
            "$ref": "#/components/schemas/Dataset_person_profile_2_0__taxID"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_profile_2_0__parents": {
        "type": "object",
        "properties": {
          "father": {
            "type": "string"
          },
          "mother": {
            "type": "string"
          },
          "motherConfirmed": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_profile_2_0__phone": {
        "type": "object",
        "properties": {
          "active": {
            "type": "boolean"
          },
          "areaCode": {
            "type": "string"
          },
          "carrier": {
            "type": "string"
          },
          "confirmations": {
            "type": "integer"
          },
          "countryCode": {
            "type": "string"
          },
          "doNotCall": {
            "type": "boolean"
          },
          "lastSeenAt": {
            "type": "string",
            "format": "date"
          },
          "main": {
            "type": "boolean"
          },
          "number": {
            "type": "string"
          },
          "planType": {
            "type": "string"
          },
          "preferred": {
            "type": "boolean"
          },
          "type": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_profile_2_0__phoneBlock": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset_person_profile_2_0__phone"
            }
          },
          "newestPassageAt": {
            "type": "string",
            "format": "date"
          },
          "oldestPassageAt": {
            "type": "string",
            "format": "date"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_profile_2_0__record": {
        "type": "object",
        "properties": {
          "createdAt": {
            "type": "string",
            "format": "date"
          },
          "updatedAt": {
            "type": "string",
            "format": "date"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_profile_2_0__result": {
        "type": "object",
        "properties": {
          "evidence": {
            "type": "object"
          },
          "fired": {
            "type": "boolean"
          },
          "magnitude": {
            "type": "number"
          },
          "notApplicable": {
            "type": "boolean"
          },
          "reason": {
            "type": "string"
          },
          "rule": {
            "type": "string",
            "enum": [
              "PROFILE_PERSON_DECEASED",
              "PROFILE_PERSON_IRREGULAR_STATUS"
            ]
          }
        },
        "required": ["fired", "rule"],
        "additionalProperties": false
      },
      "Dataset_person_profile_2_0__taxID": {
        "type": "object",
        "properties": {
          "country": {
            "type": "string"
          },
          "fiscalRegion": {
            "type": "string"
          },
          "number": {
            "type": "string"
          },
          "origin": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "statusDate": {
            "type": "string",
            "format": "date"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_related_1_0": {
        "type": "object",
        "properties": {
          "dataset": {
            "const": "person-related-1.0"
          },
          "module": {
            "const": "related"
          },
          "related": {
            "$ref": "#/components/schemas/Dataset_person_related_1_0__facts"
          },
          "rules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset_person_related_1_0__result"
            }
          }
        },
        "required": ["dataset", "module"],
        "additionalProperties": false
      },
      "Dataset_person_related_1_0__businessSide": {
        "type": "object",
        "properties": {
          "truncated": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_related_1_0__company": {
        "type": "object",
        "properties": {
          "active": {
            "type": "boolean"
          },
          "document": {
            "type": "string"
          },
          "endDate": {
            "type": "string",
            "format": "date"
          },
          "level": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "role": {
            "type": "string"
          },
          "startDate": {
            "type": "string",
            "format": "date"
          },
          "type": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_related_1_0__facts": {
        "type": "object",
        "properties": {
          "business": {
            "$ref": "#/components/schemas/Dataset_person_related_1_0__businessSide"
          },
          "companies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset_person_related_1_0__company"
            }
          },
          "people": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset_person_related_1_0__person"
            }
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_related_1_0__person": {
        "type": "object",
        "properties": {
          "active": {
            "type": "boolean"
          },
          "document": {
            "type": "string"
          },
          "endDate": {
            "type": "string",
            "format": "date"
          },
          "level": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "startDate": {
            "type": "string",
            "format": "date"
          },
          "type": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_related_1_0__result": {
        "type": "object",
        "properties": {
          "evidence": {
            "type": "object"
          },
          "fired": {
            "type": "boolean"
          },
          "magnitude": {
            "type": "number"
          },
          "notApplicable": {
            "type": "boolean"
          },
          "reason": {
            "type": "string"
          },
          "rule": {
            "type": "string",
            "enum": [
              "RELATED_PERSON_BUSINESS_BANKRUPTCY",
              "RELATED_PERSON_GHOST_PROFILE"
            ]
          }
        },
        "required": ["fired", "rule"],
        "additionalProperties": false
      },
      "Dataset_person_related_1_1": {
        "type": "object",
        "properties": {
          "dataset": {
            "const": "person-related-1.1"
          },
          "module": {
            "const": "related"
          },
          "related": {
            "$ref": "#/components/schemas/Dataset_person_related_1_1__facts"
          },
          "rules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset_person_related_1_1__result"
            }
          }
        },
        "required": ["dataset", "module"],
        "additionalProperties": false
      },
      "Dataset_person_related_1_1__company": {
        "type": "object",
        "properties": {
          "active": {
            "type": "boolean"
          },
          "activityCodes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "document": {
            "type": "string"
          },
          "endDate": {
            "type": "string",
            "format": "date"
          },
          "name": {
            "type": "string"
          },
          "recordAge": {
            "type": "string"
          },
          "startDate": {
            "type": "string",
            "format": "date"
          },
          "type": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_related_1_1__count": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_related_1_1__facts": {
        "type": "object",
        "properties": {
          "companies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset_person_related_1_1__company"
            }
          },
          "participations": {
            "$ref": "#/components/schemas/Dataset_person_related_1_1__count"
          },
          "people": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset_person_related_1_1__person"
            }
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_related_1_1__person": {
        "type": "object",
        "properties": {
          "deceased": {
            "type": "boolean"
          },
          "document": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_related_1_1__result": {
        "type": "object",
        "properties": {
          "evidence": {
            "type": "object"
          },
          "fired": {
            "type": "boolean"
          },
          "magnitude": {
            "type": "number"
          },
          "notApplicable": {
            "type": "boolean"
          },
          "reason": {
            "type": "string"
          },
          "rule": {
            "type": "string",
            "enum": [
              "RELATED_PERSON_BUSINESS_BANKRUPTCY",
              "RELATED_PERSON_GHOST_PROFILE"
            ]
          }
        },
        "required": ["fired", "rule"],
        "additionalProperties": false
      },
      "Dataset_person_related_2_0": {
        "type": "object",
        "properties": {
          "dataset": {
            "const": "person-related-2.0"
          },
          "module": {
            "const": "related"
          },
          "related": {
            "$ref": "#/components/schemas/Dataset_person_related_2_0__facts"
          },
          "rules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset_person_related_2_0__result"
            }
          }
        },
        "required": ["dataset", "module"],
        "additionalProperties": false
      },
      "Dataset_person_related_2_0__businessSide": {
        "type": "object",
        "properties": {
          "truncated": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_related_2_0__company": {
        "type": "object",
        "properties": {
          "active": {
            "type": "boolean"
          },
          "basis": {
            "type": "string"
          },
          "document": {
            "type": "string"
          },
          "endDate": {
            "type": "string",
            "format": "date"
          },
          "level": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "role": {
            "type": "string"
          },
          "startDate": {
            "type": "string",
            "format": "date"
          },
          "type": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_related_2_0__facts": {
        "type": "object",
        "properties": {
          "business": {
            "$ref": "#/components/schemas/Dataset_person_related_2_0__businessSide"
          },
          "companies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset_person_related_2_0__company"
            }
          },
          "people": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset_person_related_2_0__person"
            }
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_related_2_0__person": {
        "type": "object",
        "properties": {
          "active": {
            "type": "boolean"
          },
          "basis": {
            "type": "string"
          },
          "deceased": {
            "type": "boolean"
          },
          "document": {
            "type": "string"
          },
          "endDate": {
            "type": "string",
            "format": "date"
          },
          "level": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "startDate": {
            "type": "string",
            "format": "date"
          },
          "type": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Dataset_person_related_2_0__result": {
        "type": "object",
        "properties": {
          "evidence": {
            "type": "object"
          },
          "fired": {
            "type": "boolean"
          },
          "magnitude": {
            "type": "number"
          },
          "notApplicable": {
            "type": "boolean"
          },
          "reason": {
            "type": "string"
          },
          "rule": {
            "type": "string",
            "enum": [
              "RELATED_PERSON_BUSINESS_BANKRUPTCY",
              "RELATED_PERSON_GHOST_PROFILE"
            ]
          }
        },
        "required": ["fired", "rule"],
        "additionalProperties": false
      },
      "Dataset_company_finance_1_0": {
        "type": "object",
        "properties": {
          "dataset": {
            "const": "company-finance-1.0"
          },
          "finance": {
            "$ref": "#/components/schemas/Dataset_company_finance_1_0__facts"
          },
          "module": {
            "const": "finance"
          },
          "rules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset_company_finance_1_0__result"
            }
          }
        },
        "required": ["dataset", "module"],
        "additionalProperties": false
      },
      "Dataset_company_finance_1_0__activity": {
        "type": "object",
        "properties": {
          "average": {
            "type": "number"
          },
          "level": {
            "type": "number"
          },
          "max": {
            "type": "number"
          },
          "min": {
            "type": "number"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_finance_1_0__capital": {
        "type": "object",
        "properties": {
          "everChanged": {
            "type": "boolean"
          },
          "value": {
            "type": "number"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_finance_1_0__counted": {
        "type": "object",
        "properties": {
          "avg1y": {
            "type": "integer"
          },
          "avg3y": {
            "type": "integer"
          },
          "avg5y": {
            "type": "integer"
          },
          "count": {
            "type": "integer"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_finance_1_0__debts": {
        "type": "object",
        "properties": {
          "consecutiveMonths": {
            "type": "integer"
          },
          "current": {
            "type": "boolean"
          },
          "firstAt": {
            "type": "string",
            "format": "date"
          },
          "last180Days": {
            "$ref": "#/components/schemas/Dataset_company_finance_1_0__window"
          },
          "last30Days": {
            "$ref": "#/components/schemas/Dataset_company_finance_1_0__window"
          },
          "last365Days": {
            "$ref": "#/components/schemas/Dataset_company_finance_1_0__window"
          },
          "last90Days": {
            "$ref": "#/components/schemas/Dataset_company_finance_1_0__window"
          },
          "lastAt": {
            "type": "string",
            "format": "date"
          },
          "maxConsecutiveMonths": {
            "type": "integer"
          },
          "months": {
            "type": "integer"
          },
          "occurrences": {
            "type": "integer"
          },
          "origins": {
            "type": "integer"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_finance_1_0__facts": {
        "type": "object",
        "properties": {
          "activity": {
            "$ref": "#/components/schemas/Dataset_company_finance_1_0__activity"
          },
          "debts": {
            "$ref": "#/components/schemas/Dataset_company_finance_1_0__debts"
          },
          "history": {
            "$ref": "#/components/schemas/Dataset_company_finance_1_0__history"
          },
          "revenue": {
            "$ref": "#/components/schemas/Dataset_company_finance_1_0__revenue"
          },
          "structure": {
            "$ref": "#/components/schemas/Dataset_company_finance_1_0__structure"
          },
          "workforce": {
            "$ref": "#/components/schemas/Dataset_company_finance_1_0__workforce"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_finance_1_0__history": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string",
            "format": "date"
          },
          "months": {
            "type": "integer"
          },
          "to": {
            "type": "string",
            "format": "date"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_finance_1_0__partners": {
        "type": "object",
        "properties": {
          "avg1y": {
            "type": "integer"
          },
          "avg3y": {
            "type": "integer"
          },
          "avg5y": {
            "type": "integer"
          },
          "count": {
            "type": "integer"
          },
          "everChanged": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_finance_1_0__result": {
        "type": "object",
        "properties": {
          "evidence": {
            "type": "object"
          },
          "fired": {
            "type": "boolean"
          },
          "magnitude": {
            "type": "number"
          },
          "notApplicable": {
            "type": "boolean"
          },
          "reason": {
            "type": "string"
          },
          "rule": {
            "type": "string",
            "enum": [
              "FINANCE_COMPANY_DEBTS_HISTORY",
              "FINANCE_COMPANY_REVENUE_INACTIVE",
              "FINANCE_COMPANY_REVENUE_UNKNOWN",
              "FINANCE_COMPANY_WORKFORCE_SHRANK"
            ]
          }
        },
        "required": ["fired", "rule"],
        "additionalProperties": false
      },
      "Dataset_company_finance_1_0__revenue": {
        "type": "object",
        "properties": {
          "band": {
            "type": "string"
          },
          "floorBRL": {
            "type": "number"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_finance_1_0__structure": {
        "type": "object",
        "properties": {
          "branches": {
            "$ref": "#/components/schemas/Dataset_company_finance_1_0__counted"
          },
          "capital": {
            "$ref": "#/components/schemas/Dataset_company_finance_1_0__capital"
          },
          "partners": {
            "$ref": "#/components/schemas/Dataset_company_finance_1_0__partners"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_finance_1_0__window": {
        "type": "object",
        "properties": {
          "occurrences": {
            "type": "integer"
          },
          "origins": {
            "type": "integer"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_finance_1_0__workforce": {
        "type": "object",
        "properties": {
          "avg1y": {
            "type": "integer"
          },
          "avg3y": {
            "type": "integer"
          },
          "avg5y": {
            "type": "integer"
          },
          "band": {
            "type": "string"
          },
          "count": {
            "type": "integer"
          },
          "max": {
            "type": "integer"
          },
          "min": {
            "type": "integer"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_financeAdvanced_2_0": {
        "type": "object",
        "properties": {
          "dataset": {
            "const": "company-financeAdvanced-2.0"
          },
          "financeAdvanced": {
            "$ref": "#/components/schemas/Dataset_company_financeAdvanced_2_0__facts"
          },
          "module": {
            "const": "financeAdvanced"
          },
          "rules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset_company_financeAdvanced_2_0__result"
            }
          }
        },
        "required": ["dataset", "module"],
        "additionalProperties": false
      },
      "Dataset_company_financeAdvanced_2_0__chequeRegister": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_financeAdvanced_2_0__entry": {
        "type": "object",
        "properties": {
          "amountBrl": {
            "type": "number"
          },
          "city": {
            "type": "string"
          },
          "contractId": {
            "type": "string"
          },
          "creditor": {
            "type": "string"
          },
          "disputed": {
            "type": "boolean"
          },
          "dueAt": {
            "type": "string",
            "format": "date"
          },
          "notaryOffice": {
            "type": "string"
          },
          "occurredAt": {
            "type": "string",
            "format": "date"
          },
          "recordedAt": {
            "type": "string",
            "format": "date"
          },
          "state": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_financeAdvanced_2_0__facts": {
        "type": "object",
        "properties": {
          "badChecks": {
            "$ref": "#/components/schemas/Dataset_company_financeAdvanced_2_0__chequeRegister"
          },
          "habitualBadChecks": {
            "$ref": "#/components/schemas/Dataset_company_financeAdvanced_2_0__totals"
          },
          "history": {
            "$ref": "#/components/schemas/Dataset_company_financeAdvanced_2_0__historyWindow"
          },
          "overdueDebts": {
            "$ref": "#/components/schemas/Dataset_company_financeAdvanced_2_0__register"
          },
          "protests": {
            "$ref": "#/components/schemas/Dataset_company_financeAdvanced_2_0__register"
          },
          "registration": {
            "$ref": "#/components/schemas/Dataset_company_financeAdvanced_2_0__registration"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_financeAdvanced_2_0__historyWindow": {
        "type": "object",
        "properties": {
          "atEdge": {
            "type": "boolean"
          },
          "daysFromCutoff": {
            "type": "integer"
          },
          "oldestAt": {
            "type": "string",
            "format": "date"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_financeAdvanced_2_0__register": {
        "type": "object",
        "properties": {
          "balanceBrl": {
            "type": "number"
          },
          "count": {
            "type": "integer"
          },
          "firstAt": {
            "type": "string",
            "format": "date"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset_company_financeAdvanced_2_0__entry"
            }
          },
          "lastAt": {
            "type": "string",
            "format": "date"
          },
          "truncated": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_financeAdvanced_2_0__registration": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string"
          },
          "statusAt": {
            "type": "string",
            "format": "date"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_financeAdvanced_2_0__result": {
        "type": "object",
        "properties": {
          "evidence": {
            "type": "object"
          },
          "fired": {
            "type": "boolean"
          },
          "magnitude": {
            "type": "number"
          },
          "notApplicable": {
            "type": "boolean"
          },
          "reason": {
            "type": "string"
          },
          "rule": {
            "type": "string",
            "enum": [
              "FINANCE_ADVANCED_COMPANY_DISHONORED_CHECK",
              "FINANCE_ADVANCED_COMPANY_HAS_OVERDUE_DEBTS",
              "FINANCE_ADVANCED_COMPANY_HAS_PROTESTS",
              "FINANCE_ADVANCED_COMPANY_HISTORY_AT_WINDOW_EDGE"
            ]
          }
        },
        "required": ["fired", "rule"],
        "additionalProperties": false
      },
      "Dataset_company_financeAdvanced_2_0__totals": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer"
          },
          "firstAt": {
            "type": "string",
            "format": "date"
          },
          "lastAt": {
            "type": "string",
            "format": "date"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_lawsuits_1_0": {
        "type": "object",
        "properties": {
          "dataset": {
            "const": "company-lawsuits-1.0"
          },
          "lawsuits": {
            "$ref": "#/components/schemas/Dataset_company_lawsuits_1_0__facts"
          },
          "module": {
            "const": "lawsuits"
          },
          "rules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset_company_lawsuits_1_0__result"
            }
          }
        },
        "required": ["dataset", "module"],
        "additionalProperties": false
      },
      "Dataset_company_lawsuits_1_0__bucket": {
        "type": "object",
        "properties": {
          "lawsuitCount": {
            "type": "integer"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_lawsuits_1_0__counters": {
        "type": "object",
        "properties": {
          "administrative": {
            "type": "integer"
          },
          "asActive": {
            "type": "integer"
          },
          "asPassive": {
            "type": "integer"
          },
          "bankruptcy": {
            "type": "integer"
          },
          "civil": {
            "type": "integer"
          },
          "criminal": {
            "type": "integer"
          },
          "drugs": {
            "type": "integer"
          },
          "labor": {
            "type": "integer"
          },
          "sexualOffense": {
            "type": "integer"
          },
          "taxExecution": {
            "type": "integer"
          },
          "total": {
            "type": "integer"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_lawsuits_1_0__coverage": {
        "type": "object",
        "properties": {
          "discardedAsNonDisputant": {
            "type": "integer"
          },
          "distinctCases": {
            "type": "integer"
          },
          "inferenceRate": {
            "type": "number"
          },
          "total": {
            "type": "integer"
          },
          "truncated": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_lawsuits_1_0__dimension": {
        "type": "object",
        "properties": {
          "indicatorCount": {
            "type": "integer"
          },
          "lawsuitCount": {
            "type": "integer"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_lawsuits_1_0__facts": {
        "type": "object",
        "properties": {
          "counters": {
            "$ref": "#/components/schemas/Dataset_company_lawsuits_1_0__counters"
          },
          "coverage": {
            "$ref": "#/components/schemas/Dataset_company_lawsuits_1_0__coverage"
          },
          "dimensions": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/Dataset_company_lawsuits_1_0__dimension"
            }
          },
          "indicators": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/Dataset_company_lawsuits_1_0__indicator"
            }
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Lawsuit_NormalizedLawsuit"
            }
          },
          "relationships": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/Dataset_company_lawsuits_1_0__bucket"
            }
          },
          "windows": {
            "$ref": "#/components/schemas/Dataset_company_lawsuits_1_0__windows"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_lawsuits_1_0__indicator": {
        "type": "object",
        "properties": {
          "activeRatio": {
            "type": "number"
          },
          "count": {
            "type": "integer"
          },
          "countByStage": {
            "type": "object",
            "additionalProperties": {
              "type": "integer"
            }
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_lawsuits_1_0__result": {
        "type": "object",
        "properties": {
          "evidence": {
            "type": "object"
          },
          "fired": {
            "type": "boolean"
          },
          "magnitude": {
            "type": "number"
          },
          "notApplicable": {
            "type": "boolean"
          },
          "reason": {
            "type": "string"
          },
          "rule": {
            "type": "string",
            "enum": [
              "LAWSUITS_COMPANY_HISTORY_INFERRED",
              "LAWSUITS_COMPANY_ONLY_AS_NON_DISPUTANT",
              "LAWSUITS_COMPANY_TRUNCATED"
            ]
          }
        },
        "required": ["fired", "rule"],
        "additionalProperties": false
      },
      "Dataset_company_lawsuits_1_0__windows": {
        "type": "object",
        "properties": {
          "last180Days": {
            "type": "integer"
          },
          "last30Days": {
            "type": "integer"
          },
          "last365Days": {
            "type": "integer"
          },
          "last90Days": {
            "type": "integer"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_lawsuits_1_0__facts_summary": {
        "type": "object",
        "properties": {
          "counters": {
            "$ref": "#/components/schemas/Dataset_company_lawsuits_1_0__counters"
          },
          "coverage": {
            "$ref": "#/components/schemas/Dataset_company_lawsuits_1_0__coverage"
          },
          "dimensions": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/Dataset_company_lawsuits_1_0__dimension"
            }
          },
          "indicators": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/Dataset_company_lawsuits_1_0__indicator"
            }
          },
          "relationships": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/Dataset_company_lawsuits_1_0__bucket"
            }
          },
          "windows": {
            "$ref": "#/components/schemas/Dataset_company_lawsuits_1_0__windows"
          }
        }
      },
      "Dataset_company_lawsuits_2_0": {
        "type": "object",
        "properties": {
          "dataset": {
            "const": "company-lawsuits-2.0"
          },
          "lawsuits": {
            "$ref": "#/components/schemas/Dataset_company_lawsuits_2_0__facts"
          },
          "module": {
            "const": "lawsuits"
          },
          "rules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset_company_lawsuits_2_0__result"
            }
          }
        },
        "required": ["dataset", "module"],
        "additionalProperties": false
      },
      "Dataset_company_lawsuits_2_0__bucket": {
        "type": "object",
        "properties": {
          "lawsuitCount": {
            "type": "integer"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_lawsuits_2_0__counters": {
        "type": "object",
        "properties": {
          "administrative": {
            "type": "integer"
          },
          "asActive": {
            "type": "integer"
          },
          "asPassive": {
            "type": "integer"
          },
          "bankruptcy": {
            "type": "integer"
          },
          "civil": {
            "type": "integer"
          },
          "criminal": {
            "type": "integer"
          },
          "drugs": {
            "type": "integer"
          },
          "labor": {
            "type": "integer"
          },
          "sexualOffense": {
            "type": "integer"
          },
          "taxExecution": {
            "type": "integer"
          },
          "total": {
            "type": "integer"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_lawsuits_2_0__coverage": {
        "type": "object",
        "properties": {
          "discardedAsNonDisputant": {
            "type": "integer"
          },
          "distinctCases": {
            "type": "integer"
          },
          "inferenceRate": {
            "type": "number"
          },
          "total": {
            "type": "integer"
          },
          "truncated": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_lawsuits_2_0__dimension": {
        "type": "object",
        "properties": {
          "indicatorCount": {
            "type": "integer"
          },
          "lawsuitCount": {
            "type": "integer"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_lawsuits_2_0__facts": {
        "type": "object",
        "properties": {
          "counters": {
            "$ref": "#/components/schemas/Dataset_company_lawsuits_2_0__counters"
          },
          "coverage": {
            "$ref": "#/components/schemas/Dataset_company_lawsuits_2_0__coverage"
          },
          "dimensions": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/Dataset_company_lawsuits_2_0__dimension"
            }
          },
          "indicators": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/Dataset_company_lawsuits_2_0__indicator"
            }
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Lawsuit_NormalizedLawsuit"
            }
          },
          "relationships": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/Dataset_company_lawsuits_2_0__bucket"
            }
          },
          "windows": {
            "$ref": "#/components/schemas/Dataset_company_lawsuits_2_0__windows"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_lawsuits_2_0__indicator": {
        "type": "object",
        "properties": {
          "activeRatio": {
            "type": "number"
          },
          "count": {
            "type": "integer"
          },
          "countByStage": {
            "type": "object",
            "additionalProperties": {
              "type": "integer"
            }
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_lawsuits_2_0__result": {
        "type": "object",
        "properties": {
          "evidence": {
            "type": "object"
          },
          "fired": {
            "type": "boolean"
          },
          "magnitude": {
            "type": "number"
          },
          "notApplicable": {
            "type": "boolean"
          },
          "reason": {
            "type": "string"
          },
          "rule": {
            "type": "string",
            "enum": [
              "LAWSUITS_COMPANY_HISTORY_INFERRED",
              "LAWSUITS_COMPANY_ONLY_AS_NON_DISPUTANT",
              "LAWSUITS_COMPANY_TRUNCATED"
            ]
          }
        },
        "required": ["fired", "rule"],
        "additionalProperties": false
      },
      "Dataset_company_lawsuits_2_0__windows": {
        "type": "object",
        "properties": {
          "last180Days": {
            "type": "integer"
          },
          "last30Days": {
            "type": "integer"
          },
          "last365Days": {
            "type": "integer"
          },
          "last90Days": {
            "type": "integer"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_lawsuits_2_0__facts_summary": {
        "type": "object",
        "properties": {
          "counters": {
            "$ref": "#/components/schemas/Dataset_company_lawsuits_2_0__counters"
          },
          "coverage": {
            "$ref": "#/components/schemas/Dataset_company_lawsuits_2_0__coverage"
          },
          "dimensions": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/Dataset_company_lawsuits_2_0__dimension"
            }
          },
          "indicators": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/Dataset_company_lawsuits_2_0__indicator"
            }
          },
          "relationships": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/Dataset_company_lawsuits_2_0__bucket"
            }
          },
          "windows": {
            "$ref": "#/components/schemas/Dataset_company_lawsuits_2_0__windows"
          }
        }
      },
      "Dataset_company_ownersLawsuits_1_0": {
        "type": "object",
        "properties": {
          "dataset": {
            "const": "company-ownersLawsuits-1.0"
          },
          "module": {
            "const": "ownersLawsuits"
          },
          "ownersLawsuits": {
            "$ref": "#/components/schemas/Dataset_company_ownersLawsuits_1_0__facts"
          },
          "rules": {
            "type": "array",
            "maxItems": 0,
            "items": {
              "$ref": "#/components/schemas/Dataset_company_ownersLawsuits_1_0__result"
            }
          }
        },
        "required": ["dataset", "module"],
        "additionalProperties": false
      },
      "Dataset_company_ownersLawsuits_1_0__bucket": {
        "type": "object",
        "properties": {
          "lawsuitCount": {
            "type": "integer"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_ownersLawsuits_1_0__counters": {
        "type": "object",
        "properties": {
          "administrative": {
            "type": "integer"
          },
          "asActive": {
            "type": "integer"
          },
          "asPassive": {
            "type": "integer"
          },
          "bankruptcy": {
            "type": "integer"
          },
          "civil": {
            "type": "integer"
          },
          "criminal": {
            "type": "integer"
          },
          "drugs": {
            "type": "integer"
          },
          "labor": {
            "type": "integer"
          },
          "sexualOffense": {
            "type": "integer"
          },
          "taxExecution": {
            "type": "integer"
          },
          "total": {
            "type": "integer"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_ownersLawsuits_1_0__coverage": {
        "type": "object",
        "properties": {
          "discardedAsNonDisputant": {
            "type": "integer"
          },
          "distinctCases": {
            "type": "integer"
          },
          "inferenceRate": {
            "type": "number"
          },
          "total": {
            "type": "integer"
          },
          "truncated": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_ownersLawsuits_1_0__dimension": {
        "type": "object",
        "properties": {
          "indicatorCount": {
            "type": "integer"
          },
          "lawsuitCount": {
            "type": "integer"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_ownersLawsuits_1_0__facts": {
        "type": "object",
        "properties": {
          "owners": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset_company_ownersLawsuits_1_0__owner"
            }
          },
          "ownersWithoutLawsuits": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset_company_ownersLawsuits_1_0__ownerRef"
            }
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_ownersLawsuits_1_0__indicator": {
        "type": "object",
        "properties": {
          "activeRatio": {
            "type": "number"
          },
          "count": {
            "type": "integer"
          },
          "countByStage": {
            "type": "object",
            "additionalProperties": {
              "type": "integer"
            }
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_ownersLawsuits_1_0__owner": {
        "type": "object",
        "properties": {
          "active": {
            "type": "boolean"
          },
          "counters": {
            "$ref": "#/components/schemas/Dataset_company_ownersLawsuits_1_0__counters"
          },
          "coverage": {
            "$ref": "#/components/schemas/Dataset_company_ownersLawsuits_1_0__coverage"
          },
          "dimensions": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/Dataset_company_ownersLawsuits_1_0__dimension"
            }
          },
          "document": {
            "type": "string"
          },
          "entityType": {
            "type": "string"
          },
          "indicators": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/Dataset_company_ownersLawsuits_1_0__indicator"
            }
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Lawsuit_NormalizedLawsuit"
            }
          },
          "relationships": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/Dataset_company_ownersLawsuits_1_0__bucket"
            }
          },
          "source": {
            "$ref": "#/components/schemas/Dataset_company_ownersLawsuits_1_0__ownerSource"
          },
          "windows": {
            "$ref": "#/components/schemas/Dataset_company_ownersLawsuits_1_0__windows"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_ownersLawsuits_1_0__ownerRef": {
        "type": "object",
        "properties": {
          "active": {
            "type": "boolean"
          },
          "document": {
            "type": "string"
          },
          "entityType": {
            "type": "string"
          },
          "source": {
            "$ref": "#/components/schemas/Dataset_company_ownersLawsuits_1_0__ownerSource"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_ownersLawsuits_1_0__ownerSource": {
        "type": "object",
        "properties": {
          "declared": {
            "type": "integer"
          },
          "returned": {
            "type": "integer"
          },
          "truncated": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_ownersLawsuits_1_0__result": {
        "type": "object",
        "properties": {
          "evidence": {
            "type": "object"
          },
          "fired": {
            "type": "boolean"
          },
          "magnitude": {
            "type": "number"
          },
          "notApplicable": {
            "type": "boolean"
          },
          "reason": {
            "type": "string"
          },
          "rule": {
            "type": "string"
          }
        },
        "required": ["fired", "rule"],
        "additionalProperties": false
      },
      "Dataset_company_ownersLawsuits_1_0__windows": {
        "type": "object",
        "properties": {
          "last180Days": {
            "type": "integer"
          },
          "last30Days": {
            "type": "integer"
          },
          "last365Days": {
            "type": "integer"
          },
          "last90Days": {
            "type": "integer"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_profile_1_0": {
        "type": "object",
        "properties": {
          "dataset": {
            "const": "company-profile-1.0"
          },
          "module": {
            "const": "profile"
          },
          "profile": {
            "$ref": "#/components/schemas/Dataset_company_profile_1_0__facts"
          },
          "rules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset_company_profile_1_0__result"
            }
          }
        },
        "required": ["dataset", "module"],
        "additionalProperties": false
      },
      "Dataset_company_profile_1_0__activity": {
        "type": "object",
        "properties": {
          "activity": {
            "type": "string"
          },
          "class": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "division": {
            "type": "string"
          },
          "group": {
            "type": "string"
          },
          "isMain": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_profile_1_0__aliases": {
        "type": "object",
        "properties": {
          "officialName": {
            "type": "string"
          },
          "tradeName": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_profile_1_0__capital": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string"
          },
          "value": {
            "type": "number"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_profile_1_0__facts": {
        "type": "object",
        "properties": {
          "activities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset_company_profile_1_0__activity"
            }
          },
          "aliases": {
            "$ref": "#/components/schemas/Dataset_company_profile_1_0__aliases"
          },
          "capital": {
            "$ref": "#/components/schemas/Dataset_company_profile_1_0__capital"
          },
          "exists": {
            "type": "boolean"
          },
          "foreignTrade": {
            "$ref": "#/components/schemas/Dataset_company_profile_1_0__foreignTrade"
          },
          "foundedAt": {
            "type": "string",
            "format": "date"
          },
          "headquarterState": {
            "type": "string"
          },
          "history": {
            "$ref": "#/components/schemas/Dataset_company_profile_1_0__history"
          },
          "isConglomerate": {
            "type": "boolean"
          },
          "isHeadquarter": {
            "type": "boolean"
          },
          "legalNature": {
            "$ref": "#/components/schemas/Dataset_company_profile_1_0__legalNature"
          },
          "officialName": {
            "type": "string"
          },
          "record": {
            "$ref": "#/components/schemas/Dataset_company_profile_1_0__record"
          },
          "registration": {
            "$ref": "#/components/schemas/Dataset_company_profile_1_0__registration"
          },
          "specialSituation": {
            "type": "string"
          },
          "taxId": {
            "$ref": "#/components/schemas/Dataset_company_profile_1_0__taxID"
          },
          "tradeName": {
            "type": "string"
          },
          "uniqueness": {
            "$ref": "#/components/schemas/Dataset_company_profile_1_0__uniqueness"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_profile_1_0__foreignTrade": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "lastUpdate": {
            "type": "string",
            "format": "date"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_profile_1_0__history": {
        "type": "object",
        "properties": {
          "taxRegime": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset_company_profile_1_0__historyEntry"
            }
          },
          "taxRegimeChanged": {
            "type": "boolean"
          },
          "tradeName": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset_company_profile_1_0__historyEntry"
            }
          },
          "tradeNameChanged": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_profile_1_0__historyEntry": {
        "type": "object",
        "properties": {
          "endDate": {
            "type": "string",
            "format": "date"
          },
          "startDate": {
            "type": "string",
            "format": "date"
          },
          "value": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_profile_1_0__legalNature": {
        "type": "object",
        "properties": {
          "activity": {
            "type": "string"
          },
          "code": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_profile_1_0__record": {
        "type": "object",
        "properties": {
          "createdAt": {
            "type": "string",
            "format": "date"
          },
          "updatedAt": {
            "type": "string",
            "format": "date"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_profile_1_0__registration": {
        "type": "object",
        "properties": {
          "headquartersCapital": {
            "type": "number"
          },
          "lastCaptureDate": {
            "type": "string",
            "format": "date"
          },
          "nire": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_profile_1_0__result": {
        "type": "object",
        "properties": {
          "evidence": {
            "type": "object"
          },
          "fired": {
            "type": "boolean"
          },
          "magnitude": {
            "type": "number"
          },
          "notApplicable": {
            "type": "boolean"
          },
          "reason": {
            "type": "string"
          },
          "rule": {
            "type": "string",
            "enum": [
              "PROFILE_COMPANY_BANKRUPTCY",
              "PROFILE_COMPANY_IRREGULAR_STATUS",
              "PROFILE_COMPANY_REGIME_MEI",
              "PROFILE_COMPANY_STATUS_CLOSED",
              "PROFILE_COMPANY_STATUS_INAPT"
            ]
          }
        },
        "required": ["fired", "rule"],
        "additionalProperties": false
      },
      "Dataset_company_profile_1_0__taxID": {
        "type": "object",
        "properties": {
          "companyType": {
            "type": "string"
          },
          "country": {
            "type": "string"
          },
          "number": {
            "type": "string"
          },
          "origin": {
            "type": "string"
          },
          "regime": {
            "type": "string"
          },
          "registrationDate": {
            "type": "string",
            "format": "date"
          },
          "simplesOptant": {
            "type": "boolean"
          },
          "status": {
            "type": "string"
          },
          "statusDate": {
            "type": "string",
            "format": "date"
          },
          "statusReason": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_profile_1_0__uniqueness": {
        "type": "object",
        "properties": {
          "name": {
            "type": "number"
          },
          "officialName": {
            "type": "number"
          },
          "tradeName": {
            "type": "number"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_related_1_0": {
        "type": "object",
        "properties": {
          "dataset": {
            "const": "company-related-1.0"
          },
          "module": {
            "const": "related"
          },
          "related": {
            "$ref": "#/components/schemas/Dataset_company_related_1_0__facts"
          },
          "rules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset_company_related_1_0__result"
            }
          }
        },
        "required": ["dataset", "module"],
        "additionalProperties": false
      },
      "Dataset_company_related_1_0__count": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_related_1_0__facts": {
        "type": "object",
        "properties": {
          "employees": {
            "$ref": "#/components/schemas/Dataset_company_related_1_0__count"
          },
          "foreign": {
            "$ref": "#/components/schemas/Dataset_company_related_1_0__count"
          },
          "indirect": {
            "$ref": "#/components/schemas/Dataset_company_related_1_0__count"
          },
          "isFamilyCompany": {
            "type": "boolean"
          },
          "isFamilyOperated": {
            "type": "boolean"
          },
          "lastOwnershipChangeAt": {
            "type": "string",
            "format": "date"
          },
          "oldestStartDate": {
            "type": "string",
            "format": "date"
          },
          "owned": {
            "$ref": "#/components/schemas/Dataset_company_related_1_0__count"
          },
          "owners": {
            "$ref": "#/components/schemas/Dataset_company_related_1_0__count"
          },
          "parties": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset_company_related_1_0__party"
            }
          },
          "truncated": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_related_1_0__party": {
        "type": "object",
        "properties": {
          "active": {
            "type": "boolean"
          },
          "country": {
            "type": "string"
          },
          "endDate": {
            "type": "string",
            "format": "date"
          },
          "level": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "role": {
            "type": "string"
          },
          "startDate": {
            "type": "string",
            "format": "date"
          },
          "taxId": {
            "type": "string"
          },
          "taxIdType": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "via": {
            "type": "string"
          },
          "viaRole": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_related_1_0__result": {
        "type": "object",
        "properties": {
          "evidence": {
            "type": "object"
          },
          "fired": {
            "type": "boolean"
          },
          "magnitude": {
            "type": "number"
          },
          "notApplicable": {
            "type": "boolean"
          },
          "reason": {
            "type": "string"
          },
          "rule": {
            "type": "string",
            "enum": [
              "RELATED_COMPANY_FOREIGN_OWNER",
              "RELATED_COMPANY_INDIRECT_CONTROL",
              "RELATED_COMPANY_OWNERSHIP_CHANGE"
            ]
          }
        },
        "required": ["fired", "rule"],
        "additionalProperties": false
      },
      "Dataset_company_related_2_0": {
        "type": "object",
        "properties": {
          "dataset": {
            "const": "company-related-2.0"
          },
          "module": {
            "const": "related"
          },
          "related": {
            "$ref": "#/components/schemas/Dataset_company_related_2_0__facts"
          },
          "rules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset_company_related_2_0__result"
            }
          }
        },
        "required": ["dataset", "module"],
        "additionalProperties": false
      },
      "Dataset_company_related_2_0__count": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_related_2_0__facts": {
        "type": "object",
        "properties": {
          "employees": {
            "$ref": "#/components/schemas/Dataset_company_related_2_0__count"
          },
          "foreign": {
            "$ref": "#/components/schemas/Dataset_company_related_2_0__count"
          },
          "group": {
            "$ref": "#/components/schemas/Dataset_company_related_2_0__group"
          },
          "indirect": {
            "$ref": "#/components/schemas/Dataset_company_related_2_0__count"
          },
          "isFamilyCompany": {
            "type": "boolean"
          },
          "isFamilyOperated": {
            "type": "boolean"
          },
          "lastOwnershipChangeAt": {
            "type": "string",
            "format": "date"
          },
          "oldestStartDate": {
            "type": "string",
            "format": "date"
          },
          "owned": {
            "$ref": "#/components/schemas/Dataset_company_related_2_0__count"
          },
          "owners": {
            "$ref": "#/components/schemas/Dataset_company_related_2_0__count"
          },
          "parties": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Dataset_company_related_2_0__party"
            }
          },
          "truncated": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_related_2_0__group": {
        "type": "object",
        "properties": {
          "active": {
            "type": "integer"
          },
          "branches": {
            "type": "integer"
          },
          "documents": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "headquarters": {
            "type": "integer"
          },
          "inactive": {
            "type": "integer"
          },
          "regimeDistribution": {
            "type": "object",
            "additionalProperties": {
              "type": "integer"
            }
          },
          "statusDistribution": {
            "type": "object",
            "additionalProperties": {
              "type": "integer"
            }
          },
          "truncated": {
            "type": "boolean"
          },
          "type": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_related_2_0__party": {
        "type": "object",
        "properties": {
          "active": {
            "type": "boolean"
          },
          "country": {
            "type": "string"
          },
          "endDate": {
            "type": "string",
            "format": "date"
          },
          "level": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "role": {
            "type": "string"
          },
          "startDate": {
            "type": "string",
            "format": "date"
          },
          "taxId": {
            "type": "string"
          },
          "taxIdType": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "via": {
            "type": "string"
          },
          "viaRole": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Dataset_company_related_2_0__result": {
        "type": "object",
        "properties": {
          "evidence": {
            "type": "object"
          },
          "fired": {
            "type": "boolean"
          },
          "magnitude": {
            "type": "number"
          },
          "notApplicable": {
            "type": "boolean"
          },
          "reason": {
            "type": "string"
          },
          "rule": {
            "type": "string",
            "enum": [
              "RELATED_COMPANY_FOREIGN_OWNER",
              "RELATED_COMPANY_GROUP_INAPT",
              "RELATED_COMPANY_INDIRECT_CONTROL",
              "RELATED_COMPANY_OWNERSHIP_CHANGE"
            ]
          }
        },
        "required": ["fired", "rule"],
        "additionalProperties": false
      },
      "Lawsuit_NormalizedLawsuit": {
        "type": "object",
        "required": [
          "cnjNumber",
          "cnj",
          "subject",
          "derived",
          "court",
          "status",
          "stage"
        ],
        "properties": {
          "cnjNumber": {
            "type": "string"
          },
          "cnj": {
            "$ref": "#/components/schemas/Lawsuit_CNJClassification"
          },
          "subject": {
            "$ref": "#/components/schemas/Lawsuit_SubjectInLawsuit"
          },
          "derived": {
            "$ref": "#/components/schemas/Lawsuit_DerivedFlags"
          },
          "court": {
            "$ref": "#/components/schemas/Lawsuit_CourtInfo"
          },
          "status": {
            "type": "string"
          },
          "stage": {
            "type": "string",
            "enum": ["active", "suspended", "terminal", "unknown"]
          },
          "amount": {
            "type": "number"
          },
          "instance": {
            "type": "integer",
            "minimum": 0
          },
          "dates": {
            "$ref": "#/components/schemas/Lawsuit_Dates"
          },
          "activity": {
            "$ref": "#/components/schemas/Lawsuit_Activity"
          },
          "timeline": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Lawsuit_TimelineEvent"
            }
          },
          "decisions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Lawsuit_Decision"
            }
          },
          "relatedParties": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Lawsuit_RelatedParty"
            }
          },
          "cnjNumberInvalid": {
            "type": "boolean"
          },
          "recordKind": {
            "type": "string",
            "enum": [
              "root",
              "appeal",
              "enforcement",
              "ancillary",
              "preProcedural",
              "unknown"
            ]
          },
          "caseId": {
            "type": "string"
          },
          "related": {
            "type": "array",
            "items": {
              "type": "object",
              "required": ["cnj"],
              "properties": {
                "cnj": {
                  "type": "string"
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "root",
                    "appeal",
                    "enforcement",
                    "ancillary",
                    "preProcedural",
                    "unknown"
                  ]
                }
              }
            }
          },
          "classificationConfidence": {
            "type": "number",
            "minimum": 0,
            "maximum": 1
          },
          "confidence": {
            "type": "number",
            "minimum": 0,
            "maximum": 1
          },
          "inferenceRate": {
            "type": ["number", "null"],
            "minimum": 0,
            "maximum": 1
          },
          "indicators": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Lawsuit_LawsuitIndicator"
            }
          }
        }
      },
      "Lawsuit_LawsuitIndicator": {
        "type": "object",
        "required": ["name", "involvement"],
        "properties": {
          "name": {
            "type": "string"
          },
          "involvement": {
            "type": "number",
            "minimum": 0,
            "maximum": 1
          },
          "dimension": {
            "type": "string",
            "enum": [
              "credit",
              "operational",
              "fraud",
              "integrity",
              "criminalContext",
              "wealthContext"
            ]
          }
        }
      },
      "Lawsuit_RelatedParty": {
        "type": "object",
        "required": ["document", "entityType"],
        "properties": {
          "document": {
            "type": "string"
          },
          "entityType": {
            "type": "string",
            "enum": ["CPF", "CNPJ", ""]
          },
          "name": {
            "type": "string"
          },
          "side": {
            "type": "string",
            "enum": ["Active", "Passive", "Interested", "Neutral", ""]
          },
          "role": {
            "type": "string"
          },
          "position": {
            "type": "string",
            "enum": [
              "claimant",
              "defendant",
              "accused",
              "victim",
              "neutral",
              "interested",
              "unknown",
              ""
            ]
          },
          "relationship": {
            "type": "string",
            "enum": ["exposure", "activity", "context", "neutral", ""]
          }
        }
      },
      "Lawsuit_Decision": {
        "type": "object",
        "required": ["date", "content"],
        "properties": {
          "date": {
            "type": "string",
            "format": "date-time"
          },
          "content": {
            "type": "string"
          }
        }
      },
      "Lawsuit_TimelineEvent": {
        "type": "object",
        "required": ["date", "content"],
        "properties": {
          "date": {
            "type": "string",
            "format": "date-time"
          },
          "content": {
            "type": "string"
          },
          "type": {
            "type": "integer"
          }
        }
      },
      "Lawsuit_Activity": {
        "type": "object",
        "properties": {
          "updatesCount": {
            "type": "integer",
            "minimum": 0
          },
          "avgUpdatesPerMonth": {
            "type": "number"
          }
        }
      },
      "Lawsuit_Dates": {
        "type": "object",
        "properties": {
          "distribution": {
            "type": "string",
            "format": "date-time"
          },
          "lastMovement": {
            "type": "string",
            "format": "date-time"
          },
          "ageDays": {
            "type": "integer"
          },
          "filingYear": {
            "type": "integer",
            "minimum": 1900
          }
        }
      },
      "Lawsuit_CourtInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "tribunalAcronym": {
            "type": "string"
          },
          "justiceBranch": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "judgingBody": {
            "type": "string"
          }
        }
      },
      "Lawsuit_DerivedFlags": {
        "type": "object",
        "properties": {
          "isCriminal": {
            "type": "boolean"
          },
          "isTaxExecution": {
            "type": "boolean"
          },
          "isBankruptcy": {
            "type": "boolean"
          },
          "isFraud": {
            "type": "boolean"
          },
          "isTheft": {
            "type": "boolean"
          },
          "isCorruption": {
            "type": "boolean"
          },
          "isSexualOffense": {
            "type": "boolean"
          },
          "isViolentCrime": {
            "type": "boolean"
          },
          "isDomesticViolence": {
            "type": "boolean"
          },
          "isDrugs": {
            "type": "boolean"
          },
          "isDrugTrafficking": {
            "type": "boolean"
          },
          "isTrafficCrime": {
            "type": "boolean"
          },
          "isLabor": {
            "type": "boolean"
          },
          "isAdministrative": {
            "type": "boolean"
          },
          "isArchived": {
            "type": "boolean"
          }
        }
      },
      "Lawsuit_SubjectInLawsuit": {
        "type": "object",
        "required": ["document", "side", "role", "position"],
        "properties": {
          "document": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "side": {
            "type": "string",
            "enum": ["Active", "Passive", "Interested", "Neutral"]
          },
          "role": {
            "type": "string"
          },
          "position": {
            "type": "string",
            "enum": [
              "claimant",
              "defendant",
              "accused",
              "victim",
              "neutral",
              "interested",
              "unknown"
            ]
          },
          "relationship": {
            "type": "string",
            "enum": ["exposure", "activity", "context", "neutral"]
          },
          "positionInferred": {
            "type": "boolean"
          },
          "attribution": {
            "type": "string",
            "enum": ["docConfirmed", "inferred", "nameOnly"]
          }
        }
      },
      "Lawsuit_CNJClassification": {
        "type": "object",
        "required": ["classCode", "className"],
        "properties": {
          "classCode": {
            "type": "integer"
          },
          "className": {
            "type": "string"
          },
          "subjectCodes": {
            "type": "array",
            "items": {
              "type": "integer"
            }
          },
          "subjects": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Lawsuit_TPUSubject"
            }
          },
          "broadArea": {
            "type": "string"
          },
          "courtCode": {
            "type": "integer"
          },
          "rawSubject": {
            "type": "string"
          },
          "subjectFromRawText": {
            "type": "boolean"
          }
        }
      },
      "Lawsuit_TPUSubject": {
        "type": "object",
        "required": ["code", "name"],
        "properties": {
          "code": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "parent": {
            "type": "integer"
          }
        }
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "Token de acesso obtido em `POST /api/v1/authentication`. Veja [Autenticação](https://developers.zarv.com/api/id-v3/authentication)."
      }
    }
  },
  "info": {
    "description": "Enriquecimento de CPF e CNPJ: a partir de um documento e de um perfil, a Zarv consulta os datasets do perfil e devolve, por módulo, os dados exatamente como os datasets os publicam — sem regras, score ou análise por IA.\n\nTodas as rotas usam token Bearer JWT; veja [Autenticação](https://developers.zarv.com/api/id-v3/authentication). O callback assinado está em [Webhook](https://developers.zarv.com/api/id-v3/webhook) e o formato de cada módulo em [Datasets](https://developers.zarv.com/api/id-v3/datasets/).\n\n**Documentos.** CPF ou CNPJ, incluindo o CNPJ alfanumérico de 2026 (ex.: `12ABC34501DE35`); pontuação e caixa são ignoradas. As respostas trazem o documento normalizado completo.",
    "title": "Zarv ID v3 — API de Enriquecimento",
    "version": "0.1.0"
  },
  "openapi": "3.1.0",
  "paths": {
    "/api/v3/callback-secret": {
      "get": {
        "description": "Cada callback é assinado com `X-Zarv-Signature: sha256=<hex>`, o HMAC-SHA256 deste segredo sobre `\"{X-Zarv-Timestamp}.{corpo}\"`. Veja [Webhook](https://developers.zarv.com/api/id-v3/webhook).",
        "operationId": "getCallbackSecret",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "secret": {
                      "pattern": "^[0-9a-f]{64}$",
                      "type": "string"
                    }
                  },
                  "required": ["secret"],
                  "type": "object"
                }
              }
            },
            "description": "O segredo, em hexadecimal."
          },
          "401": {
            "description": "Token ausente, inválido ou expirado. Renove o token de acesso e repita a requisição."
          },
          "403": {
            "description": "O token não tem permissão para esta rota."
          },
          "429": {
            "description": "Limite de taxa excedido (veja [Limites de uso](https://developers.zarv.com/api/limits)). Espere e tente de novo com intervalo crescente."
          },
          "500": {
            "description": "`internal_error`: falha inesperada.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Consultar o segredo de assinatura do callback",
        "tags": ["Callback"]
      }
    },
    "/api/v3/enrichments": {
      "get": {
        "description": "Mais recentes primeiro. Os itens são resumos, sem `modules` e sem `data`.\n\n`from`, `to`, `document`, `profileId` e `entity` são opcionais e se combinam (todos precisam valer). Eles não vão dentro do `nextCursor`: repita os mesmos filtros em todas as páginas da mesma listagem.",
        "operationId": "listEnrichments",
        "parameters": [
          {
            "description": "O `nextCursor` da página anterior.",
            "in": "query",
            "name": "cursor",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Itens por página. Valores acima de 100 são reduzidos para 100.",
            "in": "query",
            "name": "limit",
            "schema": {
              "default": 20,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Só enriquecimentos criados a partir deste instante, inclusive. RFC3339, por exemplo `2026-09-01T00:00:00-03:00`.",
            "in": "query",
            "name": "from",
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "Só enriquecimentos criados antes deste instante, exclusive. RFC3339. Para o dia 01/09 inteiro: `from=2026-09-01T00:00:00-03:00&to=2026-09-02T00:00:00-03:00`.",
            "in": "query",
            "name": "to",
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "description": "CPF ou CNPJ, com ou sem máscara, validado como na criação.",
            "in": "query",
            "name": "document",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Só enriquecimentos deste perfil.",
            "in": "query",
            "name": "profileId",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`person` (CPF) ou `company` (CNPJ), o mesmo valor de `entity` na resposta. `pf` e `pj` também são aceitos.",
            "in": "query",
            "name": "entity",
            "schema": {
              "enum": ["person", "company", "pf", "pj"],
              "type": "string"
            }
          },
          {
            "description": "Só os enriquecimentos criados por este lote (`bat_…`), o `batchId` da resposta de `POST /api/v3/enrichments/batch`.",
            "in": "query",
            "name": "batchId",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`interactive` (criação unitária) ou `batch` (criação em lote).",
            "in": "query",
            "name": "lane",
            "schema": {
              "enum": ["interactive", "batch"],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/Enrichment"
                      },
                      "type": "array"
                    },
                    "nextCursor": {
                      "description": "Vazio na última página.",
                      "type": "string"
                    }
                  },
                  "required": ["items", "nextCursor"],
                  "type": "object"
                }
              }
            },
            "description": "Uma página."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "`invalid_cursor`, `invalid_limit`, `invalid_from`, `invalid_to`, `invalid_date_range` (`from` não é anterior a `to`), `invalid_document`, `invalid_entity`."
          },
          "401": {
            "description": "Token ausente, inválido ou expirado. Renove o token de acesso e repita a requisição."
          },
          "403": {
            "description": "O token não tem permissão para esta rota."
          },
          "429": {
            "description": "Limite de taxa excedido (veja [Limites de uso](https://developers.zarv.com/api/limits)). Espere e tente de novo com intervalo crescente."
          },
          "500": {
            "description": "`internal_error`: falha inesperada.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Listar enriquecimentos",
        "tags": ["Enriquecimentos"]
      },
      "post": {
        "description": "Valida a requisição, resolve o perfil (do seu workspace ou um perfil global da Zarv), planeja os módulos, confere o contrato do workspace e cria o enriquecimento. Depois, a requisição espera **até 25 segundos** por um status terminal:\n\n- terminou a tempo: `200` com o corpo completo e os dados de todos os módulos em `data`;\n- não terminou: `202` com `{id, status}`; se houver `callback`, ele é entregue quando o enriquecimento terminar;\n- mesma `Idempotency-Key` e mesmo corpo (a chave não expira): `200` com o corpo do GET quando o enriquecimento já terminou, `202` com `{id, status}` enquanto ainda roda (um `callback` enviado junto é rearmado);\n- mesma `Idempotency-Key` com corpo diferente: `422 idempotency_key_reused`.\n\nO processamento continua mesmo que o cliente feche a conexão. Uma resposta não terminal traz `Retry-After`: consulte `GET /api/v3/enrichments/{id}` depois desse intervalo, ou espere o callback.",
        "operationId": "createEnrichment",
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 255,
              "type": "string"
            },
            "description": "Chave de idempotência, até 255 caracteres (ex.: um UUID). A chave não expira: a mesma chave com o mesmo corpo sempre devolve o mesmo enriquecimento, sem nova cobrança. Para uma consulta nova, use uma chave nova."
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateEnrichment"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Enrichment"
                }
              }
            },
            "description": "Terminou dentro da espera síncrona, ou replay idempotente de um enriquecimento já terminado.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            }
          },
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Accepted"
                }
              }
            },
            "description": "Ainda em processamento após a espera síncrona, ou replay idempotente de um enriquecimento em andamento.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "`invalid_body`, `profile_required`, `invalid_callback`, `invalid_deadline`, `invalid_document`, `invalid_idempotency_key`."
          },
          "401": {
            "description": "Token ausente, inválido ou expirado. Renove o token de acesso e repita a requisição."
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "`contract_required` (o workspace não tem contrato ativo do produto ID) ou `action_not_contracted` (há contrato ativo, mas ele não cobre todas as ações que o perfil exige; a mensagem lista as que faltam)."
          },
          "403": {
            "description": "O token não tem permissão para esta rota."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "`profile_not_found`: perfil inexistente, inativo, de outro workspace ou não disponível para o seu workspace."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "`module_not_in_profile`, `profile_entity_mismatch`, `profile_kind_mismatch` (o perfil não é do tipo `enrichment`), `profile_misconfigured`, `profile_not_billable` (o perfil ainda não é um produto precificado), `idempotency_key_reused`."
          },
          "429": {
            "description": "Limite de taxa excedido (veja [Limites de uso](https://developers.zarv.com/api/limits)). Espere e tente de novo com intervalo crescente."
          },
          "500": {
            "description": "`internal_error`: falha inesperada. Tente de novo com a mesma `Idempotency-Key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "`profiles_unavailable`, `billing_unavailable`, `idempotency_retry`: indisponibilidade temporária. Tente de novo com a mesma `Idempotency-Key`."
          }
        },
        "summary": "Criar um enriquecimento",
        "tags": ["Enriquecimentos"]
      }
    },
    "/api/v3/enrichments/batch": {
      "post": {
        "description": "Cria até 500 enriquecimentos que compartilham o mesmo perfil, `options`, `callback` e `metadata`, numa fila própria, separada da unitária (um lote grande nunca atrasa as consultas unitárias). Diferente da criação unitária, **não há espera síncrona**: a resposta é `202` assim que os itens estão gravados.\n\nA resposta traz uma entrada por item enviado, na ordem do request, cada uma com o seu `index` e o seu `document`, o documento exatamente como enviado (sem normalização): cada documento enviado mapeia para o seu `id` ou o seu `error`. A mensagem de erro nunca traz o documento. Um item que não pode ser criado (`invalid_document`, `profile_entity_mismatch`, `duplicate_in_request`, `invalid_metadata`) traz `error`, não é cobrado e os demais seguem. O `metadata` do item sobrescreve o `metadata` do lote chave a chave (raso).\n\nProblemas do request inteiro não criam nada e usam os códigos da criação unitária, além de `batch_empty` e `batch_too_large`. A mesma `Idempotency-Key` com o mesmo corpo devolve a primeira resposta (os documentos vêm do corpo reenviado; nada os guarda); com corpo diferente, `422 idempotency_key_reused`.\n\nNão existe endpoint de status do lote: leia cada item com `GET /api/v3/enrichments/{id}` ou liste-os com `GET /api/v3/enrichments?batchId=`. Veja [Enriquecimento em lote](https://developers.zarv.com/api/id-v3/enrichment-batch).",
        "operationId": "createEnrichmentBatch",
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 255,
              "type": "string"
            },
            "description": "Chave de idempotência do request (do bloco), até 255 caracteres. Reenviar o mesmo bloco com a mesma chave não duplica nem cobra de novo."
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EnrichmentBatchRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnrichmentBatchResult"
                }
              }
            },
            "description": "O lote foi processado; o resultado de cada item está em `items`, por `index`."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "`invalid_body`, `profile_required`, `invalid_callback`, `invalid_deadline`, `invalid_idempotency_key`, `batch_empty` (nenhum item)."
          },
          "401": {
            "description": "Token ausente, inválido ou expirado. Renove o token de acesso e repita a requisição."
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "`contract_required` ou `action_not_contracted`."
          },
          "403": {
            "description": "O token não tem permissão para esta rota."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "`profile_not_found`: perfil inexistente, inativo, de outro workspace ou não disponível para o seu workspace."
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "`batch_too_large`: mais de 500 itens. Divida em requests sequenciais."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "`module_not_in_profile`, `profile_kind_mismatch`, `profile_misconfigured`, `profile_not_billable`, `idempotency_key_reused`."
          },
          "429": {
            "description": "Limite de taxa excedido (veja [Limites de uso](https://developers.zarv.com/api/limits)). Espere e tente de novo com intervalo crescente."
          },
          "500": {
            "description": "`internal_error`: falha inesperada. Tente de novo com a mesma `Idempotency-Key`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "`profiles_unavailable`, `billing_unavailable`, `idempotency_retry`: indisponibilidade temporária. Tente de novo com a mesma `Idempotency-Key`."
          }
        },
        "summary": "Criar enriquecimentos em lote",
        "tags": ["Enriquecimentos"]
      }
    },
    "/api/v3/enrichments/{id}": {
      "get": {
        "operationId": "getEnrichment",
        "parameters": [
          {
            "description": "`data` inclui os dados de todos os módulos concluídos; uma lista separada por vírgulas (ex.: `profile,finance`) inclui só esses módulos.",
            "in": "query",
            "name": "include",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Enrichment"
                }
              }
            },
            "description": "O enriquecimento.",
            "headers": {
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            }
          },
          "401": {
            "description": "Token ausente, inválido ou expirado. Renove o token de acesso e repita a requisição."
          },
          "403": {
            "description": "O token não tem permissão para esta rota."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "`not_found`: enriquecimento não encontrado."
          },
          "429": {
            "description": "Limite de taxa excedido (veja [Limites de uso](https://developers.zarv.com/api/limits)). Espere e tente de novo com intervalo crescente."
          },
          "500": {
            "description": "`internal_error`: falha inesperada.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Consultar um enriquecimento",
        "tags": ["Enriquecimentos"],
        "description": "A raiz do enriquecimento: status, resultado e o estado de cada módulo. Enquanto o status não é terminal, a resposta traz `Retry-After`. Use `include` para trazer os dados dos módulos já concluídos em `data`."
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/EnrichmentID"
        }
      ]
    },
    "/api/v3/enrichments/{id}/modules/lawsuits/network": {
      "get": {
        "description": "Os processos dos relacionamentos do documento consultado — familiares, sócios, empresas e co-réus —, um item por CPF/CNPJ em `nodes`, com a chave igual ao documento que aparece no módulo `related`. Cada nó traz os contadores e indicadores do dataset de processos (sem a lista de processos), as relações pelas quais ele foi encontrado e o `status` da consulta. Veja [Rede de processos](https://developers.zarv.com/api/id-v3/lawsuits-network).",
        "operationId": "getEnrichmentNetwork",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NetworkSummary"
                }
              }
            },
            "description": "A rede, ou `status: skipped` com o motivo quando ela não roda (`related_disabled`, `lawsuits_disabled`, `network_not_configured`, `subject_not_found` ou `not_run`, para um enriquecimento concluído sem a etapa da rede)."
          },
          "401": {
            "description": "Token ausente, inválido ou expirado. Renove o token de acesso e repita a requisição."
          },
          "403": {
            "description": "O token não tem permissão para esta rota."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "`not_found`: enriquecimento inexistente."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "`network_not_ready`: o enriquecimento ainda não terminou; tente de novo mais tarde. `enrichment_failed`: o enriquecimento terminou `FAILED` e não tem rede; a mensagem traz o motivo da falha."
          },
          "429": {
            "description": "Limite de taxa excedido (veja [Limites de uso](https://developers.zarv.com/api/limits)). Espere e tente de novo com intervalo crescente."
          },
          "500": {
            "description": "`internal_error`: falha inesperada.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Consultar a rede de processos",
        "tags": ["Enriquecimentos"]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/EnrichmentID"
        }
      ]
    },
    "/api/v3/enrichments/{id}/modules/lawsuits/network/{ref}": {
      "get": {
        "description": "Os processos de um nó, no formato do dataset de processos, com a lista completa em `lawsuits.items`. Use o `ref` que vem em `GET …/modules/lawsuits/network`; o documento nunca vai na URL.",
        "operationId": "getEnrichmentNetworkNode",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NetworkNode"
                }
              }
            },
            "description": "O nó e os seus processos."
          },
          "401": {
            "description": "Token ausente, inválido ou expirado. Renove o token de acesso e repita a requisição."
          },
          "403": {
            "description": "O token não tem permissão para esta rota."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "`not_found` (enriquecimento), `node_not_found` (ref fora da rede)."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "`network_not_ready`: o enriquecimento ainda não terminou; tente de novo mais tarde. `enrichment_failed`: o enriquecimento terminou `FAILED` e não tem rede; a mensagem traz o motivo da falha."
          },
          "429": {
            "description": "Limite de taxa excedido (veja [Limites de uso](https://developers.zarv.com/api/limits)). Espere e tente de novo com intervalo crescente."
          },
          "500": {
            "description": "`internal_error`: falha inesperada.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Consultar os processos de um nó da rede",
        "tags": ["Enriquecimentos"]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/EnrichmentID"
        },
        {
          "example": "n01",
          "in": "path",
          "name": "ref",
          "required": true,
          "schema": {
            "pattern": "^n[0-9]{2}$",
            "type": "string"
          }
        }
      ]
    },
    "/api/v3/enrichments/{id}/modules/{module}": {
      "get": {
        "description": "O `data.{módulo}` de um módulo concluído, no formato publicado pelo dataset. Os módulos que um enriquecimento roda são os do perfil usado na criação: consulte `GET /api/v3/profiles/{id}` (ou `GET /api/v3/profiles`) para ver cada módulo do perfil e o dataset dele. Na raiz do enriquecimento (`GET /api/v3/enrichments/{id}`), `modules` lista os módulos deste enriquecimento e o status de cada um. O formato de cada dataset está em [Datasets](https://developers.zarv.com/api/id-v3/datasets/).\n\n| Módulo (`{module}`) | Pessoa (CPF) | Empresa (CNPJ) | O que traz |\n| --- | --- | --- | --- |\n| [`finance`](/api/id-v3/modules/) | [1.0](https://developers.zarv.com/api/id-v3/datasets/person-finance-1-0), [1.1](https://developers.zarv.com/api/id-v3/datasets/person-finance-1-1) | [1.0](https://developers.zarv.com/api/id-v3/datasets/company-finance-1-0) | Renda estimada, faixa de patrimônio e histórico de declaração do imposto de renda. |\n| [`financeAdvanced`](/api/id-v3/modules/) | [2.0](https://developers.zarv.com/api/id-v3/datasets/person-financeAdvanced-2-0) | [2.0](https://developers.zarv.com/api/id-v3/datasets/company-financeAdvanced-2-0) | Registro negativo de crédito: dívidas vencidas e protestos. |\n| [`lawsuits`](/api/id-v3/modules/) | [1.0](https://developers.zarv.com/api/id-v3/datasets/person-lawsuits-1-0), [2.0](https://developers.zarv.com/api/id-v3/datasets/person-lawsuits-2-0) | [1.0](https://developers.zarv.com/api/id-v3/datasets/company-lawsuits-1-0), [2.0](https://developers.zarv.com/api/id-v3/datasets/company-lawsuits-2-0) | Processos judiciais do documento, classificados na taxonomia do CNJ, com contadores, indicadores de risco e a lista de processos. |\n| [`ownersLawsuits`](/api/id-v3/modules/) | — | [1.0](https://developers.zarv.com/api/id-v3/datasets/company-ownersLawsuits-1-0) | Processos judiciais dos sócios do quadro societário de um CNPJ. |\n| [`profile`](/api/id-v3/modules/) | [1.0](https://developers.zarv.com/api/id-v3/datasets/person-profile-1-0), [2.0](https://developers.zarv.com/api/id-v3/datasets/person-profile-2-0) | [1.0](https://developers.zarv.com/api/id-v3/datasets/company-profile-1-0) | Cadastro base do documento na Receita Federal e os contatos conhecidos (telefones, e-mails e endereços). |\n| [`related`](/api/id-v3/modules/) | [1.0](https://developers.zarv.com/api/id-v3/datasets/person-related-1-0), [1.1](https://developers.zarv.com/api/id-v3/datasets/person-related-1-1), [2.0](https://developers.zarv.com/api/id-v3/datasets/person-related-2-0) | [1.0](https://developers.zarv.com/api/id-v3/datasets/company-related-1-0), [2.0](https://developers.zarv.com/api/id-v3/datasets/company-related-2-0) | Vínculos do documento com pessoas e empresas: parentesco, sociedade, representação e emprego. |",
        "operationId": "getEnrichmentModule",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/Dataset_person_finance_1_0"
                    },
                    {
                      "$ref": "#/components/schemas/Dataset_person_finance_1_1"
                    },
                    {
                      "$ref": "#/components/schemas/Dataset_person_financeAdvanced_2_0"
                    },
                    {
                      "$ref": "#/components/schemas/Dataset_person_lawsuits_1_0"
                    },
                    {
                      "$ref": "#/components/schemas/Dataset_person_lawsuits_2_0"
                    },
                    {
                      "$ref": "#/components/schemas/Dataset_person_profile_1_0"
                    },
                    {
                      "$ref": "#/components/schemas/Dataset_person_profile_2_0"
                    },
                    {
                      "$ref": "#/components/schemas/Dataset_person_related_1_0"
                    },
                    {
                      "$ref": "#/components/schemas/Dataset_person_related_1_1"
                    },
                    {
                      "$ref": "#/components/schemas/Dataset_person_related_2_0"
                    },
                    {
                      "$ref": "#/components/schemas/Dataset_company_finance_1_0"
                    },
                    {
                      "$ref": "#/components/schemas/Dataset_company_financeAdvanced_2_0"
                    },
                    {
                      "$ref": "#/components/schemas/Dataset_company_lawsuits_1_0"
                    },
                    {
                      "$ref": "#/components/schemas/Dataset_company_lawsuits_2_0"
                    },
                    {
                      "$ref": "#/components/schemas/Dataset_company_ownersLawsuits_1_0"
                    },
                    {
                      "$ref": "#/components/schemas/Dataset_company_profile_1_0"
                    },
                    {
                      "$ref": "#/components/schemas/Dataset_company_related_1_0"
                    },
                    {
                      "$ref": "#/components/schemas/Dataset_company_related_2_0"
                    }
                  ],
                  "discriminator": {
                    "propertyName": "dataset",
                    "mapping": {
                      "person-finance-1.0": "#/components/schemas/Dataset_person_finance_1_0",
                      "person-finance-1.1": "#/components/schemas/Dataset_person_finance_1_1",
                      "person-financeAdvanced-2.0": "#/components/schemas/Dataset_person_financeAdvanced_2_0",
                      "person-lawsuits-1.0": "#/components/schemas/Dataset_person_lawsuits_1_0",
                      "person-lawsuits-2.0": "#/components/schemas/Dataset_person_lawsuits_2_0",
                      "person-profile-1.0": "#/components/schemas/Dataset_person_profile_1_0",
                      "person-profile-2.0": "#/components/schemas/Dataset_person_profile_2_0",
                      "person-related-1.0": "#/components/schemas/Dataset_person_related_1_0",
                      "person-related-1.1": "#/components/schemas/Dataset_person_related_1_1",
                      "person-related-2.0": "#/components/schemas/Dataset_person_related_2_0",
                      "company-finance-1.0": "#/components/schemas/Dataset_company_finance_1_0",
                      "company-financeAdvanced-2.0": "#/components/schemas/Dataset_company_financeAdvanced_2_0",
                      "company-lawsuits-1.0": "#/components/schemas/Dataset_company_lawsuits_1_0",
                      "company-lawsuits-2.0": "#/components/schemas/Dataset_company_lawsuits_2_0",
                      "company-ownersLawsuits-1.0": "#/components/schemas/Dataset_company_ownersLawsuits_1_0",
                      "company-profile-1.0": "#/components/schemas/Dataset_company_profile_1_0",
                      "company-related-1.0": "#/components/schemas/Dataset_company_related_1_0",
                      "company-related-2.0": "#/components/schemas/Dataset_company_related_2_0"
                    }
                  }
                }
              }
            },
            "description": "Os dados do módulo."
          },
          "401": {
            "description": "Token ausente, inválido ou expirado. Renove o token de acesso e repita a requisição."
          },
          "403": {
            "description": "O token não tem permissão para esta rota."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "`not_found` (enriquecimento), `module_not_found` (o perfil deste enriquecimento não tem esse módulo; veja `GET /api/v3/profiles/{id}`)."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "`module_not_ready`: o módulo ainda não terminou; a mensagem traz o status dele."
          },
          "429": {
            "description": "Limite de taxa excedido (veja [Limites de uso](https://developers.zarv.com/api/limits)). Espere e tente de novo com intervalo crescente."
          },
          "500": {
            "description": "`internal_error`: falha inesperada.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "summary": "Consultar os dados de um módulo",
        "tags": ["Enriquecimentos"]
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/EnrichmentID"
        },
        {
          "example": "finance",
          "in": "path",
          "name": "module",
          "required": true,
          "schema": {
            "type": "string",
            "enum": [
              "finance",
              "financeAdvanced",
              "lawsuits",
              "ownersLawsuits",
              "profile",
              "related"
            ]
          },
          "description": "Nome do módulo. Os módulos que um enriquecimento roda são os do perfil (veja `GET /api/v3/profiles/{id}`); a tabela acima lista os disponíveis."
        }
      ]
    },
    "/api/v3/profiles": {
      "get": {
        "description": "Os perfis ativos do seu workspace, de todos os tipos. O campo `profile.kind` diz o tipo de cada um: um enriquecimento só roda perfis `enrichment`. Use `?kind=enrichment` para listar só os que servem em `POST /api/v3/enrichments`. Cada item tem o mesmo formato de `GET /api/v3/profiles/{id}`: o perfil, a entidade que ele atende e o dataset de cada módulo. A lista não é paginada.",
        "operationId": "listProfiles",
        "parameters": [
          {
            "description": "Só perfis deste tipo: `enrichment` ou `verification`. Sem o parâmetro, lista todos.",
            "in": "query",
            "name": "kind",
            "schema": {
              "enum": ["enrichment", "verification"],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "items": {
                      "items": {
                        "$ref": "#/components/schemas/Profile"
                      },
                      "type": "array"
                    }
                  },
                  "required": ["items"],
                  "type": "object"
                }
              }
            },
            "description": "Os perfis do workspace."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "`invalid_kind`: `kind` diferente de `enrichment` ou `verification`."
          },
          "401": {
            "description": "Token ausente, inválido ou expirado. Renove o token de acesso e repita a requisição."
          },
          "403": {
            "description": "O token não tem permissão para esta rota."
          },
          "429": {
            "description": "Limite de taxa excedido (veja [Limites de uso](https://developers.zarv.com/api/limits)). Espere e tente de novo com intervalo crescente."
          },
          "500": {
            "description": "`internal_error`: falha inesperada.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "`profiles_unavailable`: indisponibilidade temporária. Tente de novo."
          }
        },
        "summary": "Listar perfis",
        "tags": ["Perfis"]
      }
    },
    "/api/v3/profiles/{id}": {
      "get": {
        "description": "O perfil (com o tipo em `profile.kind`), a entidade que ele atende (`person` para CPF, `company` para CNPJ) e, em `modules`, o dataset que cada módulo usa, no mesmo formato de `modules` na resposta do enriquecimento. Veja o formato de cada dataset em [Datasets](https://developers.zarv.com/api/id-v3/datasets/). Depois que um enriquecimento com este perfil conclui, cada módulo listado aqui pode ser lido em `GET /api/v3/enrichments/{id}/modules/{module}`.",
        "operationId": "getProfile",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Profile"
                }
              }
            },
            "description": "O perfil."
          },
          "401": {
            "description": "Token ausente, inválido ou expirado. Renove o token de acesso e repita a requisição."
          },
          "403": {
            "description": "O token não tem permissão para esta rota."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "`profile_not_found`: perfil inexistente, inativo, de outro workspace ou não disponível para o seu workspace."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "`profile_misconfigured`: o perfil está configurado de forma inválida; fale com o time da Zarv."
          },
          "429": {
            "description": "Limite de taxa excedido (veja [Limites de uso](https://developers.zarv.com/api/limits)). Espere e tente de novo com intervalo crescente."
          },
          "500": {
            "description": "`internal_error`: falha inesperada.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "`profiles_unavailable`: indisponibilidade temporária. Tente de novo."
          }
        },
        "summary": "Consultar um perfil",
        "tags": ["Perfis"]
      },
      "parameters": [
        {
          "in": "path",
          "name": "id",
          "required": true,
          "schema": {
            "type": "string"
          }
        }
      ]
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "servers": [
    {
      "url": "https://services.zarv.com",
      "description": "Produção"
    }
  ],
  "tags": [
    {
      "name": "Enriquecimentos",
      "description": "Criação, consulta e listagem de enriquecimentos."
    },
    {
      "name": "Perfis",
      "description": "Perfis disponíveis para o workspace e o dataset que cada módulo usa."
    },
    {
      "name": "Callback",
      "description": "Segredo de assinatura do callback do workspace."
    }
  ]
}
