{"openapi":"3.1.0","info":{"title":"OpenAPI definition","version":"v0"},"servers":[{"url":"https://app.datafi.com.br"}],"tags":[{"name":"DataLens","description":"Per-company DataLens integration (super-admin only)"}],"paths":{"/auth/confirm-account":{"get":{"tags":["authentication-controller"],"operationId":"confirmUserAccount","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserDTO"}}}}}},"post":{"tags":["authentication-controller"],"operationId":"confirmUserAccount_1","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserDTO"}}}}}}},"/users/{id}":{"put":{"tags":["user-controller"],"operationId":"updateUser","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUserDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserDTO"}}}}}},"delete":{"tags":["user-controller"],"operationId":"deleteUser","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK"}}}},"/users/me/password":{"put":{"tags":["user-controller"],"operationId":"changePassword","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePasswordDTO"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/templates/{id}":{"get":{"tags":["template-controller"],"operationId":"getTemplateById","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TemplateDTO"}}}}}},"put":{"tags":["template-controller"],"operationId":"updateTemplate","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTemplateDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TemplateDTO"}}}}}},"delete":{"tags":["template-controller"],"operationId":"deleteTemplate","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK"}}}},"/reports/{id}":{"get":{"tags":["report-controller"],"operationId":"findReportById","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ReportDTO"}}}}}},"put":{"tags":["report-controller"],"operationId":"updateReport","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateReportDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ReportDTO"}}}}}},"delete":{"tags":["report-controller"],"operationId":"deleteReport","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK"}}}},"/reports/change-active/{id}":{"put":{"tags":["report-controller"],"operationId":"changeActive","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"active","in":"query","required":true,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ReportDTO"}}}}}}},"/public/buyers/{id}":{"put":{"tags":["public-controller"],"operationId":"updateBuyer","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBuyerDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BuyerDTO"}}}}}}},"/event/{id}":{"get":{"tags":["event-controller"],"operationId":"findById","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/NivelFunilDTO"}}}}}},"put":{"tags":["event-controller"],"operationId":"updateFunil","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NivelFunilDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/NivelFunilDTO"}}}}}},"delete":{"tags":["event-controller"],"operationId":"deleteFunil","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK"}}}},"/datalens/companies/{companyId}/expected":{"put":{"tags":["DataLens"],"summary":"Expected company name and key prefix plus the required, audited consentRef","operationId":"expected","parameters":[{"name":"companyId","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExpectedRequest"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/datalens/companies/{companyId}/clients/{clientId}":{"put":{"tags":["DataLens"],"summary":"Tick or untick a client; a tick on a running company backfills its last 30 days","operationId":"setClient","parameters":[{"name":"companyId","in":"path","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"clientId","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ClientView"}}}}}}},"/datalens/companies/{companyId}/clients/{clientId}/business-hours":{"get":{"tags":["DataLens"],"summary":"The connection's business hours at DataLens ({timeZone, windows, inherited})","operationId":"businessHours","parameters":[{"name":"companyId","in":"path","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"clientId","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}}}},"put":{"tags":["DataLens"],"summary":"Custom business hours for a ticked connection (409 INVALID_REQUEST when unticked)","operationId":"setBusinessHours","parameters":[{"name":"companyId","in":"path","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"clientId","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HoursRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}}}},"delete":{"tags":["DataLens"],"summary":"Back to the company business hours","operationId":"clearBusinessHours","parameters":[{"name":"companyId","in":"path","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"clientId","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK"}}}},"/company/{id}":{"get":{"tags":["company-controller"],"operationId":"getCompanyById","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CompanyDTO"}}}}}},"put":{"tags":["company-controller"],"operationId":"updateCompany","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCompanyDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CompanyDTO"}}}}}},"delete":{"tags":["company-controller"],"operationId":"deleteCompany","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK"}}}},"/company/{id}/google-manager":{"put":{"tags":["company-controller"],"operationId":"updateGoogleManagerCustomerId","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCompanyGoogleManagerDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CompanyDTO"}}}}}}},"/clients/{id}":{"get":{"tags":["client-controller"],"operationId":"getClientById","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ClientDTO"}}}}}},"put":{"tags":["client-controller"],"operationId":"updateClient","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"desconectarMeta","in":"query","required":false,"schema":{"type":"boolean"}},{"name":"desconectarGoogle","in":"query","required":false,"schema":{"type":"boolean"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateClientDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ClientDTO"}}}}}},"delete":{"tags":["client-controller"],"operationId":"deleteClient","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK"}}}},"/clients/{id}/meta-selected-account":{"put":{"tags":["client-controller"],"operationId":"updateMetaSelectedAccount","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"string"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ClientDTO"}}}}}}},"/clients/{id}/google-selected-customer":{"put":{"tags":["client-controller"],"operationId":"updateGoogleSelectedCustomer","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateClientGoogleCustomerDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ClientDTO"}}}}}}},"/clients/frases-anuncio/{id}":{"put":{"tags":["client-controller"],"operationId":"updateFrasesAnuncio","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FraseAnuncioDTO"},"uniqueItems":true}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ClientDTO"}}}}}}},"/buyers/{id}":{"put":{"tags":["buyer-controller"],"operationId":"updateBuyer_1","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBuyerDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BuyerDTO"}}}}}}},"/avisos/{id}":{"get":{"tags":["aviso-controller"],"operationId":"findAvisoById","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/AvisoDTO"}}}}}},"put":{"tags":["aviso-controller"],"operationId":"updateReport_1","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAvisoDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/AvisoDTO"}}}}}},"delete":{"tags":["aviso-controller"],"operationId":"deleteAviso","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK"}}}},"/users/me/subscription/upgrade":{"post":{"tags":["subscription-controller"],"operationId":"upgrade","requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"integer","format":"int32"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}}}}},"/users/me/subscription/reactivate":{"post":{"tags":["subscription-controller"],"operationId":"reactivate","responses":{"200":{"description":"OK"}}}},"/users/me/subscription/cancel":{"post":{"tags":["subscription-controller"],"operationId":"cancel","responses":{"200":{"description":"OK"}}}},"/users/me/billing/portal-session":{"post":{"tags":["billing-controller"],"operationId":"portalSession","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}}}}},"/users/invite":{"post":{"tags":["user-controller"],"operationId":"inviteUser","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteUserDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/users/activate":{"post":{"tags":["user-controller"],"operationId":"activateUser","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivateUserDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/uazapi/webhook/message":{"post":{"tags":["uazapi-controller"],"operationId":"webhookMessage","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UazapiMessageWebhook"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/uazapi/webhook/connection":{"post":{"tags":["uazapi-controller"],"operationId":"webhookConnection","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UazapiConnectionWebhook"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/uazapi/webhook/all":{"post":{"tags":["uazapi-controller"],"operationId":"webhook","requestBody":{"content":{"application/json":{"schema":{"type":"string"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/uazapi/desconectar":{"post":{"tags":["uazapi-controller"],"operationId":"desconectar","parameters":[{"name":"clientId","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"teste","in":"query","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK"}}}},"/templates":{"post":{"tags":["template-controller"],"operationId":"createTemplate","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTemplateDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TemplateDTO"}}}}}}},"/templates/":{"post":{"tags":["template-controller"],"operationId":"createTemplate_1","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTemplateDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TemplateDTO"}}}}}}},"/ses":{"post":{"tags":["amazon-ses-controller"],"operationId":"handleNotificacao","requestBody":{"content":{"application/json":{"schema":{"type":"string"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/reports":{"post":{"tags":["report-controller"],"operationId":"createReport","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateReportDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ReportDTO"}}}}}}},"/reports/{id}/send":{"post":{"tags":["report-controller"],"operationId":"sendReportNow","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK"}}}},"/public/token":{"post":{"tags":["public-controller"],"operationId":"generateToken","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicTokenDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PublicTrackingTokenResponse"}}}}}}},"/public/buyers/pixel-history/retry/{id}":{"post":{"tags":["public-controller"],"operationId":"retryPixel","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/mock/uazapi":{"post":{"tags":["mock-controller"],"operationId":"uazapi","requestBody":{"content":{"application/json":{"schema":{"type":"string"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/event":{"get":{"tags":["event-controller"],"operationId":"findByClientId","parameters":[{"name":"clientId","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"active","in":"query","required":false,"schema":{"type":"boolean"}},{"name":"somenteLeadTrafego","in":"query","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/NivelFunilDTO"}}}}}}},"post":{"tags":["event-controller"],"operationId":"saveFunil","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NivelFunilDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/NivelFunilDTO"}}}}}}},"/datalens/companies/{companyId}/resume":{"post":{"tags":["DataLens"],"summary":"Resume sending (KEY_401 clears only with a new key)","operationId":"resume","parameters":[{"name":"companyId","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK"}}}},"/datalens/companies/{companyId}/remove":{"post":{"tags":["DataLens"],"summary":"Remove the integration or re-arm REVOKE_FAILED (409 MASTER_KEY_MISSING without the master key)","operationId":"remove","parameters":[{"name":"companyId","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/RemoveResponse"}}}}}}},"/datalens/companies/{companyId}/quarantine/requeue":{"post":{"tags":["DataLens"],"summary":"Requeue quarantined rows that still hold a payload","operationId":"requeue","parameters":[{"name":"companyId","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/RequeueResponse"}}}}}}},"/datalens/companies/{companyId}/pause":{"post":{"tags":["DataLens"],"summary":"Pause sending: no lock wait, takes effect before the next batch","operationId":"pause","parameters":[{"name":"companyId","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK"}}}},"/datalens/companies/{companyId}/keys":{"post":{"tags":["DataLens"],"summary":"Store and validate a key; the result is in outcome (409 CONSENT_MISSING before /expected)","operationId":"addKey","parameters":[{"name":"companyId","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/KeyResponse"}}}}}}},"/datalens/companies/{companyId}/keys/{keyId}/validate":{"post":{"tags":["DataLens"],"summary":"Validate a NOVA key again (at least 10 s apart)","operationId":"validate","parameters":[{"name":"companyId","in":"path","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"keyId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/KeyResponse"}}}}}}},"/clients/activate/{id}":{"post":{"tags":["client-controller"],"operationId":"activateClient","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ClientDTO"}}}}}}},"/clients/":{"get":{"tags":["client-controller"],"operationId":"getAllClients","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ClientDTO"}}}}}}},"post":{"tags":["client-controller"],"operationId":"register","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterClientDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ClientDTO"}}}}}}},"/clients":{"get":{"tags":["client-controller"],"operationId":"getAllClients_1","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ClientDTO"}}}}}}},"post":{"tags":["client-controller"],"operationId":"register_1","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterClientDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ClientDTO"}}}}}}},"/buyers":{"get":{"tags":["buyer-controller"],"operationId":"findAll","parameters":[{"name":"clientId","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"nome","in":"query","required":false,"schema":{"type":"string"}},{"name":"etapa","in":"query","required":false,"schema":{"type":"string"}},{"name":"origem","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BuyerDTO"}}}}}}},"post":{"tags":["buyer-controller"],"operationId":"createReport_1","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateReportDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ReportDTO"}}}}}}},"/buyers/pixel-history/retry/{id}":{"post":{"tags":["buyer-controller"],"operationId":"retryPixel_1","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK"}}}},"/avisos":{"post":{"tags":["aviso-controller"],"operationId":"createReport_2","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAvisoDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/AvisoDTO"}}}}}}},"/auth/signup":{"post":{"tags":["authentication-controller"],"operationId":"register_2","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterUserDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserDTO"}}}}}}},"/auth/resend-confirmation":{"post":{"tags":["authentication-controller"],"operationId":"resendConfirmation","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResendConfirmationDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/MensagemSucessoResponse"}}}}}}},"/auth/password-recovery":{"post":{"tags":["authentication-controller"],"operationId":"passwordRecovery","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterUserDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/auth/new-password":{"post":{"tags":["authentication-controller"],"operationId":"newPassword","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterUserDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/auth/login":{"post":{"tags":["authentication-controller"],"operationId":"authenticate","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginUserDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/LoginResponse"}}}}}}},"/auth/checkout-confirm":{"post":{"tags":["authentication-controller"],"operationId":"checkoutConfirm","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutConfirmDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/users/me":{"get":{"tags":["user-controller"],"operationId":"authenticatedUser","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UserDTO"}}}}}}},"/users/me/subscription/history":{"get":{"tags":["subscription-controller"],"operationId":"history","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SubscriptionCycleDTO"}}}}}}}},"/users/me/billing/next-charge":{"get":{"tags":["billing-controller"],"operationId":"nextCharge","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{"type":"integer","format":"int32"}}}}}}}},"/users":{"get":{"tags":["user-controller"],"operationId":"allUsers","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserDTO"}}}}}}}},"/users/":{"get":{"tags":["user-controller"],"operationId":"allUsers_1","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserDTO"}}}}}}}},"/uazapi/qr-atual":{"get":{"tags":["uazapi-controller"],"operationId":"qrAtual","parameters":[{"name":"clientId","in":"query","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/UazapiLiveQrResponseDto"}}}}}}},"/uazapi/obter-code":{"get":{"tags":["uazapi-controller"],"operationId":"qrOuPairingCode","parameters":[{"name":"clientId","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"pairingCode","in":"query","required":false,"schema":{"type":"boolean"}},{"name":"teste","in":"query","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/testes":{"get":{"tags":["test-controller"],"operationId":"get","responses":{"200":{"description":"OK"}}}},"/templates/company/{companyId}":{"get":{"tags":["template-controller"],"operationId":"getTemplatesByCompany","parameters":[{"name":"companyId","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TemplateDTO"}}}}}}}},"/reports/{id}/history":{"get":{"tags":["report-controller"],"operationId":"getReportHistory","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"sentAt","in":"query","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SentReportDTO"}}}}}}}},"/reports/full-text/{id}":{"get":{"tags":["report-controller"],"operationId":"getTextWithMetrics","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/reports/client/{clientId}":{"get":{"tags":["report-controller"],"operationId":"getReportsByClient","parameters":[{"name":"clientId","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ReportDTO"}}}}}}}},"/public/metrics/client":{"get":{"tags":["public-controller"],"operationId":"getMetricsByClient","parameters":[{"name":"campaignIds","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"startDate","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"endDate","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/RastreioDTO"}}}}}}},"/public/event":{"get":{"tags":["public-controller"],"operationId":"findEvents","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/NivelFunilDTO"}}}}}}}},"/public/buyers":{"get":{"tags":["public-controller"],"operationId":"findAll_1","parameters":[{"name":"nome","in":"query","required":false,"schema":{"type":"string"}},{"name":"etapa","in":"query","required":false,"schema":{"type":"string"}},{"name":"origem","in":"query","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BuyerDTO"}}}}}}}},"/public/buyers/pixel-history":{"get":{"tags":["public-controller"],"operationId":"getPixelHistory","parameters":[{"name":"buyerId","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","required":true,"schema":{"$ref":"#/components/schemas/Pageable"}},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PagedModelBuyerEventHistoryDTO"}}}}}}},"/public/buyers/paginacao":{"get":{"tags":["public-controller"],"operationId":"findAllPagination","parameters":[{"name":"nome","in":"query","required":false,"schema":{"type":"string"}},{"name":"etapa","in":"query","required":false,"schema":{"type":"string"}},{"name":"origem","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"nomeOuNumero","in":"query","required":false,"schema":{"type":"string"}},{"name":"niveisFunil","in":"query","required":false,"schema":{"type":"array","items":{"type":"integer","format":"int32"}}},{"name":"startDate","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"endDate","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"rastreio","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","enum":["RASTREADO","NAO_RASTREADO","OUTRAS"]}}},{"name":"conversa","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","enum":["CONVERSA_INICIADA","CONVERSA_RESPONDIDA"]}}},{"name":"paginacao","in":"query","required":true,"schema":{"$ref":"#/components/schemas/Pageable"}},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PagedModelBuyerDTO"}}}}}}},"/public/buyers/message-history":{"get":{"tags":["public-controller"],"operationId":"getMessageHistory","parameters":[{"name":"buyerId","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","required":true,"schema":{"$ref":"#/components/schemas/Pageable"}},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PagedModelBuyerMessageHistoryDTO"}}}}}}},"/public/buyers/history":{"get":{"tags":["public-controller"],"operationId":"getHistory","parameters":[{"name":"buyerId","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"dateTime","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"page","in":"query","required":true,"schema":{"$ref":"#/components/schemas/Pageable"}},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PagedModelBuyerHistoryDTO"}}}}}}},"/public/buyers/export":{"get":{"tags":["public-controller"],"operationId":"exportCsv","parameters":[{"name":"nome","in":"query","required":false,"schema":{"type":"string"}},{"name":"etapa","in":"query","required":false,"schema":{"type":"string"}},{"name":"origem","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"nomeOuNumero","in":"query","required":false,"schema":{"type":"string"}},{"name":"niveisFunil","in":"query","required":false,"schema":{"type":"array","items":{"type":"integer","format":"int32"}}},{"name":"startDate","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"endDate","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"rastreio","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","enum":["RASTREADO","NAO_RASTREADO","OUTRAS"]}}},{"name":"conversa","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","enum":["CONVERSA_INICIADA","CONVERSA_RESPONDIDA"]}}},{"name":"buyerIds","in":"query","required":false,"schema":{"type":"array","items":{"type":"integer","format":"int32"}}},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"text/csv":{"schema":{"type":"string","format":"byte"}}}}}}},"/metrics/external":{"get":{"tags":["metric-controller"],"operationId":"getExternalMetrics","parameters":[{"name":"isMeta","in":"query","required":true,"schema":{"type":"boolean"}},{"name":"isAccountSearch","in":"query","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ExternalMetricDTO"}}}}}}}},"/metrics/client/{clientId}":{"get":{"tags":["metric-controller"],"operationId":"getMetricsByClient_1","parameters":[{"name":"clientId","in":"path","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"campaignIds","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"startDate","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"endDate","in":"query","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/RastreioDTO"}}}}}}},"/integrations/whatsapp/callback":{"get":{"tags":["whatsapp-controller"],"operationId":"handleCallback","parameters":[{"name":"code","in":"query","required":true,"schema":{"type":"string"}},{"name":"state","in":"query","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/integrations/whatsapp/authorize":{"get":{"tags":["whatsapp-controller"],"operationId":"getAuthorizationUrl","parameters":[{"name":"clientId","in":"query","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/MetaUrlResponse"}}}}}}},"/integrations/meta/listar-eventos-pixel":{"get":{"tags":["meta-controller"],"operationId":"getStandardPixelEvents","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PixelEventDTO"}}}}}}}},"/integrations/meta/campaigns":{"get":{"tags":["meta-controller"],"operationId":"getCampaigns","parameters":[{"name":"clientId","in":"query","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MetaLevelSummaryDTO"}}}}}}}},"/integrations/meta/adsets":{"get":{"tags":["meta-controller"],"operationId":"getAdSets","parameters":[{"name":"clientId","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"campaignId","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MetaLevelSummaryDTO"}}}}}}}},"/integrations/meta/ads":{"get":{"tags":["meta-controller"],"operationId":"getAds","parameters":[{"name":"clientId","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"adSetId","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MetaLevelSummaryDTO"}}}}}}}},"/integrations/meta/ad-accounts":{"get":{"tags":["meta-controller"],"operationId":"getAdAccounts","parameters":[{"name":"clientId","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"nome","in":"query","required":false,"schema":{"type":"string"}},{"name":"tamanhoPagina","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":10}},{"name":"paginaAntes","in":"query","required":false,"schema":{"type":"string"}},{"name":"paginaDepois","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/MetaResponseWrapperMetaAdAccountDTO"}}}}}}},"/google/listar-grupos":{"get":{"tags":["google-controller"],"operationId":"synchronizeAdGroups","parameters":[{"name":"clientId","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"campaignId","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GoogleAdsGroupDTO"}}}}}}}},"/google/listar-campanhas":{"get":{"tags":["google-controller"],"operationId":"synchronizeCampaigns","parameters":[{"name":"clientId","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"accountId","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GoogleAdsCampaignDTO"}}}}}}}},"/google/listar-anuncios":{"get":{"tags":["google-controller"],"operationId":"synchronizeAds","parameters":[{"name":"clientId","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"adGroupId","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GoogleAdsDTO"}}}}}}}},"/google/ad-accounts":{"get":{"tags":["google-controller"],"operationId":"synchronizeAccounts","parameters":[{"name":"clientId","in":"query","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GoogleAdsAccountDTO"}}}}}}}},"/datalens/companies/{companyId}/metrics":{"get":{"tags":["DataLens"],"summary":"DataLens metrics (guide 10.2 shape plus DataFi enrichment)","operationId":"metrics","parameters":[{"name":"companyId","in":"path","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"period","in":"query","required":false,"schema":{"type":"string","default":"today"}},{"name":"connection","in":"query","required":false,"schema":{"type":"string"}},{"name":"refresh","in":"query","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/MetricsView"}}}}}}},"/datalens/companies/{companyId}/health":{"get":{"tags":["DataLens"],"summary":"Integration health, from the DataFi database only","operationId":"health","parameters":[{"name":"companyId","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Health"}}}}}}},"/datalens/companies/{companyId}/estimate":{"get":{"tags":["DataLens"],"summary":"30-day backfill estimate; 503 ESTIMATE_TIMEOUT with Retry-After: 30","operationId":"estimate","parameters":[{"name":"companyId","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/EstimateView"}}}}}}},"/datalens/companies/{companyId}/clients":{"get":{"tags":["DataLens"],"summary":"The company's clients (connections) and what is sent of each","operationId":"clients","parameters":[{"name":"companyId","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ClientView"}}}}}}}},"/company":{"get":{"tags":["company-controller"],"operationId":"getAllCompaniesByUser","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CompanyDTO"}}}}}}}},"/company/":{"get":{"tags":["company-controller"],"operationId":"getAllCompaniesByUser_1","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CompanyDTO"}}}}}}}},"/clients/{id}/eventos":{"get":{"tags":["client-controller"],"operationId":"getEventosByClientId","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"type":"object","additionalProperties":{}}}}}}}}},"/clients/number-of-leads/{id}":{"get":{"tags":["client-controller"],"operationId":"getNumberOfLeads","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"integer","format":"int32"}}}}}}},"/clients/number-of-clients/{id}":{"get":{"tags":["client-controller"],"operationId":"getNumberOfClients","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"integer","format":"int32"}}}}}}},"/clients/my-clients":{"get":{"tags":["client-controller"],"operationId":"getAllClientsForUserDashboard","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ClientDTO"}}}}}}}},"/buyers/pixel-history":{"get":{"tags":["buyer-controller"],"operationId":"getPixelHistory_1","parameters":[{"name":"buyerId","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","required":true,"schema":{"$ref":"#/components/schemas/Pageable"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PagedModelBuyerEventHistoryDTO"}}}}}}},"/buyers/paginacao":{"get":{"tags":["buyer-controller"],"operationId":"findAllPagination_1","parameters":[{"name":"clientId","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"nome","in":"query","required":false,"schema":{"type":"string"}},{"name":"etapa","in":"query","required":false,"schema":{"type":"string"}},{"name":"origem","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"nomeOuNumero","in":"query","required":false,"schema":{"type":"string"}},{"name":"niveisFunil","in":"query","required":false,"schema":{"type":"array","items":{"type":"integer","format":"int32"}}},{"name":"startDate","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"endDate","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"rastreio","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","enum":["RASTREADO","NAO_RASTREADO","OUTRAS"]}}},{"name":"conversa","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","enum":["CONVERSA_INICIADA","CONVERSA_RESPONDIDA"]}}},{"name":"paginacao","in":"query","required":true,"schema":{"$ref":"#/components/schemas/Pageable"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PagedModelBuyerDTO"}}}}}}},"/buyers/message-history":{"get":{"tags":["buyer-controller"],"operationId":"getMessageHistory_1","parameters":[{"name":"buyerId","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","required":true,"schema":{"$ref":"#/components/schemas/Pageable"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PagedModelBuyerMessageHistoryDTO"}}}}}}},"/buyers/history":{"get":{"tags":["buyer-controller"],"operationId":"getHistory_1","parameters":[{"name":"buyerId","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"dateTime","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"page","in":"query","required":true,"schema":{"$ref":"#/components/schemas/Pageable"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PagedModelBuyerHistoryDTO"}}}}}}},"/buyers/export":{"get":{"tags":["buyer-controller"],"operationId":"exportCsv_1","parameters":[{"name":"clientId","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"nome","in":"query","required":false,"schema":{"type":"string"}},{"name":"etapa","in":"query","required":false,"schema":{"type":"string"}},{"name":"origem","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"nomeOuNumero","in":"query","required":false,"schema":{"type":"string"}},{"name":"niveisFunil","in":"query","required":false,"schema":{"type":"array","items":{"type":"integer","format":"int32"}}},{"name":"startDate","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"endDate","in":"query","required":false,"schema":{"type":"string","format":"date"}},{"name":"rastreio","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","enum":["RASTREADO","NAO_RASTREADO","OUTRAS"]}}},{"name":"conversa","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","enum":["CONVERSA_INICIADA","CONVERSA_RESPONDIDA"]}}},{"name":"buyerIds","in":"query","required":false,"schema":{"type":"array","items":{"type":"integer","format":"int32"}}}],"responses":{"200":{"description":"OK","content":{"text/csv":{"schema":{"type":"string","format":"byte"}}}}}}},"/avisos/{id}/history":{"get":{"tags":["aviso-controller"],"operationId":"getHistory_2","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"sentAt","in":"query","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AvisoEnviadoDTO"}}}}}}}},"/avisos/client/{clientId}":{"get":{"tags":["aviso-controller"],"operationId":"getAvisosByClient","parameters":[{"name":"clientId","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AvisoDTO"}}}}}}}},"/avisos/client-history":{"get":{"tags":["aviso-controller"],"operationId":"getClientHistory","parameters":[{"name":"clientId","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"sentAt","in":"query","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AvisoEnviadoDTO"}}}}}}}},"/auth/meta":{"get":{"tags":["authentication-controller"],"operationId":"authenticateWithMeta","parameters":[{"name":"clientId","in":"query","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/auth/meta/callback":{"get":{"tags":["authentication-controller"],"operationId":"metaCallback","parameters":[{"name":"code","in":"query","required":false,"schema":{"type":"string"}},{"name":"state","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/auth/google":{"get":{"tags":["authentication-controller"],"operationId":"authenticateWithGoogle","parameters":[{"name":"clientId","in":"query","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/auth/google/callback":{"get":{"tags":["authentication-controller"],"operationId":"googleCallback","parameters":[{"name":"code","in":"query","required":false,"schema":{"type":"string"}},{"name":"state","in":"query","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK"}}}}},"components":{"schemas":{"CompanyDTO":{"type":"object","properties":{"idCompany":{"type":"integer","format":"int32"},"companyName":{"type":"string"},"companyLogo":{"type":"string"},"googleManagerCustomerId":{"type":"string"},"users":{"type":"array","items":{"$ref":"#/components/schemas/UserDTO"}},"quantidadeClientes":{"type":"integer","format":"int32"},"emailDono":{"type":"string"},"nomeDono":{"type":"string"},"telefoneDono":{"type":"string"}}},"UserDTO":{"type":"object","properties":{"idUser":{"type":"integer","format":"int32"},"fullName":{"type":"string"},"email":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"roleName":{"type":"string"},"conectadoWhatsapp":{"type":"boolean"},"whatsappNumber":{"type":"string"},"phone":{"type":"string"},"companyName":{"type":"string"},"perdidoConexaoWhatsapp":{"type":"boolean"},"planoComWhatsapp":{"type":"boolean"},"maxClientes":{"type":"integer","format":"int32"},"naoValidarPlano":{"type":"boolean"},"boasVindasNaoApresentarNovamente":{"type":"boolean"},"planStatus":{"type":"string","enum":["NEVER_PAID","TRIAL","ACTIVE","OVERDUE","BLOCKED"]},"planEndDate":{"type":"string","format":"date-time"},"planCancelScheduledAt":{"type":"string","format":"date-time"},"planDaysRemaining":{"type":"integer","format":"int64"},"planDaysOverdue":{"type":"integer","format":"int64"},"currentClientesCount":{"type":"integer","format":"int32"},"scheduledMaxClientes":{"type":"integer","format":"int32"},"scheduledMaxClientesAt":{"type":"string","format":"date-time"},"company":{"$ref":"#/components/schemas/CompanyDTO"},"enabled":{"type":"boolean"}}},"UpdateUserDTO":{"type":"object","properties":{"roleName":{"type":"string"},"fullName":{"type":"string"},"isEnabled":{"type":"boolean"},"boasVindasNaoApresentarNovamente":{"type":"boolean"}}},"ChangePasswordDTO":{"type":"object","properties":{"oldPassword":{"type":"string","minLength":1},"newPassword":{"type":"string","maxLength":2147483647,"minLength":8}},"required":["newPassword","oldPassword"]},"CreateTemplateDTO":{"type":"object","properties":{"nome":{"type":"string","minLength":1},"mensagem":{"type":"string","minLength":1},"tipo":{"type":"string"},"companyId":{"type":"integer","format":"int32"}},"required":["companyId","mensagem","nome"]},"TemplateDTO":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"nome":{"type":"string"},"mensagem":{"type":"string"},"tipo":{"type":"string"},"fixo":{"type":"boolean"},"companyId":{"type":"integer","format":"int32"},"companyName":{"type":"string"}}},"ReportAdDTO":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"nome":{"type":"string"},"externalId":{"type":"string"},"isMeta":{"type":"boolean"}}},"ReportAdSetDTO":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"nome":{"type":"string"},"externalId":{"type":"string"},"isMeta":{"type":"boolean"}}},"ReportCampaignDTO":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"nome":{"type":"string"},"externalId":{"type":"string"},"isMeta":{"type":"boolean"}}},"ReportNamedMetricDTO":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"emoji":{"type":"string"}}},"UpdateReportDTO":{"type":"object","properties":{"nome":{"type":"string","minLength":1},"texto":{"type":"string"},"destinatario":{"type":"string","minLength":1},"diasSemana":{"type":"array","items":{"type":"string"},"uniqueItems":true},"diaEnvio":{"type":"integer","format":"int32"},"diaUtil":{"type":"boolean"},"horarioEnvio":{"type":"string"},"quantidadeDias":{"type":"integer","format":"int32"},"dataInicio":{"type":"string","format":"date"},"dataFim":{"type":"string","format":"date"},"active":{"type":"boolean"},"incluiHoje":{"type":"boolean"},"metrics":{"type":"array","items":{"$ref":"#/components/schemas/ReportNamedMetricDTO"},"uniqueItems":true},"campaigns":{"type":"array","items":{"$ref":"#/components/schemas/ReportCampaignDTO"},"uniqueItems":true},"adSets":{"type":"array","items":{"$ref":"#/components/schemas/ReportAdSetDTO"},"uniqueItems":true},"ads":{"type":"array","items":{"$ref":"#/components/schemas/ReportAdDTO"},"uniqueItems":true},"clientId":{"type":"integer","format":"int32"}},"required":["active","dataFim","dataInicio","destinatario","horarioEnvio","nome"]},"ReportDTO":{"type":"object","properties":{"idReport":{"type":"integer","format":"int32"},"nome":{"type":"string"},"active":{"type":"boolean"},"texto":{"type":"string"},"destinatario":{"type":"string"},"clientId":{"type":"integer","format":"int32"},"diasSemana":{"type":"array","items":{"type":"string"},"uniqueItems":true},"horarioEnvio":{"type":"string"},"quantidadeDias":{"type":"integer","format":"int32"},"dataInicio":{"type":"string","format":"date"},"dataFim":{"type":"string","format":"date"},"erroEnvio":{"type":"boolean"},"diaEnvio":{"type":"integer","format":"int32"},"diaUtil":{"type":"boolean"},"incluiHoje":{"type":"boolean"}}},"UpdateBuyerDTO":{"type":"object","properties":{"etapa":{"type":"integer","format":"int32"},"valor":{"type":"number"},"dataVenda":{"type":"string","format":"date-time"}}},"BuyerDTO":{"type":"object","properties":{"idView":{"type":"string"},"idBuyer":{"type":"integer","format":"int32"},"phone":{"type":"string"},"email":{"type":"string"},"name":{"type":"string"},"nivelFunil":{"type":"string"},"valor":{"type":"number"},"client":{"$ref":"#/components/schemas/ClientDTO"},"updatedAt":{"type":"string","format":"date-time"},"nomeCampanhaMeta":{"type":"string"},"nomeConjuntoMeta":{"type":"string"},"nomeAnuncioMeta":{"type":"string"},"linkAnuncioMeta":{"type":"string"},"dataMensagem":{"type":"string","format":"date-time"},"state":{"type":"string"},"country":{"type":"string"},"dataVenda":{"type":"string","format":"date-time"},"origem":{"type":"string"},"primeiraMensagem":{"type":"string"},"adUrl":{"type":"string"},"rastreio":{"type":"string","enum":["RASTREADO","NAO_RASTREADO","OUTRAS"]},"historico":{"type":"boolean"},"possuiHistEventos":{"type":"boolean"},"statusUltimoEvento":{"type":"string","enum":["SUCESSO","FALHA","PENDENTE"]},"idUltimoEvento":{"type":"integer","format":"int32"},"tratarRastreado":{"type":"boolean"},"erroPesquisa":{"type":"boolean"},"conexaoPerdida":{"type":"boolean"}}},"ClientDTO":{"type":"object","properties":{"idClient":{"type":"integer","format":"int32"},"name":{"type":"string"},"phone":{"type":"string"},"companyId":{"type":"integer","format":"int32"},"companyName":{"type":"string"},"conectadoWhatsapp":{"type":"boolean"},"pixel":{"type":"string"},"metaPixelToken":{"type":"string"},"metaPageId":{"type":"string"},"metaAdAccountId":{"type":"string"},"ownerName":{"type":"string"},"integrations":{"type":"array","items":{"type":"string"}},"status":{"type":"string"},"googleSelectedCustomerId":{"type":"integer","format":"int64"},"googleAdsAccount":{"$ref":"#/components/schemas/GoogleAdsAccountDTO"},"perdidaConexaoWhatsapp":{"type":"boolean"},"perdidaConexaoMeta":{"type":"boolean"},"perdidaConexaoGoogle":{"type":"boolean"},"maxLeads":{"type":"integer","format":"int32"},"frasesAnuncio":{"type":"array","items":{"$ref":"#/components/schemas/FraseAnuncioDTO"},"uniqueItems":true}}},"FraseAnuncioDTO":{"type":"object","properties":{"titulo":{"type":"string"},"frase":{"type":"string"}}},"GoogleAdsAccountDTO":{"type":"object","properties":{"customerId":{"type":"integer","format":"int64"},"resourceName":{"type":"string"},"descriptiveName":{"type":"string"},"currencyCode":{"type":"string"},"timeZone":{"type":"string"},"testAccount":{"type":"boolean"},"managerCustomerId":{"type":"integer","format":"int64"}}},"NivelFunilDTO":{"type":"object","properties":{"idNivelFunil":{"type":"integer","format":"int32"},"nome":{"type":"string"},"palavrasChave":{"type":"array","items":{"type":"string"},"uniqueItems":true},"evento":{"type":"string"},"eventoTraduzido":{"type":"string"},"clientId":{"type":"integer","format":"int32"},"blocked":{"type":"boolean"},"active":{"type":"boolean"},"somenteLeadTrafego":{"type":"boolean"},"somenteLeadCtwa":{"type":"boolean"},"ordem":{"type":"integer","format":"int32"},"valorPadrao":{"type":"number"}}},"ExpectedRequest":{"type":"object","properties":{"expectedCompanyName":{"type":"string"},"nextExpectedPrefix":{"type":"string"},"consentRef":{"type":"string"}}},"ClientRequest":{"type":"object","properties":{"enabled":{"type":"boolean"}}},"ClientBackfill":{"type":"object","properties":{"sent":{"type":"integer","format":"int64"},"totalEst":{"type":"integer","format":"int32"},"done":{"type":"boolean"}}},"ClientView":{"type":"object","properties":{"clientId":{"type":"integer","format":"int32"},"name":{"type":"string"},"enabled":{"type":"boolean"},"state":{"type":"string","enum":["NOT_SENT","WAITING_KEY","CATCHING_UP","LIVE"]},"backfill":{"$ref":"#/components/schemas/ClientBackfill"}}},"HoursRequest":{"type":"object","properties":{"windows":{"type":"array","items":{"$ref":"#/components/schemas/Window"}}}},"Window":{"type":"object","properties":{"weekday":{"type":"integer","format":"int32"},"opensAt":{"type":"string"},"closesAt":{"type":"string"}}},"JsonNode":{"type":"object","properties":{"floatingPointNumber":{"type":"boolean"},"integralNumber":{"type":"boolean"},"nodeType":{"type":"string","enum":["ARRAY","BINARY","BOOLEAN","MISSING","NULL","NUMBER","OBJECT","POJO","STRING"]},"string":{"type":"boolean"},"valueNode":{"type":"boolean"},"container":{"type":"boolean"},"object":{"type":"boolean"},"pojo":{"type":"boolean"},"short":{"type":"boolean"},"int":{"type":"boolean"},"long":{"type":"boolean"},"double":{"type":"boolean"},"bigDecimal":{"type":"boolean"},"bigInteger":{"type":"boolean"},"textual":{"type":"boolean","deprecated":true},"boolean":{"type":"boolean"},"binary":{"type":"boolean"},"missingNode":{"type":"boolean"},"number":{"type":"boolean"},"array":{"type":"boolean"},"empty":{"type":"boolean"},"null":{"type":"boolean"},"float":{"type":"boolean"},"embeddedValue":{"type":"boolean"}}},"UpdateCompanyDTO":{"type":"object","properties":{"name":{"type":"string"},"logo":{"type":"string"}}},"UpdateCompanyGoogleManagerDTO":{"type":"object","properties":{"managerCustomerId":{"type":"string","maxLength":32,"minLength":0}}},"GoogleAdsAccountSelectionDTO":{"type":"object","properties":{"customerId":{"type":"integer","format":"int64"},"resourceName":{"type":"string"},"descriptiveName":{"type":"string"},"currencyCode":{"type":"string"},"timeZone":{"type":"string"},"testAccount":{"type":"boolean"},"managerCustomerId":{"type":"integer","format":"int64"}}},"UpdateClientDTO":{"type":"object","properties":{"name":{"type":"string","maxLength":100,"minLength":2},"phone":{"type":"string","minLength":1},"companyId":{"type":"integer","format":"int32"},"pixel":{"type":"string"},"metaPixelToken":{"type":"string"},"metaPageId":{"type":"string"},"metaAdAccountId":{"type":"string"},"metaAppId":{"type":"string"},"metaAppSecret":{"type":"string"},"metaRedirectUri":{"type":"string"},"status":{"type":"string","enum":["ATIVO","INATIVO"]},"googleSelectedCustomerId":{"type":"integer","format":"int64"},"googleAdsAccount":{"$ref":"#/components/schemas/GoogleAdsAccountSelectionDTO"}},"required":["companyId","name","phone","status"]},"UpdateClientGoogleCustomerDTO":{"type":"object","properties":{"googleSelectedCustomerId":{"type":"integer","format":"int64"},"googleAdsAccount":{"$ref":"#/components/schemas/GoogleAdsAccountSelectionDTO"}}},"UpdateAvisoDTO":{"type":"object","properties":{"name":{"type":"string","minLength":1},"provider":{"type":"string","enum":["META","GOOGLE"]},"tipo":{"type":"string","enum":["ORCAMENTO_BAIXO","ERRO_PAGAMENTO"]},"texto":{"type":"string","minLength":1},"destinatario":{"type":"string","minLength":1},"active":{"type":"boolean"},"envioUnico":{"type":"boolean"},"valorMinimo":{"type":"number"},"horarioVerificacao":{"type":"string"},"horarios":{"type":"array","items":{"type":"string"},"uniqueItems":true},"diasSemana":{"type":"array","items":{"type":"string"},"minItems":1,"uniqueItems":true}},"required":["destinatario","diasSemana","name","provider","texto","tipo","valorMinimo"]},"AvisoDTO":{"type":"object","properties":{"idAviso":{"type":"integer","format":"int32"},"idClient":{"type":"integer","format":"int32"},"provider":{"type":"string","enum":["META","GOOGLE"]},"tipo":{"type":"string","enum":["ORCAMENTO_BAIXO","ERRO_PAGAMENTO"]},"name":{"type":"string"},"texto":{"type":"string","minLength":1},"destinatario":{"type":"string","minLength":1},"active":{"type":"boolean"},"envioUnico":{"type":"boolean"},"valorMinimo":{"type":"number"},"horarioVerificacao":{"type":"string"},"horarios":{"type":"array","items":{"type":"string"},"uniqueItems":true},"diasSemana":{"type":"array","items":{"type":"string"},"uniqueItems":true}},"required":["destinatario","idClient","provider","texto","tipo","valorMinimo"]},"InviteUserDTO":{"type":"object","properties":{"fullName":{"type":"string","minLength":1},"email":{"type":"string","format":"email","minLength":1},"companyId":{"type":"integer","format":"int32"},"roleName":{"type":"string","minLength":1}},"required":["companyId","email","fullName","roleName"]},"ActivateUserDTO":{"type":"object","properties":{"password":{"type":"string","maxLength":2147483647,"minLength":8},"fullName":{"type":"string"}},"required":["password"]},"Chat":{"type":"object","properties":{"phone":{"type":"string"},"waContactName":{"type":"string"}}},"Content":{"type":"object","properties":{"mimetype":{"type":"string"},"contextInfo":{"$ref":"#/components/schemas/ContextInfo"},"interactiveMessage":{"type":"string"}}},"ContextInfo":{"type":"object","properties":{"conversionSource":{"type":"string"},"externalAdReply":{"$ref":"#/components/schemas/ExternalAdReply"},"quotedMessage":{"type":"string"}}},"ExternalAdReply":{"type":"object","properties":{"sourceID":{"type":"string"},"sourceURL":{"type":"string"},"ctwaClid":{"type":"string"},"sourceApp":{"type":"string"}}},"Message":{"type":"object","properties":{"fromMe":{"type":"boolean"},"isGroup":{"type":"boolean"},"senderName":{"type":"string"},"text":{"type":"string"},"messageTimestamp":{"type":"integer","format":"int64"},"messageId":{"type":"string"},"edited":{"type":"string"},"mediaType":{"type":"string"},"senderLid":{"type":"string"},"content":{"$ref":"#/components/schemas/Content"}}},"UazapiMessageWebhook":{"type":"object","properties":{"owner":{"type":"string"},"token":{"type":"string"},"message":{"$ref":"#/components/schemas/Message"},"chat":{"$ref":"#/components/schemas/Chat"}}},"UazapiConnectionWebhook":{"type":"object","properties":{"owner":{"type":"string"},"token":{"type":"string"},"instance":{"$ref":"#/components/schemas/UazapiInstanceDto"}}},"UazapiInstanceDto":{"type":"object","properties":{"id":{"type":"string"},"token":{"type":"string"},"status":{"type":"string"},"paircode":{"type":"string"},"qrcode":{"type":"string"},"lastDisconnect":{"type":"string"},"lastDisconnectReason":{"type":"string"},"currentPresence":{"type":"string"}}},"CreateReportDTO":{"type":"object","properties":{"nome":{"type":"string","minLength":1},"clientId":{"type":"integer","format":"int32"},"texto":{"type":"string"},"destinatario":{"type":"string","minLength":1},"diasSemana":{"type":"array","items":{"type":"string"},"uniqueItems":true},"diaEnvio":{"type":"integer","format":"int32"},"diaUtil":{"type":"boolean"},"horarioEnvio":{"type":"string"},"quantidadeDias":{"type":"integer","format":"int32"},"dataInicio":{"type":"string","format":"date"},"dataFim":{"type":"string","format":"date"},"metrics":{"type":"array","items":{"$ref":"#/components/schemas/ReportNamedMetricDTO"},"uniqueItems":true},"campaigns":{"type":"array","items":{"$ref":"#/components/schemas/ReportCampaignDTO"},"uniqueItems":true},"adSets":{"type":"array","items":{"$ref":"#/components/schemas/ReportAdSetDTO"},"uniqueItems":true},"ads":{"type":"array","items":{"$ref":"#/components/schemas/ReportAdDTO"},"uniqueItems":true},"incluiHoje":{"type":"boolean"}},"required":["clientId","dataFim","dataInicio","destinatario","horarioEnvio","nome"]},"PublicTokenDTO":{"type":"object","properties":{"clientId":{"type":"integer","format":"int32"}},"required":["clientId"]},"PublicTrackingTokenResponse":{"type":"object","properties":{"token":{"type":"string"},"expiresIn":{"type":"integer","format":"int64"},"clientId":{"type":"integer","format":"int32"},"userId":{"type":"integer","format":"int32"},"clientName":{"type":"string"}}},"RemoveResponse":{"type":"object","properties":{"outcome":{"type":"string","enum":["STARTED","REMOVED","REARMED","IN_PROGRESS","NOTHING_TO_REMOVE"]}}},"RequeueResponse":{"type":"object","properties":{"requeued":{"type":"integer","format":"int32"}}},"KeyRequest":{"type":"object","properties":{"key":{"type":"string"}}},"KeyResponse":{"type":"object","properties":{"keyId":{"type":"string","format":"uuid"},"prefix":{"type":"string"},"status":{"type":"string","enum":["NOVA","CONFIRMADA","RECUSADA","REVOGANDO","DESTRUIDA"]},"outcome":{"type":"string","enum":["CONFIRMADA","PREFIX_MISMATCH","GUARD_REJECTED","KEY_401","RETRY_LATER","EXPIRED","REPLACED","REMOVED"]},"code":{"type":"string","enum":["BUSY","INTEGRATION_DISABLED","MASTER_KEY_MISSING","CONSENT_MISSING","ESTIMATE_TIMEOUT","COMPANY_NOT_FOUND","FORBIDDEN","KEY_401","KEY_REJECTED","QUEUE_CAP","CRYPTO","BATCH_ERROR","CONTRACT_ERROR","REVOKE_FAILED","RATE_LIMITED","DATALENS_UNAVAILABLE","INVALID_REQUEST","CONNECTION_LIMIT"]},"retryAfterSeconds":{"type":"integer","format":"int64"},"expectedPrefix":{"type":"string"},"companyName":{"type":"string"}}},"RegisterClientDTO":{"type":"object","properties":{"name":{"type":"string","maxLength":100,"minLength":2},"phone":{"type":"string","maxLength":15,"minLength":10},"companyId":{"type":"integer","format":"int32"},"pixel":{"type":"string"},"metaPixelToken":{"type":"string"},"metaPageId":{"type":"string"},"metaAdAccountId":{"type":"string"},"status":{"type":"string","enum":["ATIVO","INATIVO"]}},"required":["companyId","name","phone"]},"CreateAvisoDTO":{"type":"object","properties":{"idClient":{"type":"integer","format":"int32"},"name":{"type":"string","minLength":1},"provider":{"type":"string","enum":["META","GOOGLE"]},"tipo":{"type":"string","enum":["ORCAMENTO_BAIXO","ERRO_PAGAMENTO"]},"texto":{"type":"string","minLength":1},"destinatario":{"type":"string","minLength":1},"active":{"type":"boolean"},"envioUnico":{"type":"boolean"},"valorMinimo":{"type":"number"},"horarioVerificacao":{"type":"string"},"horarios":{"type":"array","items":{"type":"string"},"uniqueItems":true},"diasSemana":{"type":"array","items":{"type":"string"},"minItems":1,"uniqueItems":true}},"required":["destinatario","diasSemana","idClient","name","provider","texto","tipo","valorMinimo"]},"RegisterUserDTO":{"type":"object","properties":{"email":{"type":"string","format":"email","minLength":1},"password":{"type":"string","minLength":1},"fullName":{"type":"string","maxLength":100,"minLength":2},"phone":{"type":"string","maxLength":30,"minLength":0},"companyName":{"type":"string","maxLength":255,"minLength":0},"roleName":{"type":"string"}},"required":["email","fullName","password"]},"ResendConfirmationDTO":{"type":"object","properties":{"email":{"type":"string","format":"email","minLength":1}},"required":["email"]},"MensagemSucessoResponse":{"type":"object","properties":{"message":{"type":"string"}}},"LoginUserDTO":{"type":"object","properties":{"email":{"type":"string","minLength":1},"password":{"type":"string","minLength":1},"rememberMe":{"type":"boolean"}},"required":["email","password"]},"LoginResponse":{"type":"object","properties":{"token":{"type":"string"},"user":{"$ref":"#/components/schemas/UserDTO"},"expiresIn":{"type":"integer","format":"int64"}}},"CheckoutConfirmDTO":{"type":"object","properties":{"token":{"type":"string","minLength":1},"newPassword":{"type":"string","maxLength":2147483647,"minLength":8},"confirmPassword":{"type":"string","minLength":1}},"required":["confirmPassword","newPassword","token"]},"SubscriptionCycleDTO":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"cycleNumber":{"type":"integer","format":"int32"},"startDate":{"type":"string","format":"date-time"},"endDate":{"type":"string","format":"date-time"},"paidAt":{"type":"string","format":"date-time"},"maxClientesSnapshot":{"type":"integer","format":"int32"},"amountPaid":{"type":"integer","format":"int32"},"billingReason":{"type":"string"},"status":{"type":"string"},"hostedInvoiceUrl":{"type":"string"}}},"UazapiLiveQrResponseDto":{"type":"object","properties":{"qrcode":{"type":"string"},"lastDisconnectReason":{"type":"string"}}},"SentReportDTO":{"type":"object","properties":{"idSentReport":{"type":"integer","format":"int32"},"sentAt":{"type":"string","format":"date-time"},"reportText":{"type":"string"},"createdByUsername":{"type":"string"},"status":{"type":"string"},"errorMessage":{"type":"string"}}},"AnuncioMetaDTO":{"type":"object","properties":{"nomeCampanha":{"type":"string"},"nomeConjunto":{"type":"string"},"nomeAnuncio":{"type":"string"},"quantidadeLeads":{"type":"integer","format":"int64"}}},"MetricsDTO":{"type":"object","properties":{"dataMetrica":{"type":"string","format":"date"},"conversasTotal":{"type":"integer","format":"int64"},"conversasNaoRastreadas":{"type":"integer","format":"int64"},"conversasRastreadas":{"type":"integer","format":"int64"},"conversasIniciadas":{"type":"integer","format":"int64"},"conversasRespondidas":{"type":"integer","format":"int64"},"conversasRemarketing":{"type":"integer","format":"int64"},"qtdVendas":{"type":"integer","format":"int64"},"qtdVendasOutras":{"type":"integer","format":"int64"},"receitaGerada":{"type":"number","format":"double"},"receitaGeradaOutras":{"type":"number","format":"double"},"origemFacebook":{"type":"integer","format":"int64"},"origemInstagram":{"type":"integer","format":"int64"},"origemWhatsapp":{"type":"integer","format":"int64"},"origemOutros":{"type":"integer","format":"int64"},"cliques":{"type":"integer","format":"int64"},"alcance":{"type":"integer","format":"int64"},"impressoes":{"type":"integer","format":"int64"},"niveisFunil":{"type":"object","additionalProperties":{"type":"integer","format":"int64"}},"niveisComOrdem":{"type":"array","items":{"$ref":"#/components/schemas/NivelFunilOrdenado"}}}},"NivelFunilOrdenado":{"type":"object","properties":{"nome":{"type":"string"},"quantidade":{"type":"integer","format":"int64"},"ordem":{"type":"integer","format":"int32"}}},"RastreioDTO":{"type":"object","properties":{"porDia":{"type":"array","items":{"$ref":"#/components/schemas/MetricsDTO"}},"anunciosPorNiveis":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/AnuncioMetaDTO"}}},"anunciosPorConversaIniciada":{"type":"array","items":{"$ref":"#/components/schemas/AnuncioMetaDTO"}},"anunciosPorConversaRespondida":{"type":"array","items":{"$ref":"#/components/schemas/AnuncioMetaDTO"}},"conversasIniciadasTotal":{"type":"integer","format":"int64"},"cplReal":{"type":"number","format":"double"}}},"Pageable":{"type":"object","properties":{"page":{"type":"integer","format":"int32","minimum":0},"size":{"type":"integer","format":"int32","minimum":1},"sort":{"type":"array","items":{"type":"string"}}}},"BuyerEventHistoryDTO":{"type":"object","properties":{"idBuyer":{"type":"integer","format":"int32"},"idBuyerEventHistory":{"type":"integer","format":"int32"},"idNivelFunil":{"type":"integer","format":"int32"},"nivelFunil":{"type":"string"},"tipoEvento":{"type":"string"},"requestBody":{"type":"string"},"response":{"type":"string"},"status":{"type":"string"},"sentAt":{"type":"string","format":"date-time"}}},"PageMetadata":{"type":"object","properties":{"size":{"type":"integer","format":"int64"},"number":{"type":"integer","format":"int64"},"totalElements":{"type":"integer","format":"int64"},"totalPages":{"type":"integer","format":"int64"}}},"PagedModelBuyerEventHistoryDTO":{"type":"object","properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/BuyerEventHistoryDTO"}},"page":{"$ref":"#/components/schemas/PageMetadata"}}},"PagedModelBuyerDTO":{"type":"object","properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/BuyerDTO"}},"page":{"$ref":"#/components/schemas/PageMetadata"}}},"BuyerMessageHistoryDTO":{"type":"object","properties":{"sentAt":{"type":"string","format":"date-time"},"fromLead":{"type":"boolean"},"text":{"type":"string"},"media":{"type":"boolean"},"deleted":{"type":"boolean"}}},"PagedModelBuyerMessageHistoryDTO":{"type":"object","properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/BuyerMessageHistoryDTO"}},"page":{"$ref":"#/components/schemas/PageMetadata"}}},"BuyerHistoryDTO":{"type":"object","properties":{"idBuyerHistory":{"type":"integer","format":"int32"},"idBuyer":{"type":"integer","format":"int32"},"nome":{"type":"string"},"nivelFunil":{"type":"string"},"valor":{"type":"number"},"updatedAt":{"type":"string","format":"date-time"},"nomeCampanhaMeta":{"type":"string"},"nomeConjuntoMeta":{"type":"string"},"nomeAnuncioMeta":{"type":"string"},"linkAnuncioMeta":{"type":"string"},"dataMensagem":{"type":"string","format":"date-time"},"dataVenda":{"type":"string","format":"date-time"},"origem":{"type":"string"},"adUrl":{"type":"string"}}},"PagedModelBuyerHistoryDTO":{"type":"object","properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/BuyerHistoryDTO"}},"page":{"$ref":"#/components/schemas/PageMetadata"}}},"ExternalMetricDTO":{"type":"object","properties":{"idExternalMetric":{"type":"integer","format":"int32"},"name":{"type":"string"},"isMeta":{"type":"boolean"},"externalId":{"type":"string"},"provider":{"type":"string"},"isDefault":{"type":"boolean"}}},"MetaUrlResponse":{"type":"object","properties":{"url":{"type":"string"}}},"PixelEventDTO":{"type":"object","properties":{"name":{"type":"string"},"translatedName":{"type":"string"},"description":{"type":"string"}}},"MetaLevelSummaryDTO":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"}}},"MetaAdAccountDTO":{"type":"object","properties":{"name":{"type":"string"},"account_id":{"type":"string"}}},"MetaCursors":{"type":"object","properties":{"before":{"type":"string"},"after":{"type":"string"}}},"MetaPaging":{"type":"object","properties":{"cursors":{"$ref":"#/components/schemas/MetaCursors"},"previous":{"type":"string","writeOnly":true},"next":{"type":"string","writeOnly":true},"hasPrevious":{"type":"boolean"},"hasNext":{"type":"boolean"}}},"MetaResponseWrapperMetaAdAccountDTO":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/MetaAdAccountDTO"}},"paging":{"$ref":"#/components/schemas/MetaPaging"}}},"GoogleAdsGroupDTO":{"type":"object","properties":{"adGroupId":{"type":"integer","format":"int32"},"name":{"type":"string"},"status":{"type":"string"}}},"GoogleAdsCampaignDTO":{"type":"object","properties":{"campaignId":{"type":"integer","format":"int32"},"name":{"type":"string"},"status":{"type":"string"},"servingStatus":{"type":"string"},"advertisingChannelType":{"type":"string"},"startDate":{"type":"string","format":"date"},"endDate":{"type":"string","format":"date"}}},"GoogleAdsDTO":{"type":"object","properties":{"adId":{"type":"integer","format":"int32"},"name":{"type":"string"},"status":{"type":"string"}}},"MetricsView":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/JsonNode"},"cachedAt":{"type":"string","format":"date-time"},"stale":{"type":"boolean"},"staleReason":{"type":"string","enum":["BUSY","INTEGRATION_DISABLED","MASTER_KEY_MISSING","CONSENT_MISSING","ESTIMATE_TIMEOUT","COMPANY_NOT_FOUND","FORBIDDEN","KEY_401","KEY_REJECTED","QUEUE_CAP","CRYPTO","BATCH_ERROR","CONTRACT_ERROR","REVOKE_FAILED","RATE_LIMITED","DATALENS_UNAVAILABLE","INVALID_REQUEST","CONNECTION_LIMIT"]}}},"AlertEmail":{"type":"object","properties":{"missing":{"type":"boolean"},"lastFailedAt":{"type":"string","format":"date-time"}}},"Backfill":{"type":"object","properties":{"total":{"type":"integer","format":"int32"},"sent":{"type":"integer","format":"int64"},"percent":{"type":"integer","format":"int32"},"etaMinutes":{"type":"integer","format":"int64"},"ackedBatches":{"type":"integer","format":"int64"},"producerDone":{"type":"boolean"}}},"Confirmation":{"type":"object","properties":{"prefix":{"type":"string"},"companyName":{"type":"string"},"confirmedAt":{"type":"string","format":"date-time"},"confirmedBy":{"type":"integer","format":"int32"}}},"Expected":{"type":"object","properties":{"expectedCompanyName":{"type":"string"},"nextExpectedPrefix":{"type":"string"},"setAt":{"type":"string","format":"date-time"}}},"Health":{"type":"object","properties":{"companyId":{"type":"integer","format":"int32"},"companyName":{"type":"string"},"pipelineStatus":{"type":"string","enum":["DESLIGADO","BACKFILL","ATIVO","PAUSADO","REMOVENDO","REMOVIDA"]},"pauseReasons":{"type":"array","items":{"type":"string"}},"integrationEnabled":{"type":"boolean"},"masterKeyConfigured":{"type":"boolean"},"expected":{"$ref":"#/components/schemas/Expected"},"backfill":{"$ref":"#/components/schemas/Backfill"},"queue":{"$ref":"#/components/schemas/Queue"},"quarantine":{"type":"object","additionalProperties":{"type":"integer","format":"int64"}},"quarantineRequeueable":{"type":"integer","format":"int64"},"keys":{"type":"array","items":{"$ref":"#/components/schemas/KeyView"}},"revokeFailedKeys":{"type":"array","items":{"type":"string"}},"lastAckAt":{"type":"string","format":"date-time"},"confirmation":{"$ref":"#/components/schemas/Confirmation"},"lastError":{"$ref":"#/components/schemas/LastError"},"stale":{"type":"boolean"},"alertEmail":{"$ref":"#/components/schemas/AlertEmail"}}},"KeyView":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"prefix":{"type":"string"},"status":{"type":"string","enum":["NOVA","CONFIRMADA","RECUSADA","REVOGANDO","DESTRUIDA"]},"slot":{"type":"string","enum":["ACTIVE","CANDIDATE","RETIRING"]},"createdAt":{"type":"string","format":"date-time"},"confirmedAt":{"type":"string","format":"date-time"},"confirmedCompanyName":{"type":"string"},"rejectedReason":{"type":"string"},"revokeAttempts":{"type":"integer","format":"int32"}}},"LastError":{"type":"object","properties":{"code":{"type":"string"},"at":{"type":"string","format":"date-time"},"requestId":{"type":"string"},"batchCode":{"type":"string"},"batchRequestId":{"type":"string"},"batchHttpStatus":{"type":"integer","format":"int32"}}},"Queue":{"type":"object","properties":{"pending":{"type":"integer","format":"int64"},"inFlight":{"type":"integer","format":"int64"},"outcomesPending":{"type":"integer","format":"int64"}}},"EstimateView":{"type":"object","properties":{"eligibleMessages":{"type":"integer","format":"int64"},"minMinutes":{"type":"integer","format":"int64"},"mediaMessages":{"type":"integer","format":"int64"},"contactsWithMessages":{"type":"integer","format":"int64"},"salesRecorded":{"type":"integer","format":"int64"}}},"AvisoEnviadoDTO":{"type":"object","properties":{"idAvisoEnviado":{"type":"integer","format":"int32"},"provider":{"type":"string","enum":["META","GOOGLE"]},"type":{"type":"string","enum":["ORCAMENTO_BAIXO","ERRO_PAGAMENTO"]},"name":{"type":"string"},"sentAt":{"type":"string","format":"date-time"},"text":{"type":"string"},"createdByUsername":{"type":"string"},"status":{"type":"string"},"errorMessage":{"type":"string"}}}}}}