{"openapi":"3.0.0","info":{"title":"JUDIT - Lawsuits API","version":"v1.28.8"},"paths":{"/entities":{"post":{"summary":"Dados cadastrais","description":"Busca dados cadastrais e de identificação de pessoa ou empresa \n \n            conforme tipo e chave de pesquisa informados.","tags":["Dados Cadastrais"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Entities.Body.Post"},"example":{"search":{"search_type":"cpf","search_key":"string"}}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Entities.Response.Post"}}}},"401":{"description":"Unauthorized - Missing or invalid token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpUnauthorizedError"}}}},"403":{"description":"Forbidden - Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpForbiddenError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpInternalServerError"}}}}},"security":[{"jwtAuth":[]},{"apiKeyAuth":[]}]}},"/lawsuits/{lawsuit_cnj}":{"get":{"summary":"Buscar de processo por CNJ","description":"Retorna os dados do datalake do processo identificado pelo número CNJ, com opções de instância e anexos.","tags":["Processos"],"parameters":[{"name":"instance","in":"query","required":false,"schema":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991}},{"name":"all_att","in":"query","required":false,"schema":{"type":"boolean"}},{"name":"saved_att","in":"query","required":false,"schema":{"type":"boolean"}},{"name":"only_att_with_steps","in":"query","required":false,"schema":{"type":"boolean"}},{"name":"with_inferred_parties","in":"query","required":true,"schema":{"default":true,"type":"boolean"}},{"name":"lawsuit_cnj","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LawsuitsLawsuitCnj.Response.Get"}}}},"401":{"description":"Unauthorized - Missing or invalid token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpUnauthorizedError"}}}},"403":{"description":"Forbidden - Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpForbiddenError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpInternalServerError"}}}}},"security":[{"jwtAuth":[]},{"apiKeyAuth":[]}]}},"/lawsuits/{lawsuit_cnj}/{instance}/consolidated":{"get":{"summary":"Download de anexo consolidado do S3","description":"Retorna URL para download de todos os anexos disponíveis consolidado do processo na instância informada.","tags":["Anexos"],"parameters":[{"name":"lawsuit_cnj","in":"path","required":true,"schema":{"type":"string"}},{"name":"instance","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LawsuitsLawsuitCnjInstanceConsolidated.Response.Get"}}}},"401":{"description":"Unauthorized - Missing or invalid token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpUnauthorizedError"}}}},"403":{"description":"Forbidden - Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpForbiddenError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpInternalServerError"}}}}},"security":[{"jwtAuth":[]},{"apiKeyAuth":[]}]}},"/lawsuits":{"post":{"summary":"Buscar processos","description":"Executa busca de processos conforme critérios de pesquisa no corpo da requisição.","tags":["Processos"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Lawsuits.Body.Post"},"example":{"search":{"search_type":"cpf","search_key":"string"}}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Lawsuits.Response.Post"}}}},"401":{"description":"Unauthorized - Missing or invalid token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpUnauthorizedError"}}}},"403":{"description":"Forbidden - Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpForbiddenError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpInternalServerError"}}}}},"security":[{"jwtAuth":[]},{"apiKeyAuth":[]}]}},"/lawsuits/count":{"post":{"summary":"Contagem de processos","description":"Retorna o total de processos que correspondem aos critérios de busca informados.","tags":["Processos"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LawsuitsCount.Body.Post"},"example":{"search":{"search_type":"cpf","search_key":"string"}}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LawsuitsCount.Response.Post"}}}},"401":{"description":"Unauthorized - Missing or invalid token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpUnauthorizedError"}}}},"403":{"description":"Forbidden - Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpForbiddenError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpInternalServerError"}}}}},"security":[{"jwtAuth":[]},{"apiKeyAuth":[]}]}},"/lawsuits/query":{"post":{"summary":"Busca combinada de processos","description":"Página do datalake sobre 1..N documentos mais o total combinado, numa resposta só. Abrir a sessão (session_id inédito) é o ato cobrável: cria um Request por documento e dispara a materialização assíncrona. Chamadas seguintes sob a mesma sessão não cobram; o corpo (search) é obrigatório em toda chamada e o fingerprint valida que é a mesma busca. Fingerprint divergente responde 409; sessão expirada, 403; página fora do budget, 504; contagem fora do budget degrada para total null com total_accuracy unknown.","tags":["Processos"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LawsuitsQuery.Body.Post"},"example":{"session_id":"string","search":{"documents":[{"search_type":"cpf","search_key":"string"}],"search_params":{},"response_type":"lawsuits"},"page":0,"page_size":0,"sort":"distribution_date"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LawsuitsQuery.Response.Post"}}}},"401":{"description":"Unauthorized - Missing or invalid token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpUnauthorizedError"}}}},"403":{"description":"Forbidden - Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpForbiddenError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpInternalServerError"}}}}},"security":[{"jwtAuth":[]},{"apiKeyAuth":[]}]}},"/lawsuits/query/delivery-total":{"post":{"summary":"Total único de entrega da busca combinada","description":"Quantos processos distintos o cliente terá quando todos os Requests fecharem: a união dos top 10.000 de cada documento, com o cap aplicado por documento antes da união — nunca a soma dos totais. Abre a sessão (e cobra) se o session_id for inédito, então as duas rotas de QUERY podem ser chamadas em paralelo. Deadline de 60s: estourou, responde 504 e nada do cálculo é persistido.","tags":["Processos"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LawsuitsQueryDeliveryTotal.Body.Post"},"example":{"session_id":"string","search":{"documents":[{"search_type":"cpf","search_key":"string"}],"search_params":{},"response_type":"lawsuits"}}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LawsuitsQueryDeliveryTotal.Response.Post"}}}},"401":{"description":"Unauthorized - Missing or invalid token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpUnauthorizedError"}}}},"403":{"description":"Forbidden - Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpForbiddenError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpInternalServerError"}}}}},"security":[{"jwtAuth":[]},{"apiKeyAuth":[]}]}},"/lawsuits/synthetic":{"post":{"summary":"Agregações sintéticas de processos","description":"Retorna processos agregados por: (classificações, assuntos, tribunais, etc.) para os filtros informados.","tags":["Processos"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LawsuitsSynthetic.Body.Post"},"example":{"search":{"search_type":"cpf","search_key":"string"}}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LawsuitsSynthetic.Response.Post"}}}},"401":{"description":"Unauthorized - Missing or invalid token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpUnauthorizedError"}}}},"403":{"description":"Forbidden - Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpForbiddenError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpInternalServerError"}}}}},"security":[{"jwtAuth":[]},{"apiKeyAuth":[]}]}},"/steps/count":{"post":{"summary":"Contagem de andamentos por CNJ","description":"Retorna contagem de andamentos e anexos para cada processo (CNJ) informado.","tags":["Processos"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StepsCount.Body.Post"},"example":{"lawsuit_cnj":["string"]}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StepsCount.Response.Post"}}}},"401":{"description":"Unauthorized - Missing or invalid token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpUnauthorizedError"}}}},"403":{"description":"Forbidden - Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpForbiddenError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpInternalServerError"}}}}},"security":[{"jwtAuth":[]},{"apiKeyAuth":[]}]}},"/transfer-file":{"get":{"summary":"Listar transferências de arquivo","description":"Lista transferências de arquivo do usuário com filtros e paginação.","tags":["Arquivos"],"parameters":[{"name":"description","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"file_type","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"name","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"status","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"created_at_gte","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"created_at_lte","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"updated_at_gte","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"updated_at_lte","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"completed_at_gte","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"completed_at_lte","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"downloaded_at_gte","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"downloaded_at_lte","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"error_at_gte","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"error_at_lte","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"failed_at_gte","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"failed_at_lte","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"started_at_gte","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"started_at_lte","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"order","in":"query","required":false,"schema":{"type":"object","additionalProperties":{"type":"string","enum":["asc","desc"]}}},{"name":"page","in":"query","required":true,"schema":{"default":1,"type":"number","minimum":1}},{"name":"page_size","in":"query","required":true,"schema":{"default":10,"type":"number","minimum":5,"maximum":100}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferFile.Response.Get"}}}},"401":{"description":"Unauthorized - Missing or invalid token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpUnauthorizedError"}}}},"403":{"description":"Forbidden - Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpForbiddenError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpInternalServerError"}}}}},"security":[{"jwtAuth":[]},{"apiKeyAuth":[]}]}},"/transfer-file/{transfer_file_id}":{"get":{"summary":"Obter transferência de arquivo","description":"Retorna os dados da transferência e URL pré-assinada para download.","tags":["Arquivos"],"parameters":[{"name":"transfer_file_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferFileTransferFileId.Response.Get"}}}},"401":{"description":"Unauthorized - Missing or invalid token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpUnauthorizedError"}}}},"403":{"description":"Forbidden - Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpForbiddenError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpInternalServerError"}}}}},"security":[{"jwtAuth":[]},{"apiKeyAuth":[]}]},"patch":{"summary":"Atualizar status da transferência","description":"Atualiza o status da transferência (ex.: baixado ou erro) e mensagem de erro opcional.","tags":["Arquivos"],"parameters":[{"name":"transfer_file_id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferFileTransferFileId.Body.Patch"},"example":{"status":"downloaded"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferFileTransferFileId.Response.Patch"}}}},"401":{"description":"Unauthorized - Missing or invalid token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpUnauthorizedError"}}}},"403":{"description":"Forbidden - Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpForbiddenError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpInternalServerError"}}}}},"security":[{"jwtAuth":[]},{"apiKeyAuth":[]}]}},"/warrants/{lawsuit_cnj}/attachments/{attachment_id}":{"get":{"summary":"URL de anexo de mandado","description":"Retorna URL para download do anexo associado ao mandado do processo.","tags":["Anexos"],"parameters":[{"name":"lawsuit_cnj","in":"path","required":true,"schema":{"type":"string"}},{"name":"attachment_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WarrantsLawsuitCnjAttachmentsAttachmentId.Response.Get"}}}},"401":{"description":"Unauthorized - Missing or invalid token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpUnauthorizedError"}}}},"403":{"description":"Forbidden - Insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpForbiddenError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpInternalServerError"}}}}},"security":[{"jwtAuth":[]},{"apiKeyAuth":[]}]}}},"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT Bearer token for authentication"},"apiKeyAuth":{"type":"apiKey","in":"header","name":"api-key","description":"API key for authentication"}},"schemas":{"HttpBadRequestError":{"type":"object","properties":{"error":{"type":"object","properties":{"name":{"type":"string","example":"HttpBadRequestError"},"message":{"type":"string","example":"BAD_REQUEST"},"stack":{"type":"string"},"data":{"type":"array","items":{"type":"string"},"example":["Invalid email format","Password too short"]}}}}},"HttpUnauthorizedError":{"type":"object","properties":{"error":{"type":"object","properties":{"name":{"type":"string","example":"HttpUnauthorizedError"},"message":{"type":"string","example":"UNAUTHORIZED"},"stack":{"type":"string"},"data":{"type":"string","example":"User must be authenticated"}}}}},"HttpForbiddenError":{"type":"object","properties":{"error":{"type":"object","properties":{"name":{"type":"string","example":"HttpForbiddenError"},"message":{"type":"string","example":"FORBIDDEN"},"stack":{"type":"string"},"data":{"type":"string","example":"Authenticated user is not authorized"}}}}},"HttpNotFoundError":{"type":"object","properties":{"error":{"type":"object","properties":{"name":{"type":"string","example":"HttpNotFoundError"},"message":{"type":"string","example":"NOT_FOUND"},"stack":{"type":"string"},"data":{"type":"object","example":{"id":"123"}}}}}},"HttpConflictError":{"type":"object","properties":{"error":{"type":"object","properties":{"name":{"type":"string","example":"HttpConflictError"},"message":{"type":"string","example":"CONFLICT"},"stack":{"type":"string"},"data":{"type":"object","example":{"email":"already_exists"}}}}}},"HttpTooManyRequestsError":{"type":"object","properties":{"error":{"type":"object","properties":{"name":{"type":"string","example":"HttpTooManyRequestsError"},"message":{"type":"string","example":"TOO_MANY_REQUESTS"},"stack":{"type":"string"},"data":{"type":"string","example":"Rate limit exceeded. Check the Retry-After header for the remaining time to wait."}}}}},"HttpUnprocessableEntityError":{"type":"object","properties":{"error":{"type":"object","properties":{"name":{"type":"string","example":"HttpUnprocessableEntityError"},"message":{"type":"string","example":"UNPROCESSABLE_ENTITY"},"stack":{"type":"string"},"data":{"type":"string","example":"Invalid processing state"}}}}},"HttpInternalServerError":{"type":"object","properties":{"error":{"type":"object","properties":{"name":{"type":"string","example":"HttpInternalServerError"},"message":{"type":"string","example":"INTERNAL_SERVER_ERROR"},"stack":{"type":"string"},"data":{"type":"object","example":{"message":"Database connection failed"}}}}}},"HttpGenericError":{"type":"object","properties":{"error":{"type":"object","properties":{"name":{"type":"string","example":"HttpError"},"message":{"type":"string","example":"ERROR"},"stack":{"type":"string"},"data":{"type":"object","example":{"info":"Additional error data"}}}}}},"Entities.Response.Post":{"type":"object","properties":{"request_id":{"type":"string"},"response_data":{"type":"array","items":{"type":"object","properties":{"entity_id":{"type":"string"},"entity_type":{"type":"string","enum":["person","company"]},"name":{"type":"string"},"social_name":{"type":"string"},"main_document":{"type":"string"},"documents":{"default":[],"type":"array","items":{"type":"object","properties":{"document":{"type":"string"},"document_type":{"type":"string","enum":["cpf","cnpj","ie","im","rg","oab","rji","other"]}}}},"addresses":{"default":[],"type":"array","items":{"type":"object","properties":{"street":{"type":"string"},"number":{"type":"string"},"complement":{"type":"string"},"neighborhood":{"type":"string"},"city":{"type":"string"},"state":{"type":"string","enum":["AC","AL","AP","AM","BA","CE","DF","ES","GO","MA","MT","MS","MG","PA","PB","PR","PE","PI","RJ","RN","RS","RO","RR","SC","SP","SE","TO","XX"]},"zip_code":{"type":"string"},"ibge_code":{"type":"number"},"country":{"type":"string"}}}},"contacts":{"default":[],"type":"array","items":{"type":"object","properties":{"contact_type":{"type":"string","enum":["email","phone","other"]},"description":{"type":"string"}},"required":["contact_type"]}},"aka_names":{"default":[],"type":"array","items":{"type":"string"}},"parents":{"default":[],"type":"array","items":{"type":"object","properties":{"entity_id":{"type":"string"},"name":{"type":"string"},"kinship":{"type":"string","enum":["father","mother","brother","sister","son","daughter","grandparent","grandma","cousin","uncle","other"]}}}},"birth_date":{"type":"string","format":"date-time"},"place_of_birth":{"type":"string"},"nationality":{"type":"string"},"regime":{"type":"string"},"gender":{"type":"string","enum":["male","female"]},"ethnicity":{"type":"string"},"tags":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"string","format":"date-time"},{}]}},"latest_searches":{"default":[],"type":"array","items":{"type":"object","properties":{"search_type":{"type":"string","enum":["cpf","cnpj","oab","name","rji","lawsuit_cnj","lawsuit_attachment","execution_attachment","custom"]},"updated_at":{"type":"string","format":"date-time"}},"required":["search_type"]}},"legal_nature":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"active":{"type":"boolean"}},"required":["code","name","active"]},"head_office":{"type":"boolean"},"branch_activities":{"default":[],"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"main_activity":{"type":"boolean"},"tree_history":{"type":"string"},"active":{"type":"boolean"}},"required":["code","name","main_activity","tree_history","active"]}},"position":{"type":"string"},"profession":{"type":"string"},"size":{"type":"string"},"is_public":{"type":"boolean"},"closing_date":{"type":"string","format":"date-time"},"disabled_person":{"type":"boolean"},"deficiency":{"type":"string"},"revenue_service_updated_at":{"type":"string","format":"date-time"},"revenue_service_active":{"type":"boolean"},"revenue_service_status":{"type":"string"},"share_capital":{"type":"number"},"special_status":{"type":"string"},"special_status_date":{"type":"string","format":"date-time"},"responsible_qualification_id":{"type":"string"},"age_group":{"type":"string"},"pep":{"default":[],"type":"array","items":{"type":"object","properties":{"function":{"type":"string"},"function_acronym":{"type":"string"},"organ_name":{"type":"string"},"start_date":{"type":"string","format":"date-time"},"end_date":{"type":"string","format":"date-time"},"grace_period_end":{"type":"string","format":"date-time"}}}},"entry_date":{"type":"string","format":"date-time"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"partners":{},"associated_people":{}},"required":["entity_type","name","partners"]}},"has_multiple_matches":{"type":"boolean"},"matches_count":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["request_id","response_data"]},"Entities.Body.Post":{"type":"object","properties":{"search":{"type":"object","properties":{"on_demand":{"type":"boolean"},"datalake_only":{"type":"boolean"},"search_type":{"type":"string","enum":["cpf","cnpj","name"]},"search_key":{"type":"string"}},"required":["search_type","search_key"]},"reveal_partners_documents":{"type":"boolean"}},"required":["search"]},"EstablishmentsCnpjBasicBranches.Params.Get":{"type":"object","required":["cnpj_basic"],"properties":{"cnpj_basic":{"type":"string"}}},"EstablishmentsCnpjBasicBranches.Response.Get":{"type":"object","properties":{"cnpj_basic":{"type":"string"},"name":{"type":"string"},"head_office":{"type":"string"},"branches":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"object","properties":{"cnpj":{"type":"string"},"name":{"type":"string"},"trade_name":{"type":"string"},"state":{"type":"string"},"city":{"type":"string"},"situation":{"type":"string"},"is_active":{"type":"boolean"}},"required":["cnpj"]}]}},"total":{"type":"number"}},"required":["cnpj_basic","head_office","branches","total"]},"SourcesName.Query.Get":{"type":"object","properties":{"index_bearer":{"type":"integer","minimum":0,"maximum":9007199254740991}}},"SourcesName.Params.Get":{"type":"object","required":["name"],"properties":{"name":{"type":"string"}}},"SourcesName.Response.Get":{"type":"object","properties":{"scrapper":{"type":"string"},"name":{"type":"string"},"public_name":{"type":"string"},"justice":{"type":"string"},"tribunal":{"type":"string"},"state":{"type":"string"},"instance":{"type":"number"},"method":{"type":"string"},"url":{"type":"string"},"cost":{"type":"number"},"headers":{"default":{},"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}},"query_params":{"default":{},"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}},"user_data":{"type":"object","additionalProperties":{}},"body":{"default":{},"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}},"proxy_name":{"type":"string"},"proxy_enabled":{"type":"boolean"},"credentials":{"type":"array","items":{"type":"object","properties":{"username":{"type":"string"},"password":{"type":"string"},"session":{"type":"string"},"status":{"type":"string","enum":["active","inactive"]},"custom_data":{"type":"object","additionalProperties":{"type":"string"}}}}},"capabilities":{"type":"array","items":{"type":"string","enum":["has_document_cpf","has_document_cnpj","has_document_oab","has_lawsuit_cover","has_lawsuit_amount","has_lawsuit_class","has_lawsuit_status","has_lawsuit_subjects","has_lawsuit_parties","has_lawsuit_attachment","has_lawsuit_related","has_name","has_updated_movements","with_captcha","with_proxy","low_response_time","medium_response_time","high_response_time","has_warrant","has_communication","has_public_search"]}},"quality_weight":{"type":"object","additionalProperties":{"type":"number"},"required":["lawsuit"]},"scrapper_mode":{"type":"string","enum":["promise_all","for_await","single","none"]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["scrapper","name","justice","tribunal","state","instance","method","url","cost","headers","query_params","user_data","body","proxy_enabled","credentials","capabilities","quality_weight"]},"SourcesName.Params.Put":{"type":"object","required":["name"],"properties":{"name":{"type":"string"}}},"SourcesName.Response.Put":{"type":"object","properties":{"scrapper":{"type":"string"},"name":{"type":"string"},"public_name":{"type":"string"},"justice":{"type":"string"},"tribunal":{"type":"string"},"state":{"type":"string"},"instance":{"type":"number"},"method":{"type":"string"},"url":{"type":"string"},"cost":{"type":"number"},"headers":{"default":{},"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}},"query_params":{"default":{},"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}},"user_data":{"type":"object","additionalProperties":{}},"body":{"default":{},"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}},"proxy_name":{"type":"string"},"proxy_enabled":{"type":"boolean"},"credentials":{"type":"array","items":{"type":"object","properties":{"username":{"type":"string"},"password":{"type":"string"},"session":{"type":"string"},"status":{"type":"string","enum":["active","inactive"]},"custom_data":{"type":"object","additionalProperties":{"type":"string"}}}}},"capabilities":{"type":"array","items":{"type":"string","enum":["has_document_cpf","has_document_cnpj","has_document_oab","has_lawsuit_cover","has_lawsuit_amount","has_lawsuit_class","has_lawsuit_status","has_lawsuit_subjects","has_lawsuit_parties","has_lawsuit_attachment","has_lawsuit_related","has_name","has_updated_movements","with_captcha","with_proxy","low_response_time","medium_response_time","high_response_time","has_warrant","has_communication","has_public_search"]}},"quality_weight":{"type":"object","additionalProperties":{"type":"number"},"required":["lawsuit"]},"scrapper_mode":{"type":"string","enum":["promise_all","for_await","single","none"]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["scrapper","name","justice","tribunal","state","instance","method","url","cost","headers","query_params","user_data","body","proxy_enabled","credentials","capabilities","quality_weight"]},"SourcesName.Body.Put":{"type":"object","properties":{"scrapper":{"type":"string"},"public_name":{"type":"string"},"justice":{"type":"string"},"tribunal":{"type":"string"},"state":{"type":"string"},"instance":{"type":"number"},"method":{"type":"string"},"url":{"type":"string"},"cost":{"type":"number"},"headers":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}},"query_params":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}},"user_data":{"type":"object","additionalProperties":{}},"body":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}},"proxy_name":{"type":"string"},"proxy_enabled":{"type":"boolean"},"credentials":{"type":"array","items":{"type":"object","properties":{"username":{"type":"string"},"password":{"type":"string"},"session":{"type":"string"},"status":{"type":"string","enum":["active","inactive"]},"custom_data":{"type":"object","additionalProperties":{"type":"string"}}}}},"capabilities":{"type":"array","items":{"type":"string","enum":["has_document_cpf","has_document_cnpj","has_document_oab","has_lawsuit_cover","has_lawsuit_amount","has_lawsuit_class","has_lawsuit_status","has_lawsuit_subjects","has_lawsuit_parties","has_lawsuit_attachment","has_lawsuit_related","has_name","has_updated_movements","with_captcha","with_proxy","low_response_time","medium_response_time","high_response_time","has_warrant","has_communication","has_public_search"]}},"quality_weight":{"type":"object","additionalProperties":{"type":"number"},"required":["lawsuit"]},"scrapper_mode":{"type":"string","enum":["promise_all","for_await","single","none"]}}},"HealthLiveness.Response.Get":{"type":"object","properties":{"liveness":{"type":"boolean"}},"required":["liveness"]},"HealthReadiness.Response.Get":{"type":"object","properties":{"readiness":{"type":"boolean"}},"required":["readiness"]},"LawsuitsLawsuitCnjInstanceAttachments.Params.Delete":{"type":"object","required":["lawsuit_cnj","instance"],"properties":{"lawsuit_cnj":{"type":"string"},"instance":{"type":"string"}}},"LawsuitsLawsuitCnj.Query.Get":{"type":"object","properties":{"instance":{"type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":9007199254740991},"all_att":{"type":"boolean"},"saved_att":{"type":"boolean"},"only_att_with_steps":{"type":"boolean"},"with_inferred_parties":{"default":true,"type":"boolean"}},"required":["with_inferred_parties"]},"LawsuitsLawsuitCnj.Params.Get":{"type":"object","required":["lawsuit_cnj"],"properties":{"lawsuit_cnj":{"type":"string"}}},"LawsuitsLawsuitCnj.Response.Get":{"type":"object","properties":{"code":{"type":"string"},"instance":{"type":"number"},"name":{"type":"string"},"free_justice":{"type":"boolean"},"secrecy_level":{"type":"number"},"courts":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"date":{"type":"string","format":"date-time"},"name":{"type":"string"}}}},"tribunal_acronym":{"type":"string"},"county":{"type":"string"},"state":{"type":"string"},"city":{"type":"string"},"judge":{"type":"string"},"distribution_date":{"type":"string","format":"date-time"},"last_step":{"type":"object","properties":{"lawsuit_cnj":{"type":"string"},"lawsuit_instance":{"type":"number"},"step_id":{"type":"string"},"step_date":{"type":"string","format":"date-time"},"content":{"type":"string"},"step_type":{"type":"string"},"attachment_url":{"type":"string"},"attachment_extension":{"type":"string"},"private":{"type":"boolean"},"source_name":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"tags":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"string","format":"date-time"},{}]}},"steps_count":{"type":"number"}},"required":["lawsuit_cnj","lawsuit_instance","step_id","private"]},"main_lawsuit":{"type":"object","properties":{"code":{"type":"string"},"instance":{"type":"number"},"name":{"type":"string"},"classification":{"type":"object","properties":{"code":{"type":"string"},"date":{"type":"string","format":"date-time"},"name":{"type":"string"}}},"tags":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"string","format":"date-time"},{}]}}},"required":["code","instance"]},"tags":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"string","format":"date-time"},{}]}},"justice":{"type":"string"},"justice_description":{"type":"string"},"tribunal":{"type":"string"},"crawler":{"type":"object","properties":{"source_name":{"type":"string"},"crawl_id":{"type":"string"},"updated_at":{"type":"string","format":"date-time"},"weight":{"type":"number"}},"required":["source_name","crawl_id","weight"]},"status":{"type":"string"},"phase":{"type":"string"},"phase_history":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"phase_date":{"type":"string","format":"date-time"},"step_id":{"type":"string"}},"required":["name"]}},"sentence":{"type":"object","properties":{"sentence_type":{"type":"string"},"sentence_date":{"type":"string","format":"date-time"},"step_id":{"type":"string"}},"required":["sentence_type"]},"appeal_judgement":{"type":"object","properties":{"appeal_judgement_type":{"type":"string"},"appeal_judgement_date":{"type":"string","format":"date-time"},"step_id":{"type":"string"}},"required":["appeal_judgement_type"]},"custody":{"type":"object","properties":{"custody_type":{"type":"string"},"custody_date":{"type":"string","format":"date-time"},"step_id":{"type":"string"}},"required":["custody_type"]},"appeal":{"type":"object","properties":{"appeal_date":{"type":"string","format":"date-time"},"step_id":{"type":"string"}}},"distribution":{"type":"object","properties":{"distribution_type":{"type":"string"},"distribution_date":{"type":"string","format":"date-time"},"step_id":{"type":"string"}},"required":["distribution_type"]},"situation":{"type":"string"},"area":{"type":"string"},"metadata":{"type":"object","additionalProperties":{}},"lgpd_filtered":{"type":"boolean"},"system":{"type":"string"},"tribunal_url":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"pipelines":{"default":[],"type":"array","items":{"type":"object","properties":{"name":{"type":"string","enum":["data_completeness","normalizer","homonymous_treatment"]},"version":{"type":"number"},"updated_at":{"type":"string","format":"date-time"}},"required":["name","version"]}},"full_lawsuit_file":{"type":"object","properties":{"status":{"type":"string","enum":["done","pending"]},"updated_at":{"type":"string","format":"date-time"}},"required":["status"]},"amount":{"type":"number"},"classifications":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"local_code":{"type":"string"},"date":{"type":"string","format":"date-time"},"name":{"type":"string"}}}},"subjects":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"local_code":{"type":"string"},"date":{"type":"string","format":"date-time"},"name":{"type":"string"}}}},"parties":{"type":"array","items":{"type":"object","properties":{"entity_id":{"type":"string"},"entity_type":{"type":"string","enum":["person","company"]},"name":{"type":"string"},"social_name":{"type":"string"},"main_document":{"type":"string"},"documents":{"default":[],"type":"array","items":{"type":"object","properties":{"document":{"type":"string"},"document_type":{"type":"string","enum":["cpf","cnpj","ie","im","rg","oab","rji","other"]}}}},"addresses":{"default":[],"type":"array","items":{"type":"object","properties":{"street":{"type":"string"},"number":{"type":"string"},"complement":{"type":"string"},"neighborhood":{"type":"string"},"city":{"type":"string"},"state":{"type":"string","enum":["AC","AL","AP","AM","BA","CE","DF","ES","GO","MA","MT","MS","MG","PA","PB","PR","PE","PI","RJ","RN","RS","RO","RR","SC","SP","SE","TO","XX"]},"zip_code":{"type":"string"},"ibge_code":{"type":"number"},"country":{"type":"string"}}}},"contacts":{"default":[],"type":"array","items":{"type":"object","properties":{"contact_type":{"type":"string","enum":["email","phone","other"]},"description":{"type":"string"}},"required":["contact_type"]}},"aka_names":{"default":[],"type":"array","items":{"type":"string"}},"parents":{"default":[],"type":"array","items":{"type":"object","properties":{"entity_id":{"type":"string"},"name":{"type":"string"},"kinship":{"type":"string","enum":["father","mother","brother","sister","son","daughter","grandparent","grandma","cousin","uncle","other"]}}}},"birth_date":{"type":"string","format":"date-time"},"place_of_birth":{"type":"string"},"nationality":{"type":"string"},"regime":{"type":"string"},"gender":{"type":"string","enum":["male","female"]},"ethnicity":{"type":"string"},"tags":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"string","format":"date-time"},{}]}},"latest_searches":{"default":[],"type":"array","items":{"type":"object","properties":{"search_type":{"type":"string","enum":["cpf","cnpj","oab","name","rji","lawsuit_cnj","lawsuit_attachment","execution_attachment","custom"]},"updated_at":{"type":"string","format":"date-time"}},"required":["search_type"]}},"legal_nature":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"active":{"type":"boolean"}},"required":["code","name","active"]},"head_office":{"type":"boolean"},"branch_activities":{"default":[],"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"main_activity":{"type":"boolean"},"tree_history":{"type":"string"},"active":{"type":"boolean"}},"required":["code","name","main_activity","tree_history","active"]}},"position":{"type":"string"},"profession":{"type":"string"},"size":{"type":"string"},"is_public":{"type":"boolean"},"closing_date":{"type":"string","format":"date-time"},"disabled_person":{"type":"boolean"},"deficiency":{"type":"string"},"revenue_service_updated_at":{"type":"string","format":"date-time"},"revenue_service_active":{"type":"boolean"},"revenue_service_status":{"type":"string"},"share_capital":{"type":"number"},"special_status":{"type":"string"},"special_status_date":{"type":"string","format":"date-time"},"responsible_qualification_id":{"type":"string"},"age_group":{"type":"string"},"pep":{"default":[],"type":"array","items":{"type":"object","properties":{"function":{"type":"string"},"function_acronym":{"type":"string"},"organ_name":{"type":"string"},"start_date":{"type":"string","format":"date-time"},"end_date":{"type":"string","format":"date-time"},"grace_period_end":{"type":"string","format":"date-time"}}}},"entry_date":{"type":"string","format":"date-time"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"partners":{},"associated_people":{},"person_type":{"type":"string"},"side":{"type":"string","enum":["Passive","Active","Interested","Unknown"]},"lawyers":{"type":"array","items":{"type":"object","properties":{"entity_id":{"type":"string"},"entity_type":{"type":"string","enum":["person","company"]},"name":{"type":"string"},"social_name":{"type":"string"},"main_document":{"type":"string"},"documents":{"default":[],"type":"array","items":{"type":"object","properties":{"document":{"type":"string"},"document_type":{"type":"string","enum":["cpf","cnpj","ie","im","rg","oab","rji","other"]}}}},"addresses":{"default":[],"type":"array","items":{"type":"object","properties":{"street":{"type":"string"},"number":{"type":"string"},"complement":{"type":"string"},"neighborhood":{"type":"string"},"city":{"type":"string"},"state":{"type":"string","enum":["AC","AL","AP","AM","BA","CE","DF","ES","GO","MA","MT","MS","MG","PA","PB","PR","PE","PI","RJ","RN","RS","RO","RR","SC","SP","SE","TO","XX"]},"zip_code":{"type":"string"},"ibge_code":{"type":"number"},"country":{"type":"string"}}}},"contacts":{"default":[],"type":"array","items":{"type":"object","properties":{"contact_type":{"type":"string","enum":["email","phone","other"]},"description":{"type":"string"}},"required":["contact_type"]}},"aka_names":{"default":[],"type":"array","items":{"type":"string"}},"parents":{"default":[],"type":"array","items":{"type":"object","properties":{"entity_id":{"type":"string"},"name":{"type":"string"},"kinship":{"type":"string","enum":["father","mother","brother","sister","son","daughter","grandparent","grandma","cousin","uncle","other"]}}}},"birth_date":{"type":"string","format":"date-time"},"place_of_birth":{"type":"string"},"nationality":{"type":"string"},"regime":{"type":"string"},"gender":{"type":"string","enum":["male","female"]},"ethnicity":{"type":"string"},"tags":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"string","format":"date-time"},{}]}},"latest_searches":{"default":[],"type":"array","items":{"type":"object","properties":{"search_type":{"type":"string","enum":["cpf","cnpj","oab","name","rji","lawsuit_cnj","lawsuit_attachment","execution_attachment","custom"]},"updated_at":{"type":"string","format":"date-time"}},"required":["search_type"]}},"legal_nature":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"active":{"type":"boolean"}},"required":["code","name","active"]},"head_office":{"type":"boolean"},"branch_activities":{"default":[],"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"main_activity":{"type":"boolean"},"tree_history":{"type":"string"},"active":{"type":"boolean"}},"required":["code","name","main_activity","tree_history","active"]}},"position":{"type":"string"},"profession":{"type":"string"},"size":{"type":"string"},"is_public":{"type":"boolean"},"closing_date":{"type":"string","format":"date-time"},"disabled_person":{"type":"boolean"},"deficiency":{"type":"string"},"revenue_service_updated_at":{"type":"string","format":"date-time"},"revenue_service_active":{"type":"boolean"},"revenue_service_status":{"type":"string"},"share_capital":{"type":"number"},"special_status":{"type":"string"},"special_status_date":{"type":"string","format":"date-time"},"responsible_qualification_id":{"type":"string"},"age_group":{"type":"string"},"pep":{"default":[],"type":"array","items":{"type":"object","properties":{"function":{"type":"string"},"function_acronym":{"type":"string"},"organ_name":{"type":"string"},"start_date":{"type":"string","format":"date-time"},"end_date":{"type":"string","format":"date-time"},"grace_period_end":{"type":"string","format":"date-time"}}}},"entry_date":{"type":"string","format":"date-time"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"partners":{},"associated_people":{}}}},"was_inferred":{"type":"boolean"}},"required":["side"]}},"attachments":{"type":"array","items":{"type":"object","properties":{"attachment_id":{"type":"string"},"attachment_type":{"type":"string"},"attachment_name":{"type":"string"},"step_id":{"type":"string"},"content":{"type":"string"},"private":{"type":"boolean"},"extension":{"type":"string"},"tags":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"string","format":"date-time"},{}]}},"status":{"type":"string","enum":["done","pending"]},"attachment_date":{"type":"string","format":"date-time"},"corrupted":{"type":"boolean"},"user_data":{"type":"object","additionalProperties":{"type":"string"}}},"required":["attachment_id","status"]}},"related_lawsuits":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"instance":{"type":"number"},"name":{"type":"string"},"classification":{"type":"object","properties":{"code":{"type":"string"},"date":{"type":"string","format":"date-time"},"name":{"type":"string"}}},"tags":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"string","format":"date-time"},{}]}}},"required":["code","instance"]}},"steps":{"type":"array","items":{"type":"object","properties":{"lawsuit_cnj":{"type":"string"},"lawsuit_instance":{"type":"number"},"step_id":{"type":"string"},"step_date":{"type":"string","format":"date-time"},"content":{"type":"string"},"step_type":{"type":"string"},"attachment_url":{"type":"string"},"attachment_extension":{"type":"string"},"private":{"type":"boolean"},"source_name":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"tags":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"string","format":"date-time"},{}]}}},"required":["lawsuit_cnj","lawsuit_instance","step_id","private"]}},"saved_attachments":{"type":"array","items":{"type":"object","properties":{"attachment_id":{"type":"string"},"attachment_type":{"type":"string"},"attachment_name":{"type":"string"},"step_id":{"type":"string"},"content":{"type":"string"},"private":{"type":"boolean"},"extension":{"type":"string"},"tags":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"string","format":"date-time"},{}]}},"status":{"type":"string","enum":["done","pending"]},"attachment_date":{"type":"string","format":"date-time"},"corrupted":{"type":"boolean"},"user_data":{"type":"object","additionalProperties":{"type":"string"}}},"required":["attachment_id","status"]}}},"required":["code","instance","courts","justice","tribunal","crawler","classifications","subjects","parties","attachments","related_lawsuits","steps"]},"LawsuitsLawsuitCnjInstanceConsolidated.Params.Get":{"type":"object","required":["lawsuit_cnj","instance"],"properties":{"lawsuit_cnj":{"type":"string"},"instance":{"type":"string"}}},"LawsuitsLawsuitCnjInstanceConsolidated.Response.Get":{"type":"object","properties":{"attachment_url":{"type":"string"}},"required":["attachment_url"]},"LawsuitsLawsuitCnjInstanceAttachmentsAttachmentId.Params.Get":{"type":"object","required":["lawsuit_cnj","instance","attachment_id"],"properties":{"lawsuit_cnj":{"type":"string"},"instance":{"type":"string"},"attachment_id":{"type":"string"}}},"LawsuitsLawsuitCnjInstanceAttachmentsAttachmentId.Response.Get":{"type":"object","properties":{"attachment_url":{"type":"string"}},"required":["attachment_url"]},"LawsuitsLawsuitCnjInstanceAttachmentsAttachmentId.Params.Patch":{"type":"object","required":["lawsuit_cnj","instance","attachment_id"],"properties":{"lawsuit_cnj":{"type":"string"},"instance":{"type":"string"},"attachment_id":{"type":"string"}}},"Lawsuits.Response.Post":{"type":"object","properties":{"has_lawsuits":{"type":"boolean"},"request_id":{"type":"string"},"lawsuits":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"instance":{"type":"number"},"name":{"type":"string"},"free_justice":{"type":"boolean"},"secrecy_level":{"type":"number"},"courts":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"date":{"type":"string","format":"date-time"},"name":{"type":"string"}}}},"tribunal_acronym":{"type":"string"},"county":{"type":"string"},"state":{"type":"string"},"city":{"type":"string"},"judge":{"type":"string"},"distribution_date":{"type":"string","format":"date-time"},"last_step":{"type":"object","properties":{"lawsuit_cnj":{"type":"string"},"lawsuit_instance":{"type":"number"},"step_id":{"type":"string"},"step_date":{"type":"string","format":"date-time"},"content":{"type":"string"},"step_type":{"type":"string"},"attachment_url":{"type":"string"},"attachment_extension":{"type":"string"},"private":{"type":"boolean"},"source_name":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"tags":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"string","format":"date-time"},{}]}},"steps_count":{"type":"number"}},"required":["lawsuit_cnj","lawsuit_instance","step_id","private"]},"main_lawsuit":{"type":"object","properties":{"code":{"type":"string"},"instance":{"type":"number"},"name":{"type":"string"},"classification":{"type":"object","properties":{"code":{"type":"string"},"date":{"type":"string","format":"date-time"},"name":{"type":"string"}}},"tags":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"string","format":"date-time"},{}]}}},"required":["code","instance"]},"tags":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"string","format":"date-time"},{}]}},"justice":{"type":"string"},"justice_description":{"type":"string"},"tribunal":{"type":"string"},"crawler":{"type":"object","properties":{"source_name":{"type":"string"},"crawl_id":{"type":"string"},"updated_at":{"type":"string","format":"date-time"},"weight":{"type":"number"}},"required":["source_name","crawl_id","weight"]},"status":{"type":"string"},"phase":{"type":"string"},"phase_history":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"phase_date":{"type":"string","format":"date-time"},"step_id":{"type":"string"}},"required":["name"]}},"sentence":{"type":"object","properties":{"sentence_type":{"type":"string"},"sentence_date":{"type":"string","format":"date-time"},"step_id":{"type":"string"}},"required":["sentence_type"]},"appeal_judgement":{"type":"object","properties":{"appeal_judgement_type":{"type":"string"},"appeal_judgement_date":{"type":"string","format":"date-time"},"step_id":{"type":"string"}},"required":["appeal_judgement_type"]},"custody":{"type":"object","properties":{"custody_type":{"type":"string"},"custody_date":{"type":"string","format":"date-time"},"step_id":{"type":"string"}},"required":["custody_type"]},"appeal":{"type":"object","properties":{"appeal_date":{"type":"string","format":"date-time"},"step_id":{"type":"string"}}},"distribution":{"type":"object","properties":{"distribution_type":{"type":"string"},"distribution_date":{"type":"string","format":"date-time"},"step_id":{"type":"string"}},"required":["distribution_type"]},"situation":{"type":"string"},"area":{"type":"string"},"metadata":{"type":"object","additionalProperties":{}},"lgpd_filtered":{"type":"boolean"},"system":{"type":"string"},"tribunal_url":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"pipelines":{"default":[],"type":"array","items":{"type":"object","properties":{"name":{"type":"string","enum":["data_completeness","normalizer","homonymous_treatment"]},"version":{"type":"number"},"updated_at":{"type":"string","format":"date-time"}},"required":["name","version"]}},"full_lawsuit_file":{"type":"object","properties":{"status":{"type":"string","enum":["done","pending"]},"updated_at":{"type":"string","format":"date-time"}},"required":["status"]},"amount":{"type":"number"},"classifications":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"local_code":{"type":"string"},"date":{"type":"string","format":"date-time"},"name":{"type":"string"}}}},"subjects":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"local_code":{"type":"string"},"date":{"type":"string","format":"date-time"},"name":{"type":"string"}}}},"parties":{"type":"array","items":{"type":"object","properties":{"entity_id":{"type":"string"},"entity_type":{"type":"string","enum":["person","company"]},"name":{"type":"string"},"social_name":{"type":"string"},"main_document":{"type":"string"},"documents":{"default":[],"type":"array","items":{"type":"object","properties":{"document":{"type":"string"},"document_type":{"type":"string","enum":["cpf","cnpj","ie","im","rg","oab","rji","other"]}}}},"addresses":{"default":[],"type":"array","items":{"type":"object","properties":{"street":{"type":"string"},"number":{"type":"string"},"complement":{"type":"string"},"neighborhood":{"type":"string"},"city":{"type":"string"},"state":{"type":"string","enum":["AC","AL","AP","AM","BA","CE","DF","ES","GO","MA","MT","MS","MG","PA","PB","PR","PE","PI","RJ","RN","RS","RO","RR","SC","SP","SE","TO","XX"]},"zip_code":{"type":"string"},"ibge_code":{"type":"number"},"country":{"type":"string"}}}},"contacts":{"default":[],"type":"array","items":{"type":"object","properties":{"contact_type":{"type":"string","enum":["email","phone","other"]},"description":{"type":"string"}},"required":["contact_type"]}},"aka_names":{"default":[],"type":"array","items":{"type":"string"}},"parents":{"default":[],"type":"array","items":{"type":"object","properties":{"entity_id":{"type":"string"},"name":{"type":"string"},"kinship":{"type":"string","enum":["father","mother","brother","sister","son","daughter","grandparent","grandma","cousin","uncle","other"]}}}},"birth_date":{"type":"string","format":"date-time"},"place_of_birth":{"type":"string"},"nationality":{"type":"string"},"regime":{"type":"string"},"gender":{"type":"string","enum":["male","female"]},"ethnicity":{"type":"string"},"tags":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"string","format":"date-time"},{}]}},"latest_searches":{"default":[],"type":"array","items":{"type":"object","properties":{"search_type":{"type":"string","enum":["cpf","cnpj","oab","name","rji","lawsuit_cnj","lawsuit_attachment","execution_attachment","custom"]},"updated_at":{"type":"string","format":"date-time"}},"required":["search_type"]}},"legal_nature":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"active":{"type":"boolean"}},"required":["code","name","active"]},"head_office":{"type":"boolean"},"branch_activities":{"default":[],"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"main_activity":{"type":"boolean"},"tree_history":{"type":"string"},"active":{"type":"boolean"}},"required":["code","name","main_activity","tree_history","active"]}},"position":{"type":"string"},"profession":{"type":"string"},"size":{"type":"string"},"is_public":{"type":"boolean"},"closing_date":{"type":"string","format":"date-time"},"disabled_person":{"type":"boolean"},"deficiency":{"type":"string"},"revenue_service_updated_at":{"type":"string","format":"date-time"},"revenue_service_active":{"type":"boolean"},"revenue_service_status":{"type":"string"},"share_capital":{"type":"number"},"special_status":{"type":"string"},"special_status_date":{"type":"string","format":"date-time"},"responsible_qualification_id":{"type":"string"},"age_group":{"type":"string"},"pep":{"default":[],"type":"array","items":{"type":"object","properties":{"function":{"type":"string"},"function_acronym":{"type":"string"},"organ_name":{"type":"string"},"start_date":{"type":"string","format":"date-time"},"end_date":{"type":"string","format":"date-time"},"grace_period_end":{"type":"string","format":"date-time"}}}},"entry_date":{"type":"string","format":"date-time"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"partners":{},"associated_people":{},"person_type":{"type":"string"},"side":{"type":"string","enum":["Passive","Active","Interested","Unknown"]},"lawyers":{"type":"array","items":{"type":"object","properties":{"entity_id":{"type":"string"},"entity_type":{"type":"string","enum":["person","company"]},"name":{"type":"string"},"social_name":{"type":"string"},"main_document":{"type":"string"},"documents":{"default":[],"type":"array","items":{"type":"object","properties":{"document":{"type":"string"},"document_type":{"type":"string","enum":["cpf","cnpj","ie","im","rg","oab","rji","other"]}}}},"addresses":{"default":[],"type":"array","items":{"type":"object","properties":{"street":{"type":"string"},"number":{"type":"string"},"complement":{"type":"string"},"neighborhood":{"type":"string"},"city":{"type":"string"},"state":{"type":"string","enum":["AC","AL","AP","AM","BA","CE","DF","ES","GO","MA","MT","MS","MG","PA","PB","PR","PE","PI","RJ","RN","RS","RO","RR","SC","SP","SE","TO","XX"]},"zip_code":{"type":"string"},"ibge_code":{"type":"number"},"country":{"type":"string"}}}},"contacts":{"default":[],"type":"array","items":{"type":"object","properties":{"contact_type":{"type":"string","enum":["email","phone","other"]},"description":{"type":"string"}},"required":["contact_type"]}},"aka_names":{"default":[],"type":"array","items":{"type":"string"}},"parents":{"default":[],"type":"array","items":{"type":"object","properties":{"entity_id":{"type":"string"},"name":{"type":"string"},"kinship":{"type":"string","enum":["father","mother","brother","sister","son","daughter","grandparent","grandma","cousin","uncle","other"]}}}},"birth_date":{"type":"string","format":"date-time"},"place_of_birth":{"type":"string"},"nationality":{"type":"string"},"regime":{"type":"string"},"gender":{"type":"string","enum":["male","female"]},"ethnicity":{"type":"string"},"tags":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"string","format":"date-time"},{}]}},"latest_searches":{"default":[],"type":"array","items":{"type":"object","properties":{"search_type":{"type":"string","enum":["cpf","cnpj","oab","name","rji","lawsuit_cnj","lawsuit_attachment","execution_attachment","custom"]},"updated_at":{"type":"string","format":"date-time"}},"required":["search_type"]}},"legal_nature":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"active":{"type":"boolean"}},"required":["code","name","active"]},"head_office":{"type":"boolean"},"branch_activities":{"default":[],"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"main_activity":{"type":"boolean"},"tree_history":{"type":"string"},"active":{"type":"boolean"}},"required":["code","name","main_activity","tree_history","active"]}},"position":{"type":"string"},"profession":{"type":"string"},"size":{"type":"string"},"is_public":{"type":"boolean"},"closing_date":{"type":"string","format":"date-time"},"disabled_person":{"type":"boolean"},"deficiency":{"type":"string"},"revenue_service_updated_at":{"type":"string","format":"date-time"},"revenue_service_active":{"type":"boolean"},"revenue_service_status":{"type":"string"},"share_capital":{"type":"number"},"special_status":{"type":"string"},"special_status_date":{"type":"string","format":"date-time"},"responsible_qualification_id":{"type":"string"},"age_group":{"type":"string"},"pep":{"default":[],"type":"array","items":{"type":"object","properties":{"function":{"type":"string"},"function_acronym":{"type":"string"},"organ_name":{"type":"string"},"start_date":{"type":"string","format":"date-time"},"end_date":{"type":"string","format":"date-time"},"grace_period_end":{"type":"string","format":"date-time"}}}},"entry_date":{"type":"string","format":"date-time"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"partners":{},"associated_people":{}}}},"was_inferred":{"type":"boolean"}},"required":["side"]}},"attachments":{"type":"array","items":{"type":"object","properties":{"attachment_id":{"type":"string"},"attachment_type":{"type":"string"},"attachment_name":{"type":"string"},"step_id":{"type":"string"},"content":{"type":"string"},"private":{"type":"boolean"},"extension":{"type":"string"},"tags":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"string","format":"date-time"},{}]}},"status":{"type":"string","enum":["done","pending"]},"attachment_date":{"type":"string","format":"date-time"},"corrupted":{"type":"boolean"},"user_data":{"type":"object","additionalProperties":{"type":"string"}}},"required":["attachment_id","status"]}},"related_lawsuits":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"instance":{"type":"number"},"name":{"type":"string"},"classification":{"type":"object","properties":{"code":{"type":"string"},"date":{"type":"string","format":"date-time"},"name":{"type":"string"}}},"tags":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"string","format":"date-time"},{}]}}},"required":["code","instance"]}},"steps":{"type":"array","items":{"type":"object","properties":{"lawsuit_cnj":{"type":"string"},"lawsuit_instance":{"type":"number"},"step_id":{"type":"string"},"step_date":{"type":"string","format":"date-time"},"content":{"type":"string"},"step_type":{"type":"string"},"attachment_url":{"type":"string"},"attachment_extension":{"type":"string"},"private":{"type":"boolean"},"source_name":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"tags":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"string","format":"date-time"},{}]}}},"required":["lawsuit_cnj","lawsuit_instance","step_id","private"]}}},"required":["code","instance","courts","justice","tribunal","crawler","classifications","subjects","parties","attachments","related_lawsuits","steps"]}}},"required":["has_lawsuits","request_id","lawsuits"]},"Lawsuits.Body.Post":{"type":"object","properties":{"search":{"type":"object","properties":{"on_demand":{"type":"boolean"},"search_type":{"type":"string","enum":["cpf","cnpj","oab","name","rji","lawsuit_cnj","lawsuit_attachment","execution_attachment","custom"]},"search_key":{"type":"string"},"search_name":{"type":"string"},"response_type":{"default":"lawsuits","anyOf":[{"type":"string","enum":["application_error","application_warning","application_info"]},{"type":"string","enum":["lawsuits"]},{"type":"string","enum":["lawsuit"]},{"type":"string","enum":["warrant","execution"]},{"type":"string","enum":["entity"]},{"type":"string","enum":["summary"]},{"type":"string","enum":["sanction"]},{"type":"string","enum":["synthetic_lawsuits"]},{"type":"string","enum":["communication"]}]},"cache_ttl_in_days":{"type":"number"},"search_params":{"type":"object","properties":{"with_inferred_parties":{"type":"boolean"},"with_unique_name_search":{"type":"boolean"},"should_search_superior_instances":{"type":"boolean"},"reveal_partners_documents":{"type":"boolean"},"lawsuit_instance":{"type":"number"},"filter":{"type":"object","properties":{"side":{"type":"string","enum":["Passive","Active","Interested","Unknown"]},"party_names":{"type":"array","items":{"type":"string"}},"party_documents":{"type":"array","items":{"type":"string"}},"distribution_date_gte":{"type":"string","format":"date-time"},"distribution_date_lte":{"type":"string","format":"date-time"},"last_step_date_gte":{"type":"string","format":"date-time"},"last_step_date_lte":{"type":"string","format":"date-time"},"tribunals":{"type":"object","properties":{"keys":{"type":"array","items":{"type":"string"}},"not_equal":{"type":"boolean"}},"required":["keys","not_equal"]},"classification_codes":{"type":"object","properties":{"keys":{"type":"array","items":{"type":"string"}},"not_equal":{"type":"boolean"}},"required":["keys","not_equal"]},"classification_names":{"type":"object","properties":{"keys":{"type":"array","items":{"type":"string"}},"not_equal":{"type":"boolean"}},"required":["keys","not_equal"]},"subject_codes":{"type":"object","properties":{"contains":{"type":"array","items":{"type":"string"}},"not_contains":{"type":"array","items":{"type":"string"}}},"required":["contains","not_contains"]},"subject_names":{"type":"object","properties":{"contains":{"type":"array","items":{"type":"string"}},"not_contains":{"type":"array","items":{"type":"string"}}},"required":["contains","not_contains"]},"amount_lte":{"type":"number"},"amount_gte":{"type":"number"}}}}},"lawsuit_list":{"maxItems":1000,"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"instance":{"type":"number"}},"required":["code","instance"]}}},"required":["search_type","search_key"]},"process_status":{"type":"boolean"}},"required":["search"]},"LawsuitsCount.Response.Post":{"type":"object","properties":{"total":{"type":"number"}},"required":["total"]},"LawsuitsCount.Body.Post":{"type":"object","properties":{"search":{"type":"object","properties":{"on_demand":{"type":"boolean"},"search_type":{"type":"string","enum":["cpf","cnpj","oab","name","rji","lawsuit_cnj","lawsuit_attachment","execution_attachment","custom"]},"search_key":{"type":"string"},"search_name":{"type":"string"},"response_type":{"default":"lawsuits","anyOf":[{"type":"string","enum":["application_error","application_warning","application_info"]},{"type":"string","enum":["lawsuits"]},{"type":"string","enum":["lawsuit"]},{"type":"string","enum":["warrant","execution"]},{"type":"string","enum":["entity"]},{"type":"string","enum":["summary"]},{"type":"string","enum":["sanction"]},{"type":"string","enum":["synthetic_lawsuits"]},{"type":"string","enum":["communication"]}]},"cache_ttl_in_days":{"type":"number"},"search_params":{"type":"object","properties":{"with_inferred_parties":{"type":"boolean"},"with_unique_name_search":{"type":"boolean"},"should_search_superior_instances":{"type":"boolean"},"reveal_partners_documents":{"type":"boolean"},"lawsuit_instance":{"type":"number"},"filter":{"type":"object","properties":{"side":{"type":"string","enum":["Passive","Active","Interested","Unknown"]},"party_names":{"type":"array","items":{"type":"string"}},"party_documents":{"type":"array","items":{"type":"string"}},"distribution_date_gte":{"type":"string","format":"date-time"},"distribution_date_lte":{"type":"string","format":"date-time"},"last_step_date_gte":{"type":"string","format":"date-time"},"last_step_date_lte":{"type":"string","format":"date-time"},"tribunals":{"type":"object","properties":{"keys":{"type":"array","items":{"type":"string"}},"not_equal":{"type":"boolean"}},"required":["keys","not_equal"]},"classification_codes":{"type":"object","properties":{"keys":{"type":"array","items":{"type":"string"}},"not_equal":{"type":"boolean"}},"required":["keys","not_equal"]},"classification_names":{"type":"object","properties":{"keys":{"type":"array","items":{"type":"string"}},"not_equal":{"type":"boolean"}},"required":["keys","not_equal"]},"subject_codes":{"type":"object","properties":{"contains":{"type":"array","items":{"type":"string"}},"not_contains":{"type":"array","items":{"type":"string"}}},"required":["contains","not_contains"]},"subject_names":{"type":"object","properties":{"contains":{"type":"array","items":{"type":"string"}},"not_contains":{"type":"array","items":{"type":"string"}}},"required":["contains","not_contains"]},"amount_lte":{"type":"number"},"amount_gte":{"type":"number"}}}}}},"required":["search_type","search_key"]}},"required":["search"]},"LawsuitsQuery.Response.Post":{"type":"object","properties":{"session_id":{"type":"string"},"page":{"type":"number"},"page_size":{"type":"number"},"sort":{"type":"string","enum":["distribution_date","_id"]},"lawsuits":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"instance":{"type":"number"},"name":{"type":"string"},"free_justice":{"type":"boolean"},"secrecy_level":{"type":"number"},"courts":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"date":{"type":"string","format":"date-time"},"name":{"type":"string"}}}},"tribunal_acronym":{"type":"string"},"county":{"type":"string"},"state":{"type":"string"},"city":{"type":"string"},"judge":{"type":"string"},"distribution_date":{"type":"string","format":"date-time"},"last_step":{"type":"object","properties":{"lawsuit_cnj":{"type":"string"},"lawsuit_instance":{"type":"number"},"step_id":{"type":"string"},"step_date":{"type":"string","format":"date-time"},"content":{"type":"string"},"step_type":{"type":"string"},"attachment_url":{"type":"string"},"attachment_extension":{"type":"string"},"private":{"type":"boolean"},"source_name":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"tags":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"string","format":"date-time"},{}]}},"steps_count":{"type":"number"}},"required":["lawsuit_cnj","lawsuit_instance","step_id","private"]},"main_lawsuit":{"type":"object","properties":{"code":{"type":"string"},"instance":{"type":"number"},"name":{"type":"string"},"classification":{"type":"object","properties":{"code":{"type":"string"},"date":{"type":"string","format":"date-time"},"name":{"type":"string"}}},"tags":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"string","format":"date-time"},{}]}}},"required":["code","instance"]},"tags":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"string","format":"date-time"},{}]}},"justice":{"type":"string"},"justice_description":{"type":"string"},"tribunal":{"type":"string"},"crawler":{"type":"object","properties":{"source_name":{"type":"string"},"crawl_id":{"type":"string"},"updated_at":{"type":"string","format":"date-time"},"weight":{"type":"number"}},"required":["source_name","crawl_id","weight"]},"status":{"type":"string"},"phase":{"type":"string"},"phase_history":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"phase_date":{"type":"string","format":"date-time"},"step_id":{"type":"string"}},"required":["name"]}},"sentence":{"type":"object","properties":{"sentence_type":{"type":"string"},"sentence_date":{"type":"string","format":"date-time"},"step_id":{"type":"string"}},"required":["sentence_type"]},"appeal_judgement":{"type":"object","properties":{"appeal_judgement_type":{"type":"string"},"appeal_judgement_date":{"type":"string","format":"date-time"},"step_id":{"type":"string"}},"required":["appeal_judgement_type"]},"custody":{"type":"object","properties":{"custody_type":{"type":"string"},"custody_date":{"type":"string","format":"date-time"},"step_id":{"type":"string"}},"required":["custody_type"]},"appeal":{"type":"object","properties":{"appeal_date":{"type":"string","format":"date-time"},"step_id":{"type":"string"}}},"distribution":{"type":"object","properties":{"distribution_type":{"type":"string"},"distribution_date":{"type":"string","format":"date-time"},"step_id":{"type":"string"}},"required":["distribution_type"]},"situation":{"type":"string"},"area":{"type":"string"},"metadata":{"type":"object","additionalProperties":{}},"lgpd_filtered":{"type":"boolean"},"system":{"type":"string"},"tribunal_url":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"pipelines":{"default":[],"type":"array","items":{"type":"object","properties":{"name":{"type":"string","enum":["data_completeness","normalizer","homonymous_treatment"]},"version":{"type":"number"},"updated_at":{"type":"string","format":"date-time"}},"required":["name","version"]}},"full_lawsuit_file":{"type":"object","properties":{"status":{"type":"string","enum":["done","pending"]},"updated_at":{"type":"string","format":"date-time"}},"required":["status"]},"amount":{"type":"number"},"classifications":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"local_code":{"type":"string"},"date":{"type":"string","format":"date-time"},"name":{"type":"string"}}}},"subjects":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"local_code":{"type":"string"},"date":{"type":"string","format":"date-time"},"name":{"type":"string"}}}},"parties":{"type":"array","items":{"type":"object","properties":{"entity_id":{"type":"string"},"entity_type":{"type":"string","enum":["person","company"]},"name":{"type":"string"},"social_name":{"type":"string"},"main_document":{"type":"string"},"documents":{"default":[],"type":"array","items":{"type":"object","properties":{"document":{"type":"string"},"document_type":{"type":"string","enum":["cpf","cnpj","ie","im","rg","oab","rji","other"]}}}},"addresses":{"default":[],"type":"array","items":{"type":"object","properties":{"street":{"type":"string"},"number":{"type":"string"},"complement":{"type":"string"},"neighborhood":{"type":"string"},"city":{"type":"string"},"state":{"type":"string","enum":["AC","AL","AP","AM","BA","CE","DF","ES","GO","MA","MT","MS","MG","PA","PB","PR","PE","PI","RJ","RN","RS","RO","RR","SC","SP","SE","TO","XX"]},"zip_code":{"type":"string"},"ibge_code":{"type":"number"},"country":{"type":"string"}}}},"contacts":{"default":[],"type":"array","items":{"type":"object","properties":{"contact_type":{"type":"string","enum":["email","phone","other"]},"description":{"type":"string"}},"required":["contact_type"]}},"aka_names":{"default":[],"type":"array","items":{"type":"string"}},"parents":{"default":[],"type":"array","items":{"type":"object","properties":{"entity_id":{"type":"string"},"name":{"type":"string"},"kinship":{"type":"string","enum":["father","mother","brother","sister","son","daughter","grandparent","grandma","cousin","uncle","other"]}}}},"birth_date":{"type":"string","format":"date-time"},"place_of_birth":{"type":"string"},"nationality":{"type":"string"},"regime":{"type":"string"},"gender":{"type":"string","enum":["male","female"]},"ethnicity":{"type":"string"},"tags":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"string","format":"date-time"},{}]}},"latest_searches":{"default":[],"type":"array","items":{"type":"object","properties":{"search_type":{"type":"string","enum":["cpf","cnpj","oab","name","rji","lawsuit_cnj","lawsuit_attachment","execution_attachment","custom"]},"updated_at":{"type":"string","format":"date-time"}},"required":["search_type"]}},"legal_nature":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"active":{"type":"boolean"}},"required":["code","name","active"]},"head_office":{"type":"boolean"},"branch_activities":{"default":[],"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"main_activity":{"type":"boolean"},"tree_history":{"type":"string"},"active":{"type":"boolean"}},"required":["code","name","main_activity","tree_history","active"]}},"position":{"type":"string"},"profession":{"type":"string"},"size":{"type":"string"},"is_public":{"type":"boolean"},"closing_date":{"type":"string","format":"date-time"},"disabled_person":{"type":"boolean"},"deficiency":{"type":"string"},"revenue_service_updated_at":{"type":"string","format":"date-time"},"revenue_service_active":{"type":"boolean"},"revenue_service_status":{"type":"string"},"share_capital":{"type":"number"},"special_status":{"type":"string"},"special_status_date":{"type":"string","format":"date-time"},"responsible_qualification_id":{"type":"string"},"age_group":{"type":"string"},"pep":{"default":[],"type":"array","items":{"type":"object","properties":{"function":{"type":"string"},"function_acronym":{"type":"string"},"organ_name":{"type":"string"},"start_date":{"type":"string","format":"date-time"},"end_date":{"type":"string","format":"date-time"},"grace_period_end":{"type":"string","format":"date-time"}}}},"entry_date":{"type":"string","format":"date-time"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"partners":{},"associated_people":{},"person_type":{"type":"string"},"side":{"type":"string","enum":["Passive","Active","Interested","Unknown"]},"lawyers":{"type":"array","items":{"type":"object","properties":{"entity_id":{"type":"string"},"entity_type":{"type":"string","enum":["person","company"]},"name":{"type":"string"},"social_name":{"type":"string"},"main_document":{"type":"string"},"documents":{"default":[],"type":"array","items":{"type":"object","properties":{"document":{"type":"string"},"document_type":{"type":"string","enum":["cpf","cnpj","ie","im","rg","oab","rji","other"]}}}},"addresses":{"default":[],"type":"array","items":{"type":"object","properties":{"street":{"type":"string"},"number":{"type":"string"},"complement":{"type":"string"},"neighborhood":{"type":"string"},"city":{"type":"string"},"state":{"type":"string","enum":["AC","AL","AP","AM","BA","CE","DF","ES","GO","MA","MT","MS","MG","PA","PB","PR","PE","PI","RJ","RN","RS","RO","RR","SC","SP","SE","TO","XX"]},"zip_code":{"type":"string"},"ibge_code":{"type":"number"},"country":{"type":"string"}}}},"contacts":{"default":[],"type":"array","items":{"type":"object","properties":{"contact_type":{"type":"string","enum":["email","phone","other"]},"description":{"type":"string"}},"required":["contact_type"]}},"aka_names":{"default":[],"type":"array","items":{"type":"string"}},"parents":{"default":[],"type":"array","items":{"type":"object","properties":{"entity_id":{"type":"string"},"name":{"type":"string"},"kinship":{"type":"string","enum":["father","mother","brother","sister","son","daughter","grandparent","grandma","cousin","uncle","other"]}}}},"birth_date":{"type":"string","format":"date-time"},"place_of_birth":{"type":"string"},"nationality":{"type":"string"},"regime":{"type":"string"},"gender":{"type":"string","enum":["male","female"]},"ethnicity":{"type":"string"},"tags":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"string","format":"date-time"},{}]}},"latest_searches":{"default":[],"type":"array","items":{"type":"object","properties":{"search_type":{"type":"string","enum":["cpf","cnpj","oab","name","rji","lawsuit_cnj","lawsuit_attachment","execution_attachment","custom"]},"updated_at":{"type":"string","format":"date-time"}},"required":["search_type"]}},"legal_nature":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"active":{"type":"boolean"}},"required":["code","name","active"]},"head_office":{"type":"boolean"},"branch_activities":{"default":[],"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"main_activity":{"type":"boolean"},"tree_history":{"type":"string"},"active":{"type":"boolean"}},"required":["code","name","main_activity","tree_history","active"]}},"position":{"type":"string"},"profession":{"type":"string"},"size":{"type":"string"},"is_public":{"type":"boolean"},"closing_date":{"type":"string","format":"date-time"},"disabled_person":{"type":"boolean"},"deficiency":{"type":"string"},"revenue_service_updated_at":{"type":"string","format":"date-time"},"revenue_service_active":{"type":"boolean"},"revenue_service_status":{"type":"string"},"share_capital":{"type":"number"},"special_status":{"type":"string"},"special_status_date":{"type":"string","format":"date-time"},"responsible_qualification_id":{"type":"string"},"age_group":{"type":"string"},"pep":{"default":[],"type":"array","items":{"type":"object","properties":{"function":{"type":"string"},"function_acronym":{"type":"string"},"organ_name":{"type":"string"},"start_date":{"type":"string","format":"date-time"},"end_date":{"type":"string","format":"date-time"},"grace_period_end":{"type":"string","format":"date-time"}}}},"entry_date":{"type":"string","format":"date-time"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"partners":{},"associated_people":{}}}},"was_inferred":{"type":"boolean"}},"required":["side"]}},"attachments":{"type":"array","items":{"type":"object","properties":{"attachment_id":{"type":"string"},"attachment_type":{"type":"string"},"attachment_name":{"type":"string"},"step_id":{"type":"string"},"content":{"type":"string"},"private":{"type":"boolean"},"extension":{"type":"string"},"tags":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"string","format":"date-time"},{}]}},"status":{"type":"string","enum":["done","pending"]},"attachment_date":{"type":"string","format":"date-time"},"corrupted":{"type":"boolean"},"user_data":{"type":"object","additionalProperties":{"type":"string"}}},"required":["attachment_id","status"]}},"related_lawsuits":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"instance":{"type":"number"},"name":{"type":"string"},"classification":{"type":"object","properties":{"code":{"type":"string"},"date":{"type":"string","format":"date-time"},"name":{"type":"string"}}},"tags":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"string","format":"date-time"},{}]}}},"required":["code","instance"]}},"steps":{"type":"array","items":{"type":"object","properties":{"lawsuit_cnj":{"type":"string"},"lawsuit_instance":{"type":"number"},"step_id":{"type":"string"},"step_date":{"type":"string","format":"date-time"},"content":{"type":"string"},"step_type":{"type":"string"},"attachment_url":{"type":"string"},"attachment_extension":{"type":"string"},"private":{"type":"boolean"},"source_name":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"tags":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"string","format":"date-time"},{}]}}},"required":["lawsuit_cnj","lawsuit_instance","step_id","private"]}}},"required":["code","instance","courts","justice","tribunal","crawler","classifications","subjects","parties","attachments","related_lawsuits","steps"]}},"total":{"nullable":true,"type":"number"},"total_accuracy":{"type":"string","enum":["exact","approximate","unknown"]},"warnings":{"type":"array","items":{"type":"string"}}},"required":["session_id","page","page_size","sort","lawsuits","total","total_accuracy"]},"LawsuitsQuery.Body.Post":{"type":"object","properties":{"session_id":{"type":"string","minLength":1},"search":{"type":"object","properties":{"documents":{"minItems":1,"type":"array","items":{"type":"object","properties":{"search_type":{"type":"string","enum":["cpf","cnpj","oab","name","rji","lawsuit_cnj","lawsuit_attachment","execution_attachment","custom"]},"search_key":{"type":"string","minLength":1}},"required":["search_type","search_key"]}},"search_params":{"default":{},"type":"object","properties":{"filter":{"type":"object","properties":{"side":{"type":"string","enum":["Passive","Active","Interested","Unknown"]},"party_names":{"type":"array","items":{"type":"string"}},"party_documents":{"type":"array","items":{"type":"string"}},"distribution_date_gte":{"type":"string","format":"date-time"},"distribution_date_lte":{"type":"string","format":"date-time"},"last_step_date_gte":{"type":"string","format":"date-time"},"last_step_date_lte":{"type":"string","format":"date-time"},"tribunals":{"type":"object","properties":{"keys":{"type":"array","items":{"type":"string"}},"not_equal":{"type":"boolean"}},"required":["keys","not_equal"]},"classification_codes":{"type":"object","properties":{"keys":{"type":"array","items":{"type":"string"}},"not_equal":{"type":"boolean"}},"required":["keys","not_equal"]},"classification_names":{"type":"object","properties":{"keys":{"type":"array","items":{"type":"string"}},"not_equal":{"type":"boolean"}},"required":["keys","not_equal"]},"subject_codes":{"type":"object","properties":{"contains":{"type":"array","items":{"type":"string"}},"not_contains":{"type":"array","items":{"type":"string"}}},"required":["contains","not_contains"]},"subject_names":{"type":"object","properties":{"contains":{"type":"array","items":{"type":"string"}},"not_contains":{"type":"array","items":{"type":"string"}}},"required":["contains","not_contains"]},"amount_lte":{"type":"number"},"amount_gte":{"type":"number"}}},"lawsuit_instance":{"type":"integer","minimum":1,"maximum":9007199254740991}}},"response_type":{"default":"lawsuits","type":"string","enum":["lawsuits","lawsuit"]},"on_demand":{"type":"boolean"}},"required":["documents","search_params","response_type"]},"page":{"default":1,"type":"integer","minimum":1,"maximum":9007199254740991},"page_size":{"default":100,"type":"integer","minimum":5,"maximum":1000},"sort":{"default":"distribution_date","type":"string","enum":["distribution_date","_id"]}},"required":["session_id","search","page","page_size","sort"]},"LawsuitsQueryDeliveryTotal.Response.Post":{"type":"object","properties":{"session_id":{"type":"string"},"delivery_unique_total":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["session_id","delivery_unique_total"]},"LawsuitsQueryDeliveryTotal.Body.Post":{"type":"object","properties":{"session_id":{"type":"string","minLength":1},"search":{"type":"object","properties":{"documents":{"minItems":1,"type":"array","items":{"type":"object","properties":{"search_type":{"type":"string","enum":["cpf","cnpj","oab","name","rji","lawsuit_cnj","lawsuit_attachment","execution_attachment","custom"]},"search_key":{"type":"string","minLength":1}},"required":["search_type","search_key"]}},"search_params":{"default":{},"type":"object","properties":{"filter":{"type":"object","properties":{"side":{"type":"string","enum":["Passive","Active","Interested","Unknown"]},"party_names":{"type":"array","items":{"type":"string"}},"party_documents":{"type":"array","items":{"type":"string"}},"distribution_date_gte":{"type":"string","format":"date-time"},"distribution_date_lte":{"type":"string","format":"date-time"},"last_step_date_gte":{"type":"string","format":"date-time"},"last_step_date_lte":{"type":"string","format":"date-time"},"tribunals":{"type":"object","properties":{"keys":{"type":"array","items":{"type":"string"}},"not_equal":{"type":"boolean"}},"required":["keys","not_equal"]},"classification_codes":{"type":"object","properties":{"keys":{"type":"array","items":{"type":"string"}},"not_equal":{"type":"boolean"}},"required":["keys","not_equal"]},"classification_names":{"type":"object","properties":{"keys":{"type":"array","items":{"type":"string"}},"not_equal":{"type":"boolean"}},"required":["keys","not_equal"]},"subject_codes":{"type":"object","properties":{"contains":{"type":"array","items":{"type":"string"}},"not_contains":{"type":"array","items":{"type":"string"}}},"required":["contains","not_contains"]},"subject_names":{"type":"object","properties":{"contains":{"type":"array","items":{"type":"string"}},"not_contains":{"type":"array","items":{"type":"string"}}},"required":["contains","not_contains"]},"amount_lte":{"type":"number"},"amount_gte":{"type":"number"}}},"lawsuit_instance":{"type":"integer","minimum":1,"maximum":9007199254740991}}},"response_type":{"default":"lawsuits","type":"string","enum":["lawsuits","lawsuit"]},"on_demand":{"type":"boolean"}},"required":["documents","search_params","response_type"]}},"required":["session_id","search"]},"LawsuitsSynthetic.Response.Post":{"type":"object","properties":{"classifications":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"count":{"type":"number"}},"required":["value","count"]}},"subjects":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"count":{"type":"number"}},"required":["value","count"]}},"areas":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"count":{"type":"number"}},"required":["value","count"]}},"tribunals":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"count":{"type":"number"}},"required":["value","count"]}},"justices":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"count":{"type":"number"}},"required":["value","count"]}},"phases":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"count":{"type":"number"}},"required":["value","count"]}},"states":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"count":{"type":"number"}},"required":["value","count"]}},"instances":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"count":{"type":"number"}},"required":["value","count"]}},"sides":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"count":{"type":"number"}},"required":["value","count"]}},"person_types":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"count":{"type":"number"}},"required":["value","count"]}},"names":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"count":{"type":"number"}},"required":["value","count"]}},"other_parties":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"count":{"type":"number"}},"required":["value","count"]}},"lawsuits_count":{"type":"number"},"secrecy_lawsuits_count":{"type":"number"},"request_id":{"type":"string"}},"required":["classifications","subjects","areas","tribunals","justices","phases","states","instances","sides","person_types","names","other_parties","lawsuits_count","secrecy_lawsuits_count","request_id"]},"LawsuitsSynthetic.Body.Post":{"type":"object","properties":{"search":{"type":"object","properties":{"on_demand":{"type":"boolean"},"search_type":{"type":"string","enum":["cpf","cnpj","oab","name","rji","lawsuit_cnj","lawsuit_attachment","execution_attachment","custom"]},"search_key":{"type":"string"},"search_name":{"type":"string"},"response_type":{"default":"lawsuits","anyOf":[{"type":"string","enum":["application_error","application_warning","application_info"]},{"type":"string","enum":["lawsuits"]},{"type":"string","enum":["lawsuit"]},{"type":"string","enum":["warrant","execution"]},{"type":"string","enum":["entity"]},{"type":"string","enum":["summary"]},{"type":"string","enum":["sanction"]},{"type":"string","enum":["synthetic_lawsuits"]},{"type":"string","enum":["communication"]}]},"cache_ttl_in_days":{"type":"number"},"search_params":{"type":"object","properties":{"with_inferred_parties":{"type":"boolean"},"with_unique_name_search":{"type":"boolean"},"should_search_superior_instances":{"type":"boolean"},"reveal_partners_documents":{"type":"boolean"},"lawsuit_instance":{"type":"number"},"filter":{"type":"object","properties":{"side":{"type":"string","enum":["Passive","Active","Interested","Unknown"]},"party_names":{"type":"array","items":{"type":"string"}},"party_documents":{"type":"array","items":{"type":"string"}},"distribution_date_gte":{"type":"string","format":"date-time"},"distribution_date_lte":{"type":"string","format":"date-time"},"last_step_date_gte":{"type":"string","format":"date-time"},"last_step_date_lte":{"type":"string","format":"date-time"},"tribunals":{"type":"object","properties":{"keys":{"type":"array","items":{"type":"string"}},"not_equal":{"type":"boolean"}},"required":["keys","not_equal"]},"classification_codes":{"type":"object","properties":{"keys":{"type":"array","items":{"type":"string"}},"not_equal":{"type":"boolean"}},"required":["keys","not_equal"]},"classification_names":{"type":"object","properties":{"keys":{"type":"array","items":{"type":"string"}},"not_equal":{"type":"boolean"}},"required":["keys","not_equal"]},"subject_codes":{"type":"object","properties":{"contains":{"type":"array","items":{"type":"string"}},"not_contains":{"type":"array","items":{"type":"string"}}},"required":["contains","not_contains"]},"subject_names":{"type":"object","properties":{"contains":{"type":"array","items":{"type":"string"}},"not_contains":{"type":"array","items":{"type":"string"}}},"required":["contains","not_contains"]},"amount_lte":{"type":"number"},"amount_gte":{"type":"number"}}}}},"lawsuit_list":{"maxItems":1000,"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"instance":{"type":"number"}},"required":["code","instance"]}}},"required":["search_type","search_key"]}},"required":["search"]},"Sanctions.Response.Post":{"type":"object","properties":{"has_sanctions":{"default":false,"type":"boolean"},"request_id":{"type":"string"},"response_data":{"type":"array","items":{"type":"object","properties":{"sanction_id":{"type":"string"},"full_name":{"type":"string"},"nationality":{"type":"string"},"source":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","enum":["ofac","onu","eu"]},"reference_number":{"type":"string"},"remarks":{"type":"string"},"url":{"type":"string"},"since":{"type":"string","format":"date-time"},"last_updated":{"type":"string","format":"date-time"}},"required":["name","url","last_updated"]}},"tags":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"string","format":"date-time"},{}]}}},"required":["sanction_id","full_name","source"]}}},"required":["has_sanctions","request_id","response_data"]},"Sanctions.Body.Post":{"type":"object","properties":{"search":{"type":"object","properties":{"search_type":{"type":"string","enum":["cpf","cnpj","oab","name"]},"search_key":{"type":"string"}},"required":["search_type","search_key"]}},"required":["search"]},"StepsCount.Response.Post":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"instance":{"type":"number"},"steps_count":{"type":"number"},"attachments_count":{"type":"number"},"error_message":{"type":"string"}},"required":["code","instance","steps_count","attachments_count"]}},"StepsCount.Body.Post":{"type":"object","properties":{"lawsuit_cnj":{"minItems":1,"type":"array","items":{"type":"string"}}},"required":["lawsuit_cnj"]},"TransferFile.Query.Get":{"type":"object","properties":{"description":{"type":"array","items":{"type":"string"}},"file_type":{"type":"array","items":{"type":"string"}},"name":{"type":"array","items":{"type":"string"}},"status":{"type":"array","items":{"type":"string"}},"created_at_gte":{"type":"string","format":"date-time"},"created_at_lte":{"type":"string","format":"date-time"},"updated_at_gte":{"type":"string","format":"date-time"},"updated_at_lte":{"type":"string","format":"date-time"},"completed_at_gte":{"type":"string","format":"date-time"},"completed_at_lte":{"type":"string","format":"date-time"},"downloaded_at_gte":{"type":"string","format":"date-time"},"downloaded_at_lte":{"type":"string","format":"date-time"},"error_at_gte":{"type":"string","format":"date-time"},"error_at_lte":{"type":"string","format":"date-time"},"failed_at_gte":{"type":"string","format":"date-time"},"failed_at_lte":{"type":"string","format":"date-time"},"started_at_gte":{"type":"string","format":"date-time"},"started_at_lte":{"type":"string","format":"date-time"},"order":{"type":"object","additionalProperties":{"type":"string","enum":["asc","desc"]}},"page":{"default":1,"type":"number","minimum":1},"page_size":{"default":10,"type":"number","minimum":5,"maximum":100}},"required":["page","page_size"]},"TransferFile.Response.Get":{"type":"object","properties":{"page":{"type":"number"},"page_data":{"type":"array","items":{"type":"object","properties":{"transfer_file_id":{"type":"string"},"company_id":{"type":"string"},"description":{"type":"string"},"error_message":{"type":"string"},"file_size":{"type":"number"},"file_type":{"type":"string","enum":["csv","json","parquet"]},"lawsuits_count":{"type":"number"},"name":{"type":"string"},"status":{"type":"string","enum":["completed","downloaded","error","failed","in_progress","pending"]},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time"},"downloaded_at":{"type":"string","format":"date-time"},"error_at":{"type":"string","format":"date-time"},"failed_at":{"type":"string","format":"date-time"},"started_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["transfer_file_id","company_id","description","file_size","file_type","lawsuits_count","name","status"]}},"page_count":{"type":"number"},"all_count":{"type":"number"},"all_pages_count":{"type":"number"}},"required":["page","page_data","page_count","all_count","all_pages_count"]},"TransferFileTransferFileId.Params.Get":{"type":"object","required":["transfer_file_id"],"properties":{"transfer_file_id":{"type":"string"}}},"TransferFileTransferFileId.Response.Get":{"type":"object","properties":{"transfer_file_id":{"type":"string"},"company_id":{"type":"string"},"description":{"type":"string"},"error_message":{"type":"string"},"file_size":{"type":"number"},"file_type":{"type":"string","enum":["csv","json","parquet"]},"lawsuits_count":{"type":"number"},"name":{"type":"string"},"status":{"type":"string","enum":["completed","downloaded","error","failed","in_progress","pending"]},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time"},"downloaded_at":{"type":"string","format":"date-time"},"error_at":{"type":"string","format":"date-time"},"failed_at":{"type":"string","format":"date-time"},"started_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"pre_signed_url":{"type":"string"}},"required":["transfer_file_id","company_id","description","file_size","file_type","lawsuits_count","name","status","pre_signed_url"]},"TransferFileTransferFileId.Params.Patch":{"type":"object","required":["transfer_file_id"],"properties":{"transfer_file_id":{"type":"string"}}},"TransferFileTransferFileId.Response.Patch":{"type":"object","properties":{"transfer_file_id":{"type":"string"},"company_id":{"type":"string"},"description":{"type":"string"},"error_message":{"type":"string"},"file_size":{"type":"number"},"file_type":{"type":"string","enum":["csv","json","parquet"]},"lawsuits_count":{"type":"number"},"name":{"type":"string"},"status":{"type":"string","enum":["completed","downloaded","error","failed","in_progress","pending"]},"created_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time"},"downloaded_at":{"type":"string","format":"date-time"},"error_at":{"type":"string","format":"date-time"},"failed_at":{"type":"string","format":"date-time"},"started_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["transfer_file_id","company_id","description","file_size","file_type","lawsuits_count","name","status"]},"TransferFileTransferFileId.Body.Patch":{"type":"object","properties":{"status":{"type":"string","enum":["downloaded","error"]},"error_message":{"type":"string"}},"required":["status"]},"LawsuitIssueDailyStats.Query.Get":{"type":"object","properties":{"daily_date":{"type":"array","items":{"type":"string","format":"date-time"}},"daily_date_gte":{"type":"string","format":"date-time"},"daily_date_lte":{"type":"string","format":"date-time"},"tribunal_acronym":{"type":"array","items":{"type":"string"}},"issue_type":{"type":"array","items":{"type":"string"}},"order":{"type":"object","additionalProperties":{"type":"string","enum":["asc","desc"]}},"page":{"default":1,"type":"number","minimum":1},"page_size":{"default":100,"type":"number","minimum":5,"maximum":10000}},"required":["page","page_size"]},"LawsuitIssueDailyStats.Response.Get":{"type":"object","properties":{"page":{"type":"number"},"page_data":{"type":"array","items":{"type":"object","properties":{"tribunal_acronym":{"type":"string"},"issue_type":{"type":"string","enum":["missing_name","missing_amount","missing_classification","missing_subjects","missing_courts","missing_county","missing_state","missing_city","missing_distribution_date","missing_last_step","missing_justice_description","missing_area","missing_system","missing_steps","missing_parties","problem_with_encoding","party_without_name","party_without_side","parties_without_side_active","parties_without_side_passive","related_lawsuit_unformatted","step_without_date","step_without_content","step_without_type","step_without_source_name","step_with_invalid_character","subject_without_code","subject_without_name","classification_without_code","classification_without_name","invalid_cnj_code","invalid_instance","cannot_be_normalized"]},"total":{"type":"number"},"resolved":{"type":"number"},"unresolved":{"type":"number"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"daily_date":{"type":"string","format":"date-time"},"opened":{"type":"number"},"closed":{"type":"number"},"removed":{"type":"number"}},"required":["tribunal_acronym","issue_type","total","resolved","unresolved","daily_date","opened","closed","removed"]}},"page_count":{"type":"number"},"all_count":{"type":"number"},"all_pages_count":{"type":"number"}},"required":["page","page_data","page_count","all_count","all_pages_count"]},"SetupDownloadDailyStats.Query.Get":{"type":"object","properties":{"source":{"type":"array","items":{"type":"string"}},"job_name":{"type":"array","items":{"type":"string"}},"daily_date":{"type":"array","items":{"type":"string","format":"date-time"}},"daily_date_gte":{"type":"string","format":"date-time"},"daily_date_lte":{"type":"string","format":"date-time"},"total_gte":{"type":"number"},"total_lte":{"type":"number"},"error_gte":{"type":"number"},"error_lte":{"type":"number"},"pending_gte":{"type":"number"},"pending_lte":{"type":"number"},"processing_gte":{"type":"number"},"processing_lte":{"type":"number"},"completed_gte":{"type":"number"},"completed_lte":{"type":"number"},"duration_avg_gte":{"type":"number"},"duration_avg_lte":{"type":"number"},"duration_p95_gte":{"type":"number"},"duration_p95_lte":{"type":"number"},"duration_p99_gte":{"type":"number"},"duration_p99_lte":{"type":"number"},"created_at_gte":{"type":"string","format":"date-time"},"created_at_lte":{"type":"string","format":"date-time"},"updated_at_gte":{"type":"string","format":"date-time"},"updated_at_lte":{"type":"string","format":"date-time"},"order":{"type":"object","additionalProperties":{"type":"string","enum":["asc","desc"]}},"page":{"default":1,"type":"number","minimum":1},"page_size":{"default":100,"type":"number","minimum":5,"maximum":10000}},"required":["page","page_size"]},"SetupDownloadDailyStats.Response.Get":{"type":"object","properties":{"page":{"type":"number"},"page_data":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"job_name":{"type":"string"},"daily_date":{"type":"string","format":"date-time"},"total":{"type":"number"},"error":{"type":"number"},"pending":{"type":"number"},"processing":{"type":"number"},"completed":{"type":"number"},"duration_avg":{"type":"number"},"duration_p95":{"type":"number"},"duration_p99":{"type":"number"},"custom_data":{"type":"object","additionalProperties":{}},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["source","job_name","daily_date","total","error","pending","processing","completed"]}},"page_count":{"type":"number"},"all_count":{"type":"number"},"all_pages_count":{"type":"number"}},"required":["page","page_data","page_count","all_count","all_pages_count"]},"SetupDownloads.Query.Get":{"type":"object","properties":{"setup_id":{"type":"array","items":{"type":"string"}},"status":{"type":"array","items":{"type":"string"}},"source":{"type":"array","items":{"type":"string"}},"county":{"type":"array","items":{"type":"string"}},"job_name":{"type":"array","items":{"type":"string"}},"start_date_gte":{"type":"string","format":"date-time"},"start_date_lte":{"type":"string","format":"date-time"},"end_date_gte":{"type":"string","format":"date-time"},"end_date_lte":{"type":"string","format":"date-time"},"created_at_gte":{"type":"string","format":"date-time"},"created_at_lte":{"type":"string","format":"date-time"},"updated_at_gte":{"type":"string","format":"date-time"},"updated_at_lte":{"type":"string","format":"date-time"},"executed_at_gte":{"type":"string","format":"date-time"},"executed_at_lte":{"type":"string","format":"date-time"},"completed_at_gte":{"type":"string","format":"date-time"},"completed_at_lte":{"type":"string","format":"date-time"},"stalled_at_gte":{"type":"string","format":"date-time"},"stalled_at_lte":{"type":"string","format":"date-time"},"failed_at_gte":{"type":"string","format":"date-time"},"failed_at_lte":{"type":"string","format":"date-time"},"waiting_duration_ms_gte":{"type":"number"},"waiting_duration_ms_lte":{"type":"number"},"execution_duration_ms_gte":{"type":"number"},"execution_duration_ms_lte":{"type":"number"},"stalled_count_gte":{"type":"number"},"stalled_count_lte":{"type":"number"},"failed_count_gte":{"type":"number"},"failed_count_lte":{"type":"number"},"order":{"type":"object","additionalProperties":{"type":"string","enum":["asc","desc"]}},"page":{"default":1,"type":"number","minimum":1},"page_size":{"default":10,"type":"number","minimum":5,"maximum":1000}},"required":["page","page_size"]},"SetupDownloads.Response.Get":{"type":"object","properties":{"page":{"type":"number"},"page_data":{"type":"array","items":{"type":"object","properties":{"setup_id":{"type":"string"},"source":{"type":"string"},"page":{"type":"number"},"page_size":{"type":"number"},"total_pages":{"type":"number"},"status":{"type":"string","enum":["pending","processing","completed","error"]},"start_date":{"type":"string","format":"date-time"},"end_date":{"type":"string","format":"date-time"},"job_name":{"type":"string"},"custom_data":{"type":"object","additionalProperties":{}},"waiting_duration_ms":{"type":"number"},"execution_duration_ms":{"type":"number"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"executed_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time"},"stalled_at":{"type":"string","format":"date-time"},"stalled_count":{"type":"number"},"failed_at":{"type":"string","format":"date-time"},"failed_count":{"type":"number"},"failed_message":{"type":"string"}},"required":["setup_id","source","page","page_size","total_pages","status"]}},"page_count":{"type":"number"},"all_count":{"type":"number"},"all_pages_count":{"type":"number"}},"required":["page","page_data","page_count","all_count","all_pages_count"]},"SetupDownloadsCount.Query.Get":{"type":"object","properties":{"setup_id":{"type":"array","items":{"type":"string"}},"status":{"type":"array","items":{"type":"string"}},"source":{"type":"array","items":{"type":"string"}},"county":{"type":"array","items":{"type":"string"}},"job_name":{"type":"array","items":{"type":"string"}},"start_date_gte":{"type":"string","format":"date-time"},"start_date_lte":{"type":"string","format":"date-time"},"end_date_gte":{"type":"string","format":"date-time"},"end_date_lte":{"type":"string","format":"date-time"},"created_at_gte":{"type":"string","format":"date-time"},"created_at_lte":{"type":"string","format":"date-time"},"updated_at_gte":{"type":"string","format":"date-time"},"updated_at_lte":{"type":"string","format":"date-time"},"executed_at_gte":{"type":"string","format":"date-time"},"executed_at_lte":{"type":"string","format":"date-time"},"completed_at_gte":{"type":"string","format":"date-time"},"completed_at_lte":{"type":"string","format":"date-time"},"stalled_at_gte":{"type":"string","format":"date-time"},"stalled_at_lte":{"type":"string","format":"date-time"},"failed_at_gte":{"type":"string","format":"date-time"},"failed_at_lte":{"type":"string","format":"date-time"},"waiting_duration_ms_gte":{"type":"number"},"waiting_duration_ms_lte":{"type":"number"},"execution_duration_ms_gte":{"type":"number"},"execution_duration_ms_lte":{"type":"number"},"stalled_count_gte":{"type":"number"},"stalled_count_lte":{"type":"number"},"failed_count_gte":{"type":"number"},"failed_count_lte":{"type":"number"},"order":{"type":"object","additionalProperties":{"type":"string","enum":["asc","desc"]}},"page":{"default":1,"type":"number","minimum":1},"page_size":{"default":10,"type":"number","minimum":5,"maximum":1000}},"required":["page","page_size"]},"SetupDownloadsCount.Response.Get":{"type":"object","properties":{"total":{"type":"number"}},"required":["total"]},"SetupDownloadsSynthetic.Query.Get":{"type":"object","properties":{"setup_id":{"type":"array","items":{"type":"string"}},"status":{"type":"array","items":{"type":"string"}},"source":{"type":"array","items":{"type":"string"}},"county":{"type":"array","items":{"type":"string"}},"job_name":{"type":"array","items":{"type":"string"}},"start_date_gte":{"type":"string","format":"date-time"},"start_date_lte":{"type":"string","format":"date-time"},"end_date_gte":{"type":"string","format":"date-time"},"end_date_lte":{"type":"string","format":"date-time"},"created_at_gte":{"type":"string","format":"date-time"},"created_at_lte":{"type":"string","format":"date-time"},"updated_at_gte":{"type":"string","format":"date-time"},"updated_at_lte":{"type":"string","format":"date-time"},"executed_at_gte":{"type":"string","format":"date-time"},"executed_at_lte":{"type":"string","format":"date-time"},"completed_at_gte":{"type":"string","format":"date-time"},"completed_at_lte":{"type":"string","format":"date-time"},"stalled_at_gte":{"type":"string","format":"date-time"},"stalled_at_lte":{"type":"string","format":"date-time"},"failed_at_gte":{"type":"string","format":"date-time"},"failed_at_lte":{"type":"string","format":"date-time"},"waiting_duration_ms_gte":{"type":"number"},"waiting_duration_ms_lte":{"type":"number"},"execution_duration_ms_gte":{"type":"number"},"execution_duration_ms_lte":{"type":"number"},"stalled_count_gte":{"type":"number"},"stalled_count_lte":{"type":"number"},"failed_count_gte":{"type":"number"},"failed_count_lte":{"type":"number"},"order":{"type":"object","additionalProperties":{"type":"string","enum":["asc","desc"]}},"page":{"default":1,"type":"number","minimum":1},"page_size":{"default":10,"type":"number","minimum":5,"maximum":1000}},"required":["page","page_size"]},"SetupDownloadsSynthetic.Response.Get":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string"},"status":{"type":"string","enum":["pending","processing","completed","error"]},"total":{"type":"number"}},"required":["source","status","total"]}},"SetupDownloadsSetupId.Params.Get":{"type":"object","required":["setup_id"],"properties":{"setup_id":{"type":"string"}}},"SetupDownloadsSetupId.Response.Get":{"type":"object","properties":{"setup_id":{"type":"string"},"source":{"type":"string"},"page":{"type":"number"},"page_size":{"type":"number"},"total_pages":{"type":"number"},"status":{"type":"string","enum":["pending","processing","completed","error"]},"start_date":{"type":"string","format":"date-time"},"end_date":{"type":"string","format":"date-time"},"job_name":{"type":"string"},"custom_data":{"type":"object","additionalProperties":{}},"waiting_duration_ms":{"type":"number"},"execution_duration_ms":{"type":"number"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"executed_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time"},"stalled_at":{"type":"string","format":"date-time"},"stalled_count":{"type":"number"},"failed_at":{"type":"string","format":"date-time"},"failed_count":{"type":"number"},"failed_message":{"type":"string"}},"required":["setup_id","source","page","page_size","total_pages","status"]},"SetupDownloads.Response.Post":{"type":"object","properties":{"setup_id":{"type":"string"},"source":{"type":"string"},"page":{"type":"number"},"page_size":{"type":"number"},"total_pages":{"type":"number"},"status":{"type":"string","enum":["pending","processing","completed","error"]},"start_date":{"type":"string","format":"date-time"},"end_date":{"type":"string","format":"date-time"},"job_name":{"type":"string"},"custom_data":{"type":"object","additionalProperties":{}},"waiting_duration_ms":{"type":"number"},"execution_duration_ms":{"type":"number"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"executed_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time"},"stalled_at":{"type":"string","format":"date-time"},"stalled_count":{"type":"number"},"failed_at":{"type":"string","format":"date-time"},"failed_count":{"type":"number"},"failed_message":{"type":"string"}},"required":["setup_id","source","page","page_size","total_pages","status"]},"SetupDownloads.Body.Post":{"type":"object","properties":{"setup_id":{"type":"string"},"source":{"type":"string"},"page":{"type":"number"},"page_size":{"type":"number"},"total_pages":{"type":"number"},"status":{"type":"string","enum":["pending","processing","completed","error"]},"start_date":{"type":"string","format":"date-time"},"end_date":{"type":"string","format":"date-time"},"job_name":{"type":"string"},"custom_data":{"type":"object","additionalProperties":{}},"waiting_duration_ms":{"type":"number"},"execution_duration_ms":{"type":"number"},"executed_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time"},"stalled_at":{"type":"string","format":"date-time"},"stalled_count":{"type":"number"},"failed_at":{"type":"string","format":"date-time"},"failed_count":{"type":"number"},"failed_message":{"type":"string"}},"required":["setup_id","source","page","page_size","total_pages","status"]},"SetupDownloadsSetupId.Params.Patch":{"type":"object","required":["setup_id"],"properties":{"setup_id":{"type":"string"}}},"SetupDownloadsSetupId.Response.Patch":{"type":"object","properties":{"setup_id":{"type":"string"},"source":{"type":"string"},"page":{"type":"number"},"page_size":{"type":"number"},"total_pages":{"type":"number"},"status":{"type":"string","enum":["pending","processing","completed","error"]},"start_date":{"type":"string","format":"date-time"},"end_date":{"type":"string","format":"date-time"},"job_name":{"type":"string"},"custom_data":{"type":"object","additionalProperties":{}},"waiting_duration_ms":{"type":"number"},"execution_duration_ms":{"type":"number"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"executed_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time"},"stalled_at":{"type":"string","format":"date-time"},"stalled_count":{"type":"number"},"failed_at":{"type":"string","format":"date-time"},"failed_count":{"type":"number"},"failed_message":{"type":"string"}},"required":["setup_id","source","page","page_size","total_pages","status"]},"SetupDownloadsSetupId.Body.Patch":{"type":"object","properties":{"source":{"type":"string"},"page":{"type":"number"},"page_size":{"type":"number"},"total_pages":{"type":"number"},"status":{"type":"string","enum":["pending","processing","completed","error"]},"start_date":{"type":"string","format":"date-time"},"end_date":{"type":"string","format":"date-time"},"job_name":{"type":"string"},"custom_data":{"type":"object","additionalProperties":{}},"waiting_duration_ms":{"type":"number"},"execution_duration_ms":{"type":"number"},"executed_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time"},"stalled_at":{"type":"string","format":"date-time"},"stalled_count":{"type":"number"},"failed_at":{"type":"string","format":"date-time"},"failed_count":{"type":"number"},"failed_message":{"type":"string"}}},"SetupDownloadsSetupId.Params.Delete":{"type":"object","required":["setup_id"],"properties":{"setup_id":{"type":"string"}}},"PartyBlacklist.Response.Post":{"type":"object","properties":{"party_blacklist_id":{"type":"string"},"main_document":{"type":"string"},"document_type":{"type":"string","enum":["CPF","CNPJ"]},"name":{"type":"string"},"reason":{"type":"string"},"requested_by":{"type":"string"},"created_by":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"deleted_at":{"type":"string","format":"date-time"}},"required":["party_blacklist_id","main_document","document_type","reason","created_by"]},"PartyBlacklist.Body.Post":{"type":"object","properties":{"main_document":{"type":"string"},"name":{"type":"string"},"reason":{"type":"string"},"requested_by":{"type":"string"}},"required":["main_document","reason"]},"PartyBlacklist.Query.Delete":{"type":"object","properties":{"main_document":{"type":"string"},"party_blacklist_id":{"type":"string"}}},"PartyBlacklist.Response.Delete":{"type":"object","properties":{"party_blacklist_id":{"type":"string"},"main_document":{"type":"string"},"document_type":{"type":"string","enum":["CPF","CNPJ"]},"name":{"type":"string"},"reason":{"type":"string"},"requested_by":{"type":"string"},"created_by":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"deleted_at":{"type":"string","format":"date-time"}},"required":["party_blacklist_id","main_document","document_type","reason","created_by"]},"PartyBlacklist.Query.Get":{"type":"object","properties":{"main_document":{"type":"string"},"document_type":{"type":"string","enum":["CPF","CNPJ"]},"name":{"type":"string"},"requested_by":{"type":"string"},"created_by":{"type":"string"},"include_deleted":{"type":"boolean"},"page":{"type":"number","minimum":1,"maximum":10000},"page_size":{"type":"number","minimum":1,"maximum":100}}},"PartyBlacklist.Response.Get":{"type":"object","properties":{"page":{"type":"number"},"page_data":{"type":"array","items":{"type":"object","properties":{"party_blacklist_id":{"type":"string"},"main_document":{"type":"string"},"document_type":{"type":"string","enum":["CPF","CNPJ"]},"name":{"type":"string"},"reason":{"type":"string"},"requested_by":{"type":"string"},"created_by":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"deleted_at":{"type":"string","format":"date-time"}},"required":["party_blacklist_id","main_document","document_type","reason","created_by"]}},"page_count":{"type":"number"},"all_count":{"type":"number"},"all_pages_count":{"type":"number"}},"required":["page","page_data","page_count","all_count","all_pages_count"]},"PartyBlacklistReconcileCache.Response.Post":{"type":"object","properties":{"active_documents_count":{"type":"number"},"cached_documents_count":{"type":"number"},"added":{"type":"array","items":{"type":"string"}},"removed":{"type":"array","items":{"type":"string"}}},"required":["active_documents_count","cached_documents_count","added","removed"]},"WarrantsLawsuitCnjAttachmentsAttachmentId.Params.Get":{"type":"object","required":["lawsuit_cnj","attachment_id"],"properties":{"lawsuit_cnj":{"type":"string"},"attachment_id":{"type":"string"}}},"WarrantsLawsuitCnjAttachmentsAttachmentId.Response.Get":{"type":"object","properties":{"attachment_url":{"type":"string"}},"required":["attachment_url"]},"CountSteps.Response.Post":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"instance":{"type":"number"},"steps_count":{"type":"number"},"attachments_count":{"type":"number"},"error_message":{"type":"string"}},"required":["code","instance","steps_count","attachments_count"]}},"CountSteps.Body.Post":{"type":"object","properties":{"lawsuit_cnj":{"minItems":1,"type":"array","items":{"type":"string"}}},"required":["lawsuit_cnj"]},"RequestsCount.Response.Post":{"type":"object","properties":{"total":{"type":"number"}},"required":["total"]},"RequestsCount.Body.Post":{"type":"object","properties":{"search":{"type":"object","properties":{"on_demand":{"type":"boolean"},"search_type":{"type":"string","enum":["cpf","cnpj","oab","name","rji","lawsuit_cnj","lawsuit_attachment","execution_attachment","custom"]},"search_key":{"type":"string"},"search_name":{"type":"string"},"response_type":{"default":"lawsuits","anyOf":[{"type":"string","enum":["application_error","application_warning","application_info"]},{"type":"string","enum":["lawsuits"]},{"type":"string","enum":["lawsuit"]},{"type":"string","enum":["warrant","execution"]},{"type":"string","enum":["entity"]},{"type":"string","enum":["summary"]},{"type":"string","enum":["sanction"]},{"type":"string","enum":["synthetic_lawsuits"]},{"type":"string","enum":["communication"]}]},"cache_ttl_in_days":{"type":"number"},"search_params":{"type":"object","properties":{"with_inferred_parties":{"type":"boolean"},"with_unique_name_search":{"type":"boolean"},"should_search_superior_instances":{"type":"boolean"},"reveal_partners_documents":{"type":"boolean"},"lawsuit_instance":{"type":"number"},"filter":{"type":"object","properties":{"side":{"type":"string","enum":["Passive","Active","Interested","Unknown"]},"party_names":{"type":"array","items":{"type":"string"}},"party_documents":{"type":"array","items":{"type":"string"}},"distribution_date_gte":{"type":"string","format":"date-time"},"distribution_date_lte":{"type":"string","format":"date-time"},"last_step_date_gte":{"type":"string","format":"date-time"},"last_step_date_lte":{"type":"string","format":"date-time"},"tribunals":{"type":"object","properties":{"keys":{"type":"array","items":{"type":"string"}},"not_equal":{"type":"boolean"}},"required":["keys","not_equal"]},"classification_codes":{"type":"object","properties":{"keys":{"type":"array","items":{"type":"string"}},"not_equal":{"type":"boolean"}},"required":["keys","not_equal"]},"classification_names":{"type":"object","properties":{"keys":{"type":"array","items":{"type":"string"}},"not_equal":{"type":"boolean"}},"required":["keys","not_equal"]},"subject_codes":{"type":"object","properties":{"contains":{"type":"array","items":{"type":"string"}},"not_contains":{"type":"array","items":{"type":"string"}}},"required":["contains","not_contains"]},"subject_names":{"type":"object","properties":{"contains":{"type":"array","items":{"type":"string"}},"not_contains":{"type":"array","items":{"type":"string"}}},"required":["contains","not_contains"]},"amount_lte":{"type":"number"},"amount_gte":{"type":"number"}}}}}},"required":["search_type","search_key"]}},"required":["search"]},"RequestsCreate.Response.Post":{"type":"object","properties":{"has_lawsuits":{"type":"boolean"},"has_sanctions":{"type":"boolean"},"request_id":{"type":"string"},"response_data":{"type":"array","items":{}}},"required":["request_id","response_data"]},"RequestsCreate.Body.Post":{"type":"object","properties":{"search":{"type":"object","properties":{"on_demand":{"type":"boolean"},"search_type":{"type":"string","enum":["cpf","cnpj","oab","name","rji","lawsuit_cnj","lawsuit_attachment","execution_attachment","custom"]},"search_key":{"type":"string"},"search_name":{"type":"string"},"response_type":{"default":"lawsuits","anyOf":[{"type":"string","enum":["application_error","application_warning","application_info"]},{"type":"string","enum":["lawsuits"]},{"type":"string","enum":["lawsuit"]},{"type":"string","enum":["warrant","execution"]},{"type":"string","enum":["entity"]},{"type":"string","enum":["summary"]},{"type":"string","enum":["sanction"]},{"type":"string","enum":["synthetic_lawsuits"]},{"type":"string","enum":["communication"]}]},"cache_ttl_in_days":{"type":"number"},"search_params":{"type":"object","properties":{"full_lawsuit":{"type":"boolean"},"should_search_branches":{"type":"boolean"},"with_inferred_parties":{"type":"boolean"},"with_unique_name_search":{"type":"boolean"},"should_search_superior_instances":{"type":"boolean"},"reveal_partners_documents":{"type":"boolean"},"public_search":{"type":"boolean"},"lawsuit_instance":{"type":"number"},"attachment_id":{"type":"string"},"attachment_extension":{"type":"string"},"filter":{"type":"object","properties":{"side":{"type":"string","enum":["Passive","Active","Interested","Unknown"]},"party_names":{"type":"array","items":{"type":"string"}},"party_documents":{"type":"array","items":{"type":"string"}},"distribution_date_gte":{"type":"string","format":"date-time"},"distribution_date_lte":{"type":"string","format":"date-time"},"last_step_date_gte":{"type":"string","format":"date-time"},"last_step_date_lte":{"type":"string","format":"date-time"},"tribunals":{"type":"object","properties":{"keys":{"type":"array","items":{"type":"string"}},"not_equal":{"type":"boolean"}},"required":["keys","not_equal"]},"classification_codes":{"type":"object","properties":{"keys":{"type":"array","items":{"type":"string"}},"not_equal":{"type":"boolean"}},"required":["keys","not_equal"]},"classification_names":{"type":"object","properties":{"keys":{"type":"array","items":{"type":"string"}},"not_equal":{"type":"boolean"}},"required":["keys","not_equal"]},"subject_codes":{"type":"object","properties":{"contains":{"type":"array","items":{"type":"string"}},"not_contains":{"type":"array","items":{"type":"string"}}},"required":["contains","not_contains"]},"subject_names":{"type":"object","properties":{"contains":{"type":"array","items":{"type":"string"}},"not_contains":{"type":"array","items":{"type":"string"}}},"required":["contains","not_contains"]},"amount_lte":{"type":"number"},"amount_gte":{"type":"number"}}},"pagination":{"type":"object","properties":{"page":{"type":"number"},"page_size":{"type":"number"}}},"credential":{"type":"object","properties":{"customer_key":{"type":"string"}}}}}},"required":["search_type","search_key","response_type"]},"with_attachments":{"type":"boolean"},"source_name":{"type":"string"},"callback_url":{"type":"string"},"reveal_partners_documents":{"type":"boolean"},"create_complete_request":{"type":"boolean"},"tags":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"string","format":"date-time"}]}}},"required":["search"]},"RequestsCreateGrouped.Response.Post":{"type":"object","properties":{"classifications":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"count":{"type":"number"}},"required":["value","count"]}},"subjects":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"count":{"type":"number"}},"required":["value","count"]}},"areas":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"count":{"type":"number"}},"required":["value","count"]}},"tribunals":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"count":{"type":"number"}},"required":["value","count"]}},"justices":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"count":{"type":"number"}},"required":["value","count"]}},"phases":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"count":{"type":"number"}},"required":["value","count"]}},"states":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"count":{"type":"number"}},"required":["value","count"]}},"instances":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"count":{"type":"number"}},"required":["value","count"]}},"sides":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"count":{"type":"number"}},"required":["value","count"]}},"person_types":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"count":{"type":"number"}},"required":["value","count"]}},"names":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"count":{"type":"number"}},"required":["value","count"]}},"other_parties":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"count":{"type":"number"}},"required":["value","count"]}},"lawsuits_count":{"type":"number"},"secrecy_lawsuits_count":{"type":"number"},"request_id":{"type":"string"}},"required":["classifications","subjects","areas","tribunals","justices","phases","states","instances","sides","person_types","names","other_parties","lawsuits_count","secrecy_lawsuits_count","request_id"]},"RequestsCreateGrouped.Body.Post":{"type":"object","properties":{"search":{"type":"object","properties":{"on_demand":{"type":"boolean"},"search_type":{"type":"string","enum":["cpf","cnpj","oab","name","rji","lawsuit_cnj","lawsuit_attachment","execution_attachment","custom"]},"search_key":{"type":"string"},"search_name":{"type":"string"},"response_type":{"default":"lawsuits","anyOf":[{"type":"string","enum":["application_error","application_warning","application_info"]},{"type":"string","enum":["lawsuits"]},{"type":"string","enum":["lawsuit"]},{"type":"string","enum":["warrant","execution"]},{"type":"string","enum":["entity"]},{"type":"string","enum":["summary"]},{"type":"string","enum":["sanction"]},{"type":"string","enum":["synthetic_lawsuits"]},{"type":"string","enum":["communication"]}]},"cache_ttl_in_days":{"type":"number"},"search_params":{"type":"object","properties":{"with_inferred_parties":{"type":"boolean"},"with_unique_name_search":{"type":"boolean"},"should_search_superior_instances":{"type":"boolean"},"reveal_partners_documents":{"type":"boolean"},"lawsuit_instance":{"type":"number"},"filter":{"type":"object","properties":{"side":{"type":"string","enum":["Passive","Active","Interested","Unknown"]},"party_names":{"type":"array","items":{"type":"string"}},"party_documents":{"type":"array","items":{"type":"string"}},"distribution_date_gte":{"type":"string","format":"date-time"},"distribution_date_lte":{"type":"string","format":"date-time"},"last_step_date_gte":{"type":"string","format":"date-time"},"last_step_date_lte":{"type":"string","format":"date-time"},"tribunals":{"type":"object","properties":{"keys":{"type":"array","items":{"type":"string"}},"not_equal":{"type":"boolean"}},"required":["keys","not_equal"]},"classification_codes":{"type":"object","properties":{"keys":{"type":"array","items":{"type":"string"}},"not_equal":{"type":"boolean"}},"required":["keys","not_equal"]},"classification_names":{"type":"object","properties":{"keys":{"type":"array","items":{"type":"string"}},"not_equal":{"type":"boolean"}},"required":["keys","not_equal"]},"subject_codes":{"type":"object","properties":{"contains":{"type":"array","items":{"type":"string"}},"not_contains":{"type":"array","items":{"type":"string"}}},"required":["contains","not_contains"]},"subject_names":{"type":"object","properties":{"contains":{"type":"array","items":{"type":"string"}},"not_contains":{"type":"array","items":{"type":"string"}}},"required":["contains","not_contains"]},"amount_lte":{"type":"number"},"amount_gte":{"type":"number"}}}}},"lawsuit_list":{"maxItems":1000,"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"instance":{"type":"number"}},"required":["code","instance"]}}},"required":["search_type","search_key"]}},"required":["search"]}}}}