{
  "openapi": "3.1.0",
  "info": {
    "title": "Solicita — API de serviços de aposentadoria",
    "version": "2.1.0",
    "description": "As orientações ajudam a organizar documentos e preparar o pedido. A análise do direito, do valor e do protocolo cabe ao INSS. API de leitura; não transmite pedidos ou mensagens.",
    "contact": {
      "name": "Solicita",
      "url": "https://wa.me/5514997876021"
    }
  },
  "servers": [
    {
      "url": "https://www.entradaaposentadoria.com"
    }
  ],
  "paths": {
    "/api/v1/analise-gratuita": {
      "get": {
        "operationId": "consultarAnaliseGratuita",
        "summary": "Escopo, referência e WhatsApp para iniciar a análise gratuita",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Leitura concluída",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "version",
                    "mock",
                    "status",
                    "notice",
                    "title",
                    "free",
                    "scope",
                    "terms",
                    "citation_url",
                    "whatsapp_url",
                    "message",
                    "message_sent",
                    "requires_user_review_and_send"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "version": {
                      "type": "string"
                    },
                    "mock": {
                      "type": "boolean"
                    },
                    "status": {
                      "type": "string"
                    },
                    "notice": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "free": {
                      "type": "boolean"
                    },
                    "scope": {
                      "type": "string"
                    },
                    "terms": {
                      "type": "string"
                    },
                    "citation_url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "whatsapp_url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "message": {
                      "type": "string"
                    },
                    "message_sent": {
                      "type": "boolean",
                      "const": false
                    },
                    "requires_user_review_and_send": {
                      "type": "boolean",
                      "const": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Parâmetro inválido",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Registro não encontrado",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/organizacao": {
      "get": {
        "operationId": "consultarOrganizacao",
        "summary": "Dados comerciais públicos do atendimento da Expertise",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Leitura concluída",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "version",
                    "mock",
                    "status",
                    "notice",
                    "organization"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "version": {
                      "type": "string"
                    },
                    "mock": {
                      "type": "boolean"
                    },
                    "status": {
                      "type": "string"
                    },
                    "notice": {
                      "type": "string"
                    },
                    "organization": {
                      "type": "object",
                      "required": [
                        "name",
                        "registration",
                        "email",
                        "presentation",
                        "address"
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Parâmetro inválido",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Registro não encontrado",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/custos": {
      "get": {
        "operationId": "consultarCustos",
        "summary": "Escopo da análise inicial gratuita e condições das etapas seguintes",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Leitura concluída",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "version",
                    "mock",
                    "status",
                    "notice",
                    "pricing"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "version": {
                      "type": "string"
                    },
                    "mock": {
                      "type": "boolean"
                    },
                    "status": {
                      "type": "string"
                    },
                    "notice": {
                      "type": "string"
                    },
                    "pricing": {
                      "type": "object",
                      "required": [
                        "policy",
                        "quote_before_contract",
                        "fixed_price"
                      ],
                      "properties": {
                        "policy": {
                          "type": "string"
                        },
                        "quote_before_contract": {
                          "type": "boolean",
                          "const": true
                        },
                        "conditions_defined_per_case": {
                          "type": "boolean"
                        },
                        "fixed_price": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "initial_analysis_is_free": {
                          "type": "boolean"
                        },
                        "initial_analysis_scope": {
                          "type": "string"
                        },
                        "terms": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Parâmetro inválido",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Registro não encontrado",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/necessidades": {
      "get": {
        "operationId": "consultarNecessidades",
        "summary": "Perguntas de clientes e caminhos de atendimento",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Leitura concluída",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "version",
                    "mock",
                    "status",
                    "notice",
                    "needs"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "version": {
                      "type": "string"
                    },
                    "mock": {
                      "type": "boolean"
                    },
                    "status": {
                      "type": "string"
                    },
                    "notice": {
                      "type": "string"
                    },
                    "needs": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "question",
                          "answer",
                          "service_slug",
                          "contact_url"
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Parâmetro inválido",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Registro não encontrado",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/status": {
      "get": {
        "operationId": "consultarStatus",
        "summary": "Limites e situação da integração",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Leitura concluída",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "version",
                    "mock",
                    "status",
                    "notice",
                    "read_only"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "version": {
                      "type": "string"
                    },
                    "mock": {
                      "type": "boolean"
                    },
                    "status": {
                      "type": "string"
                    },
                    "notice": {
                      "type": "string"
                    },
                    "read_only": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Parâmetro inválido",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Registro não encontrado",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/servicos": {
      "get": {
        "operationId": "listarServicos",
        "summary": "Serviços de aposentadoria e entregas",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Leitura concluída",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CatalogResponse"
                }
              }
            }
          },
          "400": {
            "description": "Parâmetro inválido",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Registro não encontrado",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/modalidades": {
      "get": {
        "operationId": "listarModalidades",
        "summary": "Tipos de aposentadoria",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Leitura concluída",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "version",
                    "mock",
                    "status",
                    "notice",
                    "modalities"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "version": {
                      "type": "string"
                    },
                    "mock": {
                      "type": "boolean"
                    },
                    "status": {
                      "type": "string"
                    },
                    "notice": {
                      "type": "string"
                    },
                    "modalities": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Service"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Parâmetro inválido",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Registro não encontrado",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/servicos/{slug}": {
      "get": {
        "operationId": "consultarServico",
        "summary": "Serviço com respostas e referência de edição",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Leitura concluída",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceResponse"
                }
              }
            }
          },
          "400": {
            "description": "Parâmetro inválido",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Registro não encontrado",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/versoes/{version}/servicos/{slug}": {
      "get": {
        "operationId": "consultarEdicaoServico",
        "summary": "Snapshot preservado de um serviço",
        "parameters": [
          {
            "name": "version",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Leitura concluída",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceResponse"
                }
              }
            }
          },
          "400": {
            "description": "Parâmetro inválido",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Registro não encontrado",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/documentos": {
      "get": {
        "operationId": "listarDocumentos",
        "summary": "Documentos iniciais por modalidade",
        "parameters": [
          {
            "name": "modalidade",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "por-idade",
                "tempo-de-contribuicao",
                "rural",
                "invalidez",
                "especial",
                "professor",
                "pessoa-com-deficiencia",
                "hibrida",
                "acordo-internacional",
                "agentes-de-saude"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Leitura concluída",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "version",
                    "mock",
                    "status",
                    "notice",
                    "modality",
                    "documents",
                    "individual_review_required"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "version": {
                      "type": "string"
                    },
                    "mock": {
                      "type": "boolean"
                    },
                    "status": {
                      "type": "string"
                    },
                    "notice": {
                      "type": "string"
                    },
                    "modality": {
                      "type": "string"
                    },
                    "documents": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "individual_review_required": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Parâmetro inválido",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Registro não encontrado",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/busca": {
      "get": {
        "operationId": "buscarServicos",
        "summary": "Busca por linguagem comum e necessidade",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 160
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Leitura concluída",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "version",
                    "mock",
                    "status",
                    "notice",
                    "query",
                    "total",
                    "results"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "version": {
                      "type": "string"
                    },
                    "mock": {
                      "type": "boolean"
                    },
                    "status": {
                      "type": "string"
                    },
                    "notice": {
                      "type": "string"
                    },
                    "query": {
                      "type": "string"
                    },
                    "total": {
                      "type": "integer"
                    },
                    "results": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Service"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Parâmetro inválido",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Registro não encontrado",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/perguntas": {
      "get": {
        "operationId": "consultarPerguntas",
        "summary": "Respostas visíveis no site, prontas para citação",
        "parameters": [
          {
            "name": "servico",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Leitura concluída",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnswerResponse"
                }
              }
            }
          },
          "400": {
            "description": "Parâmetro inválido",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Registro não encontrado",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/contato": {
      "get": {
        "operationId": "consultarContato",
        "summary": "WhatsApp autorizado do Solicita",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Leitura concluída",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactResponse"
                }
              }
            }
          },
          "400": {
            "description": "Parâmetro inválido",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Registro não encontrado",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/encaminhamento": {
      "get": {
        "operationId": "prepararContato",
        "summary": "Link e texto de contato, sem abrir ou enviar mensagem",
        "parameters": [
          {
            "name": "servico",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "objetivo",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "analise_gratuita",
                "preparacao",
                "acompanhamento"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Leitura concluída",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "version",
                    "mock",
                    "status",
                    "notice",
                    "contact",
                    "message",
                    "url",
                    "message_sent"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "version": {
                      "type": "string"
                    },
                    "mock": {
                      "type": "boolean"
                    },
                    "status": {
                      "type": "string"
                    },
                    "notice": {
                      "type": "string"
                    },
                    "contact": {
                      "$ref": "#/components/schemas/Contact"
                    },
                    "message": {
                      "type": "string"
                    },
                    "url": {
                      "type": "string"
                    },
                    "message_sent": {
                      "type": "boolean",
                      "const": false
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Parâmetro inválido",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Registro não encontrado",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/fontes": {
      "get": {
        "operationId": "consultarFontes",
        "summary": "Referências e situação da revisão",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Leitura concluída",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "version",
                    "mock",
                    "status",
                    "notice",
                    "sources"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "version": {
                      "type": "string"
                    },
                    "mock": {
                      "type": "boolean"
                    },
                    "status": {
                      "type": "string"
                    },
                    "notice": {
                      "type": "string"
                    },
                    "sources": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Source"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Parâmetro inválido",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Registro não encontrado",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ferramentas": {
      "get": {
        "operationId": "listarFerramentas",
        "summary": "Contrato das ferramentas MCP e WebMCP",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Leitura concluída",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "version",
                    "mock",
                    "status",
                    "notice",
                    "tools"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "version": {
                      "type": "string"
                    },
                    "mock": {
                      "type": "boolean"
                    },
                    "status": {
                      "type": "string"
                    },
                    "notice": {
                      "type": "string"
                    },
                    "tools": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Parâmetro inválido",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Registro não encontrado",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/fluxo": {
      "get": {
        "operationId": "consultarFluxos",
        "summary": "Escopo das duas opções de atendimento",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Leitura concluída",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "version",
                    "mock",
                    "status",
                    "notice",
                    "flows"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "version": {
                      "type": "string"
                    },
                    "mock": {
                      "type": "boolean"
                    },
                    "status": {
                      "type": "string"
                    },
                    "notice": {
                      "type": "string"
                    },
                    "flows": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Parâmetro inválido",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Registro não encontrado",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/atualizacoes": {
      "get": {
        "operationId": "consultarAtualizacoes",
        "summary": "Histórico editorial, sem simular alteração de lei",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Leitura concluída",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schema_version",
                    "version",
                    "mock",
                    "status",
                    "notice",
                    "updates"
                  ],
                  "properties": {
                    "schema_version": {
                      "type": "string"
                    },
                    "version": {
                      "type": "string"
                    },
                    "mock": {
                      "type": "boolean"
                    },
                    "status": {
                      "type": "string"
                    },
                    "notice": {
                      "type": "string"
                    },
                    "updates": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Parâmetro inválido",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Registro não encontrado",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Source": {
        "type": "object",
        "required": [
          "id",
          "title",
          "url",
          "legal_review_status"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "legal_review_status": {
            "type": "string"
          },
          "checked_on": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "Answer": {
        "type": "object",
        "required": [
          "id",
          "question",
          "answer",
          "citation_url",
          "snapshot_url",
          "version",
          "content_hash"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "question": {
            "type": "string"
          },
          "answer": {
            "type": "string"
          },
          "citation_url": {
            "type": "string"
          },
          "snapshot_url": {
            "type": "string"
          },
          "version": {
            "type": "string"
          },
          "content_hash": {
            "type": "string"
          },
          "service_slug": {
            "type": "string"
          }
        }
      },
      "Service": {
        "type": "object",
        "required": [
          "slug",
          "title",
          "description",
          "url",
          "version",
          "content_hash",
          "snapshot_url",
          "documents",
          "steps",
          "faqs"
        ],
        "properties": {
          "slug": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "lead": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "version": {
            "type": "string"
          },
          "content_hash": {
            "type": "string"
          },
          "snapshot_url": {
            "type": "string"
          },
          "markdown_url": {
            "type": "string"
          },
          "legal_review_status": {
            "type": "string"
          },
          "documents": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "steps": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "deliverables": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "faqs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Answer"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Source"
            }
          }
        }
      },
      "Contact": {
        "type": "object",
        "required": [
          "whatsapp_url",
          "whatsapp_number",
          "automatically_sends_message"
        ],
        "properties": {
          "whatsapp_url": {
            "type": "string",
            "format": "uri"
          },
          "whatsapp_number": {
            "type": "string"
          },
          "display_phone": {
            "type": "string"
          },
          "automatically_sends_message": {
            "type": "boolean",
            "const": false
          }
        }
      },
      "CatalogResponse": {
        "type": "object",
        "required": [
          "schema_version",
          "version",
          "mock",
          "status",
          "notice",
          "services"
        ],
        "properties": {
          "schema_version": {
            "type": "string"
          },
          "version": {
            "type": "string"
          },
          "mock": {
            "type": "boolean"
          },
          "status": {
            "type": "string"
          },
          "notice": {
            "type": "string"
          },
          "services": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Service"
            }
          }
        }
      },
      "ServiceResponse": {
        "type": "object",
        "required": [
          "schema_version",
          "version",
          "mock",
          "status",
          "notice",
          "service"
        ],
        "properties": {
          "schema_version": {
            "type": "string"
          },
          "version": {
            "type": "string"
          },
          "mock": {
            "type": "boolean"
          },
          "status": {
            "type": "string"
          },
          "notice": {
            "type": "string"
          },
          "service": {
            "$ref": "#/components/schemas/Service"
          }
        }
      },
      "AnswerResponse": {
        "type": "object",
        "required": [
          "schema_version",
          "version",
          "mock",
          "status",
          "notice",
          "answers"
        ],
        "properties": {
          "schema_version": {
            "type": "string"
          },
          "version": {
            "type": "string"
          },
          "mock": {
            "type": "boolean"
          },
          "status": {
            "type": "string"
          },
          "notice": {
            "type": "string"
          },
          "answers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Answer"
            }
          }
        }
      },
      "ContactResponse": {
        "type": "object",
        "required": [
          "schema_version",
          "version",
          "mock",
          "status",
          "notice",
          "contact"
        ],
        "properties": {
          "schema_version": {
            "type": "string"
          },
          "version": {
            "type": "string"
          },
          "mock": {
            "type": "boolean"
          },
          "status": {
            "type": "string"
          },
          "notice": {
            "type": "string"
          },
          "contact": {
            "$ref": "#/components/schemas/Contact"
          }
        }
      },
      "Error": {
        "type": "object",
        "required": [
          "schema_version",
          "version",
          "mock",
          "status",
          "notice",
          "error"
        ],
        "properties": {
          "schema_version": {
            "type": "string"
          },
          "version": {
            "type": "string"
          },
          "mock": {
            "type": "boolean"
          },
          "status": {
            "type": "string"
          },
          "notice": {
            "type": "string"
          },
          "error": {
            "type": "string"
          }
        }
      }
    }
  }
}